jwmatthys / pd-rtcmix

Pd external encapsulating the RTcmix audio language
MIT License
10 stars 0 forks source link

Pd crashes when the DSP goes on in Linux #2

Open alexdrymonitis opened 7 years ago

alexdrymonitis commented 7 years ago

I'm on Debian Jessie XFCE, with Pd-0.47-1 and Jack.

jwmatthys commented 7 years ago

Thanks for reporting. Can you help me diagnose the problem? First, can you post the output of uname -a

alexdrymonitis commented 7 years ago

Linux debian 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u3 (2016-01-17) x86_64 GNU/Linux

BTW, from the previous version I had installed (0.4) I have a rtc-lib-pd_1.0/ directory. Could it be causing the crash? No similar directory came with the new binary...

jwmatthys commented 7 years ago

There should be a lib/ directory with the new binary. It needs to stay with the .pd_linux directory in order to work. If you moved rtcmix~.pd_linux without the lib/ folder, that would cause the crash. I recommend you just unzip the whole rtcmix~ folder into your pd-externals folder.

If you do have the lib/ folder and it's still crashing, can you cd into the lib/ folder and run nm -n rtcmixdylib.so | grep RTcmix_ and post the output here? Thanks!

alexdrymonitis commented 7 years ago

The lib/ directory is in the same directory with the .pdlinux. CDing to the lib/ directory and typing "nm -n rtcmixdylib.so | grep RTcmix" give this:

00000000000a0450 T RTcmix_parseScore 00000000000a1600 T RTcmix_init 00000000000a1660 T RTcmix_destroy 00000000000a16a0 T RTcmix_setBangCallback 00000000000a16e0 T RTcmix_setValuesCallback 00000000000a1750 T RTcmix_setPrintCallback 00000000000a17a0 T RTcmix_resetAudio 00000000000a1850 T RTcmix_setparams 00000000000a18a0 T RTcmix_setAudioBufferFormat 00000000000a1940 T RTcmix_runAudio 00000000000a1950 T RTcmix_setPField 00000000000a19a0 T RTcmix_setInputBuffer 00000000000a19d0 T RTcmix_getBufferFrameCount 00000000000a1a20 T RTcmix_getBufferChannelCount 00000000000a1a60 T RTcmix_flushScore

Should I remove the rtc-lib-pd_1.0/ directory? That's in my pd-externals/ directory, not in the unzipped rtcmix~/ directory.

jwmatthys commented 7 years ago

You can try removing the rtc-lib-pd_1.0/ directory, though I wouldn't think that would be the problem.

Can you run Pd in gdb to see where the error is? In the terminal, run gdb pd then (gdb) r rtcmix~-help.pd Pd should open as usual. When you turn on the DSP, switch back to the terminal and let me know what errors are there. Then do a backtrace: (gdb) bt and paste the output below. Thanks!

jwmatthys commented 7 years ago

Please test this bugfix version: https://github.com/jwmatthys/pd-rtcmix/releases/tag/v0.91-beta

jwmatthys commented 7 years ago

Major refactor and memory leak fix. Please test: https://github.com/jwmatthys/pd-rtcmix/releases/tag/v0.92-beta

This version is compiled in DEBUG mode, so there should be a lot of information printed to the console. Please report any crashes with the console output if possible. Thanks!