Re: Problem with mono/dbus

2008-10-25 Thread Markus Bergkvist
Might be unrelated, but with latest package update gnome-session core 
dumps on assertion failed during start-up with Failed to get 
dbus-daemon's pid


dbus is started in /etc/rc.local and the dbus session is running
$ ps -aux | grep dbus
_dbus14333  0.0  0.1   748  1040 ??  Is11:27AM0:00.29 
/usr/local/bin/dbus-daemon --system
markus   16730  0.0  0.0   696   984 ??  Is11:27AM0:00.00 
dbus-daemon --fork --print-address 18 --print-pid 20 --session


/Markus

James Wright wrote:
After installing the new mono ports (I tried everything except for 
f-spot from packages, and then from ports), I have a few problems with 
the dbus support (ndesk-dbus-*).   Running f-spot I get the following:


$ f-spot   [Info  16:50:22.493] 
Initializing DBus

[Info  16:50:22.972] Initializing Mono.Addins
[Info  16:50:23.938] Starting new FSpot server
X
System.IO.FileNotFoundException: /home/jamesw/.gnome2/f-spot/photos.db 
does not

exist
File name: '/home/jamesw/.gnome2/f-spot/photos.db'
 at System.IO.File.Move (System.String sourceFileName, System.String 
destFileNa

me) [0x0]
 at Db.Repair () [0x0]
 at FSpot.Core.get_Database () [0x0]
 at FSpot.Driver.Main (System.String[] args) [0x0]
X
[Warn  16:50:25.224] Can't get a connection to the dbus. Trying again...
[Info  16:50:25.252] Starting new FSpot server
[Warn  16:50:25.275] Can't get a connection to the dbus. Trying again...
[Info  16:50:25.307] Starting new FSpot server
[Warn  16:50:25.329] Can't get a connection to the dbus. Trying again...
[Info  16:50:25.355] Starting new FSpot server
[Warn  16:50:25.378] Can't get a connection to the dbus. Trying again...
[Info  16:50:25.408] Starting new FSpot server
[Warn  16:50:25.430] Can't get a connection to the dbus. Trying again...
[Info  16:50:25.456] Starting new FSpot server
[Warn  16:50:25.479] Can't get a connection to the dbus. Trying again...
[Error 16:50:25.507] Sorry, couldn't start F-Spot
Segmentation fault (core dumped)
$ 
and with dbus-monitor reporting:


signal sender=org.freedesktop.DBus - dest=(null destination) 
path=/org/freedesk

top/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
  string :1.17
  string 
  string :1.17
method call sender=:1.17 - dest=org.freedesktop.DBus 
path=/org/freedesktop/DBus

; interface=org.freedesktop.DBus; member=Hello
method call sender=:1.17 - dest=org.freedesktop.DBus 
path=/org/freedesktop/DBus

; interface=org.freedesktop.DBus; member=NameHasOwner
  string org.gnome.FSpot
signal sender=org.freedesktop.DBus - dest=(null destination) 
path=/org/freedesk

top/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
  string org.gnome.FSpot
  string 
  string :1.17
method call sender=:1.17 - dest=org.freedesktop.DBus 
path=/org/freedesktop/DBus

; interface=org.freedesktop.DBus; member=RequestName
  string org.gnome.FSpot
  uint32 4
signal sender=org.freedesktop.DBus - dest=(null destination) 
path=/org/freedesk

top/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
  string org.gnome.FSpot
  string :1.17
  string 
method call sender=:1.17 - dest=org.freedesktop.DBus 
path=/org/freedesktop/DBus

; interface=org.freedesktop.DBus; member=ReleaseName
  string org.gnome.FSpot
method call sender=:1.17 - dest=org.freedesktop.DBus 
path=/org/freedesktop/DBus

; interface=org.freedesktop.DBus; member=NameHasOwner
  string org.gnome.FSpot
method call sender=:1.17 - dest=org.freedesktop.DBus 
path=/org/freedesktop/DBus

; interface=org.freedesktop.DBus; member=NameHasOwner
  string org.gnome.FSpot
method call sender=:1.17 - dest=org.freedesktop.DBus 
path=/org/freedesktop/DBus

; interface=org.freedesktop.DBus; member=NameHasOwner
  string org.gnome.FSpot
