Csound Csound-dev Csound-tekno Search About

[Csnd] me too (csound 10.8.2)

Date2012-10-09 16:02
FromMatti Koskinen
Subject[Csnd] me too (csound 10.8.2)
hi,

I had no trouble building csound (git). Just invoked cmake, and built was done alright. But, csound crashes immediately at 

Csound version 5.18.03 (double samples) Oct  9 2012

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
0x00000001019d2a43 in csoundModuleInit ()
(gdb) bt
#0  0x00000001019d2a43 in csoundModuleInit ()
#1  0x00000001001a1461 in csoundInitModule (csound=0x101003200, m=0x100830710) at csmodule.c:820
#2  0x00000001001a1697 in csoundInitModules (csound=0x101003200) at csmodule.c:868
#3  0x000000010019c1c5 in argdecode (csound=0x101003200, argc=1, argv_=0x7fff5fbffa30) at argdecode.c:1149
#4  0x00000001001a8f95 in csoundCompile (csound=0x101003200, argc=1, argv=0x7fff5fbffa30) at main.c:145
#5  0x0000000100001cfa in main (argc=2, argv=0x7fff5fbffa30) at csound_main.c:137


args were just -z

anything related?

tnx

-matti






Date2012-10-09 16:07
FromSteven Yi
SubjectRe: [Csnd] me too (csound 10.8.2)
Hi Matti,

Did you set OPCODEDIR64 to the directory you built?  I use:

export OPCODEDIR64=`pwd`

in the build folder.

steven

On Tue, Oct 9, 2012 at 4:02 PM, Matti Koskinen  wrote:
>
> hi,
>
> I had no trouble building csound (git). Just invoked cmake, and built was done alright. But, csound crashes immediately at
>
> Csound version 5.18.03 (double samples) Oct  9 2012
>
> Program received signal EXC_BAD_ACCESS, Could not access memory.
> Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
> 0x00000001019d2a43 in csoundModuleInit ()
> (gdb) bt
> #0  0x00000001019d2a43 in csoundModuleInit ()
> #1  0x00000001001a1461 in csoundInitModule (csound=0x101003200, m=0x100830710) at csmodule.c:820
> #2  0x00000001001a1697 in csoundInitModules (csound=0x101003200) at csmodule.c:868
> #3  0x000000010019c1c5 in argdecode (csound=0x101003200, argc=1, argv_=0x7fff5fbffa30) at argdecode.c:1149
> #4  0x00000001001a8f95 in csoundCompile (csound=0x101003200, argc=1, argv=0x7fff5fbffa30) at main.c:145
> #5  0x0000000100001cfa in main (argc=2, argv=0x7fff5fbffa30) at csound_main.c:137
>
>
> args were just -z
>
> anything related?
>
> tnx
>
> -matti
>
>
>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>

Date2012-10-09 16:15
FromMatti Koskinen
SubjectRe: [Csnd] me too (csound 10.8.2)
first no, but now yes. Same behaviour

tnx


Date2012-10-09 17:41
FromVictor Lazzarini
SubjectRe: [Csnd] me too (csound 10.8.2)
Do you happen to have an old csound lying around? Especially copies of old plugin opcodes?
On 9 Oct 2012, at 16:02, Matti Koskinen wrote:

> 
> hi,
> 
> I had no trouble building csound (git). Just invoked cmake, and built was done alright. But, csound crashes immediately at 
> 
> Csound version 5.18.03 (double samples) Oct  9 2012
> 
> Program received signal EXC_BAD_ACCESS, Could not access memory.
> Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
> 0x00000001019d2a43 in csoundModuleInit ()
> (gdb) bt
> #0  0x00000001019d2a43 in csoundModuleInit ()
> #1  0x00000001001a1461 in csoundInitModule (csound=0x101003200, m=0x100830710) at csmodule.c:820
> #2  0x00000001001a1697 in csoundInitModules (csound=0x101003200) at csmodule.c:868
> #3  0x000000010019c1c5 in argdecode (csound=0x101003200, argc=1, argv_=0x7fff5fbffa30) at argdecode.c:1149
> #4  0x00000001001a8f95 in csoundCompile (csound=0x101003200, argc=1, argv=0x7fff5fbffa30) at main.c:145
> #5  0x0000000100001cfa in main (argc=2, argv=0x7fff5fbffa30) at csound_main.c:137
> 
> 
> args were just -z
> 
> anything related?
> 
> tnx
> 
> -matti
> 
> 
> 
> 
> 
> 
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Date2012-10-09 18:01
FromMatti Koskinen
SubjectRe: [Csnd] me too (csound 10.8.2)
On Oct 9, 2012, at 7:41 PM, Victor Lazzarini  wrote:

> Do you happen to have an old csound lying around? Especially copies of old plugin opcodes?
> On 9 Oct 2012, at 16:02, Matti Koskinen wrote:
> 
I checked and there are no other plugins. I used  the old portaudio, portmidi and fltk from Lion build. Maybe something to do with these? But trying to compile these, is practically impossible. The Xcode 4.4 has done life too difficult. I upgraded to cmake 2.8.10-rc1, now the stdlib.h, assert.h etc. are found, but still fltk nor portaudio doesn't compile.




Date2012-10-09 18:11
FromVictor Lazzarini
SubjectRe: [Csnd] me too (csound 10.8.2)
I don't think these dependencies are problematic. Did you build a dynamic csound lib (ie. the CsoundLib64.framework)?
The segfault is in the bit of csound that loads modules and opcodes, so that is why I was wondering.

Another thing is to try and use scons to build Csound instead. Maybe the cmake build has something funny in it.

Victor

On 9 Oct 2012, at 18:01, Matti Koskinen wrote:

> 
> On Oct 9, 2012, at 7:41 PM, Victor Lazzarini  wrote:
> 
>> Do you happen to have an old csound lying around? Especially copies of old plugin opcodes?
>> On 9 Oct 2012, at 16:02, Matti Koskinen wrote:
>> 
> I checked and there are no other plugins. I used  the old portaudio, portmidi and fltk from Lion build. Maybe something to do with these? But trying to compile these, is practically impossible. The Xcode 4.4 has done life too difficult. I upgraded to cmake 2.8.10-rc1, now the stdlib.h, assert.h etc. are found, but still fltk nor portaudio doesn't compile.
> 
> 
> 
> 
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Date2012-10-09 18:31
FromMatti Koskinen
SubjectRe: [Csnd] me too (csound 10.8.2)
On Oct 9, 2012, at 8:11 PM, Victor Lazzarini  wrote:

> I don't think these dependencies are problematic. Did you build a dynamic csound lib (ie. the CsoundLib64.framework)?
> The segfault is in the bit of csound that loads modules and opcodes, so that is why I was wondering.
> 
> Another thing is to try and use scons to build Csound instead. Maybe the cmake build has something funny in it.
> 
> Victor
I managed to rebuild fltk, installed it, compiled csound again with cmake 2.8.10-rc1, installed csound, and lo and behold, csound -z works. Now I have to see if there's any audio.

tnx

-matti

"Grep less", sed tee uniq cat





Date2012-10-09 18:48
FromVictor Lazzarini
SubjectRe: [Csnd] me too (csound 10.8.2)
I see, it was FLTK crashing then. 

Victor
On 9 Oct 2012, at 18:31, Matti Koskinen wrote:

> 
> On Oct 9, 2012, at 8:11 PM, Victor Lazzarini  wrote:
> 
>> I don't think these dependencies are problematic. Did you build a dynamic csound lib (ie. the CsoundLib64.framework)?
>> The segfault is in the bit of csound that loads modules and opcodes, so that is why I was wondering.
>> 
>> Another thing is to try and use scons to build Csound instead. Maybe the cmake build has something funny in it.
>> 
>> Victor
> I managed to rebuild fltk, installed it, compiled csound again with cmake 2.8.10-rc1, installed csound, and lo and behold, csound -z works. Now I have to see if there's any audio.
> 
> tnx
> 
> -matti
> 
> "Grep less", sed tee uniq cat
> 
> 
> 
> 
> 
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Date2012-10-09 18:55
FromMatti Koskinen
SubjectRe: [Csnd] me too (csound 10.8.2)
On Oct 9, 2012, at 8:48 PM, Victor Lazzarini  wrote:

> I see, it was FLTK crashing then. 
> 
> Victor

Don't know exactly, I re-exported also OPCODEDIR64, may have been corrupted. But, no audio :-( 
Neither PortAudio nor CoreAudio are found. Writing to file is ok.

-matti

"Grep less", sed tee uniq cat





Date2012-10-10 00:20
FromVictor Lazzarini
SubjectRe: [Csnd] me too (csound 10.8.2)
Ok, did you:

1) build a dynamic Csound library?
2) managed to load other plugins (scanned synthesis, FLTK, fluidsynth...)

Could you copy here the console messages?

Victor

On 9 Oct 2012, at 18:55, Matti Koskinen wrote:

> 
> On Oct 9, 2012, at 8:48 PM, Victor Lazzarini  wrote:
> 
>> I see, it was FLTK crashing then. 
>> 
>> Victor
> 
> Don't know exactly, I re-exported also OPCODEDIR64, may have been corrupted. But, no audio :-( 
> Neither PortAudio nor CoreAudio are found. Writing to file is ok.
> 
> -matti
> 
> "Grep less", sed tee uniq cat
> 
> 
> 
> 
> 
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Date2012-10-10 04:14
FromMatti Koskinen
SubjectRe: [Csnd] me too (csound 10.8.2)
On Oct 10, 2012, at 2:20 AM, Victor Lazzarini  wrote:

