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 587265 - glib.MainLoop().get_context() crash unless gobject is imported
glib.MainLoop().get_context() crash unless gobject is imported
Status: RESOLVED DUPLICATE of bug 636656
Product: pygobject
Classification: Bindings
Component: general
Git master
Other All
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2009-06-29 03:13 UTC by H.W. Wan
Modified: 2010-12-31 16:11 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16



Description H.W. Wan 2009-06-29 03:13:59 UTC
Please describe the problem:
the following python code will crash

import glib
context = glib.MainLoop().get_context()



add a "import gobject"  will fix the crash


Steps to reproduce:
1. 
2. 
3. 


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Simon van der Linden 2010-12-30 18:01:42 UTC


  • #0 pyglib_main_context_new
    at pyglib.c line 419
  • #1 _wrap_g_main_loop_get_context
    at pygmainloop.c line 305
  • #2 PyEval_EvalFrameEx
  • #3 PyEval_EvalCodeEx
  • #4 PyEval_EvalCode
  • #5 PyRun_SimpleStringFlags
  • #6 Py_Main
  • #7 __libc_start_main
    from /lib/libc.so.6
  • #8 _start

Comment 2 Simon van der Linden 2010-12-31 16:11:56 UTC

*** This bug has been marked as a duplicate of bug 636656 ***