method call sender=:1.17 - dest=org.freedesktop.DBus 
path=/org/freedesktop/DBus

; interface=org.freedesktop.DBus; member=NameHasOwner
  string org.gnome.FSpot
method call sender=:1.17 - dest=org.freedesktop.DBus 
path=/org/freedesktop/DBus

; interface=org.freedesktop.DBus; member=NameHasOwner
  string org.gnome.FSpot
signal sender=org.freedesktop.DBus - dest=(null destination) 
path=/org/freedesk

top/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
  string :1.17
  string :1.17
  string 

Tomboy seems to work, but when I install dbus-ePxplorer from 
http://www.ndesk.org/DBusExplorer it times out on connecting to 
org.gnome.Tomboy.  dbus-explorer hrows an exception from ndesk-dbus when 
trying to open im.pidgin.PurpleService :
Unhandled Exception: System.Exception: Message body length mismatch: 
4032 of expected 108569

at NDesk.DBus.Connection.ReadMessage () 0x00565
at NDesk.DBus.Connection.Iterate () 0x00026
at Initc__AnonStorey0.m__0 (intptr,NDesk.GLib.IOCondition,intptr) 
0x0002a
at (wrapper native-to-managed) Initc__AnonStorey0.m__0 
(intptr,NDesk.GLib.IOCondition,intptr) 0x00030

at (wrapper managed-to-native) Gtk.Application.gtk_main () 0x4
at Gtk.Application.Run () 0x7
at DBusExplorer.MainClass.Main 

Re: Problem with mono/dbus

2008-10-25 Thread Markus Bergkvist

I re-installed dbus-1.0.2p5 and gnome-session is happy again.

/Markus

Markus Bergkvist wrote:
Might be unrelated, but with latest package update gnome-session core 
dumps on assertion failed during start-up with Failed to get 
dbus-daemon's pid


dbus is started in /etc/rc.local and the dbus session is running
$ ps -aux | grep dbus
_dbus14333  0.0  0.1   748  1040 ??  Is11:27AM0:00.29 
/usr/local/bin/dbus-daemon --system
markus   16730  0.0  0.0   696   984 ??  Is11:27AM0:00.00 
dbus-daemon --fork --print-address 18 --print-pid 20 --session


/Markus

James Wright wrote:
After installing the new mono ports (I tried everything except for 
f-spot from packages, and then from ports), I have a few problems with 
the dbus support (ndesk-dbus-*).   Running f-spot I get the following:


$ f-spot   [Info  16:50:22.493] 
Initializing DBus

[Info  16:50:22.972] Initializing Mono.Addins
[Info  16:50:23.938] Starting new FSpot server
X
System.IO.FileNotFoundException: /home/jamesw/.gnome2/f-spot/photos.db 
does not

exist
File name: '/home/jamesw/.gnome2/f-spot/photos.db'
 at System.IO.File.Move (System.String sourceFileName, System.String 
destFileNa

me) [0x0]
 at Db.Repair () [0x0]
 at FSpot.Core.get_Database () [0x0]
 at FSpot.Driver.Main (System.String[] args) [0x0]
X
[Warn  16:50:25.224] Can't get a connection to the dbus. Trying again...
[Info  16:50:25.252] Starting new FSpot server
[Warn  16:50:25.275] Can't get a connection to the dbus. Trying again...
[Info  16:50:25.307] Starting new FSpot server
[Warn  16:50:25.329] Can't get a connection to the dbus. Trying again...
[Info  16:50:25.355] Starting new FSpot server
[Warn  16:50:25.378] Can't get a connection to the dbus. Trying again...
[Info  16:50:25.408] Starting new FSpot server
[Warn  16:50:25.430] Can't get a connection to the dbus. Trying again...
[Info  16:50:25.456] Starting new FSpot server
[Warn  16:50:25.479] Can't get a connection to the dbus. Trying again...
[Error 16:50:25.507] Sorry, couldn't start F-Spot
Segmentation fault (core dumped)
$ and with dbus-monitor reporting:

signal sender=org.freedesktop.DBus - dest=(null destination) 
path=/org/freedesk

top/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
  string :1.17
  string 
  string :1.17
method call sender=:1.17 - dest=org.freedesktop.DBus 
path=/org/freedesktop/DBus

; interface=org.freedesktop.DBus; member=Hello
method call sender=:1.17 - dest=org.freedesktop.DBus 
path=/org/freedesktop/DBus

; interface=org.freedesktop.DBus; member=NameHasOwner
  string org.gnome.FSpot
signal sender=org.freedesktop.DBus - dest=(null destination) 
path=/org/freedesk

top/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
  string org.gnome.FSpot
  string 
  string :1.17
method call sender=:1.17 - dest=org.freedesktop.DBus 
path=/org/freedesktop/DBus

; interface=org.freedesktop.DBus; member=RequestName
  string org.gnome.FSpot
  uint32 4
signal sender=org.freedesktop.DBus - dest=(null destination) 
path=/org/freedesk

top/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
  string org.gnome.FSpot
  string :1.17
  string 
method call sender=:1.17 - dest=org.freedesktop.DBus 
path=/org/freedesktop/DBus

; interface=org.freedesktop.DBus; member=ReleaseName
  string org.gnome.FSpot
method call sender=:1.17 - dest=org.freedesktop.DBus 
path=/org/freedesktop/DBus

; interface=org.freedesktop.DBus; member=NameHasOwner
  string org.gnome.FSpot
method call sender=:1.17 - dest=org.freedesktop.DBus 
path=/org/freedesktop/DBus

; interface=org.freedesktop.DBus; member=NameHasOwner
  string org.gnome.FSpot
method call sender=:1.17 - dest=org.freedesktop.DBus 
path=/org/freedesktop/DBus

; interface=org.freedesktop.DBus; member=NameHasOwner
  string org.gnome.FSpot
method call sender=:1.17 - dest=org.freedesktop.DBus 
path=/org/freedesktop/DBus

; interface=org.freedesktop.DBus; member=NameHasOwner
  string org.gnome.FSpot
method call sender=:1.17 - dest=org.freedesktop.DBus 
path=/org/freedesktop/DBus

; interface=org.freedesktop.DBus; member=NameHasOwner
  string org.gnome.FSpot
signal sender=org.freedesktop.DBus - dest=(null destination) 
path=/org/freedesk

top/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
  string :1.17
  string :1.17
  string 

Tomboy seems to work, but when I install dbus-ePxplorer from 
http://www.ndesk.org/DBusExplorer it times out on connecting to 
org.gnome.Tomboy.  dbus-explorer hrows an exception from ndesk-dbus 
when trying to open im.pidgin.PurpleService :
Unhandled Exception: System.Exception: Message body length mismatch: 
4032 of expected 108569

at NDesk.DBus.Connection.ReadMessage () 0x00565
at NDesk.DBus.Connection.Iterate () 0x00026
at Initc__AnonStorey0.m__0 (intptr,NDesk.GLib.IOCondition,intptr) 
0x0002a
at (wrapper native-to-managed) Initc__AnonStorey0.m__0 
(intptr,NDesk.GLib.IOCondition,intptr) 0x00030

at (wrapper managed-to-native) 

Problem with mono/dbus

2008-10-24 Thread James Wright
After installing the new mono ports (I tried everything except for 
f-spot from packages, and then from ports), I have a few problems with 
the dbus support (ndesk-dbus-*).   Running f-spot I get the following:


$ f-spot   
[Info  16:50:22.493] Initializing DBus

[Info  16:50:22.972] Initializing Mono.Addins
[Info  16:50:23.938] Starting new FSpot server
X
System.IO.FileNotFoundException: /home/jamesw/.gnome2/f-spot/photos.db 
does not

exist
File name: '/home/jamesw/.gnome2/f-spot/photos.db'
 at System.IO.File.Move (System.String sourceFileName, System.String 
destFileNa

me) [0x0]
 at Db.Repair () [0x0]
 at FSpot.Core.get_Database () [0x0]
 at FSpot.Driver.Main (System.String[] args) [0x0]
