GNOME Bugzilla – Bug 74374
Natulis desktop crash when starting Gnome-desktop (startx from a shell)
Last modified: 2004-12-22 21:47:04 UTC
Package: nautilus Severity: blocker Version: 1.1.8 Synopsis: Natulis desktop crash when starting Gnome-desktop (startx from a shell) Bugzilla-Product: nautilus Bugzilla-Component: general BugBuddy-GnomeVersion: 2.0 (1.112.1) Description: Description of Problem: Natilus doesn't start when starting the Gnome 2 desktop. It crashes and 10-15 "program crash" windows come up. I am running RedHat 7.2 with the latest updates from Red-Carpet. Steps to reproduce the problem: 1. Install Gnome 2 desktop from Ximian Red-Carpet 2. run startx from a shell. 3. Watch how Gnome is starting, and natilus crashes after a few seconds.. Actual Results: Expected Results: How often does this happen? Everytime. It seems to be possible (sometimes) to start nautilus from a X-server without gnome (from an xterm). Additional Information: Debugging Information: [New Thread 1024 (LWP 4257)] 0x40959ca9 in __wait4 () from /lib/i686/libc.so.6
+ Trace 19019
Seems it can't activate the metafile factory. This is a bonobo-activation problem or more probably a busted installation in some way.
Should we close, then, Alex?
I'm going to close this, I did a fresh redhat 7.2 build using the gnome rpms from today and startx worked fine and dandy.
*** Bug 96660 has been marked as a duplicate of this bug. ***
I'm reopening this, since we have a dup in Nautilus 2.0.7.
And marking NEW and high/critical.
*** Bug 96799 has been marked as a duplicate of this bug. ***
*** Bug 96914 has been marked as a duplicate of this bug. ***
*** Bug 97135 has been marked as a duplicate of this bug. ***
*** Bug 97131 has been marked as a duplicate of this bug. ***
*** Bug 97263 has been marked as a duplicate of this bug. ***
Apologies for the spam- I'm removing 'bugsquad' from some keywords via the web interface. This is a one-time only thing before I re-add bugsquad via the SQL interface, which will generate no mail. Apologies again.
*** Bug 98449 has been marked as a duplicate of this bug. ***
*** Bug 114318 has been marked as a duplicate of this bug. ***
The most recent duplicate was in version 2.2.x of nautilus. So I'm setting the version to 2.2.x and updating the keyword GNOMEVER2.0->GNOMEVER2.2
*** Bug 118187 has been marked as a duplicate of this bug. ***
Now spotted in the wild in 2.3.x....
*** Bug 119041 has been marked as a duplicate of this bug. ***
*** Bug 120192 has been marked as a duplicate of this bug. ***
The latest duplicate was also in GNOME 2.3 (and specifically, with nautilus 2.3.8). I'm changing version from 2.2.x to 2.3.x to reflect this.
*** Bug 120707 has been marked as a duplicate of this bug. ***
The latest duplicate was from the same reporter as bug 119041, but this time he's using nautilus-2.3.9. I'm updating the target milestone to 2.4.0 and adding the TARGET2.4.0 keyword.
I looked into this and found out a few things: Although all of the dups crash in die_on_activation (it could not get the metafile factory from bonobo), they are really two different bugs. All traces before 2003-07-24 are startup issues (originating in show_desktop_window etc.), all traces hereafter are shutdown issues (originating in gnome_vfs_shutdown()). The later ones are caused by gnome_vfs_shutdown() called in main() after the application was unrefed from bonobo. The vfs_shutdown call dispatches pending completion callbacks which in turn call register_monitor stuff which ends up trying to get a metafile factory from an already unregistered server. (I'm not into CORBA/Bonobo but that's how I understand it). This is easily fixed: call gnome_vfs_shutdown() before bonobo_object_unref(application) in nautilus-main. I could reliably reproduce the shutdown crash and after this change it went away. The former stacks look like a bonobo_activation bug which was fixed along the way (it wasn't reported for a year with 1 exception). Well, at least I couldn't reproduce it and the startup seems sane with respect to these issues.
Created attachment 20028 [details] [review] Proposed Patch
And it doesn't seem like application shutdown will call any gnome vfs things, so this looks fine. Commiting.
*** Bug 122148 has been marked as a duplicate of this bug. ***
That patch does not fix the problem. I just tried it out on a stock 2.4.0 nautilus and it doesn't fix a thing.
*** Bug 152975 has been marked as a duplicate of this bug. ***