Csound Csound-dev Csound-tekno Search About

[Csnd] segfault with python csoundCreate

Date2013-11-18 15:16
Fromthorin kerr
Subject[Csnd] segfault with python csoundCreate
Hi 

I've recently pulled from the develop branch, and now my python scripts are broken. I'm getting a segfault in python. Here's an interactive session, which shows I don't get very far. (running python 2.7  on linux mint 14)

Python 2.7.3 (default, Sep 26 2012, 21:51:14) 
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import csnd6
>>> cs = csnd6.csoundCreate(None)
virtual_keyboard real time MIDI plugin for Csound
0dBFS level = 32768.0
Csound version 6.01.0 (double samples) Nov 18 2013
libsndfile-1.0.25
Csound tidy up: Segmentation fault
end of score.   overall amps:      0.0
  overall samples out of range:        0
0 errors in performance
Elapsed time at end of performance: real: 0.250s, CPU: 0.000s

Also of note: 
I can run example 1 from Steven Yi's examples in https://github.com/kunstmusik/csoundAPI_examples/tree/master/python

but not example 2. It stops at when calling the Start() method.

Am I alone with my problem?

Thorin




Date2013-11-18 16:27
FromSteven Yi
SubjectRe: [Csnd] segfault with python csoundCreate
I'm not getting any crashes here on OSX with latest from develop
branch.  The crash might be due to an opcode library.  Could you try
temporarily setting OPCODE6DIR64 to ~ or /tmp or somewhere else and
see if you get further?

On Mon, Nov 18, 2013 at 10:16 AM, thorin kerr  wrote:
> Hi
>
> I've recently pulled from the develop branch, and now my python scripts are
> broken. I'm getting a segfault in python. Here's an interactive session,
> which shows I don't get very far. (running python 2.7  on linux mint 14)
>
> Python 2.7.3 (default, Sep 26 2012, 21:51:14)
> [GCC 4.7.2] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import csnd6
>>>> cs = csnd6.csoundCreate(None)
> virtual_keyboard real time MIDI plugin for Csound
> 0dBFS level = 32768.0
> Csound version 6.01.0 (double samples) Nov 18 2013
> libsndfile-1.0.25
> Csound tidy up: Segmentation fault
> end of score.   overall amps:      0.0
>   overall samples out of range:        0
> 0 errors in performance
> Elapsed time at end of performance: real: 0.250s, CPU: 0.000s
>
> Also of note:
> I can run example 1 from Steven Yi's examples in
> https://github.com/kunstmusik/csoundAPI_examples/tree/master/python
>
> but not example 2. It stops at when calling the Start() method.
>
> Am I alone with my problem?
>
> Thorin
>
>
>

Date2013-11-19 13:31
Fromthorin kerr
SubjectRe: [Csnd] segfault with python csoundCreate
Yes, that was it. OPCODE6DIR64 was set to /usr/local/lib/csound/plugins-6.0. Changed it to /usr/local/lib/csound/plugins64-6.0 and all is good now.
Thanks





On Tue, Nov 19, 2013 at 2:27 AM, Steven Yi <stevenyi@gmail.com> wrote:
I'm not getting any crashes here on OSX with latest from develop
branch.  The crash might be due to an opcode library.  Could you try
temporarily setting OPCODE6DIR64 to ~ or /tmp or somewhere else and
see if you get further?

On Mon, Nov 18, 2013 at 10:16 AM, thorin kerr <thorin.kerr@gmail.com> wrote:
> Hi
>
> I've recently pulled from the develop branch, and now my python scripts are
> broken. I'm getting a segfault in python. Here's an interactive session,
> which shows I don't get very far. (running python 2.7  on linux mint 14)
>
> Python 2.7.3 (default, Sep 26 2012, 21:51:14)
> [GCC 4.7.2] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import csnd6
>>>> cs = csnd6.csoundCreate(None)
> virtual_keyboard real time MIDI plugin for Csound
> 0dBFS level = 32768.0
> Csound version 6.01.0 (double samples) Nov 18 2013
> libsndfile-1.0.25
> Csound tidy up: Segmentation fault
> end of score.   overall amps:      0.0
>   overall samples out of range:        0
> 0 errors in performance
> Elapsed time at end of performance: real: 0.250s, CPU: 0.000s
>
> Also of note:
> I can run example 1 from Steven Yi's examples in
> https://github.com/kunstmusik/csoundAPI_examples/tree/master/python
>
> but not example 2. It stops at when calling the Start() method.
>
> Am I alone with my problem?
>
> Thorin
>
>
>


Send bugs reports to the Sourceforge bug trackers
csound6:
            https://sourceforge.net/p/csound/tickets/
csound5:
            https://sourceforge.net/p/csound/bugs/
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"