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 159295 - [mikmod/modplug] amiga.mod file segfault totem
[mikmod/modplug] amiga.mod file segfault totem
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins
git master
Other Linux
: Normal normal
: 0.8.8
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-11-24 12:38 UTC by Christian Fredrik Kalager Schaller
Modified: 2005-01-28 14:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
mikmod crash trace (8.15 KB, text/plain)
2004-12-02 11:27 UTC, Christian Fredrik Kalager Schaller
Details
mikmod debug output (255.33 KB, text/plain)
2004-12-02 11:28 UTC, Christian Fredrik Kalager Schaller
Details
modplug debug output (42.41 KB, text/plain)
2004-12-02 11:28 UTC, Christian Fredrik Kalager Schaller
Details

Description Christian Fredrik Kalager Schaller 2004-11-24 12:38:50 UTC
Playing the amiga.mod file from gstreamer testsuite cause totem to segfault
Comment 1 Ronald Bultje 2004-12-01 17:37:34 UTC
Please provide a backtrace - not reproduceable.
Comment 2 Christian Fredrik Kalager Schaller 2004-12-01 19:19:43 UTC
It do not crash now with current CVS. But it still do not play and on the
console I get the following:
(totem:31366): GStreamer-WARNING **: element internal_thread claimed
state-change success,but state didn't change to PLAYING. State is PAUSED
(NONE_PENDING pending), fix the element
Comment 3 Ronald Bultje 2004-12-01 20:13:11 UTC
It might be using another mod player for you than for me (since we have 2).
Which one does it use? Can you attach a --gst-debug=decodebin:5 log?
Comment 4 Christian Fredrik Kalager Schaller 2004-12-02 10:37:50 UTC
I only have modplug installed. I get mikmod going and re-test with that.
Comment 5 Christian Fredrik Kalager Schaller 2004-12-02 11:26:54 UTC
Ok, tried removing the modplug plugin. When running just 'totem amiga.mod' totem
segfaults. When running with --gst-debug then it sometimes crash and sometime
give me an error message saying that it failed to play; reason unknown.
Attaching both tracefile for the segfault and a log file for the reason unknown
problem.

With modplug I am getting the error 
(totem:14983): GStreamer-WARNING **: element internal_thread claimed
state-change success,but state didn't change to PLAYING. State is PAUSED
(NONE_PENDING pending), fix the element when just running plainly and a 'failed
to play;reason unknown' popping up in the console.
Same when with debug on, attaching log for that.


Comment 6 Christian Fredrik Kalager Schaller 2004-12-02 11:27:30 UTC
Created attachment 34396 [details]
mikmod crash trace
Comment 7 Christian Fredrik Kalager Schaller 2004-12-02 11:28:18 UTC
Created attachment 34397 [details]
mikmod debug output
Comment 8 Christian Fredrik Kalager Schaller 2004-12-02 11:28:45 UTC
Created attachment 34398 [details]
modplug debug output
Comment 9 Christian Fredrik Kalager Schaller 2004-12-07 15:13:25 UTC
Reopening this as I provided lots of debug files
Comment 10 Ronald Bultje 2004-12-07 15:23:32 UTC
You're saying that mikmod segfaults. The line number that you give is an
g_assert(), though. Are you sure it didn't crash on a failed assertion? Please
be very accurate on those things, they make a large difference.
Comment 11 Christian Fredrik Kalager Schaller 2004-12-07 15:58:24 UTC
Mikmod don't segfault anymore, doesn't play either just spews out a lot of:
(totem:13978): GStreamer-WARNING **: element internal_thread claimed
state-change success,but state didn't change to PLAYING. State is PAUSED
(NONE_PENDING pending), fix the element

So it seems modplug and mikmod are giving me the identical behaviour now.
Comment 12 Christian Fredrik Kalager Schaller 2005-01-28 11:57:09 UTC
Current CVS gives me this behaviour:

[cschalle@cschalle small]$ gst-launch playbin
uri=file:///home/cschalle/media/small/amiga.mod
RUNNING pipeline ...

** (process:23959): WARNING **: could not link audio/x-raw-int,
signed=(boolean)false, width=(int)8, depth=(int)8, rate=(int)44100, channels=(int)2
Waiting for the state change...
Comment 13 Ronald Bultje 2005-01-28 12:37:18 UTC
That was a mistake of mine in gst-ffmpeg, fixed in CVS. Please try again.
Comment 14 Ronald Bultje 2005-01-28 14:00:01 UTC
I think I've fixed the initial bug, too. The problem (...) was that modplug has
various allowed caps, and we were renegotiating inside the chain function, when
a format has already been selected. That caused invalid fixation. I've fixed
that by narrowing down allowed caps when renegotiating from within the chain
function in the stream selector. With that change, I can no longer reproduce it.
Please reopen if you still see it.