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 448948 - jukebox.py doesn't work anymore
jukebox.py doesn't work anymore
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-python
git master
Other Linux
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-06-18 23:13 UTC by Thomas Vander Stichele
Modified: 2011-10-29 15:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
output (350.46 KB, application/x-bzip2)
2007-06-18 23:14 UTC, Thomas Vander Stichele
Details

Description Thomas Vander Stichele 2007-06-18 23:13:35 UTC
Edward ported it to 0.10 at some point and it worked then.

When I try it now I get:

parsing output pipeline alsasink
Going into main loop
(long pause)
prerolled
setting pipeline to PLAYING
set pipeline to PLAYING
Segmentation fault
[root@davedina ~]# 

or sometimes

I get assertion failures on pads.

After updating gstreamer core and -python so that I would have debug symbols, I get this backtrace:

(gdb) bt
  • #0 visit_decref
    at Modules/gcmodule.c line 269
  • #1 frame_traverse
    at Objects/frameobject.c line 429
  • #2 collect
    at Modules/gcmodule.c line 294
  • #3 _PyObject_GC_Malloc
    at Modules/gcmodule.c line 872
  • #4 _PyObject_GC_New
    at Modules/gcmodule.c line 1273
  • #5 list_iter
    at Objects/listobject.c line 2725
  • #6 PyObject_GetIter
    at Objects/abstract.c line 2228
  • #7 builtin_zip
    at Python/bltinmodule.c line 2045
  • #8 PyEval_EvalFrame
    at Python/ceval.c line 3568
  • #9 PyEval_EvalCodeEx
    at Python/ceval.c line 2741
  • #10 function_call
    at Objects/funcobject.c line 548
  • #11 PyObject_Call
  • #12 instancemethod_call
    at Objects/classobject.c line 2532
  • #13 PyObject_Call
    at Objects/abstract.c line 1795
  • #14 PyEval_CallObjectWithKeywords
    at Python/ceval.c line 3435
  • #15 pygst_exceptions_register_classes
    from /usr/lib64/python2.4/site-packages/gst-0.10/gst/_gst.so
  • #16 bin_bus_handler
    at gstbin.c line 2409
  • #17 gst_bus_post
    at gstbus.c line 349
  • #18 gst_element_post_message
    at gstelement.c line 1512
  • #19 gst_level_transform_ip
    at gstlevel.c line 568
  • #20 gst_base_transform_handle_buffer
    at gstbasetransform.c line 1419
  • #21 gst_base_transform_chain
    at gstbasetransform.c line 1584
  • #22 gst_pad_chain_unchecked
    at gstpad.c line 3451
  • #23 gst_pad_push
    at gstpad.c line 3617
  • #24 gst_pad_chain_unchecked
    at gstpad.c line 3451
  • #25 gst_pad_push
    at gstpad.c line 3617
  • #26 gst_base_transform_chain
    at gstbasetransform.c line 1604
  • #27 gst_pad_chain_unchecked
    at gstpad.c line 3451
  • #28 gst_pad_push
    at gstpad.c line 3617
  • #29 gst_base_transform_chain
    at gstbasetransform.c line 1604
  • #30 gst_pad_chain_unchecked
    at gstpad.c line 3451
  • #31 gst_pad_push
    at gstpad.c line 3617
  • #32 gst_base_transform_chain
    at gstbasetransform.c line 1604
  • #33 gst_pad_chain_unchecked
    at gstpad.c line 3451
  • #34 gst_pad_push
  • #35 gst_base_transform_chain
    at gstbasetransform.c line 1604
  • #36 gst_pad_chain_unchecked
    at gstpad.c line 3451
  • #37 gst_pad_push
    at gstpad.c line 3617
  • #38 gst_pad_chain_unchecked
    at gstpad.c line 3451
  • #39 gst_pad_push
    at gstpad.c line 3617
  • #40 vorbis_dec_decode_buffer
    at vorbisdec.c line 927
  • #41 vorbis_dec_chain
    at vorbisdec.c line 1343
  • #42 gst_pad_chain_unchecked
    at gstpad.c line 3451
  • #43 gst_pad_push
    at gstpad.c line 3617
  • #44 gst_queue_loop
    at gstqueue.c line 935
  • #45 gst_task_func
    at gsttask.c line 192
  • #46 g_thread_pool_thread_proxy
    at gthreadpool.c line 265
  • #47 g_thread_create_proxy
    at gthread.c line 591
  • #48 start_thread
    from /lib64/libpthread.so.0
  • #49 clone
    from /lib64/libc.so.6
  • #50 ??


On this run however, I also got
parsing output pipeline alsasink
Going into main loop

(jukebox.py:23638): GStreamer-WARNING **: adding flushing pad 'src' to running element 'sources+audiosource0'

(jukebox.py:23638): GStreamer-WARNING **: adding flushing pad 'src' to running element 'sources+audiosource1'
prerolled
setting pipeline to PLAYING

(jukebox.py:23638): GStreamer-WARNING **: adding flushing pad 'src' to running element 'sources+audiosource2'

(jukebox.py:23638): GStreamer-WARNING **: adding flushing pad 'src' to running element '__main__+jukebox0'
Segmentation fault (core dumped)

attaching a GST_DEBUG=5 log
Comment 1 Thomas Vander Stichele 2007-06-18 23:14:46 UTC
Created attachment 90245 [details]
output
Comment 2 Marcin Lewandowski 2007-07-10 15:14:54 UTC
marcin@saepia:~/gnonlin/gst-python-0.10.7/gst/extend$ python jukebox.py list2
['/media/dane/Muzyka/Nina Simone/104-nina_simone--black_is_the_color_of_my_true_loves_hair.mp3', '/media/dane/Muzyka/Nina Simone/Nina Simone - I Put A Spell On You.mp3', '/media/dane/Muzyka/Nina Simone/Nina Simone- Sinnerman (The Thomas Crown Affair).mp3', '/media/dane/Muzyka/Nina Simone/Nina_simone--trouble_in_mind.mp3', "/media/dane/Muzyka/Nina Simone/Nina Simone - Ain't Got No - I Got Life.mp3"]
parsing output pipeline alsasink
Going into main loop

(jukebox.py:7430): GStreamer-WARNING **: adding flushing pad 'src' to running element 'sources+audiosource0'

(jukebox.py:7430): GStreamer-WARNING **: adding flushing pad 'src' to running element 'sources+audiosource1'
Segmentation fault (core dumped)

Comment 3 Edward Hervey 2009-03-23 09:33:27 UTC
now that gnlfilesource is fixed, we should get rid of the 'sources' module and do it the 'clean' way.

That is : have a gnlfilesource and a gnloperation (containing volume).
Comment 4 Christian Fredrik Kalager Schaller 2011-05-20 14:06:51 UTC
Just tested the jukebox.py file and it works now, so I am closing this bug.