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 772649 - gnome-music crashes on error Invalid child
gnome-music crashes on error Invalid child
Status: RESOLVED DUPLICATE of bug 765476
Product: gnome-music
Classification: Applications
Component: general
3.22.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-music-maint
gnome-music-maint
Depends on:
Blocks:
 
 
Reported: 2016-10-09 14:34 UTC by Baptiste Mille-Mathias
Modified: 2016-10-10 02:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Log file (54.67 KB, text/plain)
2016-10-09 14:34 UTC, Baptiste Mille-Mathias
Details

Description Baptiste Mille-Mathias 2016-10-09 14:34:25 UTC
Created attachment 337274 [details]
Log file

I used to have my music in ~/Musique and I decided to move it to a separate partition.
So to make music happy I set my music folder to /share/Musique by modifying ~/.config/user-dirs.dirs (XDG_MUSIC_DIR="/share/Musique).
I started gnome-music and it crashed with this error

Traceback (most recent call last):
  • File "/usr/lib/python3.5/site-packages/gnomemusic/playlists.py", line 139 in callback
    self.update_static_playlist(playlist)
  • File "/usr/lib/python3.5/site-packages/gnomemusic/__init__.py", line 55 in wrapped
    retval = fn(*v, **k)
  • File "/usr/lib/python3.5/site-packages/gnomemusic/playlists.py", line 176 in update_static_playlist
    while cursor.next():
GLib.Error: tracker-db-interface-error-quark: Invalid child (0)

versions
* tracker-1.10.0-1.fc25.x86_64
* gnome-music-3.22.0-1.fc25.x86_64

I attach a full debug log file
Comment 1 Marinus Schraal 2016-10-09 15:27:57 UTC
Well, it shouldn't crash of course. As it happens there's work being done on a patch to at least handle the error in this code more graceful.

Are you sure tracker also indexes /share/Musique, otherwise music wouldn't be able to find anything there.
Comment 2 Marinus Schraal 2016-10-09 15:30:17 UTC
Also, could you try the patch in #772649 comment 5 maybe, I wonder if that works for you.
Comment 3 Baptiste Mille-Mathias 2016-10-09 15:54:43 UTC
(In reply to Marinus Schraal from comment #1)
> Are you sure tracker also indexes /share/Musique, otherwise music wouldn't
> be able to find anything there.

at least few minutes later, when troubleshooting, the music was indexed as I was able to find it using tracker-needle.
Comment 4 Baptiste Mille-Mathias 2016-10-09 15:55:36 UTC
(In reply to Marinus Schraal from comment #2)
> Also, could you try the patch in #772649 comment 5 maybe, I wonder if that
> works for you.

It seems the bug number is wrong as actually this is the current one :)
Comment 5 Marinus Schraal 2016-10-09 19:40:38 UTC
(In reply to Baptiste Mille-Mathias from comment #4)
> It seems the bug number is wrong as actually this is the current one :)

Right, it was #765476 , my bad.
Comment 6 Baptiste Mille-Mathias 2016-10-10 02:00:50 UTC
(In reply to Marinus Schraal from comment #5)
> (In reply to Baptiste Mille-Mathias from comment #4)
> > It seems the bug number is wrong as actually this is the current one :)
> 
> Right, it was #765476 , my bad.

I confirm patching with this fix make music works again.
thanks

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