[Cs-dev] nested includes
Date | 2014-01-07 11:58 |
From | Oeyvind Brandtsegg |
Subject | [Cs-dev] nested includes |
Is there currently a limit on the nesting level of includes? I'm trying to make the ImproSculpt4 code run again, it worked on 5.13, but I have a hard time debugging why it does not run now (tested on 5.19 and on 6). In Csound 6 I get a Cannot open #include'd file .. and here usually the file name of the not-included file is printed, but I get only a blank line. I've chased it down to the actual place in the code that triggers the error message, but there is nothing out of the ordinary happening there. If I paste the code of the included file into the file from which it was included, then the error goes away. Not sure how many levels of include nesting I have here, but roughly between 5 and 10. -- Oeyvind Brandtsegg Professor of Music Technology NTNU 7491 Trondheim Norway Cell: +47 92 203 205 http://flyndresang.no/ http://www.partikkelaudio.com/ http://soundcloud.com/brandtsegg http://soundcloud.com/t-emp ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2014-01-07 12:59 |
From | jpff |
Subject | Re: [Cs-dev] nested includes |
I beloieve the limit is just memory On Tue, 7 Jan 2014, Oeyvind Brandtsegg wrote: > Is there currently a limit on the nesting level of includes? > > I'm trying to make the ImproSculpt4 code run again, it worked on 5.13, > but I have a hard time debugging why it does not run now (tested on > 5.19 and on 6). In Csound 6 I get a > Cannot open #include'd file > .. and here usually the file name of the not-included file is printed, > but I get only a blank line. > I've chased it down to the actual place in the code that triggers the > error message, but there is nothing out of the ordinary happening > there. If I paste the code of the included file into the file from > which it was included, then the error goes away. Not sure how many > levels of include nesting I have here, but roughly between 5 and 10. > > -- > > Oeyvind Brandtsegg > Professor of Music Technology > NTNU > 7491 Trondheim > Norway > Cell: +47 92 203 205 > > http://flyndresang.no/ > http://www.partikkelaudio.com/ > http://soundcloud.com/brandtsegg > http://soundcloud.com/t-emp > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel > ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2014-01-07 13:04 |
From | Oeyvind Brandtsegg |
Subject | Re: [Cs-dev] nested includes |
Hm, then what could it be that makes it fail for me?, it is probably unlikely that the memory imposes any practical limit here (?) Since I'm only using includes "a few" levels deep 2014/1/7 jpff |
Date | 2014-01-07 13:30 |
From | Anders Genell |
Subject | Re: [Cs-dev] nested includes |
Attachments | None None |
I haven't looked at any of your csd code so I don't know if this applies, but I just remembered that I recently noticed you cannot end an #include:d file with a comment - if you do it does not compile. Regards, Anders On Tue, Jan 7, 2014 at 2:04 PM, Oeyvind Brandtsegg <oyvind.brandtsegg@ntnu.no> wrote: Hm, then what could it be that makes it fail for me?, |
Date | 2014-01-07 14:22 |
From | jpff |
Subject | Re: [Cs-dev] nested includes |
There used to be a limit of 100 fir nesting of includes and macros, but that got largely removed in the rebuild of the new parser. Just noticed it has crept back -- linit of 100 anf should give error message of "Includes nested too deeply" or "macro_stack_ptr beyond end" Sorry I thought I had unwound that limitation. Will think about it. It is "easy" to increase this to any finite limit but it would be better as a flexible vaue Thinking out loud... could realloc the array and delete at end.... humm on release day too. ==John On Tue, 7 Jan 2014, Oeyvind Brandtsegg wrote: > Hm, then what could it be that makes it fail for me?, > it is probably unlikely that the memory imposes any practical limit > here (?) Since I'm only using includes "a few" levels deep > > > 2014/1/7 jpff |
Date | 2014-01-07 15:06 |
From | jpff |
Subject | Re: [Cs-dev] nested includes |
I have written the code but so far not found a reasonable test. It should expand the stack to arbitrary size. Works if not used! The example in the manual is for a score include which will be harder. Anyway should be working today (weather permitting) ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2014-01-07 15:42 |
From | jpff |
Subject | Re: [Cs-dev] nested includes |
In the develop tree, for orchestra includes/macros only. Limit is now 1024, imposed by the error reporting mechanism for vbacktracing. This could be removed if one is willing to have reduced error reporting ==John ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2014-01-08 07:45 |
From | Oeyvind Brandtsegg |
Subject | Re: [Cs-dev] nested includes |
That is excellent, should be enough :-) My code however, was only 4 includes deep, and it is stubborn, I managed to make it run if I copy the code from the deepest include into the next-to-deepest one. The new csound code debugger will be very very useful in such cases, Andres, will it be able to work with code split into several files (includes) and macros? best Oeyvind 2014/1/7 jpff |
Date | 2014-01-08 08:09 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] nested includes |
If Csound allowed 100 levels and your code was breaking down at 4, then this smacks of a bug. On 8 Jan 2014, at 07:45, Oeyvind Brandtsegg wrote: > That is excellent, should be enough :-) > > My code however, was only 4 includes deep, and it is stubborn, I > managed to make it run if I copy the code from the deepest include > into the next-to-deepest one. > > The new csound code debugger will be very very useful in such cases, > Andres, will it be able to work with code split into several files > (includes) and macros? > > best > Oeyvind > > 2014/1/7 jpff |
Date | 2014-01-08 08:36 |
From | Oeyvind Brandtsegg |
Subject | Re: [Cs-dev] nested includes |
Agreed, but it is hard to figure out the cause and to contruct a minimal example, since the offending code is not offending if it is moved somewhere else (i.e. not in an included file). speaking of such debugging, where is the parsed output kept (is it kept?), can I run just orhestra parsing and then write the output to a single file? That way I could compare the two versions of the code (with or without include). Oeyvind 2014/1/8 Victor Lazzarini |