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 327739 - Nautilus keeps crashing with Exception exceptions.ImportError: 'could not import gobject' in 'garbage collection' ignored;Fatal Python error: unexpected exception during garbage collection"
Nautilus keeps crashing with Exception exceptions.ImportError: 'could not imp...
Status: RESOLVED FIXED
Product: nautilus-python
Classification: Other
Component: general
unspecified
Other All
: Normal critical
: ---
Assigned To: Johan (not receiving bugmail) Dahlin
Johan (not receiving bugmail) Dahlin
: 327867 328458 329086 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-01-19 18:34 UTC by Karel Demeyer
Modified: 2006-02-10 19:50 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Karel Demeyer 2006-01-19 18:34:58 UTC
Steps to reproduce:
Just start nautilus (is started automatically with gnome)

Stack trace:
[Thread debugging using libthread_db enabled]
[New Thread -1224755520 (LWP 8134)]

[New Thread -1232585808 (LWP 8141)]
Exception exceptions.ImportError: 'could not import gobject' in 'garbage collect
ion' ignored
Fatal Python error: unexpected exception during garbage collection

Program received signal SIGABRT, Aborted.

Thread NaN (LWP 8134)

  • #0 __kernel_vsyscall
  • #1 raise
    from /lib/tls/i686/cmov/libc.so.6
  • #2 abort
    from /lib/tls/i686/cmov/libc.so.6
  • #3 Py_FatalError
    from /usr/lib/libpython2.4.so.1.0
  • #4 _PyObject_GC_Del
    from /usr/lib/libpython2.4.so.1.0
  • #5 PyGC_Collect
    from /usr/lib/libpython2.4.so.1.0
  • #6 Py_Finalize
    from /usr/lib/libpython2.4.so.1.0
  • #7 nautilus_module_shutdown
    from /usr/lib/nautilus/extensions-1.0/libnautilus-python.so
  • #8 nautilus_marshal_VOID__STRING_ENUM_INT_INT
  • #9 IA__g_type_module_unuse
    at gtypemodule.c line 227
  • #10 nautilus_marshal_VOID__STRING_ENUM_INT_INT
  • #11 POA_Nautilus_MetafileFactory__fini
  • #12 POA_Nautilus_MetafileFactory__fini
  • #13 __libc_start_main
    from /lib/tls/i686/cmov/libc.so.6
  • #14 ??


Other information:
removing the nautilus-python package from my ubuntu dapper "fixed" this ;)
Comment 1 Christian Kirbach 2006-01-20 14:02:47 UTC
*** Bug 327867 has been marked as a duplicate of this bug. ***
Comment 2 Gustavo Carneiro 2006-01-23 17:32:13 UTC
"IA__g_type_module_unuse"
I suspect recent nautilus versions started to suddenly shutdown extension modules  during startup, for some weird reason, and I'm not sure nautilus-python supports that very well.
Comment 3 Gustavo Carneiro 2006-01-24 23:14:57 UTC
There was a problem with error handling and reporting in nautilus-python.  I fixed that in CVS.  With that fixed, now I see in the terminal that launches nautilus:
-----------------
nautilus-python:init_pygobject
Error in sys.excepthook:
Traceback (most recent call last):
  • File "/usr/lib/site-python/sitecustomize.py", line 14 in info
    import traceback, pdb
  • File "/usr/lib/python2.4/pdb.py", line 11 in ?
    from repr import Repr
  • File "/usr/lib/python2.4/repr.py", line 6 in ?
    from itertools import islice
ImportError: /usr/lib/python2.4/lib-dynload/itertools.so: undefined symbol: _Py_NoneStruct

Original exception was:
ImportError: /usr/lib/python2.4/site-packages/gtk-2.0/gobject.so: undefined symbol: _Py_TrueStruct

(nautilus:1690): Nautilus-Python-WARNING **: could not import gobject
-----------------

And now at least module shutdown doesn't crash nautilus, and I suspect I know what's causing this.  It looks like nautilus extensions are now being loaded with local symbol visibility, instead of global.  I can't find any proof of this on the nautilus ChangeLog, but it's what it looks like.
Comment 4 Gustavo Carneiro 2006-01-25 00:14:44 UTC
Finally found the ChangeLog entry:

2005-12-13  Alexander Larsson  <alexl@redhat.com>

	* libnautilus-private/nautilus-module.c (nautilus_module_load):
	open modules G_MODULE_BIND_LOCAL
Comment 5 Olav Vitters 2006-01-25 09:06:15 UTC
*** Bug 328458 has been marked as a duplicate of this bug. ***
Comment 6 Fabio Bonelli 2006-01-29 20:01:28 UTC
*** Bug 329086 has been marked as a duplicate of this bug. ***