Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] Windows build now always crashes

Date2014-08-05 22:19
From"Art Hunkins"
SubjectRe: [Cs-dev] Windows build now always crashes
I'm wondering if this phenomenon is possibly related to the MIDI issues I've 
been having with the Windows builds of Csound6? Could it explain why 
PortMIDI is seemingly affecting PortAudio (audio output), as described 
below?

I've had two problems, both of which involve PortMIDI and its apparent 
interference with PortAudio (all run from console):

1) Windows 7: PortMIDI doesn't make PortAudio crash, but it causes a minumum 
80 second delay in the printing of available PortAudio devices to the 
screen, thereby delaying performance by at least that amount of time. (I 
only recently discovered this wasn't an actual crash.)

2) Windows XP: PortMIDI disallows PortAudio completely (the listing of audio 
devices *never* appears on console output). The only remedy is to 
specify -+rtmidi=mme, which promptly lists the PortAudio devices and 
procedes to playback - but *makes multichannel output* impossible (only 
stereo functions).

So, just looking for a clue to what I've been experiencing. (My latest MIDI 
piece is quad.)

Art Hunkins

----- Original Message ----- 
From: "Victor Lazzarini" 
To: "Developer discussions" 
Sent: Tuesday, August 05, 2014 3:55 PM
Subject: Re: [Cs-dev] Windows build now always crashes


The symbol that need to be changed is ‘SendMessage’, if you rename all 
instances of it in that class to
say, SendMidiMessage, it should fix it.
========================
Dr Victor Lazzarini
Senior Lecturer
NUI Maynooth, Ireland
victor dot lazzarini at nuim dot ie




On 5 Aug 2014, at 20:21, Victor Lazzarini  wrote:

> Hi Steven,
>
> you will need to rename one of the symbols in that class, because it 
> clashes with a Windows
> API function or something.
>
> ========================
> Dr Victor Lazzarini
> Senior Lecturer
> NUI Maynooth, Ireland
> victor dot lazzarini at nuim dot ie
>
>
>
>
> On 5 Aug 2014, at 16:18, Steven Yi  wrote:
>
>> I just built on Windows and set my OPCODE6DIR64 to the location of
>> where I built.  I had one opcode library that was out of date and it
>> caused csound to crash on startup.  I deleted that and was able to run
>> Trapped in realtime.  I'm guessing you have an out-of-date opcode lib
>> that is incompatible and causing the crash.
>>
>> (As a sidenote, I'm having problems building the java wrapper on
>> Windows; I think Oeyvind had mentioned something similiar recently.
>> It's an error with CsoundMIDIInputBuffer.  I have to move to other
>> things at the moment, but perhaps others have had this too?)
>>
>>
>>
>> On Tue, Aug 5, 2014 at 9:14 AM, Michael Gogins  
>> wrote:
>>> This was a fresh installation from a newly built Windows installer, so 
>>> there
>>> should not be any incompatible opcodes.
>>>
>>> I don't think this is the problem because the ONLY change between this
>>> failure and the earlier success is changes in the Csound source code.
>>>
>>> However, I will try your suggestion anyway this evening.
>>>
>>> Regards,
>>> Mike
>>>
>>>
>>> -----------------------------------------------------
>>> Michael Gogins
>>> Irreducible Productions
>>> http://michaelgogins.tumblr.com
>>> Michael dot Gogins at gmail dot com
>>>
>>>
>>> On Tue, Aug 5, 2014 at 9:04 AM, Victor Lazzarini 
>>> 
>>> wrote:
>>>>
>>>> These are library file names (*.dll on Windows, not opcode names). Can 
>>>> you
>>>> try making sure there are absolutely no plugins (or DLLs) in the
>>>> OPCODE6DIR64 path and run Csound. This does look like Csound trying to
>>>> initialise incompatible opcode.
>>>>
>>>> ========================
>>>> Dr Victor Lazzarini
>>>> Senior Lecturer
>>>> NUI Maynooth, Ireland
>>>> victor dot lazzarini at nuim dot ie
>>>>
>>>>
>>>>
>>>>
>>>> On 5 Aug 2014, at 13:50, Michael Gogins  
>>>> wrote:
>>>>
>>>>> Taking a quick look at the manual, I don't see any opcodes starting 
>>>>> with
>>>>> "L", so it's either a new opcode, not an opcode, or the memory is not 
>>>>> lined
>>>>> up.
>>>>>
>>>>> Regards,
>>>>> Mike
>>>>>
>>>>>
>>>>> -----------------------------------------------------
>>>>> Michael Gogins
>>>>> Irreducible Productions
>>>>> http://michaelgogins.tumblr.com
>>>>> Michael dot Gogins at gmail dot com
>>>>>
>>>>>
>>>>> On Tue, Aug 5, 2014 at 8:29 AM,  wrote:
>>>>>
>>>>> Quoting Michael Gogins :
>>>>>
>>>>>> Here is a clue for you (what is "L"?):
>>>>>
>>>>> L is the first letter of the name in the csoundModule_t structure.
>>>>> The definition asks for a char[1] which is a common C way of cding a
>>>>> variable-length structure.  We need to see what is after "L"
>>>>>
>>>>>
>>>>>>
>>>>>> (gdb)
>>>>>> 596         for (m = (csoundModule_t*) csound->csmodule_db; m != 
>>>>>> NULL;
>>>>>> m =
>>>>>> m->nxt) {
>>>>>> (gdb)
>>>>>> 597           i = csoundInitModule(csound, m);
>>>>>> (gdb) print *m
>>>>>> $9 = {nxt = 0x4b9c90, h = 0x6d780000, PreInitFunc = 0x6d78159c
>>>>>> , fn = {p = {InitFunc = 0x6d781a08
>>>>>> ,
>>>>>>     DestFunc = 0x6d781a8f ,
>>>>>> ErrCodeToStr =
>>>>>> 0x0}, o = {opcode_init = 0x6d781a08 ,
>>>>>>     fgen_init = 0x6d781a8f , dummy =
>>>>>> 0x0}},
>>>>>> name = "L"}
>>>>>> (gdb) next
>>>>>>
>>>>>> Program received signal SIGSEGV, Segmentation fault.
>>>>>> 0x767322a3 in strchr () from C:\Windows\SysWOW64\msvcrt.dll
>>>>>> (gdb)
>>>>>>
>>>>>> Regards,
>>>>>> Mike
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> -----------------------------------------------------
>>>>>> Michael Gogins
>>>>>> Irreducible Productions
>>>>>> http://michaelgogins.tumblr.com
>>>>>> Michael dot Gogins at gmail dot com
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Infragistics Professional
>>>>> Build stunning WinForms apps today!
>>>>> Reboot your WinForms applications with our WinForms controls.
>>>>> Build a bridge from your legacy apps to the future.
>>>>>
>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Infragistics Professional
>>>>> Build stunning WinForms apps today!
>>>>> Reboot your WinForms applications with our WinForms controls.
>>>>> Build a bridge from your legacy apps to the future.
>>>>>
>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk_______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Infragistics Professional
>>>> Build stunning WinForms apps today!
>>>> Reboot your WinForms applications with our WinForms controls.
>>>> Build a bridge from your legacy apps to the future.
>>>>
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Infragistics Professional
>>> Build stunning WinForms apps today!
>>> Reboot your WinForms applications with our WinForms controls.
>>> Build a bridge from your legacy apps to the future.
>>> http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>> ------------------------------------------------------------------------------
>> Infragistics Professional
>> Build stunning WinForms apps today!
>> Reboot your WinForms applications with our WinForms controls.
>> Build a bridge from your legacy apps to the future.
>> http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> Infragistics Professional
> Build stunning WinForms apps today!
> Reboot your WinForms applications with our WinForms controls.
> Build a bridge from your legacy apps to the future.
> http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel 


------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net