Hanging when creating path.

Detlev Casanova detlev.casanova at gmail.com
Wed Aug 6 23:21:31 CEST 2008


Hello, when trying to play ogg/vorbis with phonon (by giving a file name or, 
in this case, a QBuffer to MediaStream), the application just stops and 
nothing is played.

 * Bunch of code :

        file = new QFile("/home/detlev/Musique/commercial-v4.ogg");
        file->open(QIODevice::ReadOnly);
        data = file->readAll();
        buf = new QBuffer(&data);
        mediaSource = new Phonon::MediaSource(buf);

        mediaObject = new Phonon::MediaObject(this);
        mediaObject->setCurrentSource(*mediaSource);

        audioOutput = new Phonon::AudioOutput(Phonon::MusicCategory, this);

        Phonon::Path path = Phonon::createPath(mediaObject, audioOutput);


 * Printed on the screen :

kde4 at naboo ~/src/labs $ ./phononlab
PhononLab(8871) KLocalePrivate::initEncoding: Cannot resolve system encoding, 
defaulting to ISO 8859-1.
PhononLab(8871)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open 
ksycoca from  "/var/tmp/kdecache-kde4/ksycoca4"
PhononLab(8871)/phonon (xine backend) 
Phonon::Xine::XineEngineData::XineEngineData: setting xine verbosity to 0
PhononLab(8871)/phonon (xine backend) Phonon::Xine::Backend::Backend: Using 
Xine version  1.1.13
PhononLab(8871) Phonon::KdePlatformPlugin::createBackend: using 
backend:  "Xine"
PhononLab(8871)/phonon (xine backend) 
Phonon::Xine::XineStream::setMrl: "kbytestream:/ÐÌh
PhononLab(8871)/phonon (xine backend) Phonon::Xine::XineStream::event: 
################################ Event:  TransitionTypeChanged
PhononLab(8871)/phonon (xine backend) Phonon::Xine::XineStream::event: 
################################ Event:  SetTickInterval
PhononLab(8871)/phonon (xine backend) Phonon::Xine::XineStream::event: 
################################ Event:  SetPrefinishMark
PhononLab(8871)/phonon (xine backend) Phonon::Xine::XineStream::event: 
################################ Event:  MrlChanged
PhononLab(8871)/phonon (xine backend) Phonon::Xine::XineStream::createStream: 
MediaObject is connected to  0  nodes
PhononLab(8871)/phonon (xine backend) Phonon::Xine::XineStream::createStream: 
creating xine_stream with null audio port
PhononLab(8871)/phonon (xine backend) Phonon::Xine::XineStream::createStream: 
creating xine_stream with null video port
PhononLab(8871)/phonon (xine backend) Phonon::Xine::XineStream::createStream: 
XINE_PARAM_EARLY_FINISHED_EVENT: 1
PhononLab(8871)/phonon (xine backend) Phonon::Xine::XineStream::event: calling 
xineOpen from MrlChanged
PhononLab(8871)/phonon (audiodevicelist) 
Phonon::AudioDeviceEnumerator::availablePlaybackDevices: (
- "HDA Intel (ATI HDMI)" 0 ("x-phonon:CARD=0,DEV=3", "plughw:CARD=0,DEV=3") 
index: 1 preference: 35 avail: true advanced: true  ,
- "HDA Intel (STAC92xx Analog)" 0 
("x-phonon:CARD=0,DEV=0", "plughw:CARD=0,DEV=0") index: 2 preference: 36 
avail: true advanced: false  ,
- "HDA Intel, STAC92xx Analog (Front speakers)" 0 ("front:CARD=Intel,DEV=0") 
index: 3 preference: 30 avail: true advanced: true  ,
- "HDA Intel, ATI HDMI (HDMI Audio Output)" 0 ("hdmi:CARD=Intel,DEV=0") index: 
5 preference: 30 avail: true advanced: false  )
PhononLab(8871)/phonon (xine backend) 
Phonon::Xine::Backend::checkAudioOutputs: isEmpty
PhononLab(8871)/phonon (xine backend) kbytestream_class_get_instance:
PhononLab(8871)/phonon (xine backend) kbytestream_plugin_open:
PhononLab(8871)/phonon (xine backend) Phonon::Xine::ByteStream::reset: first 
reset
PhononLab(8871)/phonon (xine backend) 
Phonon::Xine::Backend::checkAudioOutputs: outputPlugin:  alsa
PhononLab(8871)/phonon (xine backend) 
Phonon::Xine::Backend::checkAudioOutputs: outputPlugin:  arts
PhononLab(8871)/phonon (xine backend) 
Phonon::Xine::Backend::checkAudioOutputs: outputPlugin:  file
PhononLab(8871)/phonon (xine backend) 
Phonon::Xine::Backend::checkAudioOutputs: outputPlugin:  none
PhononLab(8871)/phonon (xine backend) 
Phonon::Xine::Backend::checkAudioOutputs: 10000 "aRts" "arts"
PhononLab(8871)/phonon (xine backend) 
Phonon::Xine::Backend::audioOutputIndexes: Phonon::Xine::Backend(0x6f8180) 1
PhononLab(8871)/phonon (xine backend) Phonon::Xine::Backend::connectNodes:
PhononLab(8871)/phonon (xine backend) Phonon::Xine::Backend::connectNodes: 
0x6f1d10 -> AudioOutput(0x6f4bc0)

 * Then, nothing happens

 * Debugging informations :

(gdb) info threads
  8 Thread 0x417a8950 (LWP 8888)  0x00007f96ae4fb897 in 
pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
  7 Thread 0x4257f950 (LWP 8889)  0x00007f96ae4fb6a6 in 
pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
  6 Thread 0x42d80950 (LWP 8890)  0x00007f96ae4fb6a6 in 
pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
  5 Thread 0x43581950 (LWP 8891)  0x00007f96ae7c60c2 in select () 
from /lib/libc.so.6
  4 Thread 0x43d82950 (LWP 8892)  0x00007f96ae4fb6a6 in 
pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
  3 Thread 0x44583950 (LWP 8893)  0x00007f96ae4fb6a6 in 
pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
  2 Thread 0x44d84950 (LWP 8894)  0x00007f96ae4fb6a6 in 
pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
  1 Thread 0x7f96b066f700 (LWP 8871)  0x00007f96ae4fd888 in 
__lll_mutex_lock_wait () from /lib/libpthread.so.0
(gdb)

  * Thread 1 :

#0  0x00007f96ae4fd888 in __lll_mutex_lock_wait () from /lib/libpthread.so.0
#1  0x00007f96ae4f99cb in _L_mutex_lock_51 () from /lib/libpthread.so.0
#2  0x00007f96ae4f9323 in pthread_mutex_lock () from /lib/libpthread.so.0
#3  0x00007f96a6f493b0 in xine_open_audio_driver () from /usr/lib/libxine.so.1
#4  0x00007f96a71a92f1 in Phonon::Xine::AudioOutput::createPort 
(this=0x6f2ce0, deviceDesc=@0x6f2d20) 
at /home/kde4/src/kdebase/runtime/phonon/xine/audiooutput.cpp:124
#5  0x00007f96a71a97c6 in Phonon::Xine::AudioOutput::xineEngineChanged 
(this=0x6f2ce0) 
at /home/kde4/src/kdebase/runtime/phonon/xine/audiooutput.cpp:208
#6  0x00007f96a7194e0b in Phonon::Xine::SinkNode::downstreamEvent 
(this=0x6f2cf0, e=0x645fc0) 
at /home/kde4/src/kdebase/runtime/phonon/xine/sinknode.cpp:139
#7  0x00007f96a71a8f3e in Phonon::Xine::AudioOutput::downstreamEvent 
(this=0x6f2ce0, e=0x645fc0) 
at /home/kde4/src/kdebase/runtime/phonon/xine/audiooutput.cpp:240
#8  0x00007f96a7196548 in Phonon::Xine::SourceNode::downstreamEvent 
(this=0x6f5bd0, e=0x645fc0) 
at /home/kde4/src/kdebase/runtime/phonon/xine/sourcenode.cpp:110
#9  0x00007f96a71ab9c7 in Phonon::Xine::MediaObject::downstreamEvent 
(this=0x6f5bb0, e=0x645fc0) 
at /home/kde4/src/kdebase/runtime/phonon/xine/mediaobject.cpp:688
#10 0x00007f96a71abb57 in Phonon::Xine::MediaObject::upstreamEvent 
(this=0x6f5bb0, e=0x98e060) 
at /home/kde4/src/kdebase/runtime/phonon/xine/mediaobject.cpp:663
#11 0x00007f96a719503e in Phonon::Xine::SinkNode::upstreamEvent 
(this=0x6f2cf0, e=0x98e060) 
at /home/kde4/src/kdebase/runtime/phonon/xine/sinknode.cpp:89
#12 0x00007f96a7194fcf in Phonon::Xine::SinkNode::findXineEngine 
(this=0x6f2cf0) 
at /home/kde4/src/kdebase/runtime/phonon/xine/sinknode.cpp:102
#13 0x00007f96a71b3412 in Phonon::Xine::Backend::endConnectionChange 
(this=0x6f8180, nodes=@0x7fffb86a2100) 
at /home/kde4/src/kdebase/runtime/phonon/xine/backend.cpp:466
#14 0x00007f96b0257736 in ~ConnectionTransaction (this=0x7fffb86a21f0) 
at /home/kde4/src/kdesupport/phonon/phonon/path.cpp:46
#15 0x00007f96b025440b in Phonon::PathPrivate::executeTransaction 
(this=0x9919e0, disconnections=@0x7fffb86a2390, connections=@0x7fffb86a2380)
    at /home/kde4/src/kdesupport/phonon/phonon/path.cpp:339
