Csound Csound-dev Csound-tekno Search About

[Cs-dev] calling both GetSpout() and GetSpin() causing crash for host?

Date2015-05-15 21:53
FromRory Walsh
Subject[Cs-dev] calling both GetSpout() and GetSpin() causing crash for host?
Unity5 now comes with an Audio plugin API. I thought I would try
building a simple Csound effect as the API looks simple enough to use.
My plugin will build and load in Unity so long as I don't call
GetSpout() AND GetSpin(). I can't think what is causing the problem. I
make no further calls to the Csound API after this. Has anyone come
across this before? I'm going to try to figure out how to load run
Unity through Xcode. I guess that's probably the only way to see
what's really happening.

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2015-05-15 22:11
FromSteven Yi
SubjectRe: [Cs-dev] calling both GetSpout() and GetSpin() causing crash for host?
I think we need more information.  Do you have test code to show the
problem?  Or a gdb backtrace?

On Fri, May 15, 2015 at 4:53 PM, Rory Walsh  wrote:
> Unity5 now comes with an Audio plugin API. I thought I would try
> building a simple Csound effect as the API looks simple enough to use.
> My plugin will build and load in Unity so long as I don't call
> GetSpout() AND GetSpin(). I can't think what is causing the problem. I
> make no further calls to the Csound API after this. Has anyone come
> across this before? I'm going to try to figure out how to load run
> Unity through Xcode. I guess that's probably the only way to see
> what's really happening.
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2015-05-15 22:11
FromVictor Lazzarini
SubjectRe: [Cs-dev] calling both GetSpout() and GetSpin() causing crash for host?
No. Csound for iOS does that as far as I can remember. There is no reason why you should not be able to do that. The problem is elsewhere probably.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 15 May 2015, at 21:53, Rory Walsh  wrote:
> 
> Unity5 now comes with an Audio plugin API. I thought I would try
> building a simple Csound effect as the API looks simple enough to use.
> My plugin will build and load in Unity so long as I don't call
> GetSpout() AND GetSpin(). I can't think what is causing the problem. I
> make no further calls to the Csound API after this. Has anyone come
> across this before? I'm going to try to figure out how to load run
> Unity through Xcode. I guess that's probably the only way to see
> what's really happening.
> 
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud 
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2015-05-15 22:47
FromRory Walsh
SubjectRe: [Cs-dev] calling both GetSpout() and GetSpin() causing crash for host?
I'll try to set up some kind of debug environment and see what I can
see. I know it was a stab in the dark, but I just thought I would ask
in case anything obvious could be at fault. The code taht is causing
teh problem looks like this:

    UNITY_AUDIODSP_RESULT UNITY_AUDIODSP_CALLBACK
CreateCallback(UnityAudioEffectState* state)
    {

        EffectData* effectdata = new EffectData;
        memset(effectdata, 0, sizeof(EffectData));
        effectdata->data.c = 1.0f;
        effectdata->csound = new Csound();
        int result =
effectdata->csound->Compile("/Users/walshr/sourcecode/UnityNativeAudioPluginSDK/Test.csd");

        effectdata->CSspout = effectdata->csound->GetSpout();
        effectdata->CSspin  = effectdata->csound->GetSpin();
        effectdata->csdIndex = 0;
        effectdata->samplePos = 0;
        state->effectdata = effectdata;

        InitParametersFromDefinitions(InternalRegisterEffectDefinition,
effectdata->data.p);
        return UNITY_AUDIODSP_OK;
    }

Compile is returned 0 so all is Ok there. Anyhow. I'll set up some
kind of debugger and post back.

On 15 May 2015 at 22:11, Victor Lazzarini  wrote:
> No. Csound for iOS does that as far as I can remember. There is no reason why you should not be able to do that. The problem is elsewhere probably.
>
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
>
>> On 15 May 2015, at 21:53, Rory Walsh  wrote:
>>
>> Unity5 now comes with an Audio plugin API. I thought I would try
>> building a simple Csound effect as the API looks simple enough to use.
>> My plugin will build and load in Unity so long as I don't call
>> GetSpout() AND GetSpin(). I can't think what is causing the problem. I
>> make no further calls to the Csound API after this. Has anyone come
>> across this before? I'm going to try to figure out how to load run
>> Unity through Xcode. I guess that's probably the only way to see
>> what's really happening.
>>
>> ------------------------------------------------------------------------------
>> One dashboard for servers and applications across Physical-Virtual-Cloud
>> Widest out-of-the-box monitoring support with 50+ applications
>> Performance metrics, stats and reports that give you Actionable Insights
>> Deep dive visibility with transaction tracing using APM Insight.
>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2015-05-16 00:27
FromMichael Gogins
SubjectRe: [Cs-dev] calling both GetSpout() and GetSpin() causing crash for host?
AttachmentsNone  None  

They are not safe until performance has started, as I recall.

Regards,
Mike

On May 15, 2015 4:54 PM, "Rory Walsh" <rorywalsh@ear.ie> wrote:
Unity5 now comes with an Audio plugin API. I thought I would try
building a simple Csound effect as the API looks simple enough to use.
My plugin will build and load in Unity so long as I don't call
GetSpout() AND GetSpin(). I can't think what is causing the problem. I
make no further calls to the Csound API after this. Has anyone come
across this before? I'm going to try to figure out how to load run
Unity through Xcode. I guess that's probably the only way to see
what's really happening.

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Date2015-05-16 09:48
FromRory Walsh
SubjectRe: [Cs-dev] calling both GetSpout() and GetSpin() causing crash for host?
Can anyone help me setting up a debug environment with Xcode. It's
driving me mad. With every other IDE I use I can select a program to
host my library. So when I start debugging that host program will
launch, but I can't seem to do this with Xcode? I can 'attach to a
running process' but this is rather useless considering that the
process I wish to attach it to, Unity, crashes as soon as I start it.
Any ideas how to set this up?

On 16 May 2015 at 00:27, Michael Gogins  wrote:
> They are not safe until performance has started, as I recall.
>
> Regards,
> Mike
>
> On May 15, 2015 4:54 PM, "Rory Walsh"  wrote:
>>
>> Unity5 now comes with an Audio plugin API. I thought I would try
>> building a simple Csound effect as the API looks simple enough to use.
>> My plugin will build and load in Unity so long as I don't call
>> GetSpout() AND GetSpin(). I can't think what is causing the problem. I
>> make no further calls to the Csound API after this. Has anyone come
>> across this before? I'm going to try to figure out how to load run
>> Unity through Xcode. I guess that's probably the only way to see
>> what's really happening.
>>
>>
>> ------------------------------------------------------------------------------
>> One dashboard for servers and applications across Physical-Virtual-Cloud
>> Widest out-of-the-box monitoring support with 50+ applications
>> Performance metrics, stats and reports that give you Actionable Insights
>> Deep dive visibility with transaction tracing using APM Insight.
>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2015-05-16 09:59
FromRory Walsh
SubjectRe: [Cs-dev] calling both GetSpout() and GetSpin() causing crash for host?
Found it! It's under 'Schemes'. Using a new IDE is like trying to
change gears on a car with a steering wheel. More to follow...

