Metacity crash corrupts future Gnome sessions

Bug #106350 reported by Luc Stroobant
118
Affects Status Importance Assigned to Milestone
Metacity
Fix Released
Critical
metacity (Ubuntu)
Fix Released
High
Ubuntu Desktop Bugs
Feisty
Fix Released
High
Ubuntu Desktop Bugs

Bug Description

To trigger the bug easily:
- open the session capplet, activate automatic session saving on logout
- open an emacs windows (or anything else not handling session saving correctly)
- close your GNOME session
- open a new one

There is no window manager started

Revision history for this message
Luc Stroobant (ubuntu-stroobant) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug. Need retracing on amd64

Changed in metacity:
assignee: nobody → desktop-bugs
importance: Undecided → Medium
Revision history for this message
Haggai Eran (haggai-eran) wrote :

Hi
I think I have a similar bug. metacity doesn't start automatically when I log in. I believe it started after I tried to use Desktop Effects.

Regards,
Haggai Eran

Revision history for this message
DLCBurggraaff (burdi) wrote :

My "administrative" user experienced the same symptoms after upgrading the 80 packages that were updated since Apr 11.
Invoking the "Windows" Preferences gave a popup "Cannot start the preferences application for your window manager", "Window manager "unknown" has not registered a configuration tool.
Removing the ~/.gnome2 directory made the symptoms disappear.

Root did not experience the problem.

Changed in metacity:
status: Unconfirmed → Confirmed
Revision history for this message
Luc Stroobant (ubuntu-stroobant) wrote :

Attached the crash report found on the other system, which is running a 32-bit Ubuntu. Might be usefull too?

Revision history for this message
Luc Stroobant (ubuntu-stroobant) wrote :

Today my system crashed again and I made a screenshot to illustrate the problem (attached). I also have a new metacity crash report dated at the moment of my previou shutdown. I'll upload it if it's usefull to analyse a third one.

I can confirm now that everything works fine again after removing just $HOME/.gnome2/session (so you don't need to remove the complete .gnome2 directory).

Revision history for this message
Thomas Meire (blackskad) wrote :

I can confirm this bug on a 32-bit system. I'm seeing this problem since my upgrade to feisty last Thursday (so most likely, this bug is feisty only). However, metacity doesn't always crash at shutdown. I've found a crash report from Friday (at 2.42 am), but the last time I've shut my laptop down was Friday around 22.30 pm, which implies that metacity didn't crash at 22.30pm.
My work around: try to click the terminal icon before it gets covered, and then execute gnome-wm from the terminal. This brings metacity back on - without the need to remove the .gnome2/session file.
I attached the crash report from Friday. If it can help, I will try to get my corrupted session file for metacity next time the crash happens (but I would need some directions on where to get it).

Revision history for this message
Thomas Meire (blackskad) wrote :

I reproduced the bug this evening.
I logged in, moved the .gnome2/session file away, turned off session-saving, logged out and logged back in. Everything was back to normal then. When examining the session-file, there was no line for metacity (while there is one when everything is normal).
So I think this is what happens, which prevents metacity from starting:
* user presses logout
* metacity crashes and stays down
* gnome saves the state of the session, so without metacity running
* shutdown ----> boot
* user logs in
* gnome reads session file without metacity-line
=> result = no metacity started.
This bug (metacity not starting at login) should thus not happen when you don't save the state of the sessions.
Remaining question is why metacity crashes :)

In attachement is the .gnome2/session-file from right after the crash.

Revision history for this message
Thomas Meire (blackskad) wrote :

Metacity crash report from the crash described in https://bugs.launchpad.net/ubuntu/+source/metacity/+bug/106350/comments/8

Revision history for this message
Thomas Meire (blackskad) wrote :

I've ran strace a few minutes back. Metacity crashes with a segmentation fault. Backtrace is attached.

Revision history for this message
Thomas Meire (blackskad) wrote :

I've ran gdb and caught the segmentation fault. Backtrace is attached.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for the work on the bug, I've opened one upstream on http://bugzilla.gnome.org/show_bug.cgi?id=433253

description: updated
Changed in metacity:
importance: Medium → High
Changed in metacity:
assignee: nobody → desktop-bugs
importance: Undecided → High
status: Unconfirmed → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

The changes has been suggested by upstream and works correctly on my desktop

Changed in metacity:
status: Unknown → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

the update has been approved by Martin on IRC while launchpad was down, I've uploaded it

Revision history for this message
Martin Pitt (pitti) wrote :

Accepted into feisty-proposed, please go ahead with QA testing. NB that this does not require a no-change -updates upload after verification (see updated SRU policy).

Changed in metacity:
status: Confirmed → Fix Committed
Revision history for this message
Michael Vogt (mvo) wrote :

I can reproduce the failure and verified that the fix works.
 I'm setting this to verificatin-done, it can go into feisty-updates at 2007-05-09.

Revision history for this message
Marco Rodrigues (gothicx) wrote :

I can confirm it too.. that's my crash report.

Revision history for this message
Martin Pitt (pitti) wrote :

Copied to feisty-updates.

Changed in metacity:
status: Fix Committed → Fix Released
Revision history for this message
Adam Guthrie (ispiked) wrote :

I was still hitting this even though I had the updated package with the fix in it installed. However, after I deleted ~/.gnome2/session the problem seems to be fixed. I have two questions: 1) have others experienced the same problem; i.e. experiencing this bug even with the updated package with a corrupt session file and 2) if this happens, is there anything we can do to fix it; e.g. delete the session file automatically somehow.

Revision history for this message
Sebastien Bacher (seb128) wrote :

it's also fixed in gutsy now

Changed in metacity:
status: Confirmed → Fix Released
Changed in metacity:
status: Confirmed → Fix Released
Revision history for this message
willie.meyer (willie-meyer) wrote :

Also worked for me to delete ~/.gnome2/session

Changed in metacity:
importance: Unknown → Critical
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.