Csound Csound-dev Csound-tekno Search About

Csound won't run my project

Date2016-10-08 11:38
FromRuben Sverre Gjertsen
SubjectCsound won't run my project
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

Date2016-10-08 11:59
FromVictor Lazzarini
SubjectRe: Csound won't run my project
that line is just a reference to the lexer file used to build the software.

I think this is to do with macros and/or include statements. Maybe John has something to say about it.

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

> On 8 Oct 2016, at 11:49, 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

Date2016-10-08 13:05
Fromjpff
SubjectRe: Csound won't run my project
\not fund the input yet but looks like an incorrect mcro.  Thee were 
corretions in this re.

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

Date2016-10-08 13:49
Fromjpff
SubjectRe: Csound won't run my project
Any chance of
1) a single example (where I can just d/load and run rather than search)
2) files readable in Linux (I am seeing long lines and no breaks)

Alternatively look at the syntax of each macro; possible chck inclde files 
end with a newline

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

Date2016-10-08 14:32
FromVictor Lazzarini
SubjectRe: Csound won't run my project
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

Date2016-10-08 18:17
Fromjpff
SubjectRe: Csound won't run my project
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

Date2016-10-08 21:27
FromRuben Sverre Gjertsen
SubjectRe: Csound won't run my project
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

Date2016-10-08 22:51
Fromjpff
SubjectRe: Csound won't run my project
Just a late night tought; try removing spaces before ,
Not sure the lexer does that


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

Date2016-10-09 17:46
Fromjpff
SubjectRe: Csound won't run my project
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

Date2016-10-09 20:26
FromRuben Sverre Gjertsen
SubjectRe: Csound won't run my project
AttachmentsProblemscore.csd  StringsetIncludeShort.h  StringsetIncludeShortNoComments.h  ProblemscoreAllInOneWorks.csd  
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

Date2016-10-09 20:40
Fromjpff
SubjectRe: Csound won't run my project
Thank you; it all works perfectly for me on Linux so I assume this is a 
Mac-only effect which lessens the chance of me finding it -- but I have one 
idea of where to look

==John ff


On Sun, 9 Oct 2016, Ruben Sverre Gjertsen wrote:

> 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
>

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

Date2016-10-09 20:48
FromVictor Lazzarini
SubjectRe: Csound won't run my project
Note that he is using 6.07. This might have already been  fixed in 6.08.

I can test if I am given clear instructions.

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

> On 9 Oct 2016, at 20:41, jpff  wrote:
> 
> Thank you; it all works perfectly for me on Linux so I assume this is a Mac-only effect which lessens the chance of me finding it -- but I have one idea of where to look
> 
> ==John ff
> 
> 
>> On Sun, 9 Oct 2016, Ruben Sverre Gjertsen wrote:
>> 
>> 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
>> 
> 
> 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