GNOME Bugzilla – Bug 777541
Crashes as soon as trying to play a song
Last modified: 2017-02-13 21:32:32 UTC
Well, the title says it : each time I try to play a song, gnome-music crashes. Arch linux up-to-date. Custom build of gnome-music-3.23.4. Output : (gnome-music:21447): Grilo-WARNING **: [dleyna] grl-dleyna-servers-manager.c:138: Unable to fetch the list of available servers: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name com.intel.dleyna-server was not provided by any .service files Traceback (most recent call last):
+ Trace 237073
self._update_timeout()
timeout_period, self._update_position_callback)
return GLib.timeout_add(priority, interval, function, *user_data)
Created attachment 343913 [details] gnome-music -d output
Created attachment 343949 [details] [review] player.py : Check if the GstElement query was successful before using duration. If the query fails then it is a possibility that duration becomes negative, and hence calls to GLib.timeout_add might crash the application. The query also returns a boolean to indicate success, and it should be used.
Review of attachment 343949 [details] [review]: lgtm Has the reporter tested this by any chance?
(In reply to Marinus Schraal from comment #3) > Review of attachment 343949 [details] [review] [review]: > > lgtm > > Has the reporter tested this by any chance? He was present on the IRC when he reported this. He tested the patch and it was working. PS: I was never able to test it. I tried audios of many sizes but music never crashed for me.
I can't reproduce it either, but it might be a local configuration/gstreamer version issue. But it is never a bad thing to check for the validity of a return value, so nice catch there. Thanks for the patch. I did rewrite the commit msg somewhat.