gmusicbrowser does not start

Bug #880435 reported by Francesco Muriana
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
gmusicbrowser (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Gmusicbrowser doesn't start in Xubuntu 12.04. Terminal says:

vaillant@thunder:~$ gmusicbrowser
print() on closed filehandle $fifofh at /usr/bin/gmusicbrowser line 286.
GStreamer::Interfaces perl module not found -> visuals not available
@Fields=album_shuffle replaygain_album_gain skipcount file grouping compilation replaygain_track_peak modif lastskip replaygain_reference_level genre embedded_pictures label title replaygain_album_peak album_artist samprate filetype bitrate missing added channel title_or_file size rating album_artist_raw lastplay shuffle playcount embedded_lyrics replaygain_track_gain extension version track path length artist album comment disc year barefilename fullfilename_raw ratingnumber artists first_artist album_picture album_years version_or_empty uri artist_picture missingkey fullfilename at /usr/bin/../share/gmusicbrowser/gmusicbrowser_songs.pm line 1066.
gstreamer plugin 'lame' not found -> gstreamer-server mode not available
These commands were not found : mpg123, flac123, ogg123
 => these file types won't be played by the 123 output : oga, flac
/org/mpris/MediaPlayer2 at /usr/bin/../share/gmusicbrowser/plugins/mpris2.pm line 30.
Use of uninitialized value $_[0] in vec at (eval 97) line 1.
Ignoring unknown column playandqueueandtrack
SongArray_changed replace,filter Filter=HASH(0xad14f94)
Use of uninitialized value $_[0] in vec at (eval 97) line 1.
Use of uninitialized value $key in hash element at /usr/lib/perl5/Net/DBus/Binding/Iterator.pm line 504.
process 3450: Array or variant type requires that type boolean be written, but double was written.
The overall signature expected here was 'a{sb}' and we are on byte 4 of that signature.
process 3450: Array or variant type requires that type boolean be written, but string was written.
The overall signature expected here was 'a{sb}' and we are on byte 4 of that signature.
process 3450: Array or variant type requires that type boolean be written, but string was written.
The overall signature expected here was 'a{sb}' and we are on byte 4 of that signature.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: gmusicbrowser 1.1.7-2
ProcVersionSignature: Ubuntu 3.1.0-1.1-generic-pae 3.1.0-rc10
Uname: Linux 3.1.0-1-generic-pae i686
ApportVersion: 1.24-0ubuntu1
Architecture: i386
Date: Sun Oct 23 18:24:01 2011
InstallationMedia: Xubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, no user)
 LANG=it_IT.UTF-8
 SHELL=/bin/bash
SourcePackage: gmusicbrowser
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Francesco Muriana (f-muriana) wrote :
Revision history for this message
Quentin Sculo (squentin) wrote :

Can you try launching it with option "-plugin MPRIS2", and if it still doesn't work, with option "-nodbus", and tell me what it says ?

Revision history for this message
Francesco Muriana (f-muriana) wrote :

Sure, thanks for suggestions

Revision history for this message
Francesco Muriana (f-muriana) wrote :

Hello. With option "-plugin MPRIS2" it starts and terminal says:

vaillant@thunder:~$ gmusicbrowser -plugin MPRIS2
print() on closed filehandle $fifofh at /usr/bin/gmusicbrowser line 286.
GStreamer::Interfaces perl module not found -> visuals not available
@Fields=album_shuffle replaygain_album_gain skipcount file grouping compilation replaygain_track_peak modif lastskip replaygain_reference_level genre embedded_pictures label title replaygain_album_peak album_artist samprate filetype bitrate missing added channel title_or_file size rating album_artist_raw lastplay shuffle playcount embedded_lyrics replaygain_track_gain extension version track path length artist album comment disc year barefilename fullfilename_raw ratingnumber artists first_artist album_picture album_years version_or_empty uri artist_picture missingkey fullfilename at /usr/bin/../share/gmusicbrowser/gmusicbrowser_songs.pm line 1066.
gstreamer plugin 'lame' not found -> gstreamer-server mode not available
These commands were not found : flac123, ogg123
 => these file types won't be played by the 123 output : oga, flac
Use of uninitialized value $_[0] in vec at (eval 97) line 1.
Ignoring unknown column playandqueueandtrack
SongArray_changed replace,filter Filter=HASH(0xbd3026c)
Use of uninitialized value $_[0] in vec at (eval 97) line 1.

with "-nodbus" option it starts too and terminal says:

