[Csnd] segfault with python csoundCreate
Date | 2013-11-18 15:16 |
From | thorin 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 |
Date | 2013-11-18 16:27 |
From | Steven Yi |
Subject | Re: [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 |
Date | 2013-11-19 13:31 |
From | thorin kerr |
Subject | Re: [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 |