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 561678 - gstreamer crashes when playing multiple mid files at the same time when using wildmidi plugin.
gstreamer crashes when playing multiple mid files at the same time when using...
Status: RESOLVED NOTGNOME
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
0.10.18
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-11-20 13:34 UTC by James Su
Modified: 2010-07-08 01:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Test program to reproduce this issue. (1.01 KB, text/x-csrc)
2008-11-20 13:35 UTC, James Su
Details
test midi file. (3.19 KB, audio/midi)
2008-11-20 13:36 UTC, James Su
Details

Description James Su 2008-11-20 13:34:57 UTC
Operating system: Ubuntu 8.04

I'm developing an application based on gstreamer, which may play multiple mid files at the same time. But when using wildmidi plugin, gstreamer always crashes. Following is the backtrace:

  • #0 malloc_consolidate
    from /lib/libc.so.6
  • #1 _int_malloc
    from /lib/libc.so.6
  • #2 malloc
    from /lib/libc.so.6
  • #3 WM_ParseNewMidi
    at wildmidi_lib.c line 3631
  • #4 WildMidi_OpenBuffer
    at wildmidi_lib.c line 3891
  • #5 ??
    from /usr/lib/gstreamer-0.10/libgstwildmidi.so
  • #6 gst_task_func
    at gsttask.c line 192
  • #7 ??
    from /usr/lib/libglib-2.0.so.0
  • #8 ??
    from /usr/lib/libglib-2.0.so.0
  • #9 start_thread
    from /lib/libpthread.so.0
  • #10 clone
    from /lib/libc.so.6
  • #11 ??

Comment 1 James Su 2008-11-20 13:35:37 UTC
Created attachment 123107 [details]
Test program to reproduce this issue.
Comment 2 James Su 2008-11-20 13:36:00 UTC
Created attachment 123108 [details]
test midi file.
Comment 3 Sebastian Dröge (slomo) 2008-11-24 10:48:15 UTC
This is a bug in wildmidi as it doesn't support playback of more than one file at the same time in the same process (yet) :(
Comment 4 Stefan Sauer (gstreamer, gtkdoc dev) 2008-11-28 13:25:35 UTC
hmm, for me this works just fine.

gst-launch-0.10 playbin2 uri=file://$PWD/Depeche_Mode_-_Everything_Counts.mid  playbin2 uri=file://$PWD/Depeche_Mode_-_Enjoy_the_Silence.mid

same for playbin.
Comment 5 André Dieb Martins 2010-07-07 04:49:04 UTC
Hello,

I have talked to the maintainer of wildmidi and it seems the problem is solved on the newer version (0.2.3.1).

There were some API breaks on this version, so a few lines had to be changed on the plugin. I proposed a patch for porting gstreamer's plugin to the new version:

https://bugzilla.gnome.org/show_bug.cgi?id=623722


I have tested the following pipeline:

gst-launch playbin2 uri="file:///$pwd/file1.midi" playbin2 uri="file:///$pwd/file2.midi"

and from my tests I can confirm 0.2.2 gives a segmentation fault and 0.2.3.1 doesn't, thus playing both streams simultaneously.
Comment 6 Stefan Sauer (gstreamer, gtkdoc dev) 2010-07-07 06:27:45 UTC
The problem with 0.2.3 is that it changed the license from LGPL2 to GPL3 :/ I had already sent an email to the author but got no reply, although I can good interaction with him before. Please others talk to him as well.
Comment 7 Sebastian Dröge (slomo) 2010-07-07 17:09:58 UTC
Only the player is GPLv3, the library is LGPLv3 (and the docs are CC Attribution Share Alike Non-Commercial 3.0). No problem here
Comment 8 Chris Ison 2010-07-08 01:17:15 UTC
As developer of WildMIDI, I can confirm that as stated in the source files, the library is LGPLv3. The manpages are now CC Attribution Share Alike 3.0 as the non-commercial license created issues with different linux dists.

Latest version is 0.2.3.2.