[Csnd] csnd6 python api inside CsoundQt
Date | 2013-06-18 22:24 |
From | Tarmo Johannes |
Subject | [Csnd] csnd6 python api inside CsoundQt |
Hi, for any case I report, I think it is not problem of csound since using csnd6 python module straight from python (executed in terminal) works. I had an idea to write a python script that reads the csound code from CsoundQt editor, runs csound6 via the csnd6 module, and forwards the data from widgets to the running performance thread. Unfortunately I could not get it work. I tried at first to run python code from file tests/python/test_empty_initial_csound.py from csound6 sources in CsoundQt python console executing line csnd6.csoundSetOption(cs,"-odac") made the program freeze: (gdb) backtrace #0 0x00007ffff147c525 in pthread_spin_lock () from /lib64/libpthread.so.0 #1 0x00007fffdfb75b0d in mmalloc (csound=0x2b3bbb0, size=29) at /home/tarmo/src/csound6-git/Engine/memalloc.c:83 #2 0x00007fffdfcba335 in argdecode (csound=0x2b3bbb0, argc=1, argv_=0x7fffffffbc00) at /home/tarmo/src/csound6-git/Top/argdecode.c:927 #3 0x00007fffdfcbbc7f in csoundSetOption (csound=0x2b3bbb0, option=0x2aa4d14 "-odac") at /home/tarmo/src/csound6-git/Top/argdecode.c:1238 #4 0x00007fffe00b274b in _wrap_csoundSetOption (args=0x11e5098) at /home/tarmo/src/csound6- git/interfaces/python_interfacePYTHON_wrap.cxx:14482 #5 0x00007ffff6a48416 in PyEval_EvalFrameEx () from /usr/lib64/libpython2.7.so.1.0 #6 0x00007ffff6a4b303 in PyEval_EvalCodeEx () from /usr/lib64/libpython2.7.so.1.0 Cannot access memory at address 0x7fffffffbef8 Perhaps this information is useful in some context. openSuse 12.3 csound6 compiled from sources (rc3 from git), works otherwise CsoundQt 0.7.3 best greetings, Tarmo |
Date | 2013-06-18 22:59 |
From | Victor Lazzarini |
Subject | Re: [Csnd] csnd6 python api inside CsoundQt |
While at the LAC, I had tried running csnd6 from CsoundQT Python and got a crash too. I assumed it was something to do with csnd hanging around. Your bt seems to point to a spinlock, though. Victor On 18 Jun 2013, at 22:24, Tarmo Johannes wrote: > Hi, > > for any case I report, I think it is not problem of csound since using csnd6 > python module straight from python (executed in terminal) works. > > I had an idea to write a python script that reads the csound code from > CsoundQt editor, runs csound6 via the csnd6 module, and forwards the data from > widgets to the running performance thread. Unfortunately I could not get it > work. I tried at first to run python code from file > tests/python/test_empty_initial_csound.py from csound6 sources in CsoundQt > python console > > executing line > csnd6.csoundSetOption(cs,"-odac") > made the program freeze: > > (gdb) backtrace > #0 0x00007ffff147c525 in pthread_spin_lock () from /lib64/libpthread.so.0 > #1 0x00007fffdfb75b0d in mmalloc (csound=0x2b3bbb0, size=29) at > /home/tarmo/src/csound6-git/Engine/memalloc.c:83 > #2 0x00007fffdfcba335 in argdecode (csound=0x2b3bbb0, argc=1, > argv_=0x7fffffffbc00) > at /home/tarmo/src/csound6-git/Top/argdecode.c:927 > #3 0x00007fffdfcbbc7f in csoundSetOption (csound=0x2b3bbb0, option=0x2aa4d14 > "-odac") > at /home/tarmo/src/csound6-git/Top/argdecode.c:1238 > #4 0x00007fffe00b274b in _wrap_csoundSetOption (args=0x11e5098) > at /home/tarmo/src/csound6- > git/interfaces/python_interfacePYTHON_wrap.cxx:14482 > #5 0x00007ffff6a48416 in PyEval_EvalFrameEx () from > /usr/lib64/libpython2.7.so.1.0 > #6 0x00007ffff6a4b303 in PyEval_EvalCodeEx () from > /usr/lib64/libpython2.7.so.1.0 > Cannot access memory at address 0x7fffffffbef8 > > Perhaps this information is useful in some context. > > openSuse 12.3 > csound6 compiled from sources (rc3 from git), works otherwise > CsoundQt 0.7.3 > > best greetings, > Tarmo > > > 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 |
Date | 2013-06-18 23:03 |
From | Victor Lazzarini |
Subject | Re: [Csnd] csnd6 python api inside CsoundQt |
Actually, it fails on import, so I can't even get where you got to. Fatal Python error: PyThreadState_Get: no current thread I think this is to do with csnd6 being linked to a different python lib. Victor On 18 Jun 2013, at 22:59, Victor Lazzarini wrote: > While at the LAC, I had tried running csnd6 from CsoundQT Python and got a crash too. I assumed it > was something to do with csnd hanging around. Your bt seems to point to a spinlock, though. > > Victor > > On 18 Jun 2013, at 22:24, Tarmo Johannes wrote: > >> Hi, >> >> for any case I report, I think it is not problem of csound since using csnd6 >> python module straight from python (executed in terminal) works. >> >> I had an idea to write a python script that reads the csound code from >> CsoundQt editor, runs csound6 via the csnd6 module, and forwards the data from >> widgets to the running performance thread. Unfortunately I could not get it >> work. I tried at first to run python code from file >> tests/python/test_empty_initial_csound.py from csound6 sources in CsoundQt >> python console >> >> executing line >> csnd6.csoundSetOption(cs,"-odac") >> made the program freeze: >> >> (gdb) backtrace >> #0 0x00007ffff147c525 in pthread_spin_lock () from /lib64/libpthread.so.0 >> #1 0x00007fffdfb75b0d in mmalloc (csound=0x2b3bbb0, size=29) at >> /home/tarmo/src/csound6-git/Engine/memalloc.c:83 >> #2 0x00007fffdfcba335 in argdecode (csound=0x2b3bbb0, argc=1, >> argv_=0x7fffffffbc00) >> at /home/tarmo/src/csound6-git/Top/argdecode.c:927 >> #3 0x00007fffdfcbbc7f in csoundSetOption (csound=0x2b3bbb0, option=0x2aa4d14 >> "-odac") >> at /home/tarmo/src/csound6-git/Top/argdecode.c:1238 >> #4 0x00007fffe00b274b in _wrap_csoundSetOption (args=0x11e5098) >> at /home/tarmo/src/csound6- >> git/interfaces/python_interfacePYTHON_wrap.cxx:14482 >> #5 0x00007ffff6a48416 in PyEval_EvalFrameEx () from >> /usr/lib64/libpython2.7.so.1.0 >> #6 0x00007ffff6a4b303 in PyEval_EvalCodeEx () from >> /usr/lib64/libpython2.7.so.1.0 >> Cannot access memory at address 0x7fffffffbef8 >> >> Perhaps this information is useful in some context. >> >> openSuse 12.3 >> csound6 compiled from sources (rc3 from git), works otherwise >> CsoundQt 0.7.3 >> >> best greetings, >> Tarmo >> >> >> 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 > > > > > > 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 |