On 16 May 2015 at 09:48, Rory Walsh  wrote:
> Can anyone help me setting up a debug environment with Xcode. It's
> driving me mad. With every other IDE I use I can select a program to
> host my library. So when I start debugging that host program will
> launch, but I can't seem to do this with Xcode? I can 'attach to a
> running process' but this is rather useless considering that the
> process I wish to attach it to, Unity, crashes as soon as I start it.
> Any ideas how to set this up?
>
> On 16 May 2015 at 00:27, Michael Gogins  wrote:
>> They are not safe until performance has started, as I recall.
>>
>> Regards,
>> Mike
>>
>> On May 15, 2015 4:54 PM, "Rory Walsh"  wrote:
>>>
>>> Unity5 now comes with an Audio plugin API. I thought I would try
>>> building a simple Csound effect as the API looks simple enough to use.
>>> My plugin will build and load in Unity so long as I don't call
>>> GetSpout() AND GetSpin(). I can't think what is causing the problem. I
>>> make no further calls to the Csound API after this. Has anyone come
>>> across this before? I'm going to try to figure out how to load run
>>> Unity through Xcode. I guess that's probably the only way to see
>>> what's really happening.
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>> Widest out-of-the-box monitoring support with 50+ applications
>>> Performance metrics, stats and reports that give you Actionable Insights
>>> Deep dive visibility with transaction tracing using APM Insight.
>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> ------------------------------------------------------------------------------
>> One dashboard for servers and applications across Physical-Virtual-Cloud
>> Widest out-of-the-box monitoring support with 50+ applications
>> Performance metrics, stats and reports that give you Actionable Insights
>> Deep dive visibility with transaction tracing using APM Insight.
>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2015-05-16 10:06
FromVictor Lazzarini
SubjectRe: [Cs-dev] calling both GetSpout() and GetSpin() causing crash for host?
why don’t you use lldb/gdb on the command line and then the “attach ” command? It is simple enough. Then
“continue” to carry on running.

========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 16 May 2015, at 09:48, Rory Walsh  wrote:
> 
> Can anyone help me setting up a debug environment with Xcode. It's
> driving me mad. With every other IDE I use I can select a program to
> host my library. So when I start debugging that host program will
> launch, but I can't seem to do this with Xcode? I can 'attach to a
> running process' but this is rather useless considering that the
> process I wish to attach it to, Unity, crashes as soon as I start it.
> Any ideas how to set this up?
> 
> On 16 May 2015 at 00:27, Michael Gogins  wrote:
>> They are not safe until performance has started, as I recall.
>> 
>> Regards,
>> Mike
>> 
>> On May 15, 2015 4:54 PM, "Rory Walsh"  wrote:
>>> 
>>> Unity5 now comes with an Audio plugin API. I thought I would try
>>> building a simple Csound effect as the API looks simple enough to use.
>>> My plugin will build and load in Unity so long as I don't call
>>> GetSpout() AND GetSpin(). I can't think what is causing the problem. I
>>> make no further calls to the Csound API after this. Has anyone come
>>> across this before? I'm going to try to figure out how to load run
>>> Unity through Xcode. I guess that's probably the only way to see
>>> what's really happening.
>>> 
>>> 
>>> ------------------------------------------------------------------------------
>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>> Widest out-of-the-box monitoring support with 50+ applications
>>> Performance metrics, stats and reports that give you Actionable Insights
>>> Deep dive visibility with transaction tracing using APM Insight.
>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> 
>> ------------------------------------------------------------------------------
>> One dashboard for servers and applications across Physical-Virtual-Cloud
>> Widest out-of-the-box monitoring support with 50+ applications
>> Performance metrics, stats and reports that give you Actionable Insights
>> Deep dive visibility with transaction tracing using APM Insight.
>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
> 
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud 
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-d

Date2015-05-16 10:23
FromRory Walsh
SubjectRe: [Cs-dev] calling both GetSpout() and GetSpin() causing crash for host?
AttachmentsScreen Shot 2015-05-16 at 10.07.54.png  None  None  
attach attaches to a running process. Unity won't run when it tries to
load my library, so I can't attach to a running process? Anyway, I
have the debugger running now in Xcode and I've placed breakpoints
into the trouble spot. When I try to step over the call to GetSpin(),
after calling GetSpout() (or vice versa) I get an EXC_BAD_ERROR, but
it doesn't tell me much else. The debugger won't let me step over this
call and I just get stuck there. I've attached a screenshot. It's
pretty nondescript. I guess I need a debug version of Csound for this?

On 16 May 2015 at 10:06, Victor Lazzarini  wrote:
> why don’t you use lldb/gdb on the command line and then the “attach ” command? It is simple enough. Then
> “continue” to carry on running.
>
> ========================
> Dr Victor Lazzarini
> Dean of Arts, Celtic Studies and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 16 May 2015, at 09:48, Rory Walsh  wrote:
>>
>> Can anyone help me setting up a debug environment with Xcode. It's
>> driving me mad. With every other IDE I use I can select a program to
>> host my library. So when I start debugging that host program will
>> launch, but I can't seem to do this with Xcode? I can 'attach to a
>> running process' but this is rather useless considering that the
>> process I wish to attach it to, Unity, crashes as soon as I start it.
>> Any ideas how to set this up?
>>
>> On 16 May 2015 at 00:27, Michael Gogins  wrote:
>>> They are not safe until performance has started, as I recall.
>>>
>>> Regards,
>>> Mike
>>>
>>> On May 15, 2015 4:54 PM, "Rory Walsh"  wrote:
>>>>
>>>> Unity5 now comes with an Audio plugin API. I thought I would try
>>>> building a simple Csound effect as the API looks simple enough to use.
>>>> My plugin will build and load in Unity so long as I don't call
>>>> GetSpout() AND GetSpin(). I can't think what is causing the problem. I
>>>> make no further calls to the Csound API after this. Has anyone come
>>>> across this before? I'm going to try to figure out how to load run
>>>> Unity through Xcode. I guess that's probably the only way to see
>>>> what's really happening.
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>> Widest out-of-the-box monitoring support with 50+ applications
>>> Performance metrics, stats and reports that give you Actionable Insights
>>> Deep dive visibility with transaction tracing using APM Insight.
>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>> ------------------------------------------------------------------------------
>> One dashboard for servers and applications across Physical-Virtual-Cloud
>> Widest out-of-the-box monitoring support with 50+ applications
>> Performance metrics, stats and reports that give you Actionable Insights
>> Deep dive visibility with transaction tracing using APM Insight.
>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Date2015-05-16 10:30
FromVictor Lazzarini
SubjectRe: [Cs-dev] calling both GetSpout() and GetSpin() causing crash for host?
yes, you do need a debug version to see the symbols.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 16 May 2015, at 10:23, Rory Walsh  wrote:
> 
> attach attaches to a running process. Unity won't run when it tries to
> load my library, so I can't attach to a running process? Anyway, I
> have the debugger running now in Xcode and I've placed breakpoints
> into the trouble spot. When I try to step over the call to GetSpin(),
> after calling GetSpout() (or vice versa) I get an EXC_BAD_ERROR, but
> it doesn't tell me much else. The debugger won't let me step over this
> call and I just get stuck there. I've attached a screenshot. It's
> pretty nondescript. I guess I need a debug version of Csound for this?
> 
>> On 16 May 2015 at 10:06, Victor Lazzarini  wrote:
>> why don’t you use lldb/gdb on the command line and then the “attach ” command? It is simple enough. Then
>> “continue” to carry on running.
>> 
>> ========================
>> Dr Victor Lazzarini
>> Dean of Arts, Celtic Studies and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952
>> 
>>> On 16 May 2015, at 09:48, Rory Walsh  wrote:
>>> 
>>> Can anyone help me setting up a debug environment with Xcode. It's
>>> driving me mad. With every other IDE I use I can select a program to
>>> host my library. So when I start debugging that host program will
>>> launch, but I can't seem to do this with Xcode? I can 'attach to a
>>> running process' but this is rather useless considering that the
>>> process I wish to attach it to, Unity, crashes as soon as I start it.
>>> Any ideas how to set this up?
>>> 
>>>> On 16 May 2015 at 00:27, Michael Gogins  wrote:
>>>> They are not safe until performance has started, as I recall.
>>>> 
>>>> Regards,
>>>> Mike
>>>> 
>>>>> On May 15, 2015 4:54 PM, "Rory Walsh"  wrote:
>>>>> 
>>>>> Unity5 now comes with an Audio plugin API. I thought I would try
>>>>> building a simple Csound effect as the API looks simple enough to use.
>>>>> My plugin will build and load in Unity so long as I don't call
>>>>> GetSpout() AND GetSpin(). I can't think what is causing the problem. I
>>>>> make no further calls to the Csound API after this. Has anyone come
>>>>> across this before? I'm going to try to figure out how to load run
>>>>> Unity through Xcode. I guess that's probably the only way to see
>>>>> what's really happening.
>>>>> 
>>>>> 
>>>>> ------------------------------------------------------------------------------
>>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>> 
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> 
>>> ------------------------------------------------------------------------------
>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>> Widest out-of-the-box monitoring support with 50+ applications
>>> Performance metrics, stats and reports that give you Actionable Insights
>>> Deep dive visibility with transaction tracing using APM Insight.
>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> 
>> ------------------------------------------------------------------------------
>> One dashboard for servers and applications across Physical-Virtual-Cloud
>> Widest out-of-the-box monitoring support with 50+ applications
>> Performance metrics, stats and reports that give you Actionable Insights
>> Deep dive visibility with transaction tracing using APM Insight.
>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud 
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://l

Date2015-05-16 10:51
FromRory Walsh
SubjectRe: [Cs-dev] calling both GetSpout() and GetSpin() causing crash for host?
Looking into this now. Must I use homebrew? Or can I simply use the
same cmake setup I use for other platforms?

On 16 May 2015 at 10:30, Victor Lazzarini  wrote:
> yes, you do need a debug version to see the symbols.
>
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
>
>> On 16 May 2015, at 10:23, Rory Walsh  wrote:
>>
>> attach attaches to a running process. Unity won't run when it tries to
>> load my library, so I can't attach to a running process? Anyway, I
>> have the debugger running now in Xcode and I've placed breakpoints
>> into the trouble spot. When I try to step over the call to GetSpin(),
>> after calling GetSpout() (or vice versa) I get an EXC_BAD_ERROR, but
>> it doesn't tell me much else. The debugger won't let me step over this
>> call and I just get stuck there. I've attached a screenshot. It's
>> pretty nondescript. I guess I need a debug version of Csound for this?
>>
>>> On 16 May 2015 at 10:06, Victor Lazzarini  wrote:
>>> why don’t you use lldb/gdb on the command line and then the “attach ” command? It is simple enough. Then
>>> “continue” to carry on running.
>>>
>>> ========================
>>> Dr Victor Lazzarini
>>> Dean of Arts, Celtic Studies and Philosophy,
>>> Maynooth University,
>>> Maynooth, Co Kildare, Ireland
>>> Tel: 00 353 7086936
>>> Fax: 00 353 1 7086952
>>>
>>>> On 16 May 2015, at 09:48, Rory Walsh  wrote:
>>>>
>>>> Can anyone help me setting up a debug environment with Xcode. It's
>>>> driving me mad. With every other IDE I use I can select a program to
>>>> host my library. So when I start debugging that host program will
>>>> launch, but I can't seem to do this with Xcode? I can 'attach to a
>>>> running process' but this is rather useless considering that the
>>>> process I wish to attach it to, Unity, crashes as soon as I start it.
>>>> Any ideas how to set this up?
>>>>
>>>>> On 16 May 2015 at 00:27, Michael Gogins  wrote:
>>>>> They are not safe until performance has started, as I recall.
>>>>>
>>>>> Regards,
>>>>> Mike
>>>>>
>>>>>> On May 15, 2015 4:54 PM, "Rory Walsh"  wrote:
>>>>>>
>>>>>> Unity5 now comes with an Audio plugin API. I thought I would try
>>>>>> building a simple Csound effect as the API looks simple enough to use.
>>>>>> My plugin will build and load in Unity so long as I don't call
>>>>>> GetSpout() AND GetSpin(). I can't think what is causing the problem. I
>>>>>> make no further calls to the Csound API after this. Has anyone come
>>>>>> across this before? I'm going to try to figure out how to load run
>>>>>> Unity through Xcode. I guess that's probably the only way to see
>>>>>> what's really happening.
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> ------------------------------------------------------------------------------
>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>> Widest out-of-the-box monitoring support with 50+ applications
>>> Performance metrics, stats and reports that give you Actionable Insights
>>> Deep dive visibility with transaction tracing using APM Insight.
>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> ------------------------------------------------------------------------------
>> One dashboard for servers and applications across Physical-Virtual-Cloud
>> Widest out-of-the-box monitoring support with 50+ applications
>> Performance metrics, stats and reports that give you Actionable Insights
>> Deep dive visibility with transaction tracing using APM Insight.
>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/li

Date2015-05-16 10:51
FromVictor Lazzarini
SubjectRe: [Cs-dev] calling both GetSpout() and GetSpin() causing crash for host?
It does not make any sense that you can’t call GetSpin() and GetSpout().
Just to clear this up, I’ve compiled and run this program

#include 
#include "csound.hpp"

int main(int argc, char *argv[])
{
/*Create an instance of Csound*/
 Csound* csound = new Csound;
 csound->Compile("example1.csd", "-iadc", "-odac", "-+rtaudio=null");
 MYFLT *spin = csound->GetSpin();
 MYFLT *spout = csound->GetSpout();
delete csound;
}

and had no crashes. 
So the problem is elsewhere.

========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 16 May 2015, at 10:23, Rory Walsh  wrote:
> 
> attach attaches to a running process. Unity won't run when it tries to
> load my library, so I can't attach to a running process? Anyway, I
> have the debugger running now in Xcode and I've placed breakpoints
> into the trouble spot. When I try to step over the call to GetSpin(),
> after calling GetSpout() (or vice versa) I get an EXC_BAD_ERROR, but
> it doesn't tell me much else. The debugger won't let me step over this
> call and I just get stuck there. I've attached a screenshot. It's
> pretty nondescript. I guess I need a debug version of Csound for this?
> 
> On 16 May 2015 at 10:06, Victor Lazzarini  wrote:
>> why don’t you use lldb/gdb on the command line and then the “attach ” command? It is simple enough. Then
>> “continue” to carry on running.
>> 
>> ========================
>> Dr Victor Lazzarini
>> Dean of Arts, Celtic Studies and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952
>> 
>>> On 16 May 2015, at 09:48, Rory Walsh  wrote:
>>> 
>>> Can anyone help me setting up a debug environment with Xcode. It's
>>> driving me mad. With every other IDE I use I can select a program to
>>> host my library. So when I start debugging that host program will
>>> launch, but I can't seem to do this with Xcode? I can 'attach to a
>>> running process' but this is rather useless considering that the
>>> process I wish to attach it to, Unity, crashes as soon as I start it.
>>> Any ideas how to set this up?
>>> 
>>> On 16 May 2015 at 00:27, Michael Gogins  wrote:
>>>> They are not safe until performance has started, as I recall.
>>>> 
>>>> Regards,
>>>> Mike
>>>> 
>>>> On May 15, 2015 4:54 PM, "Rory Walsh"  wrote:
>>>>> 
>>>>> Unity5 now comes with an Audio plugin API. I thought I would try
>>>>> building a simple Csound effect as the API looks simple enough to use.
>>>>> My plugin will build and load in Unity so long as I don't call
>>>>> GetSpout() AND GetSpin(). I can't think what is causing the problem. I
>>>>> make no further calls to the Csound API after this. Has anyone come
>>>>> across this before? I'm going to try to figure out how to load run
>>>>> Unity through Xcode. I guess that's probably the only way to see
>>>>> what's really happening.
>>>>> 
>>>>> 
>>>>> ------------------------------------------------------------------------------
>>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>> 
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>> 
>>> 
>>> ------------------------------------------------------------------------------
>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>> Widest out-of-the-box monitoring support with 50+ applications
>>> Performance metrics, stats and reports that give you Actionable Insights
>>> Deep dive visibility with transaction tracing using APM Insight.
>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> 
>> ------------------------------------------------------------------------------
>> One dashboard for servers and applications across Physical-Virtual-Cloud
>> Widest out-of-the-box monitoring support with 50+ applications
>> Performance metrics, stats and reports that give you Actionable Insights
>> Deep dive visibility with transaction tracing using APM Insight.
>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud 
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y_______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-deve

Date2015-05-16 10:57
FromRory Walsh
SubjectRe: [Cs-dev] calling both GetSpout() and GetSpin() causing crash for host?
I know. I do this all the time and have never had a problem before.

On 16 May 2015 at 10:51, Victor Lazzarini  wrote:
> It does not make any sense that you can’t call GetSpin() and GetSpout().
> Just to clear this up, I’ve compiled and run this program
>
> #include 
> #include "csound.hpp"
>
> int main(int argc, char *argv[])
> {
> /*Create an instance of Csound*/
>  Csound* csound = new Csound;
>  csound->Compile("example1.csd", "-iadc", "-odac", "-+rtaudio=null");
>  MYFLT *spin = csound->GetSpin();
>  MYFLT *spout = csound->GetSpout();
> delete csound;
> }
>
> and had no crashes.
> So the problem is elsewhere.
>
> ========================
> Dr Victor Lazzarini
> Dean of Arts, Celtic Studies and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 16 May 2015, at 10:23, Rory Walsh  wrote:
>>
>> attach attaches to a running process. Unity won't run when it tries to
>> load my library, so I can't attach to a running process? Anyway, I
>> have the debugger running now in Xcode and I've placed breakpoints
>> into the trouble spot. When I try to step over the call to GetSpin(),
>> after calling GetSpout() (or vice versa) I get an EXC_BAD_ERROR, but
>> it doesn't tell me much else. The debugger won't let me step over this
>> call and I just get stuck there. I've attached a screenshot. It's
>> pretty nondescript. I guess I need a debug version of Csound for this?
>>
>> On 16 May 2015 at 10:06, Victor Lazzarini  wrote:
>>> why don’t you use lldb/gdb on the command line and then the “attach ” command? It is simple enough. Then
>>> “continue” to carry on running.
>>>
>>> ========================
>>> Dr Victor Lazzarini
>>> Dean of Arts, Celtic Studies and Philosophy,
>>> Maynooth University,
>>> Maynooth, Co Kildare, Ireland
>>> Tel: 00 353 7086936
>>> Fax: 00 353 1 7086952
>>>
>>>> On 16 May 2015, at 09:48, Rory Walsh  wrote:
>>>>
>>>> Can anyone help me setting up a debug environment with Xcode. It's
>>>> driving me mad. With every other IDE I use I can select a program to
>>>> host my library. So when I start debugging that host program will
>>>> launch, but I can't seem to do this with Xcode? I can 'attach to a
>>>> running process' but this is rather useless considering that the
>>>> process I wish to attach it to, Unity, crashes as soon as I start it.
>>>> Any ideas how to set this up?
>>>>
>>>> On 16 May 2015 at 00:27, Michael Gogins  wrote:
>>>>> They are not safe until performance has started, as I recall.
>>>>>
>>>>> Regards,
>>>>> Mike
>>>>>
>>>>> On May 15, 2015 4:54 PM, "Rory Walsh"  wrote:
>>>>>>
>>>>>> Unity5 now comes with an Audio plugin API. I thought I would try
>>>>>> building a simple Csound effect as the API looks simple enough to use.
>>>>>> My plugin will build and load in Unity so long as I don't call
>>>>>> GetSpout() AND GetSpin(). I can't think what is causing the problem. I
>>>>>> make no further calls to the Csound API after this. Has anyone come
>>>>>> across this before? I'm going to try to figure out how to load run
>>>>>> Unity through Xcode. I guess that's probably the only way to see
>>>>>> what's really happening.
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>> Widest out-of-the-box monitoring support with 50+ applications
>>> Performance metrics, stats and reports that give you Actionable Insights
>>> Deep dive visibility with transaction tracing using APM Insight.
>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> ------------------------------------------------------------------------------
>> One dashboard for servers and applications across Physical-Virtual-Cloud
>> Widest out-of-the-box monitoring support with 50+ applications
>> Performance metrics, stats and reports that give you Actionable Insights
>> Deep dive visibility with transaction tracing using APM Insight.
>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y_______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/li

Date2015-05-16 11:07
FromVictor Lazzarini
SubjectRe: [Cs-dev] calling both GetSpout() and GetSpin() causing crash for host?
you don’t need much. libsndfile installed & cmake.
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 16 May 2015, at 10:51, Rory Walsh  wrote:
> 
> Looking into this now. Must I use homebrew? Or can I simply use the
> same cmake setup I use for other platforms?
> 
> On 16 May 2015 at 10:30, Victor Lazzarini  wrote:
>> yes, you do need a debug version to see the symbols.
>> 
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>> 
>>> On 16 May 2015, at 10:23, Rory Walsh  wrote:
>>> 
>>> attach attaches to a running process. Unity won't run when it tries to
>>> load my library, so I can't attach to a running process? Anyway, I
>>> have the debugger running now in Xcode and I've placed breakpoints
>>> into the trouble spot. When I try to step over the call to GetSpin(),
>>> after calling GetSpout() (or vice versa) I get an EXC_BAD_ERROR, but
>>> it doesn't tell me much else. The debugger won't let me step over this
>>> call and I just get stuck there. I've attached a screenshot. It's
>>> pretty nondescript. I guess I need a debug version of Csound for this?
>>> 
>>>> On 16 May 2015 at 10:06, Victor Lazzarini  wrote:
>>>> why don’t you use lldb/gdb on the command line and then the “attach ” command? It is simple enough. Then
>>>> “continue” to carry on running.
>>>> 
>>>> ========================
>>>> Dr Victor Lazzarini
>>>> Dean of Arts, Celtic Studies and Philosophy,
>>>> Maynooth University,
>>>> Maynooth, Co Kildare, Ireland
>>>> Tel: 00 353 7086936
>>>> Fax: 00 353 1 7086952
>>>> 
>>>>> On 16 May 2015, at 09:48, Rory Walsh  wrote:
>>>>> 
>>>>> Can anyone help me setting up a debug environment with Xcode. It's
>>>>> driving me mad. With every other IDE I use I can select a program to
>>>>> host my library. So when I start debugging that host program will
>>>>> launch, but I can't seem to do this with Xcode? I can 'attach to a
>>>>> running process' but this is rather useless considering that the
>>>>> process I wish to attach it to, Unity, crashes as soon as I start it.
>>>>> Any ideas how to set this up?
>>>>> 
>>>>>> On 16 May 2015 at 00:27, Michael Gogins  wrote:
>>>>>> They are not safe until performance has started, as I recall.
>>>>>> 
>>>>>> Regards,
>>>>>> Mike
>>>>>> 
>>>>>>> On May 15, 2015 4:54 PM, "Rory Walsh"  wrote:
>>>>>>> 
>>>>>>> Unity5 now comes with an Audio plugin API. I thought I would try
>>>>>>> building a simple Csound effect as the API looks simple enough to use.
>>>>>>> My plugin will build and load in Unity so long as I don't call
>>>>>>> GetSpout() AND GetSpin(). I can't think what is causing the problem. I
>>>>>>> make no further calls to the Csound API after this. Has anyone come
>>>>>>> across this before? I'm going to try to figure out how to load run
>>>>>>> Unity through Xcode. I guess that's probably the only way to see
>>>>>>> what's really happening.
>>>>>>> 
>>>>>>> 
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> 
>>>>>> 
>>>>>> ------------------------------------------------------------------------------
>>>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>> 
>>>>> ------------------------------------------------------------------------------
>>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>> 
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> 
>>> ------------------------------------------------------------------------------
>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>> Widest out-of-the-box monitoring support with 50+ applications
>>> Performance metrics, stats and reports that give you Actionable Insights
>>> Deep dive visibility with transaction tracing using APM Insight.
>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> ------------------------------------------------------------------------------
>> One dashboard for servers and applications across Physical-Virtual-Cloud
>> Widest out-of-the-box monitoring support with 50+ applications
>> Performance metrics, stats and reports that give you Actionable Insights
>> Deep dive visibility with transaction tracing using APM Insight.
>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud 
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-deve

Date2015-05-16 12:07
FromRory Walsh
SubjectRe: [Cs-dev] calling both GetSpout() and GetSpin() causing crash for host?
I have a debug build working now, and I think it's pretty safe to say
that this isn't a Csound issue. It's most likely a memory issue. I'll
keep digging.

On 16 May 2015 at 11:07, Victor Lazzarini  wrote:
> you don’t need much. libsndfile installed & cmake.
> ========================
> Dr Victor Lazzarini
> Dean of Arts, Celtic Studies and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 16 May 2015, at 10:51, Rory Walsh  wrote:
>>
>> Looking into this now. Must I use homebrew? Or can I simply use the
>> same cmake setup I use for other platforms?
>>
>> On 16 May 2015 at 10:30, Victor Lazzarini  wrote:
>>> yes, you do need a debug version to see the symbols.
>>>
>>> Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy
>>> Maynooth University
>>> Ireland
>>>
>>>> On 16 May 2015, at 10:23, Rory Walsh  wrote:
>>>>
>>>> attach attaches to a running process. Unity won't run when it tries to
>>>> load my library, so I can't attach to a running process? Anyway, I
>>>> have the debugger running now in Xcode and I've placed breakpoints
>>>> into the trouble spot. When I try to step over the call to GetSpin(),
>>>> after calling GetSpout() (or vice versa) I get an EXC_BAD_ERROR, but
>>>> it doesn't tell me much else. The debugger won't let me step over this
>>>> call and I just get stuck there. I've attached a screenshot. It's
>>>> pretty nondescript. I guess I need a debug version of Csound for this?
>>>>
>>>>> On 16 May 2015 at 10:06, Victor Lazzarini  wrote:
>>>>> why don’t you use lldb/gdb on the command line and then the “attach ” command? It is simple enough. Then
>>>>> “continue” to carry on running.
>>>>>
>>>>> ========================
>>>>> Dr Victor Lazzarini
>>>>> Dean of Arts, Celtic Studies and Philosophy,
>>>>> Maynooth University,
>>>>> Maynooth, Co Kildare, Ireland
>>>>> Tel: 00 353 7086936
>>>>> Fax: 00 353 1 7086952
>>>>>
>>>>>> On 16 May 2015, at 09:48, Rory Walsh  wrote:
>>>>>>
>>>>>> Can anyone help me setting up a debug environment with Xcode. It's
>>>>>> driving me mad. With every other IDE I use I can select a program to
>>>>>> host my library. So when I start debugging that host program will
>>>>>> launch, but I can't seem to do this with Xcode? I can 'attach to a
>>>>>> running process' but this is rather useless considering that the
>>>>>> process I wish to attach it to, Unity, crashes as soon as I start it.
>>>>>> Any ideas how to set this up?
>>>>>>
>>>>>>> On 16 May 2015 at 00:27, Michael Gogins  wrote:
>>>>>>> They are not safe until performance has started, as I recall.
>>>>>>>
>>>>>>> Regards,
>>>>>>> Mike
>>>>>>>
>>>>>>>> On May 15, 2015 4:54 PM, "Rory Walsh"  wrote:
>>>>>>>>
>>>>>>>> Unity5 now comes with an Audio plugin API. I thought I would try
>>>>>>>> building a simple Csound effect as the API looks simple enough to use.
>>>>>>>> My plugin will build and load in Unity so long as I don't call
>>>>>>>> GetSpout() AND GetSpin(). I can't think what is causing the problem. I
>>>>>>>> make no further calls to the Csound API after this. Has anyone come
>>>>>>>> across this before? I'm going to try to figure out how to load run
>>>>>>>> Unity through Xcode. I guess that's probably the only way to see
>>>>>>>> what's really happening.
>>>>>>>>
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>>>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>>>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>>>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>>>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> ------------------------------------------------------------------------------
>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>> Widest out-of-the-box monitoring support with 50+ applications
>>> Performance metrics, stats and reports that give you Actionable Insights
>>> Deep dive visibility with transaction tracing using APM Insight.
>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> One dashboard for servers and applications across Physical-Virtual-Cloud
>> Widest out-of-the-box monitoring support with 50+ applications
>> Performance metrics, stats and reports that give you Actionable Insights
>> Deep dive visibility with transaction tracing using APM Insight.
>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
htt

Date2015-05-16 12:45
FromRory Walsh
SubjectRe: [Cs-dev] calling both GetSpout() and GetSpin() causing crash for host?
AttachmentsScreen Shot 2015-05-16 at 12.37.46.png  None  None  
If I use the c interface things get a little more interesting. So my
code looks like this now:

        csoundInitialize(CSOUNDINIT_NO_ATEXIT);
        effectdata->args[0] = "csound";
        effectdata->args[1] =
"/Users/walshr/sourcecode/UnityNativeAudioPluginSDK/Test.csd";
        csoundCompile(effectdata->csound, 2, effectdata->args);

I start stepping from csoundCompile() and it eventually leads me to a
EXC_BAD_ACCESS in csoundCompileArgs(). This seems very odd to me.
Check out the screenshot.



On 16 May 2015 at 12:07, Rory Walsh  wrote:
> I have a debug build working now, and I think it's pretty safe to say
> that this isn't a Csound issue. It's most likely a memory issue. I'll
> keep digging.
>
> On 16 May 2015 at 11:07, Victor Lazzarini  wrote:
>> you don’t need much. libsndfile installed & cmake.
>> ========================
>> Dr Victor Lazzarini
>> Dean of Arts, Celtic Studies and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952
>>
>>> On 16 May 2015, at 10:51, Rory Walsh  wrote:
>>>
>>> Looking into this now. Must I use homebrew? Or can I simply use the
>>> same cmake setup I use for other platforms?
>>>
>>> On 16 May 2015 at 10:30, Victor Lazzarini  wrote:
>>>> yes, you do need a debug version to see the symbols.
>>>>
>>>> Victor Lazzarini
>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>> Maynooth University
>>>> Ireland
>>>>
>>>>> On 16 May 2015, at 10:23, Rory Walsh  wrote:
>>>>>
>>>>> attach attaches to a running process. Unity won't run when it tries to
>>>>> load my library, so I can't attach to a running process? Anyway, I
>>>>> have the debugger running now in Xcode and I've placed breakpoints
>>>>> into the trouble spot. When I try to step over the call to GetSpin(),
>>>>> after calling GetSpout() (or vice versa) I get an EXC_BAD_ERROR, but
>>>>> it doesn't tell me much else. The debugger won't let me step over this
>>>>> call and I just get stuck there. I've attached a screenshot. It's
>>>>> pretty nondescript. I guess I need a debug version of Csound for this?
>>>>>
>>>>>> On 16 May 2015 at 10:06, Victor Lazzarini  wrote:
>>>>>> why don’t you use lldb/gdb on the command line and then the “attach ” command? It is simple enough. Then
>>>>>> “continue” to carry on running.
>>>>>>
>>>>>> ========================
>>>>>> Dr Victor Lazzarini
>>>>>> Dean of Arts, Celtic Studies and Philosophy,
>>>>>> Maynooth University,
>>>>>> Maynooth, Co Kildare, Ireland
>>>>>> Tel: 00 353 7086936
>>>>>> Fax: 00 353 1 7086952
>>>>>>
>>>>>>> On 16 May 2015, at 09:48, Rory Walsh  wrote:
>>>>>>>
>>>>>>> Can anyone help me setting up a debug environment with Xcode. It's
>>>>>>> driving me mad. With every other IDE I use I can select a program to
>>>>>>> host my library. So when I start debugging that host program will
>>>>>>> launch, but I can't seem to do this with Xcode? I can 'attach to a
>>>>>>> running process' but this is rather useless considering that the
>>>>>>> process I wish to attach it to, Unity, crashes as soon as I start it.
>>>>>>> Any ideas how to set this up?
>>>>>>>
>>>>>>>> On 16 May 2015 at 00:27, Michael Gogins  wrote:
>>>>>>>> They are not safe until performance has started, as I recall.
>>>>>>>>
>>>>>>>> Regards,
>>>>>>>> Mike
>>>>>>>>
>>>>>>>>> On May 15, 2015 4:54 PM, "Rory Walsh"  wrote:
>>>>>>>>>
>>>>>>>>> Unity5 now comes with an Audio plugin API. I thought I would try
>>>>>>>>> building a simple Csound effect as the API looks simple enough to use.
>>>>>>>>> My plugin will build and load in Unity so long as I don't call
>>>>>>>>> GetSpout() AND GetSpin(). I can't think what is causing the problem. I
>>>>>>>>> make no further calls to the Csound API after this. Has anyone come
>>>>>>>>> across this before? I'm going to try to figure out how to load run
>>>>>>>>> Unity through Xcode. I guess that's probably the only way to see
>>>>>>>>> what's really happening.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>>>>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>>>>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>>>>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>>>>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>>>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>>>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>>>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>>>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>> 
>>>>> ------------------------------------------------------------------------------
>>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> ------------------------------------------------------------------------------
>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> ------------------------------------------------------------------------------
>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>> Widest out-of-the-box monitoring support with 50+ applications
>>> Performance metrics, stats and reports that give you Actionable Insights
>>> Deep dive visibility with transaction tracing using APM Insight.
>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> ------------------------------------------------------------------------------
>> One dashboard for servers and applications across Physical-Virtual-Cloud
>> Widest out-of-the-box monitoring support with 50+ applications
>> Performance metrics, stats and reports that give you Actionable Insights
>> Deep dive visibility with transaction tracing using APM Insight.
>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel

Date2015-05-16 13:01
FromRory Walsh
SubjectRe: [Cs-dev] calling both GetSpout() and GetSpin() causing crash for host?
Hmmm......a call to csoundCreate(NULL) would help I'm sure! Let sees
what happens now..



On 16 May 2015 at 12:45, Rory Walsh  wrote:
> If I use the c interface things get a little more interesting. So my
> code looks like this now:
>
>         csoundInitialize(CSOUNDINIT_NO_ATEXIT);
>         effectdata->args[0] = "csound";
>         effectdata->args[1] =
> "/Users/walshr/sourcecode/UnityNativeAudioPluginSDK/Test.csd";
>         csoundCompile(effectdata->csound, 2, effectdata->args);
>
> I start stepping from csoundCompile() and it eventually leads me to a
> EXC_BAD_ACCESS in csoundCompileArgs(). This seems very odd to me.
> Check out the screenshot.
>
>
>
> On 16 May 2015 at 12:07, Rory Walsh  wrote:
>> I have a debug build working now, and I think it's pretty safe to say
>> that this isn't a Csound issue. It's most likely a memory issue. I'll
>> keep digging.
>>
>> On 16 May 2015 at 11:07, Victor Lazzarini  wrote:
>>> you don’t need much. libsndfile installed & cmake.
>>> ========================
>>> Dr Victor Lazzarini
>>> Dean of Arts, Celtic Studies and Philosophy,
>>> Maynooth University,
>>> Maynooth, Co Kildare, Ireland
>>> Tel: 00 353 7086936
>>> Fax: 00 353 1 7086952
>>>
>>>> On 16 May 2015, at 10:51, Rory Walsh  wrote:
>>>>
>>>> Looking into this now. Must I use homebrew? Or can I simply use the
>>>> same cmake setup I use for other platforms?
>>>>
>>>> On 16 May 2015 at 10:30, Victor Lazzarini  wrote:
>>>>> yes, you do need a debug version to see the symbols.
>>>>>
>>>>> Victor Lazzarini
>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>> Maynooth University
>>>>> Ireland
>>>>>
>>>>>> On 16 May 2015, at 10:23, Rory Walsh  wrote:
>>>>>>
>>>>>> attach attaches to a running process. Unity won't run when it tries to
>>>>>> load my library, so I can't attach to a running process? Anyway, I
>>>>>> have the debugger running now in Xcode and I've placed breakpoints
>>>>>> into the trouble spot. When I try to step over the call to GetSpin(),
>>>>>> after calling GetSpout() (or vice versa) I get an EXC_BAD_ERROR, but
>>>>>> it doesn't tell me much else. The debugger won't let me step over this
>>>>>> call and I just get stuck there. I've attached a screenshot. It's
>>>>>> pretty nondescript. I guess I need a debug version of Csound for this?
>>>>>>
>>>>>>> On 16 May 2015 at 10:06, Victor Lazzarini  wrote:
>>>>>>> why don’t you use lldb/gdb on the command line and then the “attach ” command? It is simple enough. Then
>>>>>>> “continue” to carry on running.
>>>>>>>
>>>>>>> ========================
>>>>>>> Dr Victor Lazzarini
>>>>>>> Dean of Arts, Celtic Studies and Philosophy,
>>>>>>> Maynooth University,
>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>> Tel: 00 353 7086936
>>>>>>> Fax: 00 353 1 7086952
>>>>>>>
>>>>>>>> On 16 May 2015, at 09:48, Rory Walsh  wrote:
>>>>>>>>
>>>>>>>> Can anyone help me setting up a debug environment with Xcode. It's
>>>>>>>> driving me mad. With every other IDE I use I can select a program to
>>>>>>>> host my library. So when I start debugging that host program will
>>>>>>>> launch, but I can't seem to do this with Xcode? I can 'attach to a
>>>>>>>> running process' but this is rather useless considering that the
>>>>>>>> process I wish to attach it to, Unity, crashes as soon as I start it.
>>>>>>>> Any ideas how to set this up?
>>>>>>>>
>>>>>>>>> On 16 May 2015 at 00:27, Michael Gogins  wrote:
>>>>>>>>> They are not safe until performance has started, as I recall.
>>>>>>>>>
>>>>>>>>> Regards,
>>>>>>>>> Mike
>>>>>>>>>
>>>>>>>>>> On May 15, 2015 4:54 PM, "Rory Walsh"  wrote:
>>>>>>>>>>
>>>>>>>>>> Unity5 now comes with an Audio plugin API. I thought I would try
>>>>>>>>>> building a simple Csound effect as the API looks simple enough to use.
>>>>>>>>>> My plugin will build and load in Unity so long as I don't call
>>>>>>>>>> GetSpout() AND GetSpin(). I can't think what is causing the problem. I
>>>>>>>>>> make no further calls to the Csound API after this. Has anyone come
>>>>>>>>>> across this before? I'm going to try to figure out how to load run
>>>>>>>>>> Unity through Xcode. I guess that's probably the only way to see
>>>>>>>>>> what's really happening.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>>>>>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>>>>>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>>>>>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>>>>>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>>>>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>>>>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>>>>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>>>>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>>>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>>>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>>>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>>>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> 
>>>>>> ------------------------------------------------------------------------------
>>>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> ------------------------------------------------------------------------------
>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>> Widest out-of-the-box monitoring support with 50+ applications
>>> Performance metrics, stats and reports that give you Actionable Insights
>>> Deep dive visibility with transaction tracing using APM Insight.
>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-de

Date2015-05-16 13:08
FromRory Walsh
SubjectRe: [Cs-dev] calling both GetSpout() and GetSpin() causing crash for host?
Oddly enough it still takes me to the same spot. My guess is that
memory is not being correctly allocated when the plugin instantiates.
Or something somewhere is corrupting some memory space. I think that
signals the end of my experiment. In the end I'm not sure how useful
it is as it only supports effects processors.

On 16 May 2015 at 13:01, Rory Walsh  wrote:
> Hmmm......a call to csoundCreate(NULL) would help I'm sure! Let sees
> what happens now..
>
>
>
> On 16 May 2015 at 12:45, Rory Walsh  wrote:
>> If I use the c interface things get a little more interesting. So my
>> code looks like this now:
>>
>>         csoundInitialize(CSOUNDINIT_NO_ATEXIT);
>>         effectdata->args[0] = "csound";
>>         effectdata->args[1] =
>> "/Users/walshr/sourcecode/UnityNativeAudioPluginSDK/Test.csd";
>>         csoundCompile(effectdata->csound, 2, effectdata->args);
>>
>> I start stepping from csoundCompile() and it eventually leads me to a
>> EXC_BAD_ACCESS in csoundCompileArgs(). This seems very odd to me.
>> Check out the screenshot.
>>
>>
>>
>> On 16 May 2015 at 12:07, Rory Walsh  wrote:
>>> I have a debug build working now, and I think it's pretty safe to say
>>> that this isn't a Csound issue. It's most likely a memory issue. I'll
>>> keep digging.
>>>
>>> On 16 May 2015 at 11:07, Victor Lazzarini  wrote:
>>>> you don’t need much. libsndfile installed & cmake.
>>>> ========================
>>>> Dr Victor Lazzarini
>>>> Dean of Arts, Celtic Studies and Philosophy,
>>>> Maynooth University,
>>>> Maynooth, Co Kildare, Ireland
>>>> Tel: 00 353 7086936
>>>> Fax: 00 353 1 7086952
>>>>
>>>>> On 16 May 2015, at 10:51, Rory Walsh  wrote:
>>>>>
>>>>> Looking into this now. Must I use homebrew? Or can I simply use the
>>>>> same cmake setup I use for other platforms?
>>>>>
>>>>> On 16 May 2015 at 10:30, Victor Lazzarini  wrote:
>>>>>> yes, you do need a debug version to see the symbols.
>>>>>>
>>>>>> Victor Lazzarini
>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>> Maynooth University
>>>>>> Ireland
>>>>>>
>>>>>>> On 16 May 2015, at 10:23, Rory Walsh  wrote:
>>>>>>>
>>>>>>> attach attaches to a running process. Unity won't run when it tries to
>>>>>>> load my library, so I can't attach to a running process? Anyway, I
>>>>>>> have the debugger running now in Xcode and I've placed breakpoints
>>>>>>> into the trouble spot. When I try to step over the call to GetSpin(),
>>>>>>> after calling GetSpout() (or vice versa) I get an EXC_BAD_ERROR, but
>>>>>>> it doesn't tell me much else. The debugger won't let me step over this
>>>>>>> call and I just get stuck there. I've attached a screenshot. It's
>>>>>>> pretty nondescript. I guess I need a debug version of Csound for this?
>>>>>>>
>>>>>>>> On 16 May 2015 at 10:06, Victor Lazzarini  wrote:
>>>>>>>> why don’t you use lldb/gdb on the command line and then the “attach ” command? It is simple enough. Then
>>>>>>>> “continue” to carry on running.
>>>>>>>>
>>>>>>>> ========================
>>>>>>>> Dr Victor Lazzarini
>>>>>>>> Dean of Arts, Celtic Studies and Philosophy,
>>>>>>>> Maynooth University,
>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>> Tel: 00 353 7086936
>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>
>>>>>>>>> On 16 May 2015, at 09:48, Rory Walsh  wrote:
>>>>>>>>>
>>>>>>>>> Can anyone help me setting up a debug environment with Xcode. It's
>>>>>>>>> driving me mad. With every other IDE I use I can select a program to
>>>>>>>>> host my library. So when I start debugging that host program will
>>>>>>>>> launch, but I can't seem to do this with Xcode? I can 'attach to a
>>>>>>>>> running process' but this is rather useless considering that the
>>>>>>>>> process I wish to attach it to, Unity, crashes as soon as I start it.
>>>>>>>>> Any ideas how to set this up?
>>>>>>>>>
>>>>>>>>>> On 16 May 2015 at 00:27, Michael Gogins  wrote:
>>>>>>>>>> They are not safe until performance has started, as I recall.
>>>>>>>>>>
>>>>>>>>>> Regards,
>>>>>>>>>> Mike
>>>>>>>>>>
>>>>>>>>>>> On May 15, 2015 4:54 PM, "Rory Walsh"  wrote:
>>>>>>>>>>>
>>>>>>>>>>> Unity5 now comes with an Audio plugin API. I thought I would try
>>>>>>>>>>> building a simple Csound effect as the API looks simple enough to use.
>>>>>>>>>>> My plugin will build and load in Unity so long as I don't call
>>>>>>>>>>> GetSpout() AND GetSpin(). I can't think what is causing the problem. I
>>>>>>>>>>> make no further calls to the Csound API after this. Has anyone come
>>>>>>>>>>> across this before? I'm going to try to figure out how to load run
>>>>>>>>>>> Unity through Xcode. I guess that's probably the only way to see
>>>>>>>>>>> what's really happening.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>>>>>>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>>>>>>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>>>>>>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>>>>>>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>>>>>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>>>>>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>>>>>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>>>>>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>>>>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>>>>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>>>>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>>>>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>>>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>>>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>>>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>>>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>> 
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cso

Date2015-05-16 14:52
FromRichard Dobson
SubjectRe: [Cs-dev] calling both GetSpout() and GetSpin() causing crash for host?
I am not familiar with this API, but I see:

...
>          EffectData* effectdata = new EffectData;

presumably EffectData has a proper constructor?


>          memset(effectdata, 0, sizeof(EffectData));

Which is really not a C++ way of doing things; it is the constructor's 
job to do initialization, zeroing etc if needed, whether it is a class 
or a struct. Is there a defined constructor for EffectData?

Then in a later example:

effectdata->args[0] = "csound";
         effectdata->args[1] = ...


so args is an array - is this hard-wired, or does it need to be 
allocated? It would have been wiped out by the memset call, if not 
allocated explicitly later on.

So is EffectData  being properly constructed, etc, including contained 
arrays, etc?


Richard Dobson







------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2015-05-16 15:24
FromRory Walsh
SubjectRe: [Cs-dev] calling both GetSpout() and GetSpin() causing crash for host?
Thanks Richard. I'm pretty sure that's where the problem is. All the
source is .cpp but it doesn't seem to follow many c++ conventions. No
constructors or dynamic memory allocation. I have to admit, it's not
the prettiest API I've seen :)

On 16 May 2015 at 14:52, Richard Dobson  wrote:
> I am not familiar with this API, but I see:
>
> ...
>>          EffectData* effectdata = new EffectData;
>
> presumably EffectData has a proper constructor?
>
>
>>          memset(effectdata, 0, sizeof(EffectData));
>
> Which is really not a C++ way of doing things; it is the constructor's
> job to do initialization, zeroing etc if needed, whether it is a class
> or a struct. Is there a defined constructor for EffectData?
>
> Then in a later example:
>
> effectdata->args[0] = "csound";
>          effectdata->args[1] = ...
>
>
> so args is an array - is this hard-wired, or does it need to be
> allocated? It would have been wiped out by the memset call, if not
> allocated explicitly later on.
>
> So is EffectData  being properly constructed, etc, including contained
> arrays, etc?
>
>
> Richard Dobson
>
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2015-05-16 15:27
FromVictor Lazzarini
SubjectRe: [Cs-dev] calling both GetSpout() and GetSpin() causing crash for host?
But EffectData is your class, is it not? It’s up to you to make sure it is proper C++ code.
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 16 May 2015, at 15:24, Rory Walsh  wrote:
> 
> Thanks Richard. I'm pretty sure that's where the problem is. All the
> source is .cpp but it doesn't seem to follow many c++ conventions. No
> constructors or dynamic memory allocation. I have to admit, it's not
> the prettiest API I've seen :)
> 
> On 16 May 2015 at 14:52, Richard Dobson  wrote:
>> I am not familiar with this API, but I see:
>> 
>> ...
>>>         EffectData* effectdata = new EffectData;
>> 
>> presumably EffectData has a proper constructor?
>> 
>> 
>>>         memset(effectdata, 0, sizeof(EffectData));
>> 
>> Which is really not a C++ way of doing things; it is the constructor's
>> job to do initialization, zeroing etc if needed, whether it is a class
>> or a struct. Is there a defined constructor for EffectData?
>> 
>> Then in a later example:
>> 
>> effectdata->args[0] = "csound";
>>         effectdata->args[1] = ...
>> 
>> 
>> so args is an array - is this hard-wired, or does it need to be
>> allocated? It would have been wiped out by the memset call, if not
>> allocated explicitly later on.
>> 
>> So is EffectData  being properly constructed, etc, including contained
>> arrays, etc?
>> 
>> 
>> Richard Dobson
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> One dashboard for servers and applications across Physical-Virtual-Cloud
>> Widest out-of-the-box monitoring support with 50+ applications
>> Performance metrics, stats and reports that give you Actionable Insights
>> Deep dive visibility with transaction tracing using APM Insight.
>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud 
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourcef

Date2015-05-16 15:43
FromRory Walsh
SubjectRe: [Cs-dev] calling both GetSpout() and GetSpin() causing crash for host?
It's all structs and namespaces. Thanks for the feedback. The struct
contained the Csound class wasn't be allocated properly. It is now.
I'm back in the game. The rest should be straightforward enough...



On 16 May 2015 at 15:27, Victor Lazzarini  wrote:
> But EffectData is your class, is it not? It’s up to you to make sure it is proper C++ code.
> ========================
> Dr Victor Lazzarini
> Dean of Arts, Celtic Studies and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 16 May 2015, at 15:24, Rory Walsh  wrote:
>>
>> Thanks Richard. I'm pretty sure that's where the problem is. All the
>> source is .cpp but it doesn't seem to follow many c++ conventions. No
>> constructors or dynamic memory allocation. I have to admit, it's not
>> the prettiest API I've seen :)
>>
>> On 16 May 2015 at 14:52, Richard Dobson  wrote:
>>> I am not familiar with this API, but I see:
>>>
>>> ...
>>>>         EffectData* effectdata = new EffectData;
>>>
>>> presumably EffectData has a proper constructor?
>>>
>>>
>>>>         memset(effectdata, 0, sizeof(EffectData));
>>>
>>> Which is really not a C++ way of doing things; it is the constructor's
>>> job to do initialization, zeroing etc if needed, whether it is a class
>>> or a struct. Is there a defined constructor for EffectData?
>>>
>>> Then in a later example:
>>>
>>> effectdata->args[0] = "csound";
>>>         effectdata->args[1] = ...
>>>
>>>
>>> so args is an array - is this hard-wired, or does it need to be
>>> allocated? It would have been wiped out by the memset call, if not
>>> allocated explicitly later on.
>>>
>>> So is EffectData  being properly constructed, etc, including contained
>>> arrays, etc?
>>>
>>>
>>> Richard Dobson
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>> Widest out-of-the-box monitoring support with 50+ applications
>>> Performance metrics, stats and reports that give you Actionable Insights
>>> Deep dive visibility with transaction tracing using APM Insight.
>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> One dashboard for servers and applications across Physical-Virtual-Cloud
>> Widest out-of-the-box monitoring support with 50+ applications
>> Performance metrics, stats and reports that give you Actionable Insights
>> Deep dive visibility with transaction tracing using APM Insight.
>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csoun