Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 270286 - media-sound/banshee-1.4.3 system exception from dbus
Summary: media-sound/banshee-1.4.3 system exception from dbus
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Peter Alfredsen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-18 13:01 UTC by Frank Altpeter
Modified: 2009-06-03 12:53 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Altpeter 2009-05-18 13:01:50 UTC
After initial (first) installation of banshee, the software won't start. It's throwing an exception on startup:

% banshee-1                 

Unhandled Exception: System.Exception: Unable to open the session message bus. ---> System.ArgumentNullException: Argument cannot be null.
Parameter name: address
  at NDesk.DBus.Bus.Open (System.String address) [0x00000] 
  at NDesk.DBus.Bus.get_Session () [0x00000] 
  --- End of inner exception stack trace ---
  at NDesk.DBus.Bus.get_Session () [0x00000] 
  at Banshee.ServiceStack.DBusConnection.get_ApplicationInstanceAlreadyRunning () [0x00000] 
  at Booter.Booter.Main () [0x00000] 

DBUS doesn't seem to be the problem, since it's running fine:

freddy@hades ~ % ps auxwww | grep -i dbus
102       6436  0.0  0.0   2304   904 ?        Ss   14:43   0:00 /usr/bin/dbus-daemon --system
freddy    6714  0.0  0.0   3204   704 pts/4    R+   14:57   0:00 grep --colour=auto -i dbus
freddy   24295  0.0  0.0   3012   632 ?        S    09:07   0:00 dbus-launch --autolaunch 2f27a6f4697da6495063f2f048c146ce --binary-syntax --close-stderr
freddy   24299  0.0  0.0   2304   688 ?        Ss   09:07   0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session



Reproducible: Always

Steps to Reproduce:
1. emerge media-sound/banshee
2. banshee-1
3.

Actual Results:  
Unhandled Exception: System.Exception: Unable to open the session message bus. ---> System.ArgumentNullException: Argument cannot be null.
Parameter name: address
  at NDesk.DBus.Bus.Open (System.String address) [0x00000] 
  at NDesk.DBus.Bus.get_Session () [0x00000] 
  --- End of inner exception stack trace ---
  at NDesk.DBus.Bus.get_Session () [0x00000] 
  at Banshee.ServiceStack.DBusConnection.get_ApplicationInstanceAlreadyRunning () [0x00000] 
  at Booter.Booter.Main () [0x00000] 

Additionally, there seems to be an option to disable dbus:

banshee-1 --debug --help-debug
[...]
  --disable-dbus      Disable DBus support completely


But this doesn't work:

freddy@hades ~ % banshee-1 --debug --disable-dbus
** Running Mono with --debug   **

Unhandled Exception: System.Exception: Unable to open the session message bus. ---> System.ArgumentNullException: Argument cannot be null.
Parameter name: address
  at NDesk.DBus.Bus.Open (System.String address) [0x00042] in /var/tmp/portage/dev-dotnet/dbus-sharp-0.6.1a/work/ndesk-dbus-0.6.1a/src/Bus.cs:87 
  at NDesk.DBus.Bus.get_Session () [0x0002d] in /var/tmp/portage/dev-dotnet/dbus-sharp-0.6.1a/work/ndesk-dbus-0.6.1a/src/Bus.cs:41 
  --- End of inner exception stack trace ---
  at NDesk.DBus.Bus.get_Session () [0x00042] in /var/tmp/portage/dev-dotnet/dbus-sharp-0.6.1a/work/ndesk-dbus-0.6.1a/src/Bus.cs:43 
  at Banshee.ServiceStack.DBusConnection.get_ApplicationInstanceAlreadyRunning () [0x00000] in /var/tmp/portage/media-sound/banshee-1.4.3/work/banshee-1-1.4.3/src/Core/Banshee.Services/Banshee.Base/RateLimiter.cs:1 
  at Booter.Booter.Main () [0x0000b] in /var/tmp/portage/media-sound/banshee-1.4.3/work/banshee-1-1.4.3/src/Clients/Booter/Booter/Entry.cs:80 
freddy@hades ~ % 


Expected Results:  
It should have started :)

freddy@hades ~ % equery list banshee dbus
 * Searching for banshee ...
 * Searching for dbus...
 * installed packages:
[I--] [  ] media-sound/banshee-1.4.3 (0)
[I--] [ ~] sys-apps/dbus-1.2.12 (0)


AFAIK, there was a similar problem some weeks ago regarding cairo. Perhaps this helps...
Comment 1 Rémi Cardona (RETIRED) gentoo-dev 2009-05-18 13:04:55 UTC
Please choose "Ebuilds" or "Applications" if you don't know who this package belongs to.