#16 0x00007f96b0255295 in Phonon::Path::reconnect (this=0x7fffb86a2580, 
source=0x67d310, sink=0x6f3530) 
at /home/kde4/src/kdesupport/phonon/phonon/path.cpp:197
#17 0x00007f96b02554e2 in Phonon::createPath (source=0x67d310, sink=0x6f3530) 
at /home/kde4/src/kdesupport/phonon/phonon/path.cpp:420
#18 0x00000000004022a6 in PhononLab::PhononLab ()
#19 0x0000000000401d7e in main ()

  * Thread 2 :

#0  0x00007f96ae4fb6a6 in pthread_cond_wait@@GLIBC_2.3.2 () 
from /lib/libpthread.so.0
#1  0x00007f96a6f5433b in xine_event_wait () from /usr/lib/libxine.so.1
#2  0x00007f96a6f543b5 in ?? () from /usr/lib/libxine.so.1
#3  0x00007f96ae4f7047 in start_thread () from /lib/libpthread.so.0
#4  0x00007f96ae7cc28d in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

  * Thread 3 :

#0  0x00007f96ae4fb6a6 in pthread_cond_wait@@GLIBC_2.3.2 () 
from /lib/libpthread.so.0
#1  0x00007f96a6f46212 in ?? () from /usr/lib/libxine.so.1
#2  0x00007f96a6f4c5b4 in ?? () from /usr/lib/libxine.so.1
#3  0x00007f96ae4f7047 in start_thread () from /lib/libpthread.so.0
#4  0x00007f96ae7cc28d in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

  * Thread 4 :

#0  0x00007f96ae4fb6a6 in pthread_cond_wait@@GLIBC_2.3.2 () 
from /lib/libpthread.so.0
#1  0x00007f96a6f46212 in ?? () from /usr/lib/libxine.so.1
#2  0x00007f96a6f4b719 in ?? () from /usr/lib/libxine.so.1
#3  0x00007f96ae4f7047 in start_thread () from /lib/libpthread.so.0
#4  0x00007f96ae7cc28d in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

  * Thread 5 : 

#0  0x00007f96ae7c60c2 in select () from /lib/libc.so.6
#1  0x00007f96a6f65d24 in xine_usec_sleep () from /usr/lib/libxine.so.1
#2  0x00007f96a6f4f050 in ?? () from /usr/lib/libxine.so.1
#3  0x00007f96ae4f7047 in start_thread () from /lib/libpthread.so.0
#4  0x00007f96ae7cc28d in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

  * Thread 6 :

#0  0x00007f96ae4fb6a6 in pthread_cond_wait@@GLIBC_2.3.2 () 
from /lib/libpthread.so.0
#1  0x00007f96a6f505cd in ?? () from /usr/lib/libxine.so.1
#2  0x00007f96a6f5140a in ?? () from /usr/lib/libxine.so.1
#3  0x00007f96ae4f7047 in start_thread () from /lib/libpthread.so.0
#4  0x00007f96ae7cc28d in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

  * Thread 7 :

#0  0x00007f96ae4fb6a6 in pthread_cond_wait@@GLIBC_2.3.2 () 
from /lib/libpthread.so.0
#1  0x00007f96af24b15b in QWaitConditionPrivate::wait (this=0x6f3760, 
time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  0x00007f96af24acbb in QWaitCondition::wait (this=0x68cd28, mutex=0x68cd08, 
time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f96a71be792 in Phonon::Xine::ByteStream::readFromBuffer 
(this=0x68ccd0, buf=0x7f969c483230, count=1024)
    at /home/kde4/src/kdebase/runtime/phonon/xine/bytestream.cpp:206
#4  0x00007f96a71bf8fb in kbytestream_plugin_read (this_gen=0x7f969c481dd0, 
buf=0x7f969c483230 "", len=1024)
    at /home/kde4/src/kdebase/runtime/phonon/xine/bytestreamplugin.cpp:105
