[gst-devel] Discoverer (gst-python) crashes

Edward Hervey bilboed at gmail.com
Fri Jun 22 09:04:05 CEST 2007


Hi,

  If you put 'gobject.threads_init()' just under your 'import gobject'
line, does that solve the issue ?

    Edward

On 6/21/07, Dominique Würtz <dwuertz at gmx.net> wrote:
> Hi!
>
> I recently played around with the Discoverer which ships with
> gst-python, but, while the actual discovery succeeds, my test app often
> crashes when exiting.
>
> import pygst
> pygst.require("0.10")
> from discoverer import Discoverer
> import gobject
>
> def on_discovered(disc, success):
>         print "discovered! rate =", disc.audiorate
>
> disc = Discoverer("test.wav")
> disc.connect("discovered", on_discovered)
> disc.discover()
>
> mainloop = gobject.MainLoop()
> mainloop.run()
>
> IIRC when run with Python 2.4, it gave me mostly
>
> Fatal Python error: GC object already tracked
> Aborted (core dumped)
>
>
> and 2.5 usually resulted in
>
> discovered rate = 44100
> *** glibc detected *** python: double free or corruption (!prev):
> 0x08380600 ***
> ======= Backtrace: =========
> /lib/tls/i686/cmov/libc.so.6[0xb7e677cd]
> /lib/tls/i686/cmov/libc.so.6[0xb7e68f74]
> /lib/tls/i686/cmov/libc.so.6(realloc+0xfe)[0xb7e6b08e]
> python(_PyObject_GC_Resize+0x33)[0x80f2753]
> python(PyFrame_New+0x288)[0x8111628]
> python(PyEval_EvalCodeEx+0x69)[0x80c9659]
> python[0x8111fc1]
> python(PyObject_Call+0x27)[0x805c787]
> python(PyEval_CallObjectWithKeywords+0x6c)[0x80c1f7c]
> python(PyErr_PrintEx+0xbe)[0x80e8ace]
> python(PyRun_SimpleFileExFlags+0xe3)[0x80e93c3]
> python(Py_Main+0x9c0)[0x8059330]
> python(main+0x22)[0x8058862]
> /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xdc)[0xb7e15ebc]
> python[0x80587b1]
> ======= Memory map: ========
> 08048000-0813f000 r-xp 00000000 08:02 564215     /usr/bin/python2.5
> 0813f000-08164000 rw-p 000f6000 08:02 564215     /usr/bin/python2.5
> 08164000-083a7000 rw-p 08164000 00:00 0          [heap]
> b6700000-b6721000 rw-p b6700000 00:00 0
> b6721000-b6800000 ---p b6721000 00:00 0
> b6816000-b6821000 r-xp 00000000 08:02 321984     /lib/libgcc_s.so.1
> b6821000-b6822000 rw-p 0000a000 08:02 321984     /lib/libgcc_s.so.1
> b6822000-b6823000 ---p b6822000 00:00 0
> b6823000-b7023000 rw-p b6823000 00:00 0
> b7023000-b7024000 ---p b7023000 00:00 0
> b7024000-b7824000 rw-p b7024000 00:00 0
> b7824000-b783c000 r-xp 00000000 08:02 233185
> /usr/lib/libgstaudio-0.10.so.0.9.0
> b783c000-b783d000 rw-p 00018000 08:02 233185
> /usr/lib/libgstaudio-0.10.so.0.9.0
> b783d000-b7847000 r-xp 00000000 08:02 233205
> /usr/lib/libgstriff-0.10.so.0.9.0
> b7847000-b7848000 rw-p 00009000 08:02 233205
> /usr/lib/libgstriff-0.10.so.0.9.0
> b7856000-b7860000 r-xp 00000000 08:02 161039
> /usr/lib/gstreamer-0.10/libgstwavparse.so
> b7860000-b7861000 rw-p 0000a000 08:02 161039
> /usr/lib/gstreamer-0.10/libgstwavparse.so
> b7861000-b786a000 r-xp 00000000 08:02 233200
> /usr/lib/libgstpbutils-0.10.so.0.9.0
> b786a000-b786b000 rw-p 00009000 08:02 233200
> /usr/lib/libgstpbutils-0.10.so.0.9.0
> b786c000-b7877000 r-xp 00000000 08:02 164099
> /usr/lib/gstreamer-0.10/libgsttypefindfunctions.so
> b7877000-b7879000 rw-p 0000a000 08:02 164099
> /usr/lib/gstreamer-0.10/libgsttypefindfunctions.so
> b7879000-b789f000 r-xp 00000000 08:02 160992
> /usr/lib/gstreamer-0.10/libgstcoreelements.so
> b789f000-b78a1000 rw-p 00025000 08:02 160992
> /usr/lib/gstreamer-0.10/libgstcoreelements.so
> b78a1000-b78a8000 r-xp 00000000 08:02 233176
> /usr/lib/libgstinterfaces-0.10.so.0.9.0
> b78a8000-b78a9000 rw-p 00007000 08:02 233176
> /usr/lib/libgstinterfaces-0.10.so.0.9.0
> b78a9000-b78b3000 r-xp 00000000 08:02 98420
> /usr/lib/python2.5/site-packages/gst-0.10/gst/interfaces.so
> b78b3000-b78b5000 rw-p 00009000 08:02 98420
> /usr/lib/python2.5/site-packages/gst-0.10/gst/interfaces.so
> b78b5000-b78be000 r-xp 00000000 08:02 355098
> /lib/tls/i686/cmov/libnss_files-2.5.so
> b78be000-b78c0000 rw-p 00008000 08:02 355098
> /lib/tls/i686/cmov/libnss_files-2.5.so
> b78c0000-b78c8000 r-xp 00000000 08:02 355102
> /lib/tls/i686/cmov/libnss_nis-2.5.so
> b78c8000-b78ca000 rw-p 00007000 08:02 355102
> /lib/tls/i686/cmov/libnss_nis-2.5.so
> b78ca000-b78dd000 r-xp 00000000 08:02 355092
> /lib/tls/i686/cmov/libnsl-2.5.so
> b78dd000-b78df000 rw-p 00012000 08:02 355092
> /lib/tls/i686/cmov/libnsl-2.5.so
> b78df000-b78e1000 rw-p b78df000 00:00 0
> b78e1000-b78e8000 r-xp 00000000 08:02 355094
> /lib/tls/i686/cmov/libnss_compat-2.5.so
> b78e8000-b78ea000 rw-p 00006000 08:02 355094
> /lib/tls/i686/cmov/libnss_compat-2.5.so
> b78ee000-b78ef000 rw-p b78ee000 00:00 0
> b78ef000-b78f7000 r-xp 00000000 08:02 164088
> /usr/lib/gstreamer-0.10/libgstdecodebin.so
> b78f7000-b78f8000 rw-p 00007000 08:02 164088
> /usr/lib/gstreamer-0.10/libgstdecodebin.so
> b78f8000-b78fd000 r--p 00000000 08:02 258381
> /usr/share/locale-langpack/de/LC_MESSAGES/gstreamer-0.10.mo
> b78fd000-b79d4000 r--p 00000000 08:02 32949
> /usr/lib/locale/de_DE.utf8/LC_COLLATE
> b79d4000-b79e7000 r-xp 00000000 08:02 565389     /usr/lib/libz.so.1.2.3
> b79e7000-b79e8000 rw-p Aborted (core dumped)
>
>
> Should I file a bug about this? Any ideas how I could track down the
> cause of this? I want to stress that the crashes don't happen always,
> but are absolutely indeterministic. For the record, the test.wav file
> plays perfectly in Totem or Rhythmbox.
>
> Regards,
>
> Dominique
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>


-- 
Edward Hervey
Multimedia editing developer / Fluendo S.A.
http://www.pitivi.org/


More information about the gstreamer-devel mailing list