Csound Csound-dev Csound-tekno Search About

[Csnd] python api examples giving bus error on freebsd

Date2014-09-25 20:24
From"\\js"
Subject[Csnd] python api examples giving bus error on freebsd
hi

trying to run the python api examples from github and getting a "Bus
Error" during the tidy up phase. i believe this first example should
create a wav file, which is not happening on my system. other examples
do not produce audio and give me a bus error, but i only tried a few of
them.

this may be something unique to freebsd, which i wouldn't necessarily
attribute to the csound programmers. with all that said, any help would
be appreciated.


 % python example1.py
virtual_keyboard real time MIDI plugin for Csound
0dBFS level = 32768.0
Csound version 6.03.2 (double samples) Sep 17 2014
libsndfile-1.0.25
UnifiedCSD:  test1.csd
STARTING FILE
Creating orchestra
Creating score
Csound tidy up: Bus error
end of score.              overall amps:      0.0
           overall samples out of range:        0
0 errors in performance
Elapsed time at end of performance: real: -921996547.000s, CPU: 0.000s
python[master] % ls test1.*
test1.csd



New packages to be INSTALLED:
        csound6: 6.03.2_1


# uname -a
FreeBSD bedroom-composer-02.lan 10.0-RELEASE-p9 FreeBSD 10.0-RELEASE-p9
#0: Mon Sep 15 14:32:29 UTC 2014
root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386

