Hey Devs,
I've found a bug, doubtless someone here knows what's going on - I've got pd-0.39-2extended on my linux box running 2.6.15-4rt kernel/alsa/jack. I start jack, fine, start pd, loads & works fine, but if I close & restart pd more than 3 times, pd won't load correctly anymore unless I reboot my machine. Pd window will open, command line reads:
normally, I see this (pd working correctly):
Pd version 0.39-2extended-test1 compiled 23:27:31 Feb 26 2006 port 5401 TCL_LIBRARY="/usr/local/lib/pd/tcl/library" TK_LIBRARY="/usr/local/lib/pd/tk/library" "/usr/local/lib/pd/bin/pd-gui" 5401 Waiting for connection request... ... connected device 2: tried /dev/midi02 READ/WRITE; returned -1 device 2: tried /dev/midi2 READ/WRITE; returned 5
I quit, then reload, the quit, then reload, and I notice that this time pd didn't actually quit - although the window is closed, the bash shell isn't freed. Then if I restart pd, I see this:
Pd version 0.39-2extended-test1 compiled 23:27:31 Feb 26 2006 port 5408 TCL_LIBRARY="/usr/local/lib/pd/tcl/library" TK_LIBRARY="/usr/local/lib/pd/tk/library" "/usr/local/lib/pd/bin/pd-gui" 5408 Waiting for connection request... ... connected device 2: tried /dev/midi02 READ/WRITE; returned -1
and the Pd window will open, but the Windows and Media menus are not populated, & I can't open any files. pstree reveals 2 running pd & pd-gui processes. sudo killall pd; sudo killall pd-gui isn't effective in killing them.
What's going on here? Why is pd not quitting completely? Additionally, sometimes pd will cause the jack server to stop unexpectedly.
Hopefully this is a known issue & I've just done something blockheaded here....
Thanks,
David
Update: I suspect this has something to do with MIDI. I've unplugged my USB-MIDI device & this doesn't happen anymore. The USB-MIDI device works as expected except for this. I'm using an M-Audio keystation loaded through Alsa, except in pd I'm accessing it via default-midi rather than alsa-midi because alsa-midi hangs on starting pd. Any ideas?
Thanks again,
-David
On 3/11/06, david golightly davigoli@gmail.com wrote:
Hey Devs,
I've found a bug, doubtless someone here knows what's going on - I've got pd-0.39-2extended on my linux box running 2.6.15-4rt kernel/alsa/jack. I start jack, fine, start pd, loads & works fine, but if I close & restart pd more than 3 times, pd won't load correctly anymore unless I reboot my machine. Pd window will open, command line reads:
normally, I see this (pd working correctly):
Pd version 0.39-2extended-test1 compiled 23:27:31 Feb 26 2006 port 5401 TCL_LIBRARY="/usr/local/lib/pd/tcl/library" TK_LIBRARY="/usr/local/lib/pd/tk/library" "/usr/local/lib/pd/bin/pd-gui" 5401 Waiting for connection request... ... connected device 2: tried /dev/midi02 READ/WRITE; returned -1 device 2: tried /dev/midi2 READ/WRITE; returned 5
I quit, then reload, the quit, then reload, and I notice that this time pd didn't actually quit - although the window is closed, the bash shell isn't freed. Then if I restart pd, I see this:
Pd version 0.39-2extended-test1 compiled 23:27:31 Feb 26 2006 port 5408 TCL_LIBRARY="/usr/local/lib/pd/tcl/library" TK_LIBRARY="/usr/local/lib/pd/tk/library" "/usr/local/lib/pd/bin/pd-gui" 5408 Waiting for connection request... ... connected device 2: tried /dev/midi02 READ/WRITE; returned -1
and the Pd window will open, but the Windows and Media menus are not populated, & I can't open any files. pstree reveals 2 running pd & pd-gui processes. sudo killall pd; sudo killall pd-gui isn't effective in killing them.
What's going on here? Why is pd not quitting completely? Additionally, sometimes pd will cause the jack server to stop unexpectedly.
Hopefully this is a known issue & I've just done something blockheaded here....
Thanks,
David
Hallo, david golightly hat gesagt: // david golightly wrote:
and the Pd window will open, but the Windows and Media menus are not populated, & I can't open any files. pstree reveals 2 running pd & pd-gui processes. sudo killall pd; sudo killall pd-gui isn't effective in killing them.
What's going on here? Why is pd not quitting completely? Additionally, sometimes pd will cause the jack server to stop unexpectedly.
Hard to say what's wrong here, but instead of rebooting, did you try the bloodier way of murdering poor Pd with: "killall -9 pd"?
Frank Barknecht _ ______footils.org_ __goto10.org__
On Sun Mar 12, 2006 at 12:03:49AM +0100, Frank Barknecht wrote:
Hallo, david golightly hat gesagt: // david golightly wrote:
and the Pd window will open, but the Windows and Media menus are not populated, & I can't open any files. pstree reveals 2 running pd & pd-gui processes. sudo killall pd; sudo killall pd-gui isn't effective in killing them.
What's going on here? Why is pd not quitting completely? Additionally, sometimes pd will cause the jack server to stop unexpectedly.
i used to get this on windows due to improperly closed MIDI ports. i think it was also better to manually choose 'quit' from the menu instead of just close the window. if you are using OSS MIDI, have you tried ALSA MIDI (and vice versa)". as for the jack crashes, i got that a lot too when trying to use pd, have you tried the cb_Scheduler with JACk in devel?
unfortunnately, ,tyheres something about stuck driver ports, and remote filesystems, that makes processes immune to killall -9 (or the windows equivalent). pretty annoying..
Strangely, killall is ineffective in killing pd:
david@ubuntu:~$ killall -v -9 pd Killed pd(7612) with signal 9
david@ubuntu:~$ ps -e | grep pd 132 ? 00:00:00 pdflush 133 ? 00:00:00 pdflush ... 7612 pts/0 00:00:00 pd <defunct> 7613 pts/0 00:00:00 pd-gui <defunct>
And pd still won't start properly.
So... I've found a (sort of) workaround: unplug my usb-midi device. Then pd will again start normally. (Although that last command still results in the same output.) However this isn't a good long-term solution: now I can't use my midi device. At all. "amidi -l" doesn't list it any more.
Could it be a conflict between pd and hotplug, perhaps? In any case, it would be nice to get to the bottom of this....
Thanks again,
David
On 3/11/06, Frank Barknecht fbar@footils.org wrote:
Hallo, david golightly hat gesagt: // david golightly wrote:
and the Pd window will open, but the Windows and Media menus are not populated, & I can't open any files. pstree reveals 2 running pd &
pd-gui
processes. sudo killall pd; sudo killall pd-gui isn't effective in
killing
them.
What's going on here? Why is pd not quitting completely? Additionally, sometimes pd will cause the jack server to stop unexpectedly.
Hard to say what's wrong here, but instead of rebooting, did you try the bloodier way of murdering poor Pd with: "killall -9 pd"?
Ciao
Frank Barknecht _ ______footils.org_ __goto10.org__
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list