GNOME Bugzilla – Bug 641330
icydemux: crash while playing MP3 stream in amarok
Last modified: 2011-03-08 15:32:06 UTC
Amarok crashed while playing an MP3 stream from a internet radio. It was just running in background when this happened, and Amarok devs told me to report the bug here. I believe the crash happens when the network is under heavy load, so it may be due to an empty buffer, but it's just a guess, since I don't know GStreamer's codebase. I got another crash under Dragon Player under the same circunstances, but I don't have it's backtrace. If it happens again, I'll upload it too.
Created attachment 179980 [details] Backtrace from Amarok
paste here the attach backtrace Application: Amarok (amarok), signal: Segmentation fault [Current thread is 1 (Thread 0x7fa37c416840 (LWP 2791))]
+ Trace 225829
Thread 6 (Thread 0x7fa337dee700 (LWP 2808))
I wasn't able to reproduce the problem with the streams I tried, but hopefully this should fix it: commit 06972db7b6a55f951833327a659afc76bef6b5c8 Author: Tim-Philipp Müller <tim.muller@collabora.co.uk> Date: Mon Feb 21 00:55:49 2011 +0000 icydemux: fix tag list handling issues that might have caused crashes Fix slightly confused tag handling in some places: make it clear when we're taking ownership of a tag list and when not. For example, gst_icydemux_tag_found() was taking ownership when the source pad existed, but otherwise not (leak). Also, gst_event_parse_tag() does not return a newly-allocated taglist, but a tag list that belongs to the tag event, so don't give ownership of it away. While we're at it, some minor clean-ups: don't re-invent g_strndup() and simplify gst_icydemux_parse_and_send_tags() a bit, and don't leak the tag list in case no valid tags where found. https://bugzilla.gnome.org/show_bug.cgi?id=641330 If you have some particular radio stations/streams this happens with, it would be great if you could give me the URL (or make a GST_DEBUG=*:5 debug log).
Thanks for your effort on fixing it. The problem is a bit hard to reproduce. It usually happens once or twice a day. Can you give me more precise instructions on how to get that debug log? Would "export GST_DEBUG=*:5" before running the audio app give me it? The stream url is http://listen.di.fm/public3/eurodance.pls, but I didn't really tested with another streams to see if the problem happens too.
I think I have a similar problem. It was triggered by disconnecting the Internet while playing a stream but it didn't happen all the time. Sometimes you just got a Gstreamer error message with a html message. But I was able to reproduce the crash several times through initiating suspend while Amarok was playing an Internet stream. I seems that you have to wait quite some time during suspend because in my case the computer was sleeping overnight and the crash didn't happen after a short suspend. I am going to check if your patch helps in this case.