An empty/None value in PF_DIRNAME makes the dialog non-functional
Submitted by Ofnuts
Link to original bug (#768705)
Description
Created attachment 331286 Small script to demonstrate the problem
Create a Python script with a registration paramater that reads:
(PF_DIRNAME, "dirname", "Try a directory:", ''),
Start Gimp, activate the script, try to use the dialog, it closes abruptly and the Gimp console shows;
/usr/lib/gimp/2.0/python/gimpfu.py:806: GtkWarning: gtk_tree_model_filter_get_value: assertion 'GTK_TREE_MODEL_FILTER (model)->priv->stamp == iter->stamp' failed
gtk.main()
/usr/lib/gimp/2.0/python/gimpfu.py:806: Warning: /build/buildd/glib2.0-2.40.2/./gobject/gtype.c:4210: type id '0' is invalid
gtk.main()
/usr/lib/gimp/2.0/python/gimpfu.py:806: Warning: can't peek value table for type '`<invalid>`' which is not currently referenced
gtk.main()
/home/bd/Code/Gimp/Tools/Activated/dirnamebug.py: fatal error: Segmentation fault
Having a non-empty value in the string (even if it is an invalid directory) fixes the problem.
Attachment 331286, "Small script to demonstrate the problem":
dirnamebug.py
Version: 2.8.16
Edited by lillolollo