assertion failure: g_bus_unwatch_name: assertion `watcher_id > 0' failed

Bug #724285 reported by GodNobody
48
This bug affects 5 people
Affects Status Importance Assigned to Milestone
nautilus (Ubuntu)
Fix Released
Medium
Martin Pitt

Bug Description

Binary package hint: nautilus

after the last "big" update with new xorg and new kernel, nautilus just doesn't run anymore.

Trying to open in terminal will result in this error:
GLib-GIO-CRITICAL **: g_bus_unwatch_name: assertion `watcher_id > 0' failed

However, this bug doesn't prevent the desktop from being rendered; On boot, the desktop icons get rendered properly, but clicking on them, or right-clicking on them or anywhere on the desktop will have no effect.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: nautilus 1:2.32.2.1-0ubuntu6
ProcVersionSignature: Ubuntu 2.6.38-5.32-generic 2.6.38-rc6
Uname: Linux 2.6.38-5-generic x86_64
Architecture: amd64
Date: Thu Feb 24 13:41:02 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20110201.1)
ProcEnviron:
 LANGUAGE=de_DE:de:en_GB:en
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: nautilus
usr_lib_nautilus: nautilus 1:2.32.2.1-0ubuntu6evince 2.32.0-0ubuntu10file-roller 2.32.1-0ubuntu3ubuntuone-client-gnome 1.5.5-0ubuntu1nautilus-share 0.7.2-14ubuntu1gnome-disk-utility 2.32.1-0ubuntu4ubuntuone-client-gnome 1.5.5-0ubuntu1nautilus-sendto 2.32.0-0ubuntu1ubuntuone-client-gnome 1.5.5-0ubuntu1brasero 2.32.1-0ubuntu2

Revision history for this message
GodNobody (godnobody) wrote :
Revision history for this message
GodNobody (godnobody) wrote :

BTW: I tried to open nautilus in root mode in the terminal which worked.

Revision history for this message
Bilal Akhtar (bilalakhtar) wrote :

Faced exactly same problem. Triaging.

Changed in nautilus (Ubuntu):
importance: Undecided → High
status: New → Triaged
description: updated
summary: - (nautilus:10662): GLib-GIO-CRITICAL **: g_bus_unwatch_name: assertion
- `watcher_id > 0' failed
+ [natty] Nautilus crashes with assertion error on start
Revision history for this message
Bilal Akhtar (bilalakhtar) wrote : Re: [natty] Nautilus crashes with assertion error on start

Probably a rebuild of Nautilus will help?

Revision history for this message
Bilal Akhtar (bilalakhtar) wrote :

I'll try to fix this.

Changed in nautilus (Ubuntu):
assignee: nobody → Bilal Akhtar (bilalakhtar)
status: Triaged → In Progress
Revision history for this message
Bilal Akhtar (bilalakhtar) wrote :

Confirmed. Only a reboot is required

Revision history for this message
Bilal Akhtar (bilalakhtar) wrote :

Err, I meant a rebuild, not a reboot.

Revision history for this message
Bilal Akhtar (bilalakhtar) wrote :

This is a no-change rebuild debdiff with a neat changelog message. I request you to sponsor this (though there is no point in having a debdiff for a no-change rebuild)

Revision history for this message
Bilal Akhtar (bilalakhtar) wrote :

Un-assigning myself since I need sponsorship

Changed in nautilus (Ubuntu):
assignee: Bilal Akhtar (bilalakhtar) → nobody
status: In Progress → Triaged
Revision history for this message
Bilal Akhtar (bilalakhtar) wrote :

I rebuilt the package without any changes on my EC2 instance, and tested the debs locally and nautilus worked!

Anyone facing this bug and running 32-bit Ubuntu can download the rebuilt debs from:
http://people.ubuntu.com/~bilalakhtar/nautilus-bugfix/

I think only the package nautilus needs to be updated, but these were the packages I updated:
nautilus
nautilus-data
libnautilus-extension1

64-bit users: The nautilus rebuilds are still awaiting in the queue on my PPA (ppa:bilalakhtar/bugfixes). Around 5 hours after this comment, you can get the rebuilt nautilus packages from that PPA and install those.

Hopefully this should fix this bug until someone sponsors my debdiff.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nautilus - 1:2.32.2.1-0ubuntu7

---------------
nautilus (1:2.32.2.1-0ubuntu7) natty; urgency=low

  * No-change rebuild against latest GIO libraries to fix crash on startup.
    (LP: #724285)
 -- Bilal Akhtar <email address hidden> Thu, 24 Feb 2011 21:58:08 +0300

Changed in nautilus (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Sebastien Bacher (seb128) wrote :

there was no gio change could you explain why it needs a rebuild? there was also changes in the vcs you ignored when you did your upload, you didn't update the vcs either, that's broken...

Revision history for this message
Bilal Akhtar (bilalakhtar) wrote :

Hi seb,
      I don't know very well about what exactly was the change (X and Linux were updated, and possibly some other build-deps of Nautilus) but as you can see in the above comments, I manually rebuilt the package and tested it to confirm that the bug would be fixed by a rebuild.

Ubuntu-desktop developers on IRC pointed out that there were some uncommitted changes in the VCS. So, I didn't bother them and left the bug like this. Firstly, a no-change rebuild is nothing but a changelog version bump, and you can easily merge this back in the VCS. Second, I never knew this debdiff would get sponsored so quickly (usually I have to poke sponsors to get things sponsored)

I am sorry if I caused some extra work, but this bug was of 'Critical' importance to me as it rendered Nautilus useless for a large number of Natty users.

Revision history for this message
Friik (slash-m3) wrote :

This bug _was_ fixed with nautilus version 2.32.2.1-0ubuntu7, but it re-occurred after an update to 2.32.2.1-0ubuntu8...

Revision history for this message
Sebastien Bacher (seb128) wrote : Re: Nautilus crashes with assertion error on start

Not sure why it crashes but the 'g_bus_unwatch_name: assertion `watcher_id > 0' errors are due to 17_disable_locked_automounting.patch

Changed in nautilus (Ubuntu):
status: Fix Released → Triaged
summary: - [natty] Nautilus crashes with assertion error on start
+ Nautilus crashes with assertion error on start
Changed in nautilus (Ubuntu):
assignee: nobody → Martin Pitt (pitti)
Revision history for this message
Sebastien Bacher (seb128) wrote :

bug #733061 is likely the same issue

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

bug #732114 seems similar as well

Martin Pitt (pitti)
Changed in nautilus (Ubuntu):
status: Triaged → In Progress
importance: High → Medium
summary: - Nautilus crashes with assertion error on start
+ assertion failure: g_bus_unwatch_name: assertion `watcher_id > 0' failed
tags: added: patch
tags: removed: patch
Revision history for this message
Neil J. Patel (njpatel) wrote :

Stack trace: http://paste.ubuntu.com/580133/

Only think I need to do is try and close a nautilus window by clicking on the close button in the titlebar.

Revision history for this message
Martin Pitt (pitti) wrote :
Changed in nautilus (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nautilus - 1:2.32.2.1-0ubuntu9

---------------
nautilus (1:2.32.2.1-0ubuntu9) natty; urgency=low

  * 17_disable_locked_automounting.patch: Fix g_bus_unwatch_name() assertion
    failure. (Also committed upstream in 9142d259). (LP: #724285)
 -- Martin Pitt <email address hidden> Tue, 15 Mar 2011 15:12:52 +0100

Changed in nautilus (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Bowmore (bowmore) wrote :

@Neil J. Patel
The Nautilus crash when clicking the close button is due to one of the overlay-scrollbar packages. Don't know which one but running without those overlay-scrollbar packages works. So it seems to be an inconsistency in the implementation of the scroll button in the Nautilus window and probably a Nautilus issue.

Revision history for this message
Benjamim Gois (benjamim-gois) wrote :

I'm running the latest Natty version and i still have this bug. I can not launch nautilus, it always show message in terminal:

(nautilus:8569): Unique-DBus-WARNING **: Error while sending message: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

Revision history for this message
hellojoker (hellojoker81-deactivatedaccount) wrote :

Hi, I'm not sure it's the same bug, but with version 2.32.2.1-0ubuntu13 in xsession-errors file, errors are generated continuously.
I attach a video that explains what I mean.

(Natty beta 2 x86_64)

Revision history for this message
Chris Naunton (chris-naunton) wrote :

@Benjamim Gois
I had the same nautilus error as you (which seems different from the subject of this bug report). In my case the UbuntuOne client was screwing up DBus somehow. Removing the client immediately fixed the problem:

sudo apt-get remove ubuntuone-client

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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