Csound Csound-dev Csound-tekno Search About

[Cs-dev] Problem on Compile in python

Date2007-05-05 17:21
FromAndres Cabrera
Subject[Cs-dev] Problem on Compile in python
Hi,

I'm trying to use Csound from python, but it crashes on loading the alsa
rtaudio module when compiling. Any ideas?

Details:
The error occurs when you ask csound to compile .eg:

csound.Compile("dummy.csd")

The backtrace is:

Localisation of messages is disabled, using default language.
time resolution is 0.627 ns

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1478600480 (LWP 29516)]
0xa72ee57b in csoundModuleCreate (csound=0x81eba88) at InOut/rtalsa.c:901
901         if (csound->oparms->msglevel & 0x400)
(gdb) bt
#0  0xa72ee57b in csoundModuleCreate (csound=0x81eba88) at
InOut/rtalsa.c:901
#1  0xa78abcab in csoundLoadExternal () from
/usr/lib/python2.4/site-packages/_csnd.so
#2  0xa78ac4c0 in csoundLoadModules () from
/usr/lib/python2.4/site-packages/_csnd.so
#3  0xa78aee8d in csoundPreCompile () from
/usr/lib/python2.4/site-packages/_csnd.so
#4  0xa78b08aa in csoundCompile () from
/usr/lib/python2.4/site-packages/_csnd.so
#5  0xa78201b6 in Csound::Compile () from
/usr/lib/python2.4/site-packages/_csnd.so
#6  0xa77fc581 in _wrap_Csound_Compile__SWIG_1 () from
/usr/lib/python2.4/site-packages/_csnd.so
#7  0xa77fc80e in _wrap_Csound_Compile () from
/usr/lib/python2.4/site-packages/_csnd.so


the pointer to oparms is null. Any ideas what could be wrong?

(gdb) print csound->oparms
$1 = (OPARMS *) 0x0
(gdb) print csound
$2 = (CSOUND *) 0x81eb968



Cheers,
Andrés


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net