[Reportbug-maint] Bug#850733: Crashes with "TypeError: GObject.__init__() takes exactly 0 arguments (1 given)"
James Clarke
jrtc27 at debian.org
Mon Jan 9 19:21:50 UTC 2017
Package: reportbug
Version: 7.1.2
Tags: patch
Severity: important
When I try to use the GTK3 backend to report a bug, I get the following
stack trace:
> Traceback (most recent call last):
> File "/usr/bin/reportbug", line 2233, in <module>
> main()
> File "/usr/bin/reportbug", line 1107, in main
> return iface.user_interface()
> File "/usr/bin/reportbug", line 2149, in user_interface
> package, severity, mode, charset=charset, tags=tags)
> File "/usr/bin/reportbug", line 182, in handle_editing
> editor, charset)
> File "/usr/lib/python3/dist-packages/reportbug/ui/gtk2_ui.py", line 1561, in func
> op = klass(parent)
> File "/usr/lib/python3/dist-packages/reportbug/ui/gtk2_ui.py", line 539, in __init__
> self.widget = self.create_widget()
> File "/usr/lib/python3/dist-packages/reportbug/ui/gtk2_ui.py", line 1173, in create_widget
> expander = Gtk.Expander("Other system information")
> TypeError: GObject.__init__() takes exactly 0 arguments (1 given)
This is because, while a lot of the constructors have been overridden by
PyGObject to handle the deprecated form, Expander has not been
overridden, so the explicit form has to be used. Patch attached.
Unfortunately, after applying it, it now crashes with:
> (reportbug:15278): Gtk-CRITICAL **: gtk_text_attributes_ref: assertion
> 'values != NULL' failed
>
> (reportbug:15278): Gtk-CRITICAL **: gtk_text_attributes_ref: assertion
> 'values != NULL' failed
>
> (reportbug:15278): Pango-CRITICAL **: pango_layout_new: assertion
> 'context != NULL' failed
> [1] 15278 segmentation fault reportbug src:pymongo
Putting in prints doesn't seem to help; the exact location is
non-deterministic from what I can tell. I would guess there are some UI
interactions happening not on the main UI thread.
Regards,
James
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-gtk2_ui-Avoid-deprecated-Gtk.Expander-str-constructo.patch
Type: text/x-diff
Size: 1216 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reportbug-maint/attachments/20170109/e0177a97/attachment.patch>
More information about the Reportbug-maint
mailing list