X
[Warn  16:50:25.224] Can't get a connection to the dbus. Trying again...
[Info  16:50:25.252] Starting new FSpot server
[Warn  16:50:25.275] Can't get a connection to the dbus. Trying again...
[Info  16:50:25.307] Starting new FSpot server
[Warn  16:50:25.329] Can't get a connection to the dbus. Trying again...
[Info  16:50:25.355] Starting new FSpot server
[Warn  16:50:25.378] Can't get a connection to the dbus. Trying again...
[Info  16:50:25.408] Starting new FSpot server
[Warn  16:50:25.430] Can't get a connection to the dbus. Trying again...
[Info  16:50:25.456] Starting new FSpot server
[Warn  16:50:25.479] Can't get a connection to the dbus. Trying again...
[Error 16:50:25.507] Sorry, couldn't start F-Spot
Segmentation fault (core dumped)
$  


and with dbus-monitor reporting:

signal sender=org.freedesktop.DBus - dest=(null destination) 
path=/org/freedesk

top/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
  string :1.17
  string 
  string :1.17
method call sender=:1.17 - dest=org.freedesktop.DBus 
path=/org/freedesktop/DBus

; interface=org.freedesktop.DBus; member=Hello
method call sender=:1.17 - dest=org.freedesktop.DBus 
path=/org/freedesktop/DBus

; interface=org.freedesktop.DBus; member=NameHasOwner
  string org.gnome.FSpot
signal sender=org.freedesktop.DBus - dest=(null destination) 
path=/org/freedesk

top/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
  string org.gnome.FSpot
  string 
  string :1.17
method call sender=:1.17 - dest=org.freedesktop.DBus 
path=/org/freedesktop/DBus

; interface=org.freedesktop.DBus; member=RequestName
  string org.gnome.FSpot
  uint32 4
signal sender=org.freedesktop.DBus - dest=(null destination) 
path=/org/freedesk

top/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
  string org.gnome.FSpot
  string :1.17
  string 
method call sender=:1.17 - dest=org.freedesktop.DBus 
path=/org/freedesktop/DBus

; interface=org.freedesktop.DBus; member=ReleaseName
  string org.gnome.FSpot
method call sender=:1.17 - dest=org.freedesktop.DBus 
path=/org/freedesktop/DBus

; interface=org.freedesktop.DBus; member=NameHasOwner
  string org.gnome.FSpot
method call sender=:1.17 - dest=org.freedesktop.DBus 
path=/org/freedesktop/DBus

; interface=org.freedesktop.DBus; member=NameHasOwner
  string org.gnome.FSpot
method call sender=:1.17 - dest=org.freedesktop.DBus 
path=/org/freedesktop/DBus

; interface=org.freedesktop.DBus; member=NameHasOwner
  string org.gnome.FSpot
method call sender=:1.17 - dest=org.freedesktop.DBus 
path=/org/freedesktop/DBus

; interface=org.freedesktop.DBus; member=NameHasOwner
  string org.gnome.FSpot
method call sender=:1.17 - dest=org.freedesktop.DBus 
path=/org/freedesktop/DBus

; interface=org.freedesktop.DBus; member=NameHasOwner
  string org.gnome.FSpot
signal sender=org.freedesktop.DBus - dest=(null destination) 
path=/org/freedesk

top/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
  string :1.17
  string :1.17
  string 

Tomboy seems to work, but when I install dbus-ePxplorer from 
http://www.ndesk.org/DBusExplorer it times out on connecting to 
org.gnome.Tomboy.  dbus-explorer hrows an exception from ndesk-dbus when 
trying to open im.pidgin.PurpleService :
Unhandled Exception: System.Exception: Message body length mismatch: 
4032 of expected 108569

at NDesk.DBus.Connection.ReadMessage () 0x00565
at NDesk.DBus.Connection.Iterate () 0x00026
at Initc__AnonStorey0.m__0 (intptr,NDesk.GLib.IOCondition,intptr) 
0x0002a
at (wrapper native-to-managed) Initc__AnonStorey0.m__0 
(intptr,NDesk.GLib.IOCondition,intptr) 0x00030

at (wrapper managed-to-native) Gtk.Application.gtk_main () 0x4
at Gtk.Application.Run () 0x7
at DBusExplorer.MainClass.Main (string[]) 0x00061


Though, connecting to org.freedesktop.DBus works with dbus-explorer, and 
connecting to im.pidgin.purple.PurpleInterface through Net::DBus and 
py-dbus work fine.


The service bus is started in /etc/rc.local, copied from the dbus 
MESSAGE and dbus session bus is started in ~/.xsession by 'exec 
dbus-launch --exit-with-session /usr/local/bin/openbox'