Crash when implement do_startup method in GApplication subclass
Bug #904168 reported by
Iven Hsu
This bug report is a duplicate of:
Bug #909292: Crashes when C calls Python callback with Python3 due to local ctypes module build configuration.
Edit
Remove
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pygobject |
Invalid
|
Medium
|
|||
pygobject (Ubuntu) |
Triaged
|
Undecided
|
Unassigned |
Bug Description
When I subclass the GApplication class, and implement do_startup method in my program, python crashes with ``Segment Fault`` or ``Illegal instruction``.
Everything works well if I comment the do_startup method.
The code is attached.
I'm using Ubuntu 11.10 x86_64 with python3-gobject 3.0.0-ubuntu4.
summary: |
- Crash when GApplication + Crash when implement do_startup method in GApplication subclass |
Changed in pygobject: | |
importance: | Unknown → Medium |
status: | Unknown → Incomplete |
Changed in pygobject (Ubuntu): | |
status: | Incomplete → Triaged |
Changed in pygobject: | |
status: | Incomplete → Confirmed |
Changed in pygobject: | |
status: | Confirmed → Invalid |
To post a comment you must log in.
In current precise, with both python 2 and 3 I now get
$ python3 /tmp/do_startup.py
GLib-GIO-CRITICAL **: GApplication subclass '__main_ _+Application' failed to chain up on ::startup (from start of override function)
and a clean exit code 0. do_startup() actually does get called. I think this is because the functions are just empty stubs.
Can you confirm that this works properly now with pygobject 3.1.1?