Re: [Pksampler-devel] pkaudio compile error
Status: Beta
Brought to you by:
patrickkidd
From: cies <cie...@gm...> - 2005-10-11 20:50:19
|
On 10/11/05, Patrick Stinson <pat...@gc...> wrote: > It would be very nice to be able to nail down those server crashes. > I've never seen it crash so much. how clean is your box? i crash it all the time (lets say 1 out 10 runs for a file that works, only some of my mp3s, oggs and wavs seem to work) im using suse 9.3 (regular intel x86 build) and my box is more than clean enough... running everything as root (makes it possible for me to set jack to realtime), yet only one try out of the 50 resulted in some sound, here and exerpt: linux:/home/cies/src/repos/bin # ./pkplay -v -f /home/cies/metniks\ -\ hardcore\ van\ lik\ me\ vesje\!\!\!.mp3 playing /home/cies/metniks - hardcore van lik me vesje!!!.mp3 _default_event_callback sample:loaded 15 linux:/home/cies/src/repos/bin # ./pkplay -v -f /home/cies/metniks\ -\ hardcore\ van\ lik\ me\ vesje\!\!\!.mp3 playing /home/cies/metniks - hardcore van lik me vesje!!!.mp3 pkaudiod Server crashed! (signal 11) linux:/home/cies/src/repos/bin # ./pkplay -v -f /home/cies/metniks\ -\ hardcore\ van\ lik\ me\ vesje\!\!\!.mp3 playing /home/cies/metniks - hardcore van lik me vesje!!!.mp3 _default_event_callback sample:loaded 15 linux:/home/cies/src/repos/bin # linux:/home/cies/src/repos/bin # ./pkplay -v -f /home/cies/metniks\ -\ hardcore\ van\ lik\ me\ vesje\!\!\!.mp3 playing /home/cies/metniks - hardcore van lik me vesje!!!.mp3 pkaudiod Server crashed! (signal 11) linux:/home/cies/src/repos/bin # ./pkplay -v -f /home/cies/metniks\ -\ hardcore\ van\ lik\ me\ vesje\!\!\!.mp3 playing /home/cies/metniks - hardcore van lik me vesje!!!.mp3 _default_event_callback sample:loaded 15 linux:/home/cies/src/repos/bin # ./pkplay -v -f /home/cies/metniks\ -\ hardcore\ van\ lik\ me\ vesje\!\!\!.mp3 playing /home/cies/metniks - hardcore van lik me vesje!!!.mp3 _default_event_callback sample:loaded 15 _c. > On Oct 11, 2005, at 11:46 AM, cies wrote: > > > finally at last... > > > > i jerked a bit of sound out of pkaudio! > > > > there is probably also something with the wavedecoder, since it doesnt > > produced sound for me. > > > > cies@linux:~/src/repos/bin> qjackctl & > > [1] 24422 > > cies@linux:~/src/repos/bin> Warning: no locale found: > > /usr/share/locale/qjackctl_en_US.UTF-8.qm > > > > cies@linux:~/src/repos/bin> ./pkplay -v -f > > /opt/kde3/share/sounds/KDE_Startup.wav > > playing /opt/kde3/share/sounds/KDE_Startup.wav # no sound > > _default_event_callback sample:loaded 15 > > > > cies@linux:~/src/repos/bin> ./pkplay -v -f > > /opt/kde3/share/sounds/KDE_Startup.wav > > playing /opt/kde3/share/sounds/KDE_Startup.wav # no sound > > _default_event_callback sample:loaded 15 > > > > cies@linux:~/src/repos/bin> ./pkplay -v -f /opt/kde3/share/sounds/ > > KDE_Vox_Yo.ogg > > playing /opt/kde3/share/sounds/KDE_Vox_Yo.ogg # FIRST SOUND! > > _default_event_callback sample:loaded 15 > > > > cies@linux:~/src/repos/bin> ./pkplay -v -f /opt/kde3/share/sounds/ > > KDE_Vox_Yo.ogg > > playing /opt/kde3/share/sounds/KDE_Vox_Yo.ogg #HUH?! > > pkaudiod Server crashed! (signal 11) > > detected server crash > > Traceback (most recent call last): > > File "./pkplay", line 34, in ? > > s =3D pk.audio.Sample(fpath) > > File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > > 225, in __init__ > > Module.__init__(self, 'Sample', path) > > File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > > 100, in __init__ > > id =3D core.createModule(mtype, name) > > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 658, > > in createModule > > return _recvULong() > > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 227, > > in _recvULong > > ret =3D _recv() > > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line > > 218, in _recv > > raise ConnectionError('detected server crash') > > pk.audio.core.ConnectionError: detected server crash > > Exception exceptions.AttributeError: <exceptions.AttributeError > > instance at 0x4042ca6c> in <bound method Sample.__del__ of > > <pk.audio.modules.Sample instance at 0x405f40ec>> ignored > > > > cies@linux:~/src/repos/bin> ./pkplay -v -f /opt/kde3/share/sounds/ > > KDE_Vox_Yo.ogg > > playing /opt/kde3/share/sounds/KDE_Vox_Yo.ogg # and now it just works > > again.. strange > > _default_event_callback sample:loaded 15 > > > > cies@linux:~/src/repos/bin> ./pkplay -v -f > > /opt/kde3/share/sounds/KDE_Glass_Break.ogg > > playing /opt/kde3/share/sounds/KDE_Glass_Break.ogg # no sound > > _default_event_callback sample:loaded 15 > > > > cies@linux:~/src/repos/bin> ./pkplay -v -f > > /opt/kde3/share/sounds/KDE_Logout_1.ogg > > playing /opt/kde3/share/sounds/KDE_Logout_1.ogg # sound! > > _default_event_callback sample:loaded 15 > > > > cies@linux:~/src/repos/bin> ./pkplay -v -f > > /opt/kde3/share/sounds/KDE_Logout_1.ogg > > playing /opt/kde3/share/sounds/KDE_Logout_1.ogg # sound! > > _default_event_callback sample:loaded 15 > > > > cies@linux:~/src/repos/bin> ./pkplay -v -f > > /opt/kde3/share/sounds/KDE_Logout_2.ogg > > playing /opt/kde3/share/sounds/KDE_Logout_2.ogg # no sound... > > _default_event_callback sample:loaded 15 > > > > cies@linux:~/src/repos/bin> ./pkplay -v -f > > /opt/kde3/share/sounds/KDE_Logout_2.ogg > > playing /opt/kde3/share/sounds/KDE_Logout_2.ogg # BOOM! > > pkaudiod Server crashed! (signal 11) > > detected server crash > > Traceback (most recent call last): > > File "./pkplay", line 34, in ? > > s =3D pk.audio.Sample(fpath) > > File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > > 225, in __init__ > > Module.__init__(self, 'Sample', path) > > File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > > 100, in __init__ > > id =3D core.createModule(mtype, name) > > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 658, > > in createModule > > return _recvULong() > > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 227, > > in _recvULong > > ret =3D _recv() > > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line > > 218, in _recv > > raise ConnectionError('detected server crash') > > pk.audio.core.ConnectionError: detected server crash > > Exception exceptions.AttributeError: <exceptions.AttributeError > > instance at 0x4042ca6c> in <bound method Sample.__del__ of > > <pk.audio.modules.Sample instance at 0x405f40cc>> ignored > > > > > > maybe it has something to do with the XRUNs issue that i didnt fix > > yet, yet i doubt it... > > > > > > > > i already stared to work a bit on an alternative implementation using > > RtAudio an some Secret Rabbit Code (libsamplerate), but that is on > > hold now. > > > > i much rather use a Qt-style api to do all i need (file loading, > > sample rate conversion, audiodevice handling) and more over c-ish > > nonsense... ohh, and now i can also prototype in python (the language > > that i get paid for to code in -- yet i still suck at it) > > > > i'll write more later, i've got to code a bit now... > > > > _c. > > > > On 10/11/05, Patrick Stinson <pat...@gc...> wrote: > > > >> I have updated pkplay to use pk.options. You might check out that > >> file to learn how to use pk.options. you can also grep the tree for > >> OptionsGroup. > >> > >> On Oct 11, 2005, at 2:59 AM, cies wrote: > >> > >> > >>> hmm... verbose on? pkplay does let me put verbose on. try it and you > >>> see why, it just doesnt let you. > >>> > >>> > >>> > >>> > >>> On 10/10/05, Patrick Stinson <pat...@gc...> wrote: > >>> > >>> > >>>> hmm. I'm not sure what to say for the crashes, unless you debug > >>>> pkaudiod (which you can, btw). > >>>> > >>>> pkplay is the easiest way to play sound. > >>>> > >>>> again, try running everything with verbose on. start_server() has > >>>> that option, and pkplay should too. look at the pthon code for api > >>>> references. > >>>> > >>>> > >>>> On Oct 10, 2005, at 4:23 PM, cies wrote: > >>>> > >>>> > >>>> > >>>>> On 10/10/05, Patrick Stinson <pat...@gc...> wrote: > >>>>> > >>>>> > >>>>> > >>>>>> > >>>>>> On Oct 10, 2005, at 3:56 PM, cies wrote: > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>>> On 10/10/05, Patrick Stinson <pat...@gc...> wrote: > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>>> did you start the jack server? I use qjackctl. > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> okay got some further... (apperrently i missed something > >>>>>>> somewhere) > >>>>>>> > >>>>>>> jack runs (through qjackctl), yet with XRUNs once every while > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>> > >>>>>> install realtime-lsm (google realtime-lsm and your platform) to > >>>>>> allow > >>>>>> your user to run jack with realtime priority. you also want to > >>>>>> run > >>>>>> pkaudio with realtime priority. that will get rid of the xruns. > >>>>>> > >>>>>> http://gentoo-wiki.com/HOWTO_Jack > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>>> > >>>>>>> i can get jack_metronome to 'sound' > >>>>>>> > >>>>>>> then i try: > >>>>>>> pkplay /opt/kde3/share/sounds/KDE_Startup.wav > >>>>>>> (does something, i see connections coming and going in > >>>>>>> qjackctl, but > >>>>>>> no sound and the runtime is too short to play the sample > >>>>>>> properly) > >>>>>>> > >>>>>>> pksampler > >>>>>>> (didnt start at first, but after creating /home/cies/wav, > >>>>>>> what it > >>>>>>> wanted, i was able to see the app -- no sound) > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>> > >>>>>> right. I haven't put that into a host config yet, so I hard- > >>>>>> coded it. > >>>>>> I haven't really designed the sample library directory yet, > >>>>>> either. > >>>>>> the current pksampler code is really in hack phase for now. > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>>> > >>>>>>> > >>>>>>> pkrack - worked yet silent > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>> > >>>>>> pkrack doesn't make any noise itself. it just gives you the > >>>>>> rack so > >>>>>> you can add some modules to it. the only module I have so far is > >>>>>> pk.sampler. If you get pkplay to play something, then audio is > >>>>>> all > >>>>>> set. if you get pkrack up, then the gui is all set. try pkplay > >>>>>> with > >>>>>> the --verbose option. this also turns on verbosity for the > >>>>>> pkaudio > >>>>>> daemon. > >>>>>> > >>>>>> also, try pkplay --help. > >>>>>> > >>>>>> > >>>>>> > >>>>> > >>>>> i did many times... i thought pkplay was the easiest path to > >>>>> actually > >>>>> hearing some sound... yet it didnt help much. > >>>>> > >>>>> okay, i do it from the python commandline: > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>>>> import time > >>>>>>>> import sys > >>>>>>>> import pk.audio > >>>>>>>> import pk.options > >>>>>>>> pk.options.parse_args() > >>>>>>>> pk.audio.start_server() > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>> True > >>>>> > >>>>> > >>>>> > >>>>>>>> d =3D pk.audio.Driver() > >>>>>>>> s =3D pk.audio.Sample("/opt/kde3/share/sounds/KDE_Startup.wav") > >>>>>>>> d.getMixer(0).connect(s.outputPort()) > >>>>>>>> s.play() > >>>>>>>> s.play() > >>>>>>>> s.play() > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>> > >>>>> --> no sound! > >>>>> okay then i did some thing that might be terribly wrong but > >>>>> heay! im > >>>>> trying for hours (over the last days) and i keep on doing that... > >>>>> > >>>>> maybe you understand something out of this: > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>> KeyboardInterrupt > >>>>> > >>>>> > >>>>> > >>>>>>>> s =3D pk.audio.Sample("/usr/lib/pd/doc/sound/voice.wav") > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>> detected server crash > >>>>> Traceback (most recent call last): > >>>>> File "<stdin>", line 1, in ? > >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", > >>>>> line > >>>>> 224, in __init__ > >>>>> core.loadModule('pksample') > >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line > >>>>> 818, > >>>>> in loadModule > >>>>> return _recvNull() > >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line > >>>>> 242, > >>>>> in _recvNull > >>>>> ret =3D _recv() > >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line > >>>>> 218, in _recv > >>>>> raise ConnectionError('detected server crash') > >>>>> pk.audio.core.ConnectionError: detected server crash > >>>>> > >>>>> > >>>>> > >>>>>>>> pk.options.parse_args() > >>>>>>>> pk.audio.start_server() > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>> True > >>>>> > >>>>> > >>>>> > >>>>>>>> s =3D pk.audio.Sample("/usr/lib/pd/doc/sound/voice.wav") > >>>>>>>> d =3D pk.audio.Driver() > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>> detected server crash > >>>>> detected server crash > >>>>> Exception exceptions.AttributeError: <exceptions.AttributeError > >>>>> instance at 0x406738cc> in <bound method Sample.__del__ of > >>>>> <pk.audio.modules.Sample instance at 0x4049298c>> ignored > >>>>> Traceback (most recent call last): > >>>>> File "<stdin>", line 1, in ? > >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", > >>>>> line > >>>>> 180, in __init__ > >>>>> raise ConnectionError('not connected to server, connect with > >>>>> "start_server()"') > >>>>> pk.audio.modules.ConnectionError: not connected to server, connect > >>>>> with "start_server()" > >>>>> > >>>>> > >>>>> > >>>>>>>> d =3D pk.audio.Driver() > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>> Traceback (most recent call last): > >>>>> File "<stdin>", line 1, in ? > >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", > >>>>> line > >>>>> 180, in __init__ > >>>>> raise ConnectionError('not connected to server, connect with > >>>>> "start_server()"') > >>>>> pk.audio.modules.ConnectionError: not connected to server, connect > >>>>> with "start_server()" > >>>>> > >>>>> > >>>>> > >>>>>>>> pk.options.parse_args() > >>>>>>>> pk.audio.start_server() > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>> True > >>>>> > >>>>> > >>>>> > >>>>>>>> d =3D pk.audio.Driver() > >>>>>>>> s =3D pk.audio.Sample("/usr/lib/pd/doc/sound/voice.wav") > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>> Traceback (most recent call last): > >>>>> File "<stdin>", line 1, in ? > >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", > >>>>> line > >>>>> 225, in __init__ > >>>>> Module.__init__(self, 'Sample', path) > >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", > >>>>> line > >>>>> 102, in __init__ > >>>>> self._syncModuleInfo() > >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", > >>>>> line > >>>>> 119, in _syncModuleInfo > >>>>> self.info =3D core.getModuleInfo(self.id()) > >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line > >>>>> 694, > >>>>> in getModuleInfo > >>>>> return _recvModuleInfo() > >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line > >>>>> 260, > >>>>> in _recvModuleInfo > >>>>> ret =3D _recvString() > >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line > >>>>> 252, > >>>>> in _recvString > >>>>> ret =3D _recv() > >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line > >>>>> 220, in _recv > >>>>> ret +=3D _sock.recv(1024) > >>>>> socket.error: (104, 'Connection reset by peer') > >>>>> > >>>>> > >>>>> > >>>>>>>> s.play() > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>> Exception exceptions.ValueError: <exceptions.ValueError > >>>>> instance at > >>>>> 0x406737ec> in <bound method Sample.__del__ of > >>>>> <pk.audio.modules.Sample instance at 0x4067344c>> ignored > >>>>> Traceback (most recent call last): > >>>>> File "<stdin>", line 1, in ? > >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", > >>>>> line > >>>>> 251, in play > >>>>> self.setProperty('playing', core.TRUE) > >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", > >>>>> line > >>>>> 128, in setProperty > >>>>> core.setProperty(self.info['id'], name, val) > >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line > >>>>> 725, > >>>>> in setProperty > >>>>> _send(msg('MLsf', 'SetProperty', mid, ctl, float(val))) > >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line > >>>>> 196, in _send > >>>>> except socket.error, (errno, e): > >>>>> ValueError: need more than 1 value to unpack > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> i'm off to bed. > >>>>> _c. > >>>>> > >>>>> > >>>>> ------------------------------------------------------- > >>>>> This SF.Net email is sponsored by: > >>>>> Power Architecture Resource Center: Free content, downloads, > >>>>> discussions, > >>>>> and more. http://solutions.newsforge.com/ibmarch.tmpl > >>>>> _______________________________________________ > >>>>> Pksampler-devel mailing list > >>>>> Pks...@li... > >>>>> https://lists.sourceforge.net/lists/listinfo/pksampler-devel > >>>>> > >>>>> > >>>>> > >>>> > >>>> > >>>> > >>>> ------------------------------------------------------- > >>>> This SF.Net email is sponsored by: > >>>> Power Architecture Resource Center: Free content, downloads, > >>>> discussions, > >>>> and more. http://solutions.newsforge.com/ibmarch.tmpl > >>>> _______________________________________________ > >>>> Pksampler-devel mailing list > >>>> Pks...@li... > >>>> https://lists.sourceforge.net/lists/listinfo/pksampler-devel > >>>> > >>>> > >>>> > >>> > >>> > >>> ------------------------------------------------------- > >>> This SF.Net email is sponsored by: > >>> Power Architecture Resource Center: Free content, downloads, > >>> discussions, > >>> and more. http://solutions.newsforge.com/ibmarch.tmpl > >>> _______________________________________________ > >>> Pksampler-devel mailing list > >>> Pks...@li... > >>> https://lists.sourceforge.net/lists/listinfo/pksampler-devel > >>> > >>> > >> > >> > >> > >> ------------------------------------------------------- > >> This SF.Net email is sponsored by: > >> Power Architecture Resource Center: Free content, downloads, > >> discussions, > >> and more. http://solutions.newsforge.com/ibmarch.tmpl > >> _______________________________________________ > >> Pksampler-devel mailing list > >> Pks...@li... > >> https://lists.sourceforge.net/lists/listinfo/pksampler-devel > >> > >> > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: > > Power Architecture Resource Center: Free content, downloads, > > discussions, > > and more. http://solutions.newsforge.com/ibmarch.tmpl > > _______________________________________________ > > Pksampler-devel mailing list > > Pks...@li... > > https://lists.sourceforge.net/lists/listinfo/pksampler-devel > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Pksampler-devel mailing list > Pks...@li... > https://lists.sourceforge.net/lists/listinfo/pksampler-devel > |