[Cs-dev] problem with latest tip and API.
Date | 2013-05-23 00:40 |
From | Rory Walsh |
Subject | [Cs-dev] problem with latest tip and API. |
I updated to the latest tip an hour or so ago and when I try to delete an instance of Csound I now get the following error: PortMidi call failed... PortMidi: `Bad pointer' type ENTER... I've no idea where it's coming from and I didn't change any of my host code. Anyone have any ideas? I'll keep digging. ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-05-23 00:41 |
From | Rory Walsh |
Subject | Re: [Cs-dev] problem with latest tip and API. |
Btw, this only seems to happen when I destroy an instance of Csound. When I recompile without freeing my Csound object it works fine. On 23 May 2013 00:40, Rory Walsh |
Date | 2013-05-23 12:14 |
From | Rory Walsh |
Subject | Re: [Cs-dev] problem with latest tip and API. |
A quick follow up, this problem it seems is related to CsoundPerfThread, and not Csound. I think I can get around it, but I'm curious to know if something changed in this code in the past week or so? ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-05-23 12:28 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] problem with latest tip and API. |
It wasn't me, gov. I've made no changes since the beginning of last week until after you reported this. I didn't think you used the CsoundPerformanceThread class anyway, do you? On 23 May 2013, at 12:14, Rory Walsh wrote: > A quick follow up, this problem it seems is related to > CsoundPerfThread, and not Csound. I think I can get around it, but I'm > curious to know if something changed in this code in the past week or > so? > > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may > _______________________________________________ > 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 ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-05-23 13:50 |
From | Rory Walsh |
Subject | Re: [Cs-dev] problem with latest tip and API. |
Only when users switch off Cabbage audio IO and use Csound instead. But in this case I think it's getting instantiated when it shouldn't be, which makes this my problem :) ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-05-23 14:02 |
From | Rory Walsh |
Subject | Re: [Cs-dev] problem with latest tip and API. |
I spoke too soon. I removed all calls to anything to do with CsoundPerfThread, but the problem persists. It happens when csoundReset() is called. As soon as it's called I get that stupid portMIDI error. I'm not even using portMIDI? On 23 May 2013 13:50, Rory Walsh |
Date | 2013-05-23 14:08 |
From | Rory Walsh |
Subject | Re: [Cs-dev] problem with latest tip and API. |
The problem is coming from this function(midirecv.c line 597), with the error being printed as soon a MidiInCloseCallback() is called? void MidiClose(CSOUND *csound) { MGLOBAL *p = csound->midiGlobals; int retval; if (p==NULL) { printf("No MIDI\n"); return; } if (p->MidiInCloseCallback != NULL) { retval = p->MidiInCloseCallback(csound, p->midiInUserData); Digging a little deeper it seems that it's originating from the call to Pm_Close in pmidi.c? On 23 May 2013 14:02, Rory Walsh |
Date | 2013-05-23 14:11 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] problem with latest tip and API. |
try to set -+rtmdi=NULL and see if if fixes it. Victor On 23 May 2013, at 14:08, Rory Walsh wrote: > The problem is coming from this function(midirecv.c line 597), with > the error being printed as soon a MidiInCloseCallback() is called? > > void MidiClose(CSOUND *csound) > { > MGLOBAL *p = csound->midiGlobals; > int retval; > > if (p==NULL) { > printf("No MIDI\n"); > return; > } > if (p->MidiInCloseCallback != NULL) { > retval = p->MidiInCloseCallback(csound, p->midiInUserData); > > Digging a little deeper it seems that it's originating from the call > to Pm_Close in pmidi.c? > > > > > > > On 23 May 2013 14:02, Rory Walsh |
Date | 2013-05-23 14:12 |
From | Rory Walsh |
Subject | Re: [Cs-dev] problem with latest tip and API. |
That's what all my Cabbage csd's are set to, hence my bewilderment at this error. It looks like it's trying to open a midi device with portmidi even though I've set rtmidi to NULL? On 23 May 2013 14:11, Victor Lazzarini |
Date | 2013-05-23 14:17 |
From | Rory Walsh |
Subject | Re: [Cs-dev] problem with latest tip and API. |
I guess it's clear that there will be a problem if Csound is trying to close a midi port that has not been opened? For the record, these are the command line flags I'm using: -n -d -+rtmidi=NULL -M0 --midi-key-cps=4 --midi-velocity-amp=5 ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-05-23 14:17 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] problem with latest tip and API. |
Then portmidi is probably being reset as the default MIDI output at some point and then fails because it has not been properly started. On 23 May 2013, at 14:12, Rory Walsh wrote: > That's what all my Cabbage csd's are set to, hence my bewilderment at > this error. It looks like it's trying to open a midi device with > portmidi even though I've set rtmidi to NULL? > > > > On 23 May 2013 14:11, Victor Lazzarini |
Date | 2013-05-23 14:29 |
From | Rory Walsh |
Subject | Re: [Cs-dev] problem with latest tip and API. |
But how is portMIDI being called into play at all if I keep using rtmidi=NULL? I'm looking through the GIT commits to see if I can spot any changes that might be causing this to happen but nothing sticks out.. ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-05-23 14:57 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] problem with latest tip and API. |
My guess is this: 1) csoundReset() reassigns the MIDI io callbacks to portmidi module 2) midiclose calls it and crashes. The MIDI module assignment is done via a configuration variable, and that config var code has been updated by Steven. I wonder if the bug has crept in at this stage. A small C or C++ program demontrating the problem would help us debug. On 23 May 2013, at 14:29, Rory Walsh wrote: > But how is portMIDI being called into play at all if I keep using > rtmidi=NULL? I'm looking through the GIT commits to see if I can spot > any changes that might be causing this to happen but nothing sticks > out.. > > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may > _______________________________________________ > 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 ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-05-23 15:08 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] problem with latest tip and API. |
you can actually do a quick test for us. Change this line (csound.c:2796) strcpy(s, "portmidi"); to strcpy(s, "null"); and see if it makes any difference. On 23 May 2013, at 14:57, Victor Lazzarini wrote: > My guess is this: > > 1) csoundReset() reassigns the MIDI io callbacks to portmidi module > 2) midiclose calls it and crashes. > > The MIDI module assignment is done via a configuration variable, and that config var code has > been updated by Steven. I wonder if the bug has crept in at this stage. > > A small C or C++ program demontrating the problem would help us debug. > > On 23 May 2013, at 14:29, Rory Walsh wrote: > >> But how is portMIDI being called into play at all if I keep using >> rtmidi=NULL? I'm looking through the GIT commits to see if I can spot >> any changes that might be causing this to happen but nothing sticks >> out.. >> >> ------------------------------------------------------------------------------ >> Try New Relic Now & We'll Send You this Cool Shirt >> New Relic is the only SaaS-based application performance monitoring service >> that delivers powerful full stack analytics. Optimize and monitor your >> browser, app, & servers with just a few lines of code. Try New Relic >> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may >> _______________________________________________ >> 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 > > > > > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may > _______________________________________________ > 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 ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-05-23 15:20 |
From | Rory Walsh |
Subject | Re: [Cs-dev] problem with latest tip and API. |
That seemed to have worked Victor. I'll try a few more tests, but so far so good. ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-05-23 15:20 |
From | Rory Walsh |
Subject | Re: [Cs-dev] problem with latest tip and API. |
Thanks btw! On 23 May 2013 15:20, Rory Walsh |
Date | 2013-05-23 15:25 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] problem with latest tip and API. |
yes, but that is not the solution, at least indicates that I was right. Now I have to find what changes were made to cause this. Thanks for testing. Victor On 23 May 2013, at 15:20, Rory Walsh wrote: > That seemed to have worked Victor. I'll try a few more tests, but so > far so good. > > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may > _______________________________________________ > 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 ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-05-23 16:33 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] problem with latest tip and API. |
Rory, can you pull and check if my latest changes fix your problem? Victor On 23 May 2013, at 15:20, Rory Walsh wrote: > Thanks btw! > > On 23 May 2013 15:20, Rory Walsh |
Date | 2013-05-23 16:50 |
From | Rory Walsh |
Subject | Re: [Cs-dev] problem with latest tip and API. |
Works fine here. Nice one. ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-05-23 16:54 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] problem with latest tip and API. |
Uff. On 23 May 2013, at 16:50, Rory Walsh wrote: > Works fine here. Nice one. > > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may > _______________________________________________ > 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 ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |