Tomboy plug-in make gnome-do crash in ubuntu 8.10

Bug #283573 reported by demas
64
This bug affects 10 people
Affects Status Importance Assigned to Milestone
D-Bus
Invalid
Undecided
Unassigned
Do
Invalid
Undecided
Unassigned
Do Plugins
Confirmed
Medium
Unassigned
gnome-do (Ubuntu)
Invalid
Undecided
Unassigned
Declined for Intrepid by Chris Halse Rogers
Declined for Jaunty by Chris Halse Rogers
Declined for Lucid by Chris Halse Rogers
ndesk-dbus (Ubuntu)
Confirmed
Medium
Unassigned
Declined for Intrepid by Chris Halse Rogers
Declined for Jaunty by Chris Halse Rogers
Declined for Lucid by Chris Halse Rogers

Bug Description

Binary package hint: gnome-do

Today I try to launch gnome-do and get this error message:

demas@laptop:~$ gnome-do

Unhandled Exception: System.Exception: Message body length mismatch: 16064 of expected 64291
at NDesk.DBus.Connection.ReadMessage () <0x005a4>
at NDesk.DBus.Connection.Iterate () <0x00019>
at <>c__CompilerGenerated0.<>c__AnonymousMethod1 (intptr,NDesk.GLib.IOCondition,intptr) <0x00027>
at (wrapper native-to-managed) <>c__CompilerGenerated0.<>c__AnonymousMethod1 (intptr,NDesk.GLib.IOCondition,intptr) <0x0004b>
at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x00004>
at Gtk.Application.Run () <0x00007>
at Do.Do.Main (string[]) <0x0026f>

Revision history for this message
Chris Halse Rogers (raof) wrote : Re: [Bug 283573] [NEW] Can't launch gnome-do in ubuntu 8.10 beta

Is this problem reproducible? That error looks incredibly strange -
like DBus crashed while Do was reading stuff using it.

Revision history for this message
demas (andrey-demidov-gmail) wrote : Re: Can't launch gnome-do in ubuntu 8.10 beta

I rebooted my laptop and the problem disappeared.
Thank you.

Revision history for this message
demas (andrey-demidov-gmail) wrote :

Sorry, it was a hurry decision.
After reboot I still have this problem. I launch gnome-do and after 20-30 minutes I get this error message.

Revision history for this message
Alex Launi (alexlauni) wrote : Re: [Bug 283573] Re: Can't launch gnome-do in ubuntu 8.10 beta

What actions are you running when you get this error?

--
--Alex Launi

Revision history for this message
demas (andrey-demidov-gmail) wrote : Re: Can't launch gnome-do in ubuntu 8.10 beta

I just launch gnome-do from gnome-terminal and work with gvim, firefox, pidgin, claws-mail and exaile (and may be other apps). I don't work with gnome-do, but after 20-30 minutes I get this error message.

Revision history for this message
demas (andrey-demidov-gmail) wrote :

Well, I suspect there is a problem in one of plugins.

First of all yesterdy I have reinstalled my Ubuntu, but the problem remain in both my computer.
Then I turned off all plugins and the problem disappeared. Gnome-Do works very well.

If I activate Tomboy and Pidgin plugins the problem returns back.

Revision history for this message
Marius Gedminas (mgedmin) wrote :

I'm unable to start gnome-do because of this problem. It crashes on startup with

Could not read MPD database file: ApplicationName='/usr/bin/mpc', CommandLine='playlist --format ":%title%:%artist%:%album%:%file%"', CurrentDirectory=''

** (Do:25644): CRITICAL **: gnome_desktop_item_get_localestring: assertion `item != NULL' failed

** (Do:25644): CRITICAL **: gnome_desktop_item_get_localestring: assertion `item != NULL' failed

** (Do:25644): CRITICAL **: gnome_desktop_item_get_string: assertion `item != NULL' failed

** (Do:25644): CRITICAL **: gnome_desktop_item_get_string: assertion `item != NULL' failed

Unhandled Exception: System.Exception: Message body length mismatch: 16064 of expected 34835
at NDesk.DBus.Connection.ReadMessage () <0x005a4>
at NDesk.DBus.Connection.Iterate () <0x00019>
at <>c__CompilerGenerated0.<>c__AnonymousMethod1 (intptr,NDesk.GLib.IOCondition,intptr) <0x00027>
at (wrapper native-to-managed) <>c__CompilerGenerated0.<>c__AnonymousMethod1 (intptr,NDesk.GLib.IOCondition,intptr) <0x0004b>
at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x00004>
at Gtk.Application.Run () <0x00007>
at Do.Do.Main (string[]) <0x0026f>

Revision history for this message
Marius Gedminas (mgedmin) wrote :

What do you know, I tried again this evening and gnome-do started up fine. Checking the list of plugins I see that I had the Tomboy plugin enabled, and the Pidgin plugin disabled. It seems that Tomboy plugin is the culprit here.

Revision history for this message
Frédéric Grosshans (fgrosshans) wrote :

I confirm the Tomboy plug-in is the likely problem. I can work for days without crash without this plug-in, but crashes occur every half-hour or so with the Tomboy plug-in activated.

And I confirm this crashes occur with the error message in the bug-description. "Message body length mismatch: 16064 of expected 64291 ..."

Revision history for this message
David Siegel (djsiegel-deactivatedaccount) wrote :

Something is funky with the Tomboy plugin.

Changed in do:
status: New → Invalid
Changed in gnome-do:
status: New → Invalid
Revision history for this message
mandingo (extremeavantgarde) wrote :

I also confirm this bug, after a clean boot gnome-do works fine, but after some time it quits with:

Unhandled Exception: System.Exception: Message body length mismatch: 16064 of expected 34835
at NDesk.DBus.Connection.ReadMessage () <0x005a4>
at NDesk.DBus.Connection.Iterate () <0x00019>
at <>c__CompilerGenerated0.<>c__AnonymousMethod1 (intptr,NDesk.GLib.IOCondition,intptr) <0x00027>
at (wrapper native-to-managed) <>c__CompilerGenerated0.<>c__AnonymousMethod1 (intptr,NDesk.GLib.IOCondition,intptr) <0x0004b>
at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x00004>
at Gtk.Application.Run () <0x00007>
at Do.Do.Main (string[]) <0x001d3>

Most of the times gnome-do will crash again quite fast if I start it again during the same session.
I'm using gnome-do - 0.7.98-0 from http://ppa.launchpad.net/do-testers/ppa/ubuntu but experienced the same behaviour on 0.6.1 on several machines.

Revision history for this message
Sandy Armstrong (sanfordarmstrong) wrote :

I just experienced this for the first time (gnome-do 0.7.99). Thought it might be related to restarting Tomboy (I also switched out my .tomboy directory with another user's for testing purposes), but can't reproduce.

Interesting that actual body length is consistently 16064 in these exceptions, though expected varies. That probably means something.

Wonder if a well-placed try/catch in the Tomboy plugin would "fix" it (you know, maybe subsequent dbus calls work fine).

Revision history for this message
Sandy Armstrong (sanfordarmstrong) wrote :

It would be super helpful if people experiencing this crash could share with me how many notes they have, and what kind of CPU they have.

I have 288 notes in my Tomboy, and a 2.4GHZ Core 2 Duo.

Revision history for this message
Marius Gedminas (mgedmin) wrote :

I've got 659 notes and a 1.8 GHz Core 2 Duo, running a 32-bit version of Ubuntu.

Revision history for this message
mandingo (extremeavantgarde) wrote :

I've got 722 notes, one computer with Pentium 4 (478) 2,4ghz and a laptop with Intel Pentium M 1.6 ghz both experiencing this crash.

tags: added: official-plugins
Chris S. (cszikszoy)
Changed in do-plugins:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Sandy Armstrong (sanfordarmstrong) wrote :

May be related to this bug (with patch!): https://bugzilla.redhat.com/show_bug.cgi?id=503151

Revision history for this message
Jonathan Reeve (jon-reeve) wrote :

Since upgrading to Lucid, I've been getting something that looks like this bug. I have to restart Do every half hour or so. My output is:

Unhandled Exception: System.Exception: Message body length mismatch: 15968 of expected 17919
at NDesk.DBus.Connection.ReadMessage () <0x00677>
at NDesk.DBus.Connection.Iterate () <0x0001c>
at NDesk.DBus.BusG/<Init>c__AnonStorey0.<>m__0 (intptr,NDesk.GLib.IOCondition,intptr) <0x00031>
at (wrapper native-to-managed) NDesk.DBus.BusG/<Init>c__AnonStorey0.<>m__0 (intptr,NDesk.GLib.IOCondition,intptr) <0x0004d>
at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x00004>
at Gtk.Application.Run () <0x0000a>
at Do.Do.Main (string[]) <0x0021e>

This is a really annoying bug for me, since I primarily use my computer to type notes (in Tomboy) and I open these notes using Gnome Do.

Is this bug in the Tomboy plugin, or in dbus? Does this mean there was a dbus regression of some sort? The linked bug report on the Redhat site refers to a bug that was supposedly fixed a while ago.

Marking this bug for Lucid.

affects: dbus (Ubuntu) → ndesk-dbus (Ubuntu)
Changed in ndesk-dbus (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
sylvain bannier (bannier) wrote :

Same bug here.
I disabled tomboy plugin and it doesn't crash anymore (testing for an hour now).

There is a related bug here:
https://bugs.launchpad.net/do/+bug/564244

My logs :
Unhandled Exception: System.Exception: Message body length mismatch: 15968 of expected 34275
at NDesk.DBus.Connection.ReadMessage () <0x00677>
at NDesk.DBus.Connection.Iterate () <0x0001c>
at NDesk.DBus.BusG/<Init>c__AnonStorey0.<>m__0 (intptr,NDesk.GLib.IOCondition,intptr) <0x00031>
at (wrapper native-to-managed) NDesk.DBus.BusG/<Init>c__AnonStorey0.<>m__0 (intptr,NDesk.GLib.IOCondition,intptr) <0x0004d>
at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x00004>
at Gtk.Application.Run () <0x0000a>
at Do.Do.Main (string[]) <0x0021e>

Revision history for this message
Robert Dyer (psybers) wrote :

Just an FYI, but I think you can add the Docky PPA and install ndesk-dbus from that and it has this bug patched already. (Note: I dont use Tomboy so I cant confirm/deny this hypothesis.)

https://launchpad.net/~docky-core/+archive/ppa

Robert Dyer (psybers)
Changed in dbus:
status: New → Invalid
Revision history for this message
mandingo (extremeavantgarde) wrote :

Yes! Installing ndesk-dbus from Docky PPA eliminates this bug for me.

Revision history for this message
Jay Cassano (cassano-jay) wrote :

It looks like installing ndesk-dbus from the Docky PPA fixed this for me. In case you still need more data though, this is the output I got from -debug:

Unhandled Exception: System.Exception: Message body length mismatch: 15968 of expected 18135
at NDesk.DBus.Connection.ReadMessage () <0x00677>
at NDesk.DBus.Connection.Iterate () <0x0001c>
at NDesk.DBus.BusG/<Init>c__AnonStorey0.<>m__0 (intptr,NDesk.GLib.IOCondition,intptr) <0x00031>
at (wrapper native-to-managed) NDesk.DBus.BusG/<Init>c__AnonStorey0.<>m__0 (intptr,NDesk.GLib.IOCondition,intptr) <0x0004d>
at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x00004>
at Gtk.Application.Run () <0x0000a>
at Do.Do.Main (string[]) <0x0021e>

I have 302 notes in Tomboy and an AMD Turion X2 1.9 Ghz CPU.

Revision history for this message
Arlyn Nisly (humph) wrote :

I assume this bug is still being monitored....I perceive this to be what I am encountering in Maverick. I've removed the /plugins folder, which seemed to help for a few minutes. I've also checked the ndesk version (in libdbus1.0-cil 0.7.0-2~10.10~dockycore1), and I have the most recent version as it appears on the Docky ppa.

Unhandled Exception: System.Exception: Message body length mismatch: 16000 of expected 38027
at NDesk.DBus.Connection.ReadMessage () <0x00678>
at NDesk.DBus.Connection.Iterate () <0x0001c>
at NDesk.DBus.BusG/<Init>c__AnonStorey0.<>m__0 (intptr,NDesk.GLib.IOCondition,intptr) <0x00031>
at (wrapper native-to-managed) NDesk.DBus.BusG/<Init>c__AnonStorey0.<>m__0 (intptr,NDesk.GLib.IOCondition,intptr) <0x00059>
at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x00004>
at Gtk.Application.Run () <0x0000a>
at Do.Do.Main (string[]) <0x0022f>

I have 669 notes with Tomboy 1.4.0, Gnome-Do 0.8.3.1 on Maverick (10.10, 32-bit) with all updates applied. Pentium M 1.80 Ghz with 2G RAM

Revision history for this message
Sandy Armstrong (sanfordarmstrong) wrote : Re: [Bug 283573] Re: Tomboy plug-in make gnome-do crash in ubuntu 8.10

You need ndesk-dbus from the Docky PPA, as the previous comment
states. I guess Ubuntu is not applying the fix to their ndesk-dbus
packages.

Revision history for this message
Arlyn Nisly (humph) wrote :

Thanks, Sandy.

I've gotten this to work. There is no stand-alone package for ndesk-dbus, so from this:
http://packages.ubuntu.com/maverick/libndesk-dbus1.0-cil
I gathered that I needed libndesk-dbus1.0-cil. This didn't solve the problem. For anyone else who encounters this, add the Docky PPA to your sources (see the link in post #19 by Robert Dyer) and install docky via apt-get, etc. Apparently this installs the updated ndesk-dbus and resolves the issue.

Now I'm back to full functionality on 2 of the 3 apps/utilities I can't work without...Go Tomboy and Gnome-Do!

Revision history for this message
sylvain bannier (bannier) wrote :

@Arlyn Nisly
installling libndesk-dbus1.0-cil didn't work for me in ubuntu 10.10

Revision history for this message
Sandy Armstrong (sanfordarmstrong) wrote :

On Wed, Nov 17, 2010 at 6:42 AM, sylvain bannier
<email address hidden> wrote:
> @Arlyn Nisly
> installling libndesk-dbus1.0-cil didn't work for me in ubuntu 10.10

You need to install it from the Docky PPA, as has been mentioned
several times in this bug.

Revision history for this message
mandingo (extremeavantgarde) wrote :

Hmm, I just installed gnome-do and docky from the PPA, but it seems the PPA no longer contains the ndesk-dbus package. So I am back to experiencing this crash. (vanilla Ubuntu 10.10 install)

Revision history for this message
Robert Dyer (psybers) wrote :

"the" PPA.... which? Do's? Docky's?

Docky's PPA no longer has ndesk-dbus as we now use the libdbus-glib1.0-cil-dev libdbus1.0-cil-dev packages in the official repos. It is possible that those do not have this fix, in which case you need to get them to apply it upstream. As far as I know, libdbus1.0-cil-dev is basically libndesk-dbus1.0-cil but repackaged and actually maintained (by RAOF?).

Revision history for this message
mandingo (extremeavantgarde) wrote :

Docky's ppa, so this might indicate that libdbus-glib1.0-cil-dev libdbus1.0-cil-dev don not contain the fix. Any ideas of where I can fin deb's of libdbus-glib1.0-cil-dev libdbus1.0-cil-dev with the fix applied?

Revision history for this message
Chris Sp. (chrispi) wrote :

This is a workaround:
If you have many tomboy notes, delete some of them or put the old ones to an archive!

I experienced the crash in Ubuntu 10.10, started "gnome-do --debug"

After the message
  [Debug 10:30:21.805] [UniverseManager] Reloading item source "Tomboy Notes"...
gnome-do crashed with the exception
  Unhandled Exception: System.Exception: Message body length mismatch: 16000 of expected 20125

I moved all notes from ~/.local/share/tomboy to a backup place and restartet tomboy.
Gnome-Do ran stable.

First assuming a corrupted note as cause, I put the newest notes back to the folder and found a number of 250 tomboy notes being fine for gnome-do's tomboy-plugin. I think it's not only the number but also the size of notes that matters, but made no further tests here.

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.