-- 
\js [http://or8.net/~johns] (let (listen t) ())

Date2014-09-25 20:40
FromVictor Lazzarini
SubjectRe: [Csnd] python api examples giving bus error on freebsd
Try running test1.csd directly with Csound

$ csound test1.csd


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










On 25 Sep 2014, at 20:24, js  wrote:

> hi
> 
> trying to run the python api examples from github and getting a "Bus
> Error" during the tidy up phase. i believe this first example should
> create a wav file, which is not happening on my system. other examples
> do not produce audio and give me a bus error, but i only tried a few of
> them.
> 
> this may be something unique to freebsd, which i wouldn't necessarily
> attribute to the csound programmers. with all that said, any help would
> be appreciated.
> 
> 
> % python example1.py
> virtual_keyboard real time MIDI plugin for Csound
> 0dBFS level = 32768.0
> Csound version 6.03.2 (double samples) Sep 17 2014
> libsndfile-1.0.25
> UnifiedCSD:  test1.csd
> STARTING FILE
> Creating orchestra
> Creating score
> Csound tidy up: Bus error
> end of score.              overall amps:      0.0
>           overall samples out of range:        0
> 0 errors in performance
> Elapsed time at end of performance: real: -921996547.000s, CPU: 0.000s
> python[master] % ls test1.*
> test1.csd
> 
> 
> 
> New packages to be INSTALLED:
>        csound6: 6.03.2_1
> 
> 
> # uname -a
> FreeBSD bedroom-composer-02.lan 10.0-RELEASE-p9 FreeBSD 10.0-RELEASE-p9
> #0: Mon Sep 15 14:32:29 UTC 2014
> root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386
> 
> -- 
> \js [http://or8.net/~johns] (let (listen t) ())
> 
> 
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 
> 
> 



Date2014-09-25 20:52
FromSteven Yi
SubjectRe: [Csnd] python api examples giving bus error on freebsd
I haven't run on FreeBSD, so am unfamiliar with python there.  That
said, could you run:

gdb --args python example1.py

then:

r

to run program in the debugger. When it crashes, enter "bt" to get a
backtrace and post here.

Also, I see there's something about amd64 but also i386.  I wonder if
there's some issue there.

On Thu, Sep 25, 2014 at 3:24 PM, \js  wrote:
> hi
>
> trying to run the python api examples from github and getting a "Bus
> Error" during the tidy up phase. i believe this first example should
> create a wav file, which is not happening on my system. other examples
> do not produce audio and give me a bus error, but i only tried a few of
> them.
>
> this may be something unique to freebsd, which i wouldn't necessarily
> attribute to the csound programmers. with all that said, any help would
> be appreciated.
>
>
>  % python example1.py
> virtual_keyboard real time MIDI plugin for Csound
> 0dBFS level = 32768.0
> Csound version 6.03.2 (double samples) Sep 17 2014
> libsndfile-1.0.25
> UnifiedCSD:  test1.csd
> STARTING FILE
> Creating orchestra
> Creating score
> Csound tidy up: Bus error
> end of score.              overall amps:      0.0
>            overall samples out of range:        0
> 0 errors in performance
> Elapsed time at end of performance: real: -921996547.000s, CPU: 0.000s
> python[master] % ls test1.*
> test1.csd
>
>
>
> New packages to be INSTALLED:
>         csound6: 6.03.2_1
>
>
> # uname -a
> FreeBSD bedroom-composer-02.lan 10.0-RELEASE-p9 FreeBSD 10.0-RELEASE-p9
> #0: Mon Sep 15 14:32:29 UTC 2014
> root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386
>
> --
> \js [http://or8.net/~johns] (let (listen t) ())
>
>
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>
>

Date2014-09-25 21:21
From"\\js"
SubjectRe: [Csnd] python api examples giving bus error on freebsd
hi

good idea to run plain csound, which also failed.

in this case i can see that the ladspa plug in wants a version of the
c++ library that is different from the one i have. i've been trying to
keep this machine as vanilla as possible, just using packages; but i may
have to go to the source, luke!

other suggestions welcome

On 09/25/2014 15:40, Victor Lazzarini wrote:
> $ csound test1.csd


% csound test1.csd
virtual_keyboard real time MIDI plugin for Csound
0dBFS level = 32768.0
Csound version 6.03.2 (double samples) Sep 17 2014
libsndfile-1.0.25
WARNING: couldn't open library
'/usr/local/lib/csound/plugins-6.0/csladspa.so'
(/usr/local/lib/compat/libstdc++.so.6: version GLIBCXX_3.4.11 required
by /usr/local/lib/csound/plugins-6.0/csladspa.so not found)
UnifiedCSD:  test1.csd
STARTING FILE
Creating orchestra
Creating score
error:  sr = 0, kr = 0, ksmps = 1
error: invalid sample rateerror:  sr = 0, kr = 0, ksmps = 1
error: invalid control rateWARNING: bad value for 0dbfs: must be
positive. Setting default value.
WARNING: 2 syntax errors in orchestra.  compilation invalid

cannot compile orchestra
end of score.              overall amps:      0.0
           overall samples out of range:        0
1 errors in performance
Elapsed time at end of performance: real: -159060330.000s, CPU: 0.000s





-- 
\js [http://or8.net/~johns] (let (listen t) ())

Date2014-09-25 21:37
FromVictor Lazzarini
SubjectRe: [Csnd] python api examples giving bus error on freebsd
Don’t worry about csladspa, it’s not a csound plugin. But this might indicate
a mismatch of libs in your environment.

These messages

> error:  sr = 0, kr = 0, ksmps = 1
> error: invalid sample rateerror:  sr = 0, kr = 0, ksmps = 1
> error: invalid control rateWARNING: bad value for 0dbfs: must be
> positive. Setting default value.

might indicate that the parser is not working properly, again to do with issues
in your system.

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










On 25 Sep 2014, at 21:21, js  wrote:

> hi
> 
> good idea to run plain csound, which also failed.
> 
> in this case i can see that the ladspa plug in wants a version of the
> c++ library that is different from the one i have. i've been trying to
> keep this machine as vanilla as possible, just using packages; but i may
> have to go to the source, luke!
> 
> other suggestions welcome
> 
> On 09/25/2014 15:40, Victor Lazzarini wrote:
>> $ csound test1.csd
> 
> 
> % csound test1.csd
> virtual_keyboard real time MIDI plugin for Csound
> 0dBFS level = 32768.0
> Csound version 6.03.2 (double samples) Sep 17 2014
> libsndfile-1.0.25
> WARNING: couldn't open library
> '/usr/local/lib/csound/plugins-6.0/csladspa.so'
> (/usr/local/lib/compat/libstdc++.so.6: version GLIBCXX_3.4.11 required
> by /usr/local/lib/csound/plugins-6.0/csladspa.so not found)
> UnifiedCSD:  test1.csd
> STARTING FILE
> Creating orchestra
> Creating score
> error:  sr = 0, kr = 0, ksmps = 1
> error: invalid sample rateerror:  sr = 0, kr = 0, ksmps = 1
> error: invalid control rateWARNING: bad value for 0dbfs: must be
> positive. Setting default value.
> WARNING: 2 syntax errors in orchestra.  compilation invalid
> 
> cannot compile orchestra
> end of score.              overall amps:      0.0
>           overall samples out of range:        0
> 1 errors in performance
> Elapsed time at end of performance: real: -159060330.000s, CPU: 0.000s
> 
> 
> 
> 
> 
> -- 
> \js [http://or8.net/~johns] (let (listen t) ())
> 
> 
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 
> 
>