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 707870 - Crash when click Artists/Songs tab or open one of album
Crash when click Artists/Songs tab or open one of album
Status: RESOLVED DUPLICATE of bug 707938
Product: gnome-music
Classification: Applications
Component: general
3.9.x
Other Linux
: Normal major
: 3.10
Assigned To: gnome-music-maint
gnome-music-maint
Depends on:
Blocks:
 
 
Reported: 2013-09-10 17:23 UTC by Igor Gnatenko
Modified: 2013-09-11 23:51 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Igor Gnatenko 2013-09-10 17:23:54 UTC
$ gnome-music 
Detected new source available: 'Tracker' and it supports search

(gnome-music:4121): Gtk-CRITICAL **: gtk_widget_get_preferred_width_for_height: assertion 'height >= 0' failed

(gnome-music:4121): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width 623 and height -1
Traceback (most recent call last):
  • File "/usr/lib/python3.3/site-packages/gnomemusic/grilo.py", line 106 in _callback
    callback(source, param, item)
  • File "/usr/lib/python3.3/site-packages/gnomemusic/widgets.py", line 564 in get_songs
    g_file = Gio.file_new_for_uri(track.get_url())
TypeError: Argument 0 does not allow None as a value

Comment 1 Arnel Borja 2013-09-10 17:30:58 UTC
Wow, weird, a song without a URL.
Comment 2 Igor Gnatenko 2013-09-10 17:45:36 UTC
(In reply to comment #1)
> Wow, weird, a song without a URL.
I can send to you this music-files.
Comment 3 Arnel Borja 2013-09-11 15:16:52 UTC
I think this is either a tracker or grilo bug though.

Maybe you could try these in a terminal:
# tracker-control --backup tracker-journal-backup
# tracker-control --hard-reset
# tracker-control --start

That would backup the tracker journal, clean up the journal then recreate it. This forces tracker to re-extract the songs.

Try running Music afterwards and see if it still crashes (you might need to wait for a few minutes after running the above commands, tracker is still indexing the files).

If you want your old journal back:
# tracker-control --restore tracker-journal-backup
Comment 4 Igor Gnatenko 2013-09-11 15:30:04 UTC
tested, but from user. may I need run this commands as root ?
$ gnome-music 
Detected new source available: 'Tracker' and it supports search
Traceback (most recent call last):
  • File "/usr/lib/python3.3/site-packages/gnomemusic/grilo.py", line 106 in _callback
    callback(source, param, item)
  • File "/usr/lib/python3.3/site-packages/gnomemusic/widgets.py", line 286 in _on_populate_album_songs
    g_file = Gio.file_new_for_uri(track.get_url())
TypeError: Argument 0 does not allow None as a value

Comment 5 Vadim Rutkovsky 2013-09-11 15:40:39 UTC
(In reply to comment #4)
> tested, but from user
Right, these commands should be run as user.

Igor, do the crash happens on each of your albums? Could you identify which track in particular causes this crash?

Arnel, what if we simply skip this track is url is None? I'd prefer having such tracks marked as unavailable (same as we do for missing codecs), but I guess that'd be impossible.
Comment 6 Igor Gnatenko 2013-09-11 16:43:09 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > tested, but from user
> Right, these commands should be run as user.
> 
> Igor, do the crash happens on each of your albums? Could you identify which
> track in particular causes this crash?
One of.
> Arnel, what if we simply skip this track is url is None? I'd prefer having such
> tracks marked as unavailable (same as we do for missing codecs), but I guess
> that'd be impossible.
My workaround that fixes this problem:
* Move .(jpg|cue) and 14/15 .flac to another directory
* clean tracker-store
* reboot
* try to open in rhythmbox (doesn't open)
* Open in nautilus ("space" for open and play ok)
* open gnome-music. works OK.
This bug is very strange
Comment 7 Igor Gnatenko 2013-09-11 16:44:37 UTC
Rhythmbox says "The connection is closed" on this files
Comment 8 Igor Gnatenko 2013-09-11 16:46:23 UTC
on some files RB says "Problem occured without error being set. This is a bug in Rhythmbox or GStreamer"
Comment 9 Igor Gnatenko 2013-09-11 16:49:18 UTC
gst-launch playbin uri="file:///home/brain/Music/Mike Ness - 1999 - Cheating At Solitaire [FLAC (tracks+.cue)]/01 - The Devil In Miss Jones.flac"
works OK.
Comment 10 Igor Gnatenko 2013-09-11 16:53:33 UTC
Moved files to back. Cleaned cache. Rebooted. gnome-music crashes again.
Comment 11 Vadim Rutkovsky 2013-09-11 23:51:33 UTC
Nice, it seems that  Dominique Leuenberger has reproduced the issue and prepared a patch. Closing this as a duplicate

*** This bug has been marked as a duplicate of bug 707938 ***