| Hello,
I managed to make it very short and still have the same problem, see the attached files (no sound this time) Problemscore.csd.
First problem: You can have comments anywhere in the main csd. But any ; comment in the #include file causes segmentation fault with version 6.07 on osx, while /* */ does not. The same content within a single csd works, see ProblemscoreAllInOneWorks.csd. This must be about #include. All of this was no problem in version 5.18.
Second problem: There are 2 possible files to include in the Problemscore.csd:
StringsetIncludeShort.h (contains the ; comment)
StringsetIncludeShortNoComments.h (without the ; comment)
Using the second include file I get the same newline probelm:
error: syntax error, unexpected T_OPCODE0, expecting NEWLINE or ',' (token "strset") from file StringsetIncludeShortNoComments.h (2)
from file /00ShortOne/Problemscore.csd (1)
line 14:
>>> strset 2 , "/0RubenCsoundPublic/Samples/Dyr2010/xdyrBjoern6.AIFF"strset <<<
Parsing failed due to invalid input!
Stopping on parser failure
Textwrangler is the standard texteditor I’m using: http://www.barebones.com/products/TextWrangler/ , it should be quite plain text.
Lines are separated in the text document, but using #include they are not recognized. I tried to remove any spaces at the end of each line without any result.
The very same text pasted into ProblemscoreAllInOneWorks.csd causes no problems.
I haven’t defined any instruments, as I’m just trying to isolate the problems.
Best
Ruben Gjertsen
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
> 9. okt. 2016 kl. 18.46 skrev jpff :
>
> I havetried and cannot reproduce yourerror. PLEASE provide a complete .csd file or .orc file that shows teproblem, preferably a short one, asI haveno idea what I am shasing.
>
> What is textwrangler?
>
> And yes // ; and /*...*/ are supported in bot orchestra and score
>
>
> Another thought -- it is not in 02012Lydbank.h but immediately before it is #include'd; there is an incomplete terminaion of something. But please an example
>
> ==John ff
>
> On Sat, 8 Oct 2016, Ruben Sverre Gjertsen wrote:
>
>> Hello,
>>
>> I don’t have an Osx-compiled version of Csound 6.08 myself, but it seems both these files cause segmentation fault with 6.07:
>> 02012Lydbank.h
>> (Fixing the conflicting strset numbers makes no difference).
>> /0RubenCsoundPublic/0TheCode/0RubenCsoundMacros2012.h
>>
>>
>> I have tried to remove all comments from «02012Lydbank.h» (which I would prefer to avoid). Commenting out the other includes in the score "zAnimalGlassDemoScore1.csd",
>> there is no segmentation fault any more, but a newline error:
>>
>> error: syntax error, unexpected T_OPCODE0, expecting NEWLINE or ',' (token "strset") from file 02012Lydbank.h (3)
>> from file /0RubenCsoundPublic/zAnimalGlassDemoScore1.csd (1)
>> line 21:
>>>>> strset 2 , "/0RubenCsoundPublic/Samples/Dyr2010/xdyrBjoern6.AIFF" strset <<<
>> Parsing failed due to invalid input!
>> Stopping on parser failure
>> cannot compile orchestra
>>
>> I can type enter 10 times in textwrangler, it doesn’t change that Csound cannot find a newline after the first strset line. I’m not sure how this can be done differently.
>>
>> Are these comment types still supported, why would removing comments fix a segmentation fault?
>> /*
>> */
>> ;
>>
>> If I go back to Csound 5.18, everything runs and sounds well, even with the typos. But I would like to use new features of Csound.
>>
>> Best
>> Ruben
>>
>>
>>> 8. okt. 2016 kl. 19.17 skrev jpff :
>>>
>>> With tose fixes itruns for me but lots of init errors ad geerates silence. No sytax errors toug
>>>
>>>
>>> On Sat, 8 Oct 2016, Victor Lazzarini wrote:
>>>
>>>> I had a look and there were some typos in this file:
>>>>
>>>> 0RubenCsoundMacros2012.h
>>>>
>>>>
>>>> . 057 should be .057
>>>> 1036:
>>>> $A = (ipitchratiowithrisk4clicks$C<=.125 && ipitchratiowithrisk4clicks$C>. 057 ? 4096 : $A ) ;3 OCTAVES DOWN
>>>>
>>>> and
>>>>
>>>> . 027 should be .027
>>>> 1038:
>>>> $A = (ipitchratiowithrisk4clicks$C<=. 027 && ipitchratiowithrisk4clicks$C>.011 ? 2048 : $A );5 OCTAVES DOWN
>>>>
>>>> after I fixed these I get a warning
>>>>
>>>> WARNING: strset index conflict at 19
>>>> WARNING: previous value: '/0RubenCsound/Samples/Dyr2010/xdyrVerdierShrill.aif', replaced with '/0RubenCsound/Samples/AriaSamples2010/Strings2010/xstrST2SPcbFkontr.aiff’
>>>>
>>>> but it runs with no segfault on the macros.
>>>> Csound 6.08 beta
>>>>
>>>>
>>>>> On 8 Oct 2016, at 11:38, Ruben Sverre Gjertsen wrote:
>>>>>
>>>>> Hello,
>>>>>
>>>>> I have been using a csound setup for a while, the Csound workspace here:
>>>>> http://rubensverregjertsen.com/Research/Downloads/software.html
>>>>> It was working with Csound 5.18, but I’m having trouble using it with Csound 6.06 (error) and 6.07 (segmentation fault) on Osx 10.10.5.
>>>>> As I’m a user, not a csound developer, I hope someone can give me a hint of what the problem might be. I have included some logs below.
>>>>>
>>>>> Best
>>>>> Ruben Gjertsen
>>>>>
>>>>> ;———————————————————————————————————————————————————————————————
>>>>> With Csound 6.06 some libraries are missing:
>>>>> ;———————————————————————————————————————————————————————————————
>>>>>
>>>>> Rubens-MacBook-Pro:~ rubengjertsen$ csound /0RubenCsoundPublic/zAnimalGlassDemoScore1.csd -A -f
>>>>> WARNING: STK opodes not available: define environment variable RAWWAVE_PATH
>>>>> (points to rawwaves directory) to use STK opcodes.
>>>>> 0dBFS level = 32768.0
>>>>> Csound version 6.06 (double samples) Sep 29 2015
>>>>> libsndfile-1.0.25
>>>>> WARNING: could not open library '/Library/Frameworks/CsoundLib64.framework/Versions/6.0/Resources/Opcodes64/libvirtual.dylib' (-1)
>>>>> WARNING: could not open library '/Library/Frameworks/CsoundLib64.framework/Versions/6.0/Resources/Opcodes64/libwidgets.dylib' (-1)
>>>>> UnifiedCSD: /0RubenCsoundPublic/zAnimalGlassDemoScore1.csd
>>>>> STARTING FILE
>>>>> Creating options
>>>>> Creating orchestra
>>>>> Creating score
>>>>> WARNING: STK opodes not available: define environment variable RAWWAVE_PATH
>>>>> (points to rawwaves directory) to use STK opcodes.
>>>>> rtaudio: PortAudio module enabled ...
>>>>> using callback interface
>>>>> rtmidi: PortMIDI module enabled
>>>>> define macro unexpected character L(0x4c) awaiting #
>>>>>
>>>>> end of score. overall amps: 0.0
>>>>> 1 errors in performance
>>>>> Elapsed time at end of performance: real: 0.007s, CPU: 0.006s
>>>>> Rubens-MacBook-Pro:~ rubengjertsen$
>>>>>
>>>>> ;------------------------------------------------------------------------------------------------------------------------------
>>>>> With csound 6.07 I’m getting a segmentation fault:
>>>>> ;------------------------------------------------------------------------------------------------------------------------------
>>>>> Rubens-MacBook-Pro:~ rubengjertsen$ csound /0RubenCsoundPublic/zAnimalGlassDemoScore1.csd -A -f
>>>>> virtual_keyboard real time MIDI plugin for Csound
>>>>> WARNING: STK opcodes not available: define environment variable RAWWAVE_PATH
>>>>> (points to rawwaves directory) to use STK opcodes.
>>>>> 0dBFS level = 32768.0
>>>>> Csound version 6.07 (double samples) May 16 2016
>>>>> libsndfile-1.0.21
>>>>> UnifiedCSD: /0RubenCsoundPublic/zAnimalGlassDemoScore1.csd
>>>>> STARTING FILE
>>>>> Creating options
>>>>> Creating orchestra
>>>>> Creating score
>>>>> WARNING: STK opcodes not available: define environment variable RAWWAVE_PATH
>>>>> (points to rawwaves directory) to use STK opcodes.
>>>>> rtaudio: PortAudio module enabled ...
>>>>> using callback interface
>>>>> rtmidi: PortMIDI module enabled
>>>>>
>>>>> csound command: Segmentation fault
>>>>> end of score. overall amps: 0.0
>>>>> 0 errors in performance
>>>>> Elapsed time at end of performance: real: 0.259s, CPU: 0.002s
>>>>> Rubens-MacBook-Pro:~ rubengjertsen$
>>>>>
>>>>> ;------------------------------------------------------------------------------------------------------------------------------
>>>>> 6.07: In verbose mode there are some references to a victor user folder, which I do not have on my system. Maybe that doesn’t matter?
>>>>> This does not happen in 6.06, which gives an error, but not a segmentation fault.
>>>>> ;------------------------------------------------------------------------------------------------------------------------------
>>>>> line 21 at end of #include line
>>>>>
>>>>> reading included file "/0RubenCsoundPublic/0TheCode/0GlobalChannelsINIT.h"
>>>>>
>>>>> /Users/victor/src/csound6/installer/macosx/2016-05-16-203700/csound6/Engine/csound_pre.lex(760): stacking line 21 at 0
>>>>>
>>>>> Set line number to 1
>>>>>
>>>>> line 22 at end of #include line
>>>>>
>>>>> reading included file "02012Lydbank.h"
>>>>>
>>>>> Creating search path cache for 'INCDIR':
>>>>> 1: "/0RubenCsoundPublic/"
>>>>> /Users/victor/src/csound6/installer/macosx/2016-05-16-203700/csound6/Engine/csound_pre.lex(760): stacking line 22 at 0
>>>>>
>>>>> Set line number to 1
>>>>>
>>>>>
>>>>> csound command: Segmentation fault
>>>>>
>>>>> ;------------------------------------------------------------------------------------------------------------------------------
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>> https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>>
>>>>
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>> https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>>>
>>>
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>> https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>> https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>>
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
> https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
|