After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 172420 - Crash when loading a Input Dialog from a glade file
Crash when loading a Input Dialog from a glade file
Status: RESOLVED FIXED
Product: Gazpacho
Classification: Deprecated
Component: widget support
SVN trunk
Other Linux
: Normal normal
: ---
Assigned To: Gazpacho Maintainer(s)
Gazpacho Maintainer(s)
Depends on:
Blocks: 172261
 
 
Reported: 2005-04-02 10:07 UTC by Mattias Karlsson
Modified: 2005-04-06 23:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Glade file that causes the crash (1.92 KB, application/octet-stream)
2005-04-02 10:09 UTC, Mattias Karlsson
Details

Description Mattias Karlsson 2005-04-02 10:07:32 UTC
Crash when loading a Input Dialog from a glade file created in Gazpacho.

1) Create new Input Dialog
2) Save and exit
3) Open gazpacho and load the glade file

Traceback (most recent call last):
  • File "bin/gazpacho", line 67 in ?
    sys.exit(main(sys.argv))
  • File "/home/enki/src/gazpacho/gazpacho/main.py", line 130 in main
    launch(filenames)
  • File "/home/enki/src/gazpacho/gazpacho/main.py", line 57 in launch
    gazpacho.open_project(filename)
  • File "/home/enki/src/gazpacho/gazpacho/application.py", line 448 in open_project
    prj = project.Project.open(path, self)
  • File "/home/enki/src/gazpacho/gazpacho/project.py", line 421 in open
    ObjectGlue(prj))
  • File "/home/enki/src/gazpacho/gazpacho/loader/widgettree.py", line 58 in __init__
    self.load_from_file(path)
  • File "/home/enki/src/gazpacho/gazpacho/loader/widgettree.py", line 87 in load_from_file
    self._read_xml_tree(doc.documentElement)
  • File "/home/enki/src/gazpacho/gazpacho/loader/widgettree.py", line 149 in _read_xml_tree
    widget = self._build_object(child_node)
  • File "/home/enki/src/gazpacho/gazpacho/loader/widgettree.py", line 219 in _build_object
    self._fill_object_from_node(obj, xml_node)
  • File "/home/enki/src/gazpacho/gazpacho/loader/widgettree.py", line 242 in _fill_object_from_node
    child = self._build_child_object(obj, child_node)
  • File "/home/enki/src/gazpacho/gazpacho/loader/widgettree.py", line 271 in _build_child_object
    while gic(ancestor, internal_child) is None:
  • File "/home/enki/src/gazpacho/gazpacho/project.py", line 410 in get_internal_child
    widget_class = widget_registry.get_by_type(ancestor.__gtype__)
AttributeError: 'NoneType' object has no attribute '__gtype__'

Comment 1 Mattias Karlsson 2005-04-02 10:09:57 UTC
Created attachment 39588 [details]
Glade file that causes the crash
Comment 2 Lorenzo Gil Sanchez 2005-04-06 23:45:30 UTC
Now it does not crash but note that in the glade file not a lot of things are
saved actually. That's because we don't have a post_create function for this
widget that create Gazpacho Wrappers for the combos and the notebook.

I read the documentation of this Dialog and it says that it is a too specialized
widget that eventually will be out of pygtk.

Also I can't think on any use case of customizing this dialog by adding more
widgets to it.

Many users do not know what an Input Dialog is (me included) because they don't
know what is that buzzword XInput. So I think it is confusing and I'm going to
remove it from the palette.

At least this help us to find a bug in widgetclass.py :-)