> Ok, did you:
> 
> 1) build a dynamic Csound library?
> 2) managed to load other plugins (scanned synthesis, FLTK, fluidsynth...)
> 
> Could you copy here the console messages?
> 
> Victor

1) yes, it was built right from the beginning

2) Don't actually know, I get parser error from anything related, such as:

3) OPCODEDIR64 was erroneously pointing to plugin dir and not /usr/local/lib/csound

error: syntax error, unexpected INTEGER_TOKEN  (token "255") line 17:
>>>FLcolor	255 <<<
Unexpected untyped word FLcolor when expecting a variable
Parsing failed due to invalid input!
Stopping on parser failure


this is the output trying to get rtaudio:

Macintosh:~ mjkoskin$ csound -o dac parme.orc sounds/door-parme.sco
Csound version 5.18.03 (double samples) Oct  9 2012
Reading options from $HOME/.csoundrc
Reading options from local directory .csoundrc 
orchname: parme.orc
Parsing successful!
Elapsed time at end of orchestra compile: real: 0.004s, CPU: 0.004s
Sorting score
Elapsed time at end of score sort: real: 0.010s, CPU: 0.009s
displays suppressed
0dBFS level = 32768.0
ftable 101:
orch now loaded
audio buffered in 1024 sample-frame blocks
 *** error: unknown rtaudio module: 'portaudio'
Failed to initialise real time audio output
inactive allocs returned to freespace
end of score.		   overall amps:      0.0      0.0
	   overall samples out of range:        0        0
1 errors in performance
Elapsed time at end of performance: real: 0.011s, CPU: 0.010s



same with jack, coreaudio and also midis: portmidi, coremidi or virtual


running the above orc/sco to write sound file works:

B 17.546 .. 17.994 T 17.994 TT 17.994 M:    101.5    101.5
B 17.994 .. 18.337 T 18.337 TT 18.337 M:     55.0     55.0
B 18.337 .. 18.340 T 18.340 TT 18.340 M:      2.6      2.6
B 18.340 .. 18.351 T 18.350 TT 18.350 M:      1.9      1.9
B 18.351 .. 18.391 T 18.390 TT 18.390 M:      1.5      1.5
Score finished in csoundPerform().
inactive allocs returned to freespace
end of score.		   overall amps:   5145.1   5145.1
	   overall samples out of range:        0        0
0 errors in performance
Elapsed time at end of performance: real: 3.240s, CPU: 3.172s
2048 4096 sample blks of shorts written to /Users/mjkoskin/sounds/pp.aiff (AIFF)


the csd's i tried, are from the manual pages, so they're ok.

I think the first build showed rtmidi as portmidi. Now that's gone.



tnx



Date2012-10-10 04:38
FromMatti Koskinen
SubjectRe: [Csnd] me too (csound 10.8.2)
On Oct 10, 2012, at 6:14 AM, Matti Koskinen  wrote:

> 
> On Oct 10, 2012, at 2:20 AM, Victor Lazzarini  wrote:
> 
>> Ok, did you:
>> 
>> 1) build a dynamic Csound library?
>> 2) managed to load other plugins (scanned synthesis, FLTK, fluidsynth...)
>> 
>> Could you copy here the console messages?
>> 
>> Victor
> 
> 1) yes, it was built right from the beginning
> 
> 2) Don't actually know, I get parser error from anything related, such as:
> 
> 3) OPCODEDIR64 was erroneously pointing to plugin dir and not /usr/local/lib/csound

in my login, it's set in the plist  to OPCODEDIR64=/usr/local/lib/csound/plugins64-5.2,  so it should be really like this. This gives the segfault, but csound writes to the console:

PortMIDI real time MIDI plugin for Csound

probably csound would show rtaudio too, but segfaults before it.




Date2012-10-10 05:26
Fromjpff@cs.bath.ac.uk
SubjectRe: [Csnd] me too (csound 10.8.2)
> 1) yes, it was built right from the beginning
>
> 2) Don't actually know, I get parser error from anything related, such as:
>
> 3) OPCODEDIR64 was erroneously pointing to plugin dir and not
> /usr/local/lib/csound
>
> error: syntax error, unexpected INTEGER_TOKEN  (token "255") line 17:
>>>>FLcolor	255 <<<
> Unexpected untyped word FLcolor when expecting a variable
> Parsing failed due to invalid input!
> Stopping on parser failure

so clearly you do not have the opcode  FLcolor

find out why?



Date2012-10-10 05:37
FromMatti Koskinen
SubjectRe: [Csnd] me too (csound 10.8.2)
On Oct 10, 2012, at 7:26 AM, jpff@cs.bath.ac.uk wrote:
>> 
> 
> so clearly you do not have the opcode  FLcolor
> 
> find out why?


old crap in plugin-dir. Going to play Genesis: More fool me.
Really, really sorry wasting your time...
csound works as it should.

-matti

"Grep less", sed tee uniq cat