#5  0x00007f96a6f5e8f5 in ?? () from /usr/lib/libxine.so.1
#6  0x00007f96a6f57aed in _x_demux_read_header () from /usr/lib/libxine.so.1
#7  0x00007f969ba77160 in ?? () 
from /usr/lib64/xine/plugins/1.22/xineplug_dmx_ogg.so
#8  0x00007f969ba772d1 in ?? () 
from /usr/lib64/xine/plugins/1.22/xineplug_dmx_ogg.so
#9  0x00007f96a6f49692 in ?? () from /usr/lib/libxine.so.1
#10 0x00007f96a6f411e3 in xine_open () from /usr/lib/libxine.so.1
#11 0x00007f96a719c073 in Phonon::Xine::XineStream::xineOpen (this=0x6f1d00, 
newstate=Phonon::StoppedState)
    at /home/kde4/src/kdebase/runtime/phonon/xine/xinestream.cpp:263
#12 0x00007f96a719fc1e in Phonon::Xine::XineStream::event (this=0x6f1d00, 
ev=0x6f7aa0) 
at /home/kde4/src/kdebase/runtime/phonon/xine/xinestream.cpp:1067
#13 0x00007f96af810975 in QApplicationPrivate::notify_helper (this=0x6056d0, 
receiver=0x6f1d00, e=0x6f7aa0) at kernel/qapplication.cpp:3800
#14 0x00007f96af810c97 in QApplication::notify (this=0x7fffb86a2610, 
receiver=0x6f1d00, e=0x6f7aa0) at kernel/qapplication.cpp:3392
#15 0x00007f96af335ad0 in QCoreApplication::notifyInternal 
(this=0x7fffb86a2610, receiver=0x6f1d00, event=0x6f7aa0) at 
kernel/qcoreapplication.cpp:587
#16 0x00007f96af33939f in QCoreApplication::sendEvent (receiver=0x6f1d00, 
event=0x6f7aa0) 
at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#17 0x00007f96af336085 in QCoreApplicationPrivate::sendPostedEvents 
(receiver=0x0, event_type=0, data=0x6f6330) at 
kernel/qcoreapplication.cpp:1199
#18 0x00007f96af33624e in QCoreApplication::sendPostedEvents (receiver=0x0, 
event_type=0) at kernel/qcoreapplication.cpp:1095
#19 0x00007f96af3643b5 in QCoreApplication::sendPostedEvents () 
at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#20 0x00007f96af3633ed in postEventSourceDispatch (s=0x6f3e00) at 
kernel/qeventdispatcher_glib.cpp:211
#21 0x00007f96ad376192 in g_main_context_dispatch () 
from /usr/lib/libglib-2.0.so.0
#22 0x00007f96ad379417 in ?? () from /usr/lib/libglib-2.0.so.0
#23 0x00007f96ad37991f in g_main_context_iteration () 
from /usr/lib/libglib-2.0.so.0
#24 0x00007f96af362a3e in QEventDispatcherGlib::processEvents (this=0x6f8310, 
flags=@0x4257ef10) at kernel/qeventdispatcher_glib.cpp:325
#25 0x00007f96af332a64 in QEventLoop::processEvents (this=0x4257efc0, 
flags=@0x4257ef70) at kernel/qeventloop.cpp:149
#26 0x00007f96af332c5f in QEventLoop::exec (this=0x4257efc0, 
flags=@0x4257efd0) at kernel/qeventloop.cpp:196
#27 0x00007f96af246dd2 in QThread::exec (this=0x6f1b90) at 
thread/qthread.cpp:464
#28 0x00007f96a7197cca in Phonon::Xine::XineThread::run (this=0x6f1b90) 
at /home/kde4/src/kdebase/runtime/phonon/xine/xinethread.cpp:141
#29 0x00007f96af24a956 in QThreadPrivate::start (arg=0x6f1b90) at 
thread/qthread_unix.cpp:190
#30 0x00007f96ae4f7047 in start_thread () from /lib/libpthread.so.0
#31 0x00007f96ae7cc28d in clone () from /lib/libc.so.6
#32 0x0000000000000000 in ?? ()

  * Thread 8 :

#0  0x00007f96ae4fb897 in pthread_cond_timedwait@@GLIBC_2.3.2 () 
from /lib/libpthread.so.0
#1  0x00007f96a6f43385 in ?? () from /usr/lib/libxine.so.1
#2  0x00007f96ae4f7047 in start_thread () from /lib/libpthread.so.0
#3  0x00007f96ae7cc28d in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()


Using Xine lib 1.1.13 under Gentoo with this useflags : "X a52 alsa arts dts 
dvd flac ipv6 mad modplug musepack nls opengl real samba sdl speex theora v4l 
vcd vorbis xcb xv"
Using libtheora 1.0_beta2-r1
Kde from svn trunk (r843264)
Qt from qt-copy
GCC version : gcc (GCC) 4.1.2 (Gentoo 4.1.2 p1.0.2)


Cheers,
Detlev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/phonon-backends/attachments/20080806/1d08cf5a/attachment.pgp 


More information about the Phonon-backends mailing list