Thanks
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2009-06-03 00:43:44 UTC
Try 1.4.3-r1 or 1.5.0 and report back if one of them fixes your issue.
Comment 3 Frank Altpeter 2009-06-03 09:39:07 UTC
I just tried to test this, but it seems that the ebuild is buggy:

hades ~ # emerge -av banshee             

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] media-sound/banshee-1.5.0 [1.4.3] USE="aac encode flac mad vorbis -boo -daap -doc -ipod -karma% -mtp -podcast -test" 2,298 kB

Total: 1 package (1 upgrade), Size of downloads: 2,298 kB

Would you like to merge these packages? [Yes/No] 
>>> Verifying ebuild manifests

!!! Digest verification failed:
!!! /usr/portage/media-sound/banshee/banshee-1.4.3-r1.ebuild
!!! Reason: Filesize does not match recorded size
!!! Got: 3259
!!! Expected: 3403

(for both 1.4.3-r1 and 1.5.0 ebuilds)
Comment 4 Peter Alfredsen (RETIRED) gentoo-dev 2009-06-03 11:36:04 UTC
The Manifest error should be fixed now. Resync and try again.
What does:
echo $DBUS_SESSION_BUS_ADDRESS 
output?
If empty, try:
dbus-launch --exit-with-session banshee -1 
If that works, this is a problem with dbus.
Comment 5 Frank Altpeter 2009-06-03 11:50:19 UTC
Interesting...

Just tried the hints before actually updating to the recommended versions, which this result:

freddy@hades ~ % echo $DBUS_SESSION_BUS_ADDRESS

----------------------------------------------------------------------------
freddy@hades ~ % dbus-launch --exit-with-session banshee-1
[Info  13:44:27.794] Running Banshee 1.4.3: [Gentoo/banshee/1.4.3 (linux-gnu, i686) @ 2009-05-18 14:35:47 CEST]
[Warn  13:44:28.480] Caught an exception - No support GNOME Settings Daemon could be reached. (in `Banshee.MultimediaKeys')
  at Banshee.MultimediaKeys.MultimediaKeysService.Banshee.ServiceStack.IExtensionService.Initialize () [0x00000] 
  at Banshee.ServiceStack.ServiceManager.StartExtension (Mono.Addins.TypeExtensionNode node) [0x00000] 
[Warn  13:44:28.480] Extension `Banshee.MultimediaKeys.MultimediaKeysService' not started: No support GNOME Settings Daemon could be reached.
[Warn  13:44:28.686] Cannot connect to NetworkManager - An available, working network connection will be assumed
[Warn  13:44:28.690] Caught an exception - No support GNOME Settings Daemon could be reached. (in `Banshee.MultimediaKeys')
  at Banshee.MultimediaKeys.MultimediaKeysService.Banshee.ServiceStack.IExtensionService.Initialize () [0x00000] 
  at Banshee.ServiceStack.ServiceManager.StartExtension (Mono.Addins.TypeExtensionNode node) [0x00000] 
[Warn  13:44:28.690] Extension `Banshee.MultimediaKeys.MultimediaKeysService' not started: No support GNOME Settings Daemon could be reached.
[Info  13:44:28.691] All services are started 0,777872s
[Info  13:44:28.903] GNOME screensaver service not found
[Info  13:44:29.035] nereid Client Started

----------------------------------------------------------------------------

freddy@hades ~ % banshee-1 

Unhandled Exception: System.Exception: Unable to open the session message bus. ---> System.ArgumentNullException: Argument cannot be null.
Parameter name: address
  at NDesk.DBus.Bus.Open (System.String address) [0x00000] 
  at NDesk.DBus.Bus.get_Session () [0x00000] 
  --- End of inner exception stack trace ---
  at NDesk.DBus.Bus.get_Session () [0x00000] 
  at Banshee.ServiceStack.DBusConnection.get_ApplicationInstanceAlreadyRunning () [0x00000] 
  at Booter.Booter.Main () [0x00000] 
freddy@hades ~ % 

Now, did the update to 1.5.0:
----------------------------------------------------------------------------
freddy@hades ~ % banshee-1 --version
Banshee 1.5.0 (1.5.0) http://banshee-project.org
Copyright 2005-2009 Novell, Inc. and Contributors.
freddy@hades ~ % banshee-1   

Unhandled Exception: System.Exception: Unable to open the session message bus. ---> System.ArgumentNullException: Argument cannot be null.
Parameter name: address
  at NDesk.DBus.Bus.Open (System.String address) [0x00000] 
  at NDesk.DBus.Bus.get_Session () [0x00000] 
  --- End of inner exception stack trace ---
  at NDesk.DBus.Bus.get_Session () [0x00000] 
  at Banshee.ServiceStack.DBusConnection.get_ApplicationInstanceAlreadyRunning () [0x00000] 
  at Booter.Booter.Main () [0x00000] 
freddy@hades ~ % dbus-launch --exit-with-session banshee-1
[Info  13:48:20.786] Running Banshee 1.5.0: [Gentoo/banshee/1.5.0 (linux-gnu, i686) @ 2009-06-03 13:45:57 CEST]
[Warn  13:48:21.816] Error determining if ANALYZE is necessary - Sqlite error
no such table: PodcastItems (in `Mono.Data.Sqlite')
  at Mono.Data.Sqlite.Sqlite3.Prepare (System.String strSql, Mono.Data.Sqlite.SqliteStatement previous, System.String& strRemain) [0x00000] 
  at Mono.Data.Sqlite.SqliteCommand.BuildNextCommand () [0x00000] 
[Warn  13:48:22.328] Cannot connect to NetworkManager - An available, working network connection will be assumed
[Warn  13:48:22.362] Caught an exception - No support GNOME Settings Daemon could be reached. (in `Banshee.MultimediaKeys')
  at Banshee.MultimediaKeys.MultimediaKeysService.Banshee.ServiceStack.IExtensionService.Initialize () [0x00000] 
  at Banshee.ServiceStack.ServiceManager.StartExtension (Mono.Addins.TypeExtensionNode node) [0x00000] 
[Warn  13:48:22.362] Extension `Banshee.MultimediaKeys.MultimediaKeysService' not started: No support GNOME Settings Daemon could be reached.
[Warn  13:48:22.433] Caught an exception - No support GNOME Settings Daemon could be reached. (in `Banshee.MultimediaKeys')
  at Banshee.MultimediaKeys.MultimediaKeysService.Banshee.ServiceStack.IExtensionService.Initialize () [0x00000] 
  at Banshee.ServiceStack.ServiceManager.StartExtension (Mono.Addins.TypeExtensionNode node) [0x00000] 
[Warn  13:48:22.433] Extension `Banshee.MultimediaKeys.MultimediaKeysService' not started: No support GNOME Settings Daemon could be reached.
[Info  13:48:22.434] All services are started 0,862536s
[Info  13:48:22.675] GNOME screensaver service not found
[Info  13:48:22.861] nereid Client Started


----------------------------------------------------------------------------

So it seems that you're right and the solution should be searched within dbus, but I'm still confused since 
Comment 6 Frank Altpeter 2009-06-03 11:52:51 UTC
(In reply to comment #5, crapped in the middle of my sentence)

> So it seems that you're right and the solution should be searched within dbus,
> but I'm still confused since

... since there seem to be no problems with other dbus-based applications (net-im/pidgin for example runs fine). So, perhaps there's something wrong within the dbus implementation in banshee?

Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2009-06-03 12:20:56 UTC
Has this been reported to upstream? And please don't touch bug severity field.
Comment 8 Peter Alfredsen (RETIRED) gentoo-dev 2009-06-03 12:21:47 UTC
(In reply to comment #6)

> ... since there seem to be no problems with other dbus-based applications
> (net-im/pidgin for example runs fine). So, perhaps there's something wrong
> within the dbus implementation in banshee?

No, that environment variable is supposed to be set:
pa@loki ~ $ echo $DBUS_SESSION_BUS_ADDRESS
unix:abstract=/tmp/dbus-ZmjJcvNhjq,guid=5f575dc6777a8c9cf24cef9a4a01eaae
If it isn't, either you're not running dbus, or the variable got cleaned out somewhere along the way.

Also, it's possible for dbus to be started multiple times, with each instance running inside its own little cocoon, so you should make sure that it's the right "kind" of dbus that's running:
As root:
/etc/init.d/dbus status
Should show "started"
Comment 9 Frank Altpeter 2009-06-03 12:31:35 UTC
(In reply to comment #8)

Hmmm, then this is strange. Other dbus applications are running, but this env var is not present.

freddy@hades ~ % env | grep -i dbus
freddy@hades ~ % 

freddy@hades ~ % ps auxwww | grep -i dbus
102       6436  0.0  0.0   2432   776 ?        Ss   May18   0:00 /usr/bin/dbus-daemon --system
freddy    9765  0.0  0.0   3012   696 ?        S    11:07   0:00 dbus-launch --autolaunch 2f27a6f4697da6495063f2f048c146ce --binary-syntax --close-stderr
freddy    9766  0.0  0.1   5440  3528 ?        Ss   11:07   0:01 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
freddy@hades ~ % sudo /etc/init.d/dbus status
* status: started
Comment 10 Peter Alfredsen (RETIRED) gentoo-dev 2009-06-03 12:53:39 UTC
*shrug* I can't say what other applications need, but banshee needs this env var. Worksforme.