vaillant@thunder:~$ gmusicbrowser -nodbus
Name "GMB::DBus::bus" used only once: possible typo at /usr/bin/gmusicbrowser line 293.
GStreamer::Interfaces perl module not found -> visuals not available
Reading saved tags in /home/vaillant/.config/gmusicbrowser/gmbrc ...
@Fields=album_shuffle replaygain_album_gain skipcount file grouping compilation replaygain_track_peak modif lastskip replaygain_reference_level genre embedded_pictures label title replaygain_album_peak album_artist samprate filetype bitrate missing added channel title_or_file size rating album_artist_raw lastplay shuffle playcount embedded_lyrics replaygain_track_gain extension version track path length artist album comment disc year barefilename fullfilename_raw ratingnumber artists first_artist album_picture album_years version_or_empty uri artist_picture missingkey fullfilename at /usr/bin/../share/gmusicbrowser/gmusicbrowser_songs.pm line 1066.
adding update code for artists at /usr/bin/../share/gmusicbrowser/gmusicbrowser_songs.pm line 1185.
Reading saved tags in /home/vaillant/.config/gmusicbrowser/gmbrc ... done
gstreamer plugin 'lame' not found -> gstreamer-server mode not available
These commands were not found : flac123, ogg123
 => these file types won't be played by the 123 output : oga, flac
Use of uninitialized value $_[0] in vec at (eval 86) line 1.
SongArray_changed replace,filter Filter=HASH(0xa5fafb0)
Use of uninitialized value $_[0] in vec at (eval 86) line 1.

Revision history for this message
Quentin Sculo (squentin) wrote :

I've committed a fix (http://git.gmusicbrowser.org/commit/c8ebed9f39) that might fix this bug, can you try it ?
You can just replace /usr/share/gmusicbrowser/plugins/mpris2.pm by this one :
https://raw.github.com/squentin/gmusicbrowser/c8ebed9f39ee910bdb22ebacff0ffe9696f6e7dc/plugins/mpris2.pm

Also, are you using ubuntu's Soundmenu or anything else that uses mpris2 to control media players ?

Revision history for this message
Francesco Muriana (f-muriana) wrote :

No, I don't use sound menu. I just launch gmusicbrowser from menu and control media with keyboard.

I'm going to try your fix. Thanks

Revision history for this message
Francesco Muriana (f-muriana) wrote :

Many thanks Quentin!! It work perfectly, now I can launch the player from menu without any problem (I tried also launching it from sound menu, same result)

Quentin Sculo (squentin)
Changed in gmusicbrowser (Ubuntu):
status: New → Fix Committed
Revision history for this message
jokrebel (jokrebel) wrote :
Download full text (7.5 KiB)

Have the same Problem, but #5 ist not working for me (ubuntu 12.04 Unity).

I copyed all of https://raw.github.com/squentin/gmusicbrowser/c8ebed9f39ee910bdb22ebacff0ffe9696f6e7dc/plugins/mpris2.pm
and saved it in /usr/share/gmusicbrowser/plugins/mpris2.pm
But gmusicbrowser still only pops up shortly.

With option -nodbus it open correct

achim@L2G2:~$ gmusicbrowser -nodbus
print() on closed filehandle $fifofh at /usr/bin/gmusicbrowser line 290.
Name "GMB::DBus::bus" used only once: possible typo at /usr/bin/gmusicbrowser line 297.
Reading saved tags in /home/achim/.config/gmusicbrowser/gmbrc ...
plugin /usr/bin/../share/gmusicbrowser/plugins/mpris2.pm failed : Requires DBus support to be active

Reading saved tags in /home/achim/.config/gmusicbrowser/gmbrc ... done
These commands were not found : flac123, ogg123
 => these file types won't be played by the 123 output : oga, flac
Subroutine Start redefined at /usr/bin/../share/gmusicbrowser/plugins/mpris2.pm line 29.
Subroutine Stop redefined at /usr/bin/../share/gmusicbrowser/plugins/mpris2.pm line 33.
Subroutine prefbox redefined at /usr/bin/../share/gmusicbrowser/plugins/mpris2.pm line 39.
Subroutine soundmenu_button_update redefined at /usr/bin/../share/gmusicbrowser/plugins/mpris2.pm line 48.
Subroutine soundmenu_button_set redefined at /usr/bin/../share/gmusicbrowser/plugins/mpris2.pm line 59.
Subroutine soundmenu_toggle_cb redefined at /usr/bin/../share/gmusicbrowser/plugins/mpris2.pm line 68.
GMB::DBus::MPRIS2 is already registered with Net::DBus::Exporter at /usr/lib/perl5/Net/DBus/Exporter.pm line 264.
Subroutine new redefined at /usr/bin/../share/gmusicbrowser/plugins/mpris2.pm line 101.
Subroutine PropertiesChanged redefined at /usr/bin/../share/gmusicbrowser/plugins/mpris2.pm line 124.
Subroutine Raise redefined at /usr/bin/../share/gmusicbrowser/plugins/mpris2.pm line 136.
Subroutine Quit redefined at /usr/bin/../share/gmusicbrowser/plugins/mpris2.pm line 140.
Subroutine CanQuit redefined at /usr/bin/../share/gmusicbrowser/plugins/mpris2.pm line 144.
Subroutine CanRaise redefined at /usr/bin/../share/gmusicbrowser/plugins/mpris2.pm line 146.
Subroutine HasTrackList redefined at /usr/bin/../share/gmusicbrowser/plugins/mpris2.pm line 148.
Subroutine Identity redefined at /usr/bin/../share/gmusicbrowser/plugins/mpris2.pm line 150.
Subroutine DesktopEntry redefined at /usr/bin/../share/gmusicbrowser/plugins/mpris2.pm line 152.
Subroutine SupportedUriSchemes redefined at /usr/bin/../share/gmusicbrowser/plugins/mpris2.pm line 154.
Subroutine SupportedMimeTypes redefined at /usr/bin/../share/gmusicbrowser/plugins/mpris2.pm line 156.
Subroutine Next redefined at /usr/bin/../share/gmusicbrowser/plugins/mpris2.pm line 159.
Subroutine Previous redefined at /usr/bin/../share/gmusicbrowser/plugins/mpris2.pm line 162.
Subroutine Pause redefined at /usr/bin/../share/gmusicbrowser/plugins/mpris2.pm line 165.
Subroutine PlayPause redefined at /usr/bin/../share/gmusicbrowser/plugins/mpris2.pm line 168.
Subroutine Stop redefined at /usr/bin/../share/gmusicbrowser/plugins/mpris2.pm line 171.
Subroutine Play redefined at /usr/bin/../share/gmusicbrowser/plugins/mpris2.pm line 174.
Subroutine Seek re...

Read more...

Revision history for this message
Quentin Sculo (squentin) wrote :

It's strange that with the same error, one fix works in one case, and doesn't change anything in the other. Can you double check that you have the right version of the plugin ? For example by doing :
md5sum /usr/share/gmusicbrowser/plugins/mpris2.pm
I get dfe2306837104691869482b9d7dd724d for https://raw.github.com/squentin/gmusicbrowser/c8ebed9f39ee910bdb22ebacff0ffe9696f6e7dc/plugins/mpris2.pm

Revision history for this message
jokrebel (jokrebel) wrote :

Sorry - md5check seems to be correct. IHMO

achim@L2G2:~$ md5sum /usr/share/gmusicbrowser/plugins/mpris2.pm
dfe2306837104691869482b9d7dd724d /usr/share/gmusicbrowser/plugins/mpris2.pm
achim@L2G2:~$

Tryed the fix several times.

I do not often use gmusicbrowser, but if I try to open (Panel, Terminal or Dash-search) it only pops up for half a second.

Revision history for this message
Quentin Sculo (squentin) wrote :

Ok, thanks for checking, I didn't want to spend too much time looking into this for nothing.
I just found the perl DBus library has been updated in july (the previous version dated from 2008) to v1.0.0, and using it I just reproduced the bug. So I'm going to fix it, thanks for reporting this bug.

Revision history for this message
Quentin Sculo (squentin) wrote :

I fixed it, it works for me with Net::DBus v1.0.0, can you confirm it works for you too by testing with this file :
https://raw.github.com/gist/1621174/727a35f12fe833e943fe906494f8a8db7c85de71/mpris2.pm

Net::DBus v1.0.0 added support for the optional org.freedesktop.DBus.Properties.GetAll method, but Net::DBus still has problems with DBus property types. This mpris2.pm includes a patched version of the GetAll method that makes it work for properties that return "pre-typed" values. I'll contact the author to fix it in Net::DBus.

Revision history for this message
jokrebel (jokrebel) wrote :

Great Job! Thanks!

Put all of #12 link

https://raw.github.com/gist/1621174/727a35f12fe833e943fe906494f8a8db7c85de71/mpris2.pm

 into the file /usr/share/gmusicbrowser/plugins/mpris2.pm

now it works fine for me too.

Revision history for this message
Quentin Sculo (squentin) wrote :

thanks, committed

Jackson Doak (noskcaj)
Changed in gmusicbrowser (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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