Csound Csound-dev Csound-tekno Search About

[CSOUND-DEV:5465] Re: [Csnd] More MIDI trouble on windows

Date2004-11-30 22:56
From"gogins@pipeline.com"
Subject[CSOUND-DEV:5465] Re: [Csnd] More MIDI trouble on windows
In Csound 5, the problem is caused by the PortAudio driver not closing down
properly. The kernel-mode code used by ASIO thinks that the ASIO client is
still there, but it isn't. As a result there is not only a crash, but a
kernel crash that causes a blue screen of death.

I have tried various ways of closing PortAudio properly, but I have not
found a completely satisfactory solution. I have looked at this several
times over the past year, but I have not really put a lot of time into it,
hoping for PortAudio people to magically fix things. Currently, there are a
few sleeps in strategic places that seem to help with console Csound 5 but
not much with CsoundVST.



Original Message:
-----------------
From: Louis-Xavier Buffoni lxb@sympatico.ca
Date: Tue, 30 Nov 2004 18:00:26 -0500
To: csound@lists.bath.ac.uk
Subject: Re: [Csnd] More MIDI trouble on windows


Hi all,

I also experienced that problem with Csound5 (Oct 31st version), on Win2K,
with an USB MIDI device. Csound freezes while it seemingly tries to delete
some temporary files, and after some time, my computer inevitably crashes.
CTRL-C doesn't work, and closing the CMD window doesn't save the OS from
fatality...

Thank you very much for investigating this issue,

Louis-Xavier Buffoni


-----Original Message-----
From: Art Hunkins [mailto:abhunkin@uncg.edu] 
Sent: Tuesday, November 30, 2004 12:17 PM
To: csound@lists.bath.ac.uk
Subject: Re: More MIDI trouble on windows

I've just done extensive testing of this issue with MyCsound4, GBS6 and
Csound5 on two fairly recent Windows systems: one running ME, the other XP.
I tested with 2 USB MIDI devices including the Oxygen8, and with a
traditional MIDI controller (Encore Slidemate). The results were nearly the
same for all combinations.

For me, none of the realtime runs close correctly; all must be terminated by
CTRL-C or CTRL-BREAK. When run time elapses nothing happens aside from a
final amplitude being registered - though you can still conclude with CTRL-C
etc. There are two exceptions: 1) GBS6 has a Stop Command which causes a
"normal" conclusion - before or after it should occur (it may be a good idea
to investigate this command); 2) Csound5 *usually* terminates with a CTRL-C
etc., but can freeze instead. I know Michael Gogins has worked extensively
on this problem and I don't know whether or not it is completely solved; the
version of Csound5 I am using is not one of his most recent.

With respect to Csound5, prior to my acquisition of several newer systems, I
had great trouble even using CTRL-C etc. to end a run; so this problem
seemed certainly to be exacerbated by my older, slower systems (also ME). I
think it likely that *part* of the slowness of closing may be an older
system. If it is important, I can replicate things on an older system (I've
one ready and waiting). I'd guess that the only difference I'd find is in
how long it takes to close a performance window with CTRL-C, etc.

Art Hunkins

----- Original Message -----
From: "Victor Lazzarini" 
To: 
Sent: Tuesday, November 30, 2004 5:37 AM
Subject: [Csnd] More MIDI trouble on windows

> Dear all,
>
> In an e-mail conversation with Jim Hearon, we found out that we have 
> been experiencing the same MIDI trouble and I am wondering whether 
> anyone else has had it as well.
>
> Basically, when using USB MIDI devices (mine's a m-audio quattro and 
> Jim's an Oxy8), the device does not seem to close properly and csound 
> does not exit or takes a long time to do so.
>
> I noticed that with cs4.23 canonical (and the same behaviour is found 
> on the msvc binary I built), which does not close and in fact, on 
> win2000, you can't seem to be able to kill the app or the process 
> (have to reboot).
>
> With cs5, the problem is a lesser one. Csound eventually gets closed 
> after a long wait (perhaps if I waited long enough cs4.23 would also 
> do so).
>
> Now I tested this by quitting csound before it finishes (ctrl-C). But 
> Jim was speaking of the command window not closing after csound was 
> supposed to exit normally (is that right, Jim?).
>
> These problems only occur with my USB device. My PCI MIDI (a standard 
> MPU-401)  works fine.
>
> Before I go looking into this, the question is has anyone else 
> experienced the same problem? If so/not so, what version of windows 
> are you using?
>
> Thanks a lot
>
> Victor
>
>
>
> Victor Lazzarini
> Music Technology Laboratory
> Music Department
> National University of Ireland, Maynooth
>
> --
> Send bugs reports to csound-bugs@cs.bath.ac.uk
>               (or to http://www.cs.bath.ac.uk/cgi-bin/csound ) To 
> unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk

-- 
Send bugs reports to csound-bugs@cs.bath.ac.uk
              (or to http://www.cs.bath.ac.uk/cgi-bin/csound )
To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk

--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .