[Csnd-dev] Segmentation violation when subinstr + playing many notes in polyphony
Date | 2018-10-19 11:33 |
From | Mauro Giubileo |
Subject | [Csnd-dev] Segmentation violation when subinstr + playing many notes in polyphony |
On a Windows machine, the following CSD goes in "segmentation violation" after about 8 seconds, but in Csound 6.10 it works fine. From 6.11 onwards, it crashes. <CsoundSynthesizer> This problem has been driving me crazy for several days... I found that it occurs when you use a subinstr and then, inside the sub-instrument called, you use a native opcode that does a "csound->AuxAlloc(...)" to allocate memory. That function is used in many native opcodes, so this is very problematic. I made an experimental synth that makes extensive use of subinstr and linseg/transeg inside the sub-instrument, so it always crashes when you play many notes in polyphony. The VS debugger tells me that the crash occurs inside the auxchfree function (from the file "Engine/auxfd.c"). Have there been any changes in the Csound internal memory management functions (at least concerning Windows), from Csound 6.11 onwards? |
Date | 2018-10-19 12:10 |
From | John ff |
Subject | Re: [Csnd-dev] Segmentation violation when subinstr + playing many notes in polyphony |
Sounds like a memory issue. Sent from TypeApp On Oct 19, 2018, 11:34, at 11:34, Mauro Giubileo |
Date | 2018-10-19 12:11 |
From | John ff |
Subject | Re: [Csnd-dev] Segmentation violation when subinstr + playing many notes in polyphony |
And as far as I recall no changes to the aux system Sent from TypeApp On Oct 19, 2018, 11:34, at 11:34, Mauro Giubileo |
Date | 2018-10-19 12:30 |
From | Mauro Giubileo |
Subject | Re: [Csnd-dev] Segmentation violation when subinstr + playing many notes in polyphony |
Being that the problem occurs only in sub-instruments, if there were no relevant changes to the auxfd.c functions, I think we should check the file "Engine/insert.c" too, in the functions related to the "subinstr" call. From github I see there are many changes there from January 2018 (the 6.10 version that works was from January 2018)... Regards, Il 2018-10-19 13:11 John ff ha scritto:
|