[Csnd] Re: Pared down example of Python-Csound Windows problem
Date | 2009-05-29 23:28 |
From | michael.gogins@gmail.com |
Subject | [Csnd] Re: Pared down example of Python-Csound Windows problem |
I tried your example with my current build of Csound on Windows XP, and I get the same behavior you report. The problem looks to me like it is caused in the PortAudio DLL, which means that the access violation cannot be handled by the program that loaded the DLL. In all likelihood, this is because my build of PortAudio is not correct. I do not recall this problem occurring in the previous version of Csound, which had a different version of my build of PortAudio. I tried using perf.InputMessage('e 1') to stop Csound, and that didn't work, the result was just the same message box. Then I tried installing a signal handler to handle the crash instead of getting the message box, and that also didn't work, the result was just the same message box. I still don't get why you have Csound running in a separate process -- is it just because of this crash? Regards, Mike ----- Original Message ----- From: "Chuckk Hubbard" |
Date | 2009-05-30 10:56 |
From | Chuckk Hubbard |
Subject | [Csnd] Re: Re: Pared down example of Python-Csound Windows problem |
Hi Mike. Thanks for the info. The reason for running Csound in a separate process is that, in my program, I want the option of running the audio engine (Csound) at a higher priority than the GUI. The example doesn't show this since the GUI doesn't do much, but in my sequencer there's a line that moves across the score showing the current location, and I want to avoid potential dropouts from that. I've heard of the possibility, with other languages, of having threads with assigned priorities, but as I understand it Python's Global Interpreter Lock or some such feature prevents that. If it's from the portaudio dll, I'm guessing running Csound inside the same process wouldn't make a difference, though, no? It still has to end some time. Actually one option I'm considering is to have Csound running constantly, and just update instruments and options on the fly; that would allow the user to hear notes as they enter them, not just when they hit play... -Chuckk On Fri, May 29, 2009 at 6:28 PM, |
Date | 2009-06-05 15:43 |
From | Chuckk Hubbard |
Subject | [Csnd] Re: Re: Pared down example of Python-Csound Windows problem |
For the record, I renamed and relocated the PortAudio DLL from Csound 5.08 into Csound 5.10, and also tried with one from http://code.google.com/p/portaudiosharp/downloads/detail?name=PortAudio.dll&can=2&q= and I get the same error box. -Chuckk On Sat, May 30, 2009 at 1:28 AM, |
Date | 2009-06-05 15:49 |
From | Michael Gogins |
Subject | [Csnd] Re: Re: Re: Pared down example of Python-Csound Windows problem |
Thanks for the information, I'll continue to investigate this. Regards, Mike On 6/5/09, Chuckk Hubbard |
Date | 2009-06-05 21:47 |
From | Andy Fillebrown |
Subject | [Csnd] Re: Re: Re: Re: Pared down example of Python-Csound Windows problem |
I am also getting this error on every csd I use when exiting from QuteCsound on Windows XP, but not in csound5gui. I could swear this wasn't happening last week and nothing has changed in my system that I know of. Very strange. -andy.f ----- Original Message ----- From: "Michael Gogins" <michael.gogins@gmail.com> To: csound@lists.bath.ac.uk Sent: Friday, June 5, 2009 10:49:32 AM (GMT-0500) America/New_York Subject: [Csnd] Re: Re: Re: Pared down example of Python-Csound Windows problem Thanks for the information, I'll continue to investigate this. Regards, Mike On 6/5/09, Chuckk Hubbard <badmuthahubbard@gmail.com> wrote: > For the record, I renamed and relocated the PortAudio DLL from Csound > 5.08 into Csound 5.10, and also tried with one from > http://code.google.com/p/portaudiosharp/downloads/detail?name=PortAudio.dll&can=2&q= > and I get the same error box. > > -Chuckk > > On Sat, May 30, 2009 at 1:28 AM, <michael.gogins@gmail.com> wrote: >> I tried your example with my current build of Csound on Windows XP, and I >> get the same behavior you report. >> >> The problem looks to me like it is caused in the PortAudio DLL, which >> means >> that the access violation cannot be handled by the program that loaded the >> DLL. >> >> In all likelihood, this is because my build of PortAudio is not correct. I >> do not recall this problem occurring in the previous version of Csound, >> which had a different version of my build of PortAudio. >> >> I tried using perf.InputMessage('e 1') to stop Csound, and that didn't >> work, >> the result was just the same message box. >> >> Then I tried installing a signal handler to handle the crash instead of >> getting the message box, and that also didn't work, the result was just >> the >> same message box. >> >> I still don't get why you have Csound running in a separate process -- is >> it >> just because of this crash? >> >> Regards, >> Mike >> ----- Original Message ----- From: "Chuckk Hubbard" >> <badmuthahubbard@gmail.com> >> To: "Csound List" <csound@lists.bath.ac.uk> >> Sent: Friday, May 29, 2009 5:30 PM >> Subject: [Csnd] Pared down example of Python-Csound Windows problem >> >> >>> I posted a different version of this before and it seemed there was no >>> problem on Vista; I since found that someone else who was trying to >>> run my program on XP (which is what I have) was having the same error >>> message as me. >>> It doesn't interfere with the operation of anything, and in fact only >>> happens right when the child process is closing; but one must click on >>> OK on the error message in order to proceed, which gets to be like >>> listening to the faucet drip all night. >>> >>> For this example, check the audio options just to be sure, and then >>> hit PLAY followed by STOP after a second or two. That's when I get the >>> error. >>> >>> I've commented pretty thoroughly, and I'm pretty sure the problem >>> happens in either the play() or stop() function of csdproblem.py, or >>> in the marked if clause in csdproblemaudio.py. >>> >>> The error reads: >>> """The instruction at "0x7c9104fa" referenced memory at "0xfffffffd". >>> The memory could not be "read". >>> Click on OK to terminate the program""" >>> The window says python.exe Application error, but I believe it would >>> read this anyway, as no Csound process actually runs. >>> >>> I and the other fellow are both using Csound Windows binaries for 5.10 >>> Can anyone else running XP confirm this? >>> >>> Thanks a lot. >>> -Chuckk >>> >>> -- >>> http://www.badmuthahubbard.com >>> >>> >>> Send bugs reports to this list. >>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe >>> csound" >>> >> >> >> >> Send bugs reports to this list. >> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe >> csound" >> > > > > -- > http://www.badmuthahubbard.com > > > Send bugs reports to this list. > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe > csound" > -- Michael Gogins Irreducible Productions http://www.michael-gogins.com Michael dot Gogins at gmail dot com Send bugs reports to this list. To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |