After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 541279 - banshee-1 --stop-when-finished and --set-volume=50 doesn't work
banshee-1 --stop-when-finished and --set-volume=50 doesn't work
Status: RESOLVED NOTGNOME
Product: banshee
Classification: Other
Component: general
git master
Other All
: Normal normal
: 1.x
Assigned To: Banshee Maintainers
Banshee Maintainers
: 571107 587075 610952 617712 629767 632183 637631 637788 647939 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-07-02 17:24 UTC by James Andrewartha
Modified: 2011-12-08 13:21 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description James Andrewartha 2008-07-02 17:24:40 UTC
Please describe the problem:
banshee-1 --stop-when-finished gives an exception instead of working.

Steps to reproduce:
1. Run banshee-1 --stop-when-finished

Actual results:
An exception occurs

Expected results:
Banshee stops when it finishes playing the current song

Does this happen every time?
Yes

Other information:
Unhandled Exception: System.ArgumentNullException: Cannot handle a null message; maybe the bus was disconnected
Parameter name: msg
  at NDesk.DBus.Connection.HandleMessage (NDesk.DBus.Message msg) [0x001d2] in /tmp/buildd/ndesk-dbus-0.6.0/src/Connection.cs:366 
  at NDesk.DBus.PendingCall.get_Reply () [0x0001a] in /tmp/buildd/ndesk-dbus-0.6.0/src/PendingCall.cs:33 
  at NDesk.DBus.Connection.SendWithReplyAndBlock (NDesk.DBus.Message msg) [0x00008] in /tmp/buildd/ndesk-dbus-0.6.0/src/Connection.cs:115 
  at NDesk.DBus.BusObject.SendMethodCall (System.String iface, System.String member, System.String inSigStr, NDesk.DBus.MessageWriter writer, System.Type retType, System.Exception& exception) [0x00081] in /tmp/buildd/ndesk-dbus-0.6.0/src/BusObject.cs:142 
  at IPlaybackControllerServiceProxy.set_StopWhenFinished (Boolean ) [0x00000] 
  at Halie.Client.HandlePlayerCommands () [0x0013f] in /tmp/buildd/banshee-1.0.0/src/Clients/Halie/Halie/Client.cs:134 
  at Halie.Client.Main () [0x0006d] in /tmp/buildd/banshee-1.0.0/src/Clients/Halie/Halie/Client.cs:76 
  at (wrapper managed-to-native) System.AppDomain:ExecuteAssembly (System.Reflection.Assembly,string[])
  at System.AppDomain.ExecuteAssemblyInternal (System.Reflection.Assembly a, System.String[] args) [0x00000] 
  at System.AppDomain.ExecuteAssembly (System.String assemblyFile, System.Security.Policy.Evidence assemblySecurity, System.String[] args) [0x00000] 
  at (wrapper remoting-invoke-with-check) System.AppDomain:ExecuteAssembly (string,System.Security.Policy.Evidence,string[])
  at System.AppDomain.ExecuteAssembly (System.String assemblyFile) [0x00000] 
  at (wrapper remoting-invoke-with-check) System.AppDomain:ExecuteAssembly (string)
  at Nereid.Client.Main (System.String[] args) [0x0001a] in /tmp/buildd/banshee-1.0.0/src/Clients/Nereid/Nereid/Client.cs:57
Comment 1 Bertrand Lorentz 2008-07-02 21:46:23 UTC
I'm also seeing this with ndesk-dbus 0.6.1a. Maybe an ndesk-dbus bug ?
Comment 2 Bertrand Lorentz 2009-02-10 19:55:46 UTC
*** Bug 571107 has been marked as a duplicate of this bug. ***
Comment 3 Alexander Kojevnikov 2009-05-13 01:57:17 UTC
Similar exception is thrown when using the "set-volume" option:

$ banshee-1 --set-volume=50

Unhandled Exception: System.ArgumentNullException: Cannot handle a null message; maybe the bus was disconnected
Parameter name: msg
  at NDesk.DBus.Connection.HandleMessage (NDesk.DBus.Message msg) [0x00000] 
  at NDesk.DBus.PendingCall.get_Reply () [0x00000] 
  at NDesk.DBus.Connection.SendWithReplyAndBlock (NDesk.DBus.Message msg) [0x00000] 
  at NDesk.DBus.BusObject.SendMethodCall (System.String iface, System.String member, System.String inSigStr, NDesk.DBus.MessageWriter writer, System.Type retType, System.Exception& exception) [0x00000] 
  at IPlayerEngineServiceProxy.set_Volume (UInt16 ) [0x00000] 
  at Halie.Client.HandlePlayerCommands () [0x00000] 
  at Halie.Client.Main () [0x00000] 
  at (wrapper managed-to-native) System.AppDomain:ExecuteAssembly (System.Reflection.Assembly,string[])
  at System.AppDomain.ExecuteAssemblyInternal (System.Reflection.Assembly a, System.String[] args) [0x00000] 
  at System.AppDomain.ExecuteAssembly (System.String assemblyFile, System.Security.Policy.Evidence assemblySecurity, System.String[] args) [0x00000] 
  at (wrapper remoting-invoke-with-check) System.AppDomain:ExecuteAssembly (string,System.Security.Policy.Evidence,string[])
  at System.AppDomain.ExecuteAssembly (System.String assemblyFile) [0x00000] 
  at (wrapper remoting-invoke-with-check) System.AppDomain:ExecuteAssembly (string)
  at Booter.Booter.BootClient (System.String clientName) [0x00000] 
  at Booter.Booter.Main () [0x00000] 
$
Comment 4 Bertrand Lorentz 2009-06-26 19:34:20 UTC
*** Bug 587075 has been marked as a duplicate of this bug. ***
Comment 5 Bertrand Lorentz 2009-06-26 19:39:22 UTC
This works with the latest ndesk-dbus (aka dbus-sharp) from git. So it's a bug in the 0.6.1 version.

I'm keeping this open for now, to make it easier for people to find it.
Comment 6 Paul Engel 2009-07-06 20:40:12 UTC
I have encountered the same error both with the --set-position and --set-volume commands.

paul@paul-laptop:~$ banshee-1 --set-volume=100

Unhandled Exception: System.ArgumentNullException: Cannot handle a null message; maybe the bus was disconnected
Parameter name: msg
  at NDesk.DBus.Connection.HandleMessage (NDesk.DBus.Message msg) [0x00000] 
  at NDesk.DBus.PendingCall.get_Reply () [0x00000] 
  at NDesk.DBus.Connection.SendWithReplyAndBlock (NDesk.DBus.Message msg) [0x00000] 
  at NDesk.DBus.BusObject.SendMethodCall (System.String iface, System.String member, System.String inSigStr, NDesk.DBus.MessageWriter writer, System.Type retType, System.Exception& exception) [0x00000] 
  at IPlayerEngineServiceProxy.set_Volume (UInt16 ) [0x00000] 
  at Halie.Client.HandlePlayerCommands () [0x00000] 
  at Halie.Client.Main () [0x00000] 
  at (wrapper managed-to-native) System.AppDomain:ExecuteAssembly (System.Reflection.Assembly,string[])
  at System.AppDomain.ExecuteAssemblyInternal (System.Reflection.Assembly a, System.String[] args) [0x00000] 
  at System.AppDomain.ExecuteAssembly (System.String assemblyFile, System.Security.Policy.Evidence assemblySecurity, System.String[] args) [0x00000] 
  at (wrapper remoting-invoke-with-check) System.AppDomain:ExecuteAssembly (string,System.Security.Policy.Evidence,string[])
  at System.AppDomain.ExecuteAssembly (System.String assemblyFile) [0x00000] 
  at (wrapper remoting-invoke-with-check) System.AppDomain:ExecuteAssembly (string)
  at Booter.Booter.BootClient (System.String clientName) [0x00000] 
  at Booter.Booter.Main () [0x00000] 
Comment 7 Alexander Kojevnikov 2010-01-20 10:04:27 UTC
I can confirm that installing dbus-sharp from source [1] fixes the problem. I hope NDesk will release a new version soon, it's been awhile since 0.6.1a.

Closing as NOTGNOME.

[1] git://git.ndesk.org/pub/scm/dbus-sharp-glib
Comment 8 Bertrand Lorentz 2010-02-24 19:40:51 UTC
*** Bug 610952 has been marked as a duplicate of this bug. ***
Comment 9 Alexander Kojevnikov 2010-05-05 00:46:06 UTC
*** Bug 617712 has been marked as a duplicate of this bug. ***
Comment 10 Alexander Kojevnikov 2010-09-16 00:31:54 UTC
*** Bug 629767 has been marked as a duplicate of this bug. ***
Comment 11 Alexander Kojevnikov 2010-10-15 01:02:14 UTC
*** Bug 632183 has been marked as a duplicate of this bug. ***
Comment 12 Alexander Kojevnikov 2010-12-20 09:30:43 UTC
*** Bug 637631 has been marked as a duplicate of this bug. ***
Comment 13 Tom Astleitner 2010-12-21 08:18:54 UTC
Not sure, compiled ndesk-dbus-0.6.1a from source, but commands still not work. Same result as above. --set-rating doesn't work either.

Can you help?
Comment 14 Bertrand Lorentz 2010-12-21 08:23:09 UTC
As Alexander mentioned, the fix is in the ndesk-dbus git tree, but it was not included in any released version.
So you have to compile from a git checkout in order to have the fix.
Comment 15 Alexander Kojevnikov 2010-12-22 00:06:00 UTC
*** Bug 637788 has been marked as a duplicate of this bug. ***
Comment 16 ltr 2011-01-05 03:31:35 UTC
Hey, I'm sorry I think I'm doing something wrong here to get this working:

1) I do
git clone git://git.ndesk.org/pub/scm/dbus-sharp-glib

to get the code as stated by comment 7

2) can't compile the thing, type ./configure, but there's no configure file. I am kinda dumb with this, I guess I'm missing something obvious.

Could somebody post the steps you should follow to compile and get the dbus-sharp working?

thanks
Comment 17 Sandy Armstrong 2011-01-05 05:20:32 UTC
The NDesk version of dbus-sharp-glib doesn't have all the autofoo files included in git.  You can generate them with `autoreconf -i`.

Or, you can use the recent forked version, which does have all the necessary files, which is available here: https://github.com/mono/dbus-sharp-glib

Note that typically, when building code from git, you run autogen.sh, not configure.
Comment 18 ltr 2011-01-05 05:36:13 UTC
ok, I downloaded the forked version, run autogen.sh; then configure, but get this error:

checking for DBUS_SHARP... configure: error: Package requirements (dbus-sharp-1.0 >= 0.7) were not met:
No package 'dbus-sharp-1.0' found

What am i mising something ? :(

thanks for the help, I'm sorry if this is not the place to ask this kind of questions
Comment 19 Sandy Armstrong 2011-01-05 08:52:08 UTC
You also need https://github.com/mono/dbus-sharp
Comment 20 Sergey Zozulia 2011-01-06 13:56:43 UTC
I installed this two packets as DEBs from another MONO project:

https://launchpad.net/~docky-core/+archive/ppa/+files/libdbus1.0-cil_0.7.0-2~10.10~dockycore1_all.deb
https://launchpad.net/~docky-core/+archive/ppa/+files/libdbus-glib1.0-cil_0.5.0-2~10.10~dockycore1_all.deb

But I still get "Unhandled Exception: System.ArgumentNullException: Cannot handle a null message; maybe the bus was disconnected" error. What is wrong?
Comment 21 ltr 2011-01-06 23:08:46 UTC
(In reply to comment #19)
> You also need https://github.com/mono/dbus-sharp

I installed that, went trough ./configure
bu then, I think I still can't install it, cause it's still not working. (thanks for the help Sandy)

If i do
sudo make
I get:

Making all in src
make[1]: Entering directory `/home/ltr/mono-dbus-sharp-glib-7a2e676/src'
/usr/bin/gmcs -out:dbus-sharp-glib.dll -debug -target:library -keyfile:../dbus-sharp.snk -r:/usr/local/lib/mono/dbus-sharp-1.0/dbus-sharp.dll   GLib.cs GLib.IO.cs AssemblyInfo.cs
make[1]: Leaving directory `/home/ltr/mono-dbus-sharp-glib-7a2e676/src'
Making all in examples
make[1]: Entering directory `/home/ltr/mono-dbus-sharp-glib-7a2e676/examples'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/ltr/mono-dbus-sharp-glib-7a2e676/examples'
make[1]: Entering directory `/home/ltr/mono-dbus-sharp-glib-7a2e676'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/home/ltr/mono-dbus-sharp-glib-7a2e676'


Then
sudo make install
I get:

Making install in src
make[1]: Entering directory `/home/ltr/mono-dbus-sharp-glib-7a2e676/src'
make[2]: Entering directory `/home/ltr/mono-dbus-sharp-glib-7a2e676/src'
make[2]: Nothing to be done for `install-exec-am'.
/usr/bin/gacutil /i dbus-sharp-glib.dll /f /gacdir /usr/local/lib
Package exported to: /usr/local/lib/mono/dbus-sharp-glib-1.0/dbus-sharp-glib.dll -> ../gac/dbus-sharp-glib/1.0.0.0__5675b0c3093115b5/dbus-sharp-glib.dll
Installed dbus-sharp-glib.dll into the gac (/usr/local/lib/mono/gac)
make[2]: Leaving directory `/home/ltr/mono-dbus-sharp-glib-7a2e676/src'
make[1]: Leaving directory `/home/ltr/mono-dbus-sharp-glib-7a2e676/src'
Making install in examples
make[1]: Entering directory `/home/ltr/mono-dbus-sharp-glib-7a2e676/examples'
make[2]: Entering directory `/home/ltr/mono-dbus-sharp-glib-7a2e676/examples'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/ltr/mono-dbus-sharp-glib-7a2e676/examples'
make[1]: Leaving directory `/home/ltr/mono-dbus-sharp-glib-7a2e676/examples'
make[1]: Entering directory `/home/ltr/mono-dbus-sharp-glib-7a2e676'
make[2]: Entering directory `/home/ltr/mono-dbus-sharp-glib-7a2e676'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/lib/pkgconfig" || /bin/mkdir -p "/usr/local/lib/pkgconfig"
 /usr/bin/install -c -m 644 dbus-sharp-glib-1.0.pc '/usr/local/lib/pkgconfig'
make[2]: Leaving directory `/home/ltr/mono-dbus-sharp-glib-7a2e676'
make[1]: Leaving directory `/home/ltr/mono-dbus-sharp-glib-7a2e676'
Comment 22 Sandy Armstrong 2011-01-06 23:25:35 UTC
Output of make and make install look fine.  If you still have trouble building dbus-sharp-glib after that, please report an issue in github.
Comment 23 ltr 2011-01-06 23:27:37 UTC
Ok, will do.
Just to make sure: I also had to compile banshee after installing dbus-sharp ?
Comment 24 Sandy Armstrong 2011-01-06 23:33:11 UTC
I don't think Banshee is currently set up to look for the dbus-sharp fork...it appears to depend on ndesk-dbus.  You should ask the Banshee developers (probably Gabriel or Bertrand) how best to build Banshee using dbus-sharp instead.
Comment 25 ltr 2011-01-06 23:34:46 UTC
okey dokey
thanks again
Comment 26 gourgi 2011-02-17 13:49:23 UTC
banshee --set-rating=2 doesn't work either :-S
Comment 27 Alexander Kojevnikov 2011-04-16 13:33:08 UTC
*** Bug 647939 has been marked as a duplicate of this bug. ***
Comment 28 JamesIsIn 2011-08-05 18:27:39 UTC
Has anyone thought to submit a bug back to the folks working on the dbus in question?

For completeness I'm seeing this in Ubuntu 10.04 with Banshee 1.6.1; I'm not sure which ndesk I'm running though, whatever would be the default.