[Cs-dev] problems with latest tip...
Date | 2013-06-01 17:17 |
From | Rory Walsh |
Subject | [Cs-dev] problems with latest tip... |
I just updated to the latest tip because I noticed a problem with MIDI. After updating I found more problems: 0 0x00007ffff7729a90 pthread_spin_unlock ../nptl/sysdeps/x86_64/pthread_spin_unlock.S 24 1 0x00007ffff66062e3 alloc_channel /home/rory/sourcecode/csound-csound6-git/OOps/bus.c 318 2 0x00007ffff6606453 create_new_channel /home/rory/sourcecode/csound-csound6-git/OOps/bus.c 352 3 0x00007ffff66065a8 csoundGetChannelPtr /home/rory/sourcecode/csound-csound6-git/OOps/bus.c 381 4 0x00007ffff66070bd chnget_opcode_init_k /home/rory/sourcecode/csound-csound6-git/OOps/bus.c 637 5 0x00007ffff65d17c5 insert /home/rory/sourcecode/csound-csound6-git/Engine/insert.c 262 6 0x00007ffff65dfcbd process_score_event /home/rory/sourcecode/csound-csound6-git/Engine/musmon.c 748 7 0x00007ffff65e0658 sensevents /home/rory/sourcecode/csound-csound6-git/Engine/musmon.c 937 8 0x00007ffff6717f66 csoundPerformKsmps /home/rory/sourcecode/csound-csound6-git/Top/csound.c 1583 9 0x00000000004bf61e Csound::PerformKsmps /usr/local/include/csound/csound.hpp 343 This seems to happen when I try delete my csound object. Btw, did anything change with the MIDI code? It looks like the function I pass to SetExternalMidiReadCallback() is not getting registered? It never seems to get called. My CsOptions are ok, but something seems to be up. I'll dig further, once I can get past the error above. ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite It's a free troubleshooting tool designed for production Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap2 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-06-01 18:22 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] problems with latest tip... |
I changed the MIDI only when you said there was a problem, which you said it was fixed, then I did not touch it. What is the host code that is causing this problem? Victor On 1 Jun 2013, at 17:17, Rory Walsh wrote: > I just updated to the latest tip because I noticed a problem with > MIDI. After updating I found more problems: > > 0 0x00007ffff7729a90 pthread_spin_unlock > ../nptl/sysdeps/x86_64/pthread_spin_unlock.S 24 > 1 0x00007ffff66062e3 alloc_channel > /home/rory/sourcecode/csound-csound6-git/OOps/bus.c 318 > 2 0x00007ffff6606453 create_new_channel > /home/rory/sourcecode/csound-csound6-git/OOps/bus.c 352 > 3 0x00007ffff66065a8 csoundGetChannelPtr > /home/rory/sourcecode/csound-csound6-git/OOps/bus.c 381 > 4 0x00007ffff66070bd chnget_opcode_init_k > /home/rory/sourcecode/csound-csound6-git/OOps/bus.c 637 > 5 0x00007ffff65d17c5 insert > /home/rory/sourcecode/csound-csound6-git/Engine/insert.c 262 > 6 0x00007ffff65dfcbd process_score_event > /home/rory/sourcecode/csound-csound6-git/Engine/musmon.c 748 > 7 0x00007ffff65e0658 sensevents > /home/rory/sourcecode/csound-csound6-git/Engine/musmon.c 937 > 8 0x00007ffff6717f66 csoundPerformKsmps > /home/rory/sourcecode/csound-csound6-git/Top/csound.c 1583 > 9 0x00000000004bf61e Csound::PerformKsmps > /usr/local/include/csound/csound.hpp 343 > > This seems to happen when I try delete my csound object. > > Btw, did anything change with the MIDI code? It looks like the > function I pass to SetExternalMidiReadCallback() is not getting > registered? It never seems to get called. My CsOptions are ok, but > something seems to be up. I'll dig further, once I can get past the > error above. > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite > It's a free troubleshooting tool designed for production > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap2 > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite It's a free troubleshooting tool designed for production Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap2 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-06-01 18:28 |
From | Rory Walsh |
Subject | Re: [Cs-dev] problems with latest tip... |
I'm getting a sigrev when I try to call performKsmps()? This is nothing to do with the MIDI issue, but something I noticed just now after updating from git. 0 0x00007ffff7729a90 pthread_spin_unlock ../nptl/sysdeps/x86_64/pthread_spin_unlock.S 24 1 0x00007ffff66062e3 alloc_channel /home/rory/sourcecode/csound-csound6-git/OOps/bus.c 318 2 0x00007ffff6606453 create_new_channel /home/rory/sourcecode/csound-csound6-git/OOps/bus.c 352 3 0x00007ffff66065a8 csoundGetChannelPtr /home/rory/sourcecode/csound-csound6-git/OOps/bus.c 381 4 0x00007ffff660702f chnget_opcode_init_i /home/rory/sourcecode/csound-csound6-git/OOps/bus.c 611 5 0x00007ffff65d17c5 insert /home/rory/sourcecode/csound-csound6-git/Engine/insert.c 262 6 0x00007ffff65dfcbd process_score_event /home/rory/sourcecode/csound-csound6-git/Engine/musmon.c 748 7 0x00007ffff65e0658 sensevents /home/rory/sourcecode/csound-csound6-git/Engine/musmon.c 937 8 0x00007ffff6717f66 csoundPerformKsmps /home/rory/sourcecode/csound-csound6-git/Top/csound.c 1583 9 0x00000000004bf61e Csound::PerformKsmps /usr/local/include/csound/csound.hpp 343 ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite It's a free troubleshooting tool designed for production Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap2 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-06-01 18:32 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] problems with latest tip... |
OK, I've made a small change, see if it fixes the spinlock problem. Victor On 1 Jun 2013, at 18:22, Victor Lazzarini wrote: > I changed the MIDI only when you said there was a problem, which you said it was > fixed, then I did not touch it. > > What is the host code that is causing this problem? > > Victor > > On 1 Jun 2013, at 17:17, Rory Walsh wrote: > >> I just updated to the latest tip because I noticed a problem with >> MIDI. After updating I found more problems: >> >> 0 0x00007ffff7729a90 pthread_spin_unlock >> ../nptl/sysdeps/x86_64/pthread_spin_unlock.S 24 >> 1 0x00007ffff66062e3 alloc_channel >> /home/rory/sourcecode/csound-csound6-git/OOps/bus.c 318 >> 2 0x00007ffff6606453 create_new_channel >> /home/rory/sourcecode/csound-csound6-git/OOps/bus.c 352 >> 3 0x00007ffff66065a8 csoundGetChannelPtr >> /home/rory/sourcecode/csound-csound6-git/OOps/bus.c 381 >> 4 0x00007ffff66070bd chnget_opcode_init_k >> /home/rory/sourcecode/csound-csound6-git/OOps/bus.c 637 >> 5 0x00007ffff65d17c5 insert >> /home/rory/sourcecode/csound-csound6-git/Engine/insert.c 262 >> 6 0x00007ffff65dfcbd process_score_event >> /home/rory/sourcecode/csound-csound6-git/Engine/musmon.c 748 >> 7 0x00007ffff65e0658 sensevents >> /home/rory/sourcecode/csound-csound6-git/Engine/musmon.c 937 >> 8 0x00007ffff6717f66 csoundPerformKsmps >> /home/rory/sourcecode/csound-csound6-git/Top/csound.c 1583 >> 9 0x00000000004bf61e Csound::PerformKsmps >> /usr/local/include/csound/csound.hpp 343 >> >> This seems to happen when I try delete my csound object. >> >> Btw, did anything change with the MIDI code? It looks like the >> function I pass to SetExternalMidiReadCallback() is not getting >> registered? It never seems to get called. My CsOptions are ok, but >> something seems to be up. I'll dig further, once I can get past the >> error above. >> >> ------------------------------------------------------------------------------ >> Get 100% visibility into Java/.NET code with AppDynamics Lite >> It's a free troubleshooting tool designed for production >> Get down to code-level detail for bottlenecks, with <2% overhead. >> Download for free and get started troubleshooting in minutes. >> http://p.sf.net/sfu/appdyn_d2d_ap2 >> _______________________________________________ >> Csound-devel mailing list >> Csound-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/csound-devel > > Dr Victor Lazzarini > Senior Lecturer > Dept. of Music > NUI Maynooth Ireland > tel.: +353 1 708 3545 > Victor dot Lazzarini AT nuim dot ie > > > > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite > It's a free troubleshooting tool designed for production > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap2 > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite It's a free troubleshooting tool designed for production Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap2 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-06-01 18:57 |
From | Rory Walsh |
Subject | Re: [Cs-dev] problems with latest tip... |
Thanks Victor, that fixes that. But I'm still left with MIDI-less instruments. Is there anything in your last fix that could have skewed things up a little with regards to sending MIDI from a host to Csound? This issue is not what prompted your last fix, but they could be related. I have -+rtmidi=NULL -M0 set, but no midi is getting through? ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite It's a free troubleshooting tool designed for production Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap2 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-06-01 19:46 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] problems with latest tip... |
Can try removing -+rtmidi=NULL? I know what the problem is and I am thinking of the best solution. On 1 Jun 2013, at 18:57, Rory Walsh wrote: > Thanks Victor, that fixes that. But I'm still left with MIDI-less > instruments. Is there anything in your last fix that could have skewed > things up a little with regards to sending MIDI from a host to Csound? > This issue is not what prompted your last fix, but they could be > related. I have -+rtmidi=NULL -M0 set, but no midi is getting through? > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite > It's a free troubleshooting tool designed for production > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap2 > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite It's a free troubleshooting tool designed for production Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap2 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-06-01 19:51 |
From | Rory Walsh |
Subject | Re: [Cs-dev] problems with latest tip... |
I just tried multiple combinations of CsOptions with and without -+rtmidi=NULL and -M0. None proved successful. I have to head out for a bit so I might not be able to check anything till later. Thanks, Rory. On 1 June 2013 19:46, Victor Lazzarini |
Date | 2013-06-01 20:19 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] problems with latest tip... |
Ok, I've added an API function csoundSetHostImplementedMIDIIO(CSOUND *csound, int state); or Csound::SetHostImplementedMIDIIO(int state); which you should call after creation, and before csoundStart() or csoundCompile(), and then set your callbacks (all before starting or compiling). This should prevent csoundStart() or csoundReset() from resetting the MIDI modules. See if this works. Victor On 1 Jun 2013, at 19:51, Rory Walsh wrote: > I just tried multiple combinations of CsOptions with and without > -+rtmidi=NULL and -M0. None proved successful. I have to head out for > a bit so I might not be able to check anything till later. Thanks, > > Rory. > > > On 1 June 2013 19:46, Victor Lazzarini |
Date | 2013-06-01 21:31 |
From | Andres Cabrera |
Subject | Re: [Cs-dev] problems with latest tip... |
Attachments | None None |
Wouldn't it be better to make that an internal value that is set when the MIDI callback is registered? Cheers,Andrés
On Sat, Jun 1, 2013 at 12:19 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: Ok, I've added an API function |
Date | 2013-06-01 21:39 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] problems with latest tip... |
Attachments | None None |
No, that is impossible, because there is no distinction between host callbacks or module-based callbacks. So it's impossible to tell what is being set. Victor On 1 Jun 2013, at 21:31, Andres Cabrera wrote:
Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie |
Date | 2013-06-02 02:52 |
From | Andres Cabrera |
Subject | Re: [Cs-dev] problems with latest tip... |
Attachments | None None |
Yes, I thought that was the case, but how about setting an internal flag whenever the MIDI callback is set by the user? Otherwise setting the MIDI callback would always entail calling two functions... Cheers, Andrés On Sat, Jun 1, 2013 at 1:39 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
|
Date | 2013-06-02 09:29 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] problems with latest tip... |
Attachments | None None |
That might be possible. I'll look at it; first I want to see if the problem is fixed, because the mechanism is the same. On 2 Jun 2013, at 02:52, Andres Cabrera wrote:
Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie |
Date | 2013-06-03 20:57 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] problems with latest tip... |
Attachments | None None |
Actually, there is no way to do this, because the functions used by the Host to set its own midi implementation are the same ones used by the plugin modules, so there is no way to distinguish between them. The csoundSetHostImplementedMIDIIO is the best mechanism, and it mirrors the one used for audio. Victor On 2 Jun 2013, at 02:52, Andres Cabrera wrote:
Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie |
Date | 2013-06-03 20:59 |
From | Rory Walsh |
Subject | Re: [Cs-dev] problems with latest tip... |
Attachments | None None |
I'll try this out layer Victor. I've been too busy enjoying the sunshine! sent from a mobile device... On 3 Jun 2013 20:57, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
|
Date | 2013-06-04 02:05 |
From | Andres Cabrera |
Subject | Re: [Cs-dev] problems with latest tip... |
Attachments | None None |
Good. Thanks for looking. AndrésCheers, On Mon, Jun 3, 2013 at 12:57 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
|
Date | 2013-06-04 14:34 |
From | Rory Walsh |
Subject | Re: [Cs-dev] problems with latest tip... |
Thanks Victor. Just tried this now and it seems to work fine now. On 4 June 2013 02:05, Andres Cabrera |
Date | 2013-06-05 17:20 |
From | Rory Walsh |
Subject | Re: [Cs-dev] problems with latest tip... |
And just when you thought it was over! I'm starting to get intermittent sigrevs when I delete csound. I'm trying to find some consistency here, but I'm struggling. My current Cabbage source is a little messy, so I've gone back to a build of Cabbage from a month ago, that I know was stable. I've updated the code for Csound 6 and I've set SetHostImplementedMIDIIO to true after I create Csound. Behaviour is now far more consistent. When I call Csound reset I get the following problem: 0 0x00007ffff6d26afa snd_rawmidi_close 1 0x00007fffefa5496e midi_in_close /home/rory/sourcecode/csound-csound6-git/InOut/rtalsa.c 907 2 0x00007ffff65f8ed9 MidiClose /home/rory/sourcecode/csound-csound6-git/InOut/midirecv.c 597 3 0x00007ffff65dea7d csoundCleanup /home/rory/sourcecode/csound-csound6-git/Engine/musmon.c 468 4 0x00007ffff671a3e1 reset /home/rory/sourcecode/csound-csound6-git/Top/csound.c 2600 5 0x00007ffff671ac7c csoundReset /home/rory/sourcecode/csound-csound6-git/Top/csound.c 2744 6 0x00000000004bf5fa Csound::Reset /usr/local/include/csound/csound.hpp 359 If I set SetHostImplementedMIDIIO to false just before calling csoundReset I get the following sigrev, one short of above. 0 0x00007fffefa5494f midi_in_close /home/rory/sourcecode/csound-csound6-git/InOut/rtalsa.c 906 1 0x00007ffff65f8ed9 MidiClose /home/rory/sourcecode/csound-csound6-git/InOut/midirecv.c 597 2 0x00007ffff65dea7d csoundCleanup /home/rory/sourcecode/csound-csound6-git/Engine/musmon.c 468 3 0x00007ffff671a3e1 reset /home/rory/sourcecode/csound-csound6-git/Top/csound.c 2600 4 0x00007ffff671ac7c csoundReset /home/rory/sourcecode/csound-csound6-git/Top/csound.c 2744 5 0x00000000004bf622 Csound::Reset /usr/local/include/csound/csound.hpp 359 I'm using the same test csd with the same -+trmidi=NULL -M0 options. Once I get the older stable build going I should be able to work it into my latest source, which is currently a mess :( ------------------------------------------------------------------------------ How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate IT design, transition and operations 2. Dashboards that offer high-level views of enterprise services 3. A single system of record for all IT processes http://p.sf.net/sfu/servicenow-d2d-j _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-06-05 17:37 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] problems with latest tip... |
This is all because the callbacks are being reset at some point to the defaults (alsa for linux). It's a bit of pain because I can't debug it here, so I can't find exactly where they are being reset. I'll see what I can do. Victor On 5 Jun 2013, at 17:20, Rory Walsh wrote: > And just when you thought it was over! I'm starting to get > intermittent sigrevs when I delete csound. I'm trying to find some > consistency here, but I'm struggling. My current Cabbage source is a > little messy, so I've gone back to a build of Cabbage from a month > ago, that I know was stable. I've updated the code for Csound 6 and > I've set SetHostImplementedMIDIIO to true after I create Csound. > Behaviour is now far more consistent. When I call Csound reset I get > the following problem: > > 0 0x00007ffff6d26afa snd_rawmidi_close > 1 0x00007fffefa5496e midi_in_close > /home/rory/sourcecode/csound-csound6-git/InOut/rtalsa.c 907 > 2 0x00007ffff65f8ed9 MidiClose > /home/rory/sourcecode/csound-csound6-git/InOut/midirecv.c 597 > 3 0x00007ffff65dea7d csoundCleanup > /home/rory/sourcecode/csound-csound6-git/Engine/musmon.c 468 > 4 0x00007ffff671a3e1 reset > /home/rory/sourcecode/csound-csound6-git/Top/csound.c 2600 > 5 0x00007ffff671ac7c csoundReset > /home/rory/sourcecode/csound-csound6-git/Top/csound.c 2744 > 6 0x00000000004bf5fa Csound::Reset /usr/local/include/csound/csound.hpp 359 > > If I set SetHostImplementedMIDIIO to false just before calling > csoundReset I get the following sigrev, one short of above. > > 0 0x00007fffefa5494f midi_in_close > /home/rory/sourcecode/csound-csound6-git/InOut/rtalsa.c 906 > 1 0x00007ffff65f8ed9 MidiClose > /home/rory/sourcecode/csound-csound6-git/InOut/midirecv.c 597 > 2 0x00007ffff65dea7d csoundCleanup > /home/rory/sourcecode/csound-csound6-git/Engine/musmon.c 468 > 3 0x00007ffff671a3e1 reset > /home/rory/sourcecode/csound-csound6-git/Top/csound.c 2600 > 4 0x00007ffff671ac7c csoundReset > /home/rory/sourcecode/csound-csound6-git/Top/csound.c 2744 > 5 0x00000000004bf622 Csound::Reset /usr/local/include/csound/csound.hpp 359 > > I'm using the same test csd with the same -+trmidi=NULL -M0 options. > Once I get the older stable build going I should be able to work it > into my latest source, which is currently a mess :( > > ------------------------------------------------------------------------------ > How ServiceNow helps IT people transform IT departments: > 1. A cloud service to automate IT design, transition and operations > 2. Dashboards that offer high-level views of enterprise services > 3. A single system of record for all IT processes > http://p.sf.net/sfu/servicenow-d2d-j > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie ------------------------------------------------------------------------------ How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate IT design, transition and operations 2. Dashboards that offer high-level views of enterprise services 3. A single system of record for all IT processes http://p.sf.net/sfu/servicenow-d2d-j _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-06-05 17:54 |
From | Rory Walsh |
Subject | Re: [Cs-dev] problems with latest tip... |
I can try to prepare a simple Linux build if that would help. I'll include all the JUCE stuff so you won't need to download it. All you'll need to do is change the paths to Csound. It will probably be tomorrow before I can get it to you, but at least we'll be on the same page then. Cheers. ------------------------------------------------------------------------------ How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate IT design, transition and operations 2. Dashboards that offer high-level views of enterprise services 3. A single system of record for all IT processes http://p.sf.net/sfu/servicenow-d2d-j _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-06-05 17:55 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] problems with latest tip... |
you will going to have to help me debug this. This is what happens: 1) csoundCreate() calls csoundReset() and there MIDI is initialised to alsa, in the call to csoundInitModules(). That is OK. 2) Then you call csoundHostImplementedMIDIIO(), which sets a flag telling Csound not to initialise MIDI anymore. 3) Then you initialise all the MIDI functions csound->SetExternalMidiInOpenCallback(...); csound->SetExternalMidiReadCallback(...); csound->SetExternalMidiInCloseCallback(...); csound->SetExternalMidiOutOpenCallback(...); csound->SetExternalMidiWriteCallback(...); csound->SetExternalMidiOutCloseCallback(...); This needs to be done otherwise, Csound will try to call these functions at some point. The ones you will not use will need a dummy no-op function. 4) csoundStart and csoundCompile will not set the dummy MIDI functions anymore, because of the host implemented flag. The crash is happening on cleanup as the alsa midi_in_close callback is being called. Check that the callback is pointing to your code and not alsa (maybe put a breakpoint in MidiClose). Victor On 5 Jun 2013, at 17:37, Victor Lazzarini wrote: > This is all because the callbacks are being reset at some point to the > defaults (alsa for linux). It's a bit of pain because I can't debug it here, > so I can't find exactly where they are being reset. > > I'll see what I can do. > > Victor > > On 5 Jun 2013, at 17:20, Rory Walsh wrote: > >> And just when you thought it was over! I'm starting to get >> intermittent sigrevs when I delete csound. I'm trying to find some >> consistency here, but I'm struggling. My current Cabbage source is a >> little messy, so I've gone back to a build of Cabbage from a month >> ago, that I know was stable. I've updated the code for Csound 6 and >> I've set SetHostImplementedMIDIIO to true after I create Csound. >> Behaviour is now far more consistent. When I call Csound reset I get >> the following problem: >> >> 0 0x00007ffff6d26afa snd_rawmidi_close >> 1 0x00007fffefa5496e midi_in_close >> /home/rory/sourcecode/csound-csound6-git/InOut/rtalsa.c 907 >> 2 0x00007ffff65f8ed9 MidiClose >> /home/rory/sourcecode/csound-csound6-git/InOut/midirecv.c 597 >> 3 0x00007ffff65dea7d csoundCleanup >> /home/rory/sourcecode/csound-csound6-git/Engine/musmon.c 468 >> 4 0x00007ffff671a3e1 reset >> /home/rory/sourcecode/csound-csound6-git/Top/csound.c 2600 >> 5 0x00007ffff671ac7c csoundReset >> /home/rory/sourcecode/csound-csound6-git/Top/csound.c 2744 >> 6 0x00000000004bf5fa Csound::Reset /usr/local/include/csound/csound.hpp 359 >> >> If I set SetHostImplementedMIDIIO to false just before calling >> csoundReset I get the following sigrev, one short of above. >> >> 0 0x00007fffefa5494f midi_in_close >> /home/rory/sourcecode/csound-csound6-git/InOut/rtalsa.c 906 >> 1 0x00007ffff65f8ed9 MidiClose >> /home/rory/sourcecode/csound-csound6-git/InOut/midirecv.c 597 >> 2 0x00007ffff65dea7d csoundCleanup >> /home/rory/sourcecode/csound-csound6-git/Engine/musmon.c 468 >> 3 0x00007ffff671a3e1 reset >> /home/rory/sourcecode/csound-csound6-git/Top/csound.c 2600 >> 4 0x00007ffff671ac7c csoundReset >> /home/rory/sourcecode/csound-csound6-git/Top/csound.c 2744 >> 5 0x00000000004bf622 Csound::Reset /usr/local/include/csound/csound.hpp 359 >> >> I'm using the same test csd with the same -+trmidi=NULL -M0 options. >> Once I get the older stable build going I should be able to work it >> into my latest source, which is currently a mess :( >> >> ------------------------------------------------------------------------------ >> How ServiceNow helps IT people transform IT departments: >> 1. A cloud service to automate IT design, transition and operations >> 2. Dashboards that offer high-level views of enterprise services >> 3. A single system of record for all IT processes >> http://p.sf.net/sfu/servicenow-d2d-j >> _______________________________________________ >> Csound-devel mailing list >> Csound-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/csound-devel > > Dr Victor Lazzarini > Senior Lecturer > Dept. of Music > NUI Maynooth Ireland > tel.: +353 1 708 3545 > Victor dot Lazzarini AT nuim dot ie > > > > > ------------------------------------------------------------------------------ > How ServiceNow helps IT people transform IT departments: > 1. A cloud service to automate IT design, transition and operations > 2. Dashboards that offer high-level views of enterprise services > 3. A single system of record for all IT processes > http://p.sf.net/sfu/servicenow-d2d-j > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie ------------------------------------------------------------------------------ How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate IT design, transition and operations 2. Dashboards that offer high-level views of enterprise services 3. A single system of record for all IT processes http://p.sf.net/sfu/servicenow-d2d-j _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-06-05 17:57 |
From | Rory Walsh |
Subject | Re: [Cs-dev] problems with latest tip... |
Thanks Victor, I'll try that and let you know. On 5 June 2013 17:55, Victor Lazzarini |
Date | 2013-06-05 18:05 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] problems with latest tip... |
Note these lines in main.c: s = csoundQueryGlobalVariable(csound, "_RTMIDI"); if(csound->enableHostImplementedMIDIIO == 1) strcpy(s, "hostbased"); before the call to csoundInitModules(csound) and s = csoundQueryGlobalVariable(csound, "_RTMIDI"); strcpy(s, "hostbased"); down below, too. This should set the _RTMIDI variable to hostbased so that the callbacks are not set. Victor On 5 Jun 2013, at 17:57, Rory Walsh wrote: > Thanks Victor, I'll try that and let you know. > > On 5 June 2013 17:55, Victor Lazzarini |
Date | 2013-06-06 11:29 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] problems with latest tip... |
I made some changes, could you let me know if they have fixed the issue now? Victor On 5 Jun 2013, at 17:57, Rory Walsh wrote: > Thanks Victor, I'll try that and let you know. > > On 5 June 2013 17:55, Victor Lazzarini |
Date | 2013-06-06 13:00 |
From | Rory Walsh |
Subject | Re: [Cs-dev] problems with latest tip... |
I only had a quick few minutes to test this, but it seems to be working now. I noticed that in standalone mode Cabbage wasn't setting the MIDI out close functions as I never thought of allowing MIDI out from the standalone host. That probably explains why it was trying to close the midi device itself. I'll do some more tests later and let you know if anything pops up. Thanks again. Rory. ------------------------------------------------------------------------------ How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate IT design, transition and operations 2. Dashboards that offer high-level views of enterprise services 3. A single system of record for all IT processes http://p.sf.net/sfu/servicenow-d2d-j _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-06-06 15:01 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] problems with latest tip... |
That's good. I've switched the order of operations in reset, so that modules do not get initialised to the default there, but only later, and if the host implemented flag is set, then the default does not get set. This I think is probably the right thing. Victor On 6 Jun 2013, at 13:00, Rory Walsh wrote: > I only had a quick few minutes to test this, but it seems to be > working now. I noticed that in standalone mode Cabbage wasn't setting > the MIDI out close functions as I never thought of allowing MIDI out > from the standalone host. That probably explains why it was trying to > close the midi device itself. I'll do some more tests later and let > you know if anything pops up. Thanks again. > > Rory. > > ------------------------------------------------------------------------------ > How ServiceNow helps IT people transform IT departments: > 1. A cloud service to automate IT design, transition and operations > 2. Dashboards that offer high-level views of enterprise services > 3. A single system of record for all IT processes > http://p.sf.net/sfu/servicenow-d2d-j > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie ------------------------------------------------------------------------------ How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate IT design, transition and operations 2. Dashboards that offer high-level views of enterprise services 3. A single system of record for all IT processes http://p.sf.net/sfu/servicenow-d2d-j _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |