Csound Csound-dev Csound-tekno Search About

[Csnd] DSSI/LADSPA opcodes crash

Date2017-11-05 00:54
FromTarmo Johannes
Subject[Csnd] DSSI/LADSPA opcodes crash
Hi,

Could someone try, if DSSI/LADSPA opcodes work for you - for me 
dssiactivate.csd from manual and similar crash (backtrace from gdb):

Output from Csound and backtrace:
(Csound 6.10, linux)
---
--Csound version 6.10 (double samples) Oct 26 2017 

UnifiedCSD:  /home/tarmo/tarmo/csound/proov/dssiactivate.csd
STARTING FILE
Creating options
Creating orchestra
closing tag
Creating score
rtaudio: ALSA module enabled
rtmidi: ALSA Raw MIDI module enabled
Elapsed time at end of orchestra compile: real: 0.002s, CPU: 0.002s
sorting score ...
        ... done
Elapsed time at end of score sort: real: 0.002s, CPU: 0.002s
graphics suppressed, ascii substituted
0dBFS level = 32768.0
DSSI4CS: Loading first instance.
DSSI4CS: About to load descriptor function for plugin 0 of 1.
DSSI4CS: LADSPA Plugin Detected
DSSI4CS: About to instantiate plugin.
DSSI4CS: Plugin instantiated.
DSSI4CS: Found 0 control ports for: 'C* PhaserI - Mono phaser'
DSSI4CS: Found 0 audio ports for: 'C* PhaserI - Mono phaser'
DSSI4CS: Created port array.
DSSI4CS: Created 0 control ports for: 'C* PhaserI - Mono phaser'
DSSI4CS: Created 0 audio ports for: 'C* PhaserI - Mono phaser'
DSSI4CS: Init Done.
============Plugin 0========================================
Plugin Type: LADSPA
Plugin UniqueID: 1775
Label: PhaserI
Name: C* PhaserI - Mono phaser
Maker: Tim Goetze 
Copyright: GPL, 2002-7
Number of Ports: 6
  Port #0: Audio Input: in - Range: -1.000000 -> 1.000000
  Port #1: Control Input: rate (Hz) - Range: 0.000000 -> 10.000000
  Port #2: Control Input: depth - Range: 0.000000 -> 1.000000
  Port #3: Control Input: spread - Range: 0.000000 -> 3.141593
  Port #4: Control Input: feedback - Range: 0.000000 -> 0.999000
  Port #5: Audio Output: out - Range: -Inf -> +Inf
Must run in realtime: NO
Is hard realtime capable: YES
Has activate() function: YES
=============================================================
orch now loaded
audio buffered in 256 sample-frame blocks
[New Thread 0x7fffe69c4700 (LWP 8529)]
ALSA output: total buffer size: 1024, period size: 256 
writing 512 sample blks of 64-bit floats to dac 
SECTION 1:
new alloc for instr 1:
new alloc for instr 4:
DSSI4CS: Activate function called for: C* PhaserI - Mono phaser

Thread 1 "csound" received signal SIGSEGV, Segmentation fault.
0x00007fffeed9dbc2 in dssiaudio () from /usr/local/lib/csound/plugins64-6.0//
libdssi4cs.so
Missing separate debuginfos, use: zypper install alsa-plugins-pulse-
debuginfo-1.1.4-1.1.x86_64 ladspa-caps-debuginfo-0.4.4-8.11.x86_64 libXau6-
debuginfo-1.0.8-9.3.x86_64 libcap2-debuginfo-2.22-18.16.x86_64 libdbus-1-3-
debuginfo-1.8.22-5.1.x86_64 libgcrypt20-debuginfo-1.6.1-39.1.x86_64 libgpg-
error0-debuginfo-1.27-1.3.x86_64 libjson-c2-debuginfo-0.12-7.3.x86_64 
liblzma5-debuginfo-5.2.2-3.15.x86_64 libpulse0-debuginfo-9.0-5.1.x86_64 
libsystemd0-debuginfo-228-35.1.x86_64 libxcb1-debuginfo-1.11.1-4.3.x86_64
(gdb) bt
#0  0x00007fffeed9dbc2 in dssiaudio () from /usr/local/lib/csound/
plugins64-6.0//libdssi4cs.so
#1  0x00007ffff787eb25 in kperf_nodebug () from /usr/local/lib/libcsound64.so.
6.0
#2  0x00007ffff7880363 in csoundPerform () from /usr/local/lib/libcsound64.so.
6.0
#3  0x000000000040194c in main ()
----

tarmo

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-11-05 13:54
FromJohn ff
SubjectRe: [Csnd] DSSI/LADSPA opcodes crash
For me it fails to load caps.so so not sure if I can help.



Sent from TypeApp



On Nov 5, 2017, 00:55, at 00:55, Tarmo Johannes  wrote:
>Hi,
>
>Could someone try, if DSSI/LADSPA opcodes work for you - for me 
>dssiactivate.csd from manual and similar crash (backtrace from gdb):
>
>Output from Csound and backtrace:
>(Csound 6.10, linux)
>---
>--Csound version 6.10 (double samples) Oct 26 2017 
>
>UnifiedCSD:  /home/tarmo/tarmo/csound/proov/dssiactivate.csd
>STARTING FILE
>Creating options
>Creating orchestra
>closing tag
>Creating score
>rtaudio: ALSA module enabled
>rtmidi: ALSA Raw MIDI module enabled
>Elapsed time at end of orchestra compile: real: 0.002s, CPU: 0.002s
>sorting score ...
>        ... done
>Elapsed time at end of score sort: real: 0.002s, CPU: 0.002s
>graphics suppressed, ascii substituted
>0dBFS level = 32768.0
>DSSI4CS: Loading first instance.
>DSSI4CS: About to load descriptor function for plugin 0 of 1.
>DSSI4CS: LADSPA Plugin Detected
>DSSI4CS: About to instantiate plugin.
>DSSI4CS: Plugin instantiated.
>DSSI4CS: Found 0 control ports for: 'C* PhaserI - Mono phaser'
>DSSI4CS: Found 0 audio ports for: 'C* PhaserI - Mono phaser'
>DSSI4CS: Created port array.
>DSSI4CS: Created 0 control ports for: 'C* PhaserI - Mono phaser'
>DSSI4CS: Created 0 audio ports for: 'C* PhaserI - Mono phaser'
>DSSI4CS: Init Done.
>============Plugin 0========================================
>Plugin Type: LADSPA
>Plugin UniqueID: 1775
>Label: PhaserI
>Name: C* PhaserI - Mono phaser
>Maker: Tim Goetze 
>Copyright: GPL, 2002-7
>Number of Ports: 6
>  Port #0: Audio Input: in - Range: -1.000000 -> 1.000000
>  Port #1: Control Input: rate (Hz) - Range: 0.000000 -> 10.000000
>  Port #2: Control Input: depth - Range: 0.000000 -> 1.000000
>  Port #3: Control Input: spread - Range: 0.000000 -> 3.141593
>  Port #4: Control Input: feedback - Range: 0.000000 -> 0.999000
>  Port #5: Audio Output: out - Range: -Inf -> +Inf
>Must run in realtime: NO
>Is hard realtime capable: YES
>Has activate() function: YES
>=============================================================
>orch now loaded
>audio buffered in 256 sample-frame blocks
>[New Thread 0x7fffe69c4700 (LWP 8529)]
>ALSA output: total buffer size: 1024, period size: 256 
>writing 512 sample blks of 64-bit floats to dac 
>SECTION 1:
>new alloc for instr 1:
>new alloc for instr 4:
>DSSI4CS: Activate function called for: C* PhaserI - Mono phaser
>
>Thread 1 "csound" received signal SIGSEGV, Segmentation fault.
>0x00007fffeed9dbc2 in dssiaudio () from
>/usr/local/lib/csound/plugins64-6.0//
>libdssi4cs.so
>Missing separate debuginfos, use: zypper install alsa-plugins-pulse-
>debuginfo-1.1.4-1.1.x86_64 ladspa-caps-debuginfo-0.4.4-8.11.x86_64
>libXau6-
>debuginfo-1.0.8-9.3.x86_64 libcap2-debuginfo-2.22-18.16.x86_64
>libdbus-1-3-
>debuginfo-1.8.22-5.1.x86_64 libgcrypt20-debuginfo-1.6.1-39.1.x86_64
>libgpg-
>error0-debuginfo-1.27-1.3.x86_64 libjson-c2-debuginfo-0.12-7.3.x86_64 
>liblzma5-debuginfo-5.2.2-3.15.x86_64 libpulse0-debuginfo-9.0-5.1.x86_64
>
>libsystemd0-debuginfo-228-35.1.x86_64
>libxcb1-debuginfo-1.11.1-4.3.x86_64
>(gdb) bt
>#0  0x00007fffeed9dbc2 in dssiaudio () from /usr/local/lib/csound/
>plugins64-6.0//libdssi4cs.so
>#1  0x00007ffff787eb25 in kperf_nodebug () from
>/usr/local/lib/libcsound64.so.
>6.0
>#2  0x00007ffff7880363 in csoundPerform () from
>/usr/local/lib/libcsound64.so.
>6.0
>#3  0x000000000040194c in main ()
>----
>
>tarmo
>
>Csound mailing list
>Csound@listserv.heanet.ie
>https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>Send bugs reports to
>        https://github.com/csound/csound/issues
>Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-11-05 13:58
FromJohn ff
SubjectRe: [Csnd] DSSI/LADSPA opcodes crash
Update -- my keyboard needs replacing!

I get a set fault.  Now to investigate



Sent from TypeApp



On Nov 5, 2017, 13:55, at 13:55, John ff  wrote:
>For me it fails to load caps.so so not sure if I can help.
>
>
>
>Sent from TypeApp
>
>
>
>On Nov 5, 2017, 00:55, at 00:55, Tarmo Johannes 
>wrote:
>>Hi,
>>
>>Could someone try, if DSSI/LADSPA opcodes work for you - for me
>>dssiactivate.csd from manual and similar crash (backtrace from gdb):
>>
>>Output from Csound and backtrace:
>>(Csound 6.10, linux)
>>---
>>--Csound version 6.10 (double samples) Oct 26 2017
>>
>>UnifiedCSD:  /home/tarmo/tarmo/csound/proov/dssiactivate.csd
>>STARTING FILE
>>Creating options
>>Creating orchestra
>>closing tag
>>Creating score
>>rtaudio: ALSA module enabled
>>rtmidi: ALSA Raw MIDI module enabled
>>Elapsed time at end of orchestra compile: real: 0.002s, CPU: 0.002s
>>sorting score ...
>>        ... done
>>Elapsed time at end of score sort: real: 0.002s, CPU: 0.002s
>>graphics suppressed, ascii substituted
>>0dBFS level = 32768.0
>>DSSI4CS: Loading first instance.
>>DSSI4CS: About to load descriptor function for plugin 0 of 1.
>>DSSI4CS: LADSPA Plugin Detected
>>DSSI4CS: About to instantiate plugin.
>>DSSI4CS: Plugin instantiated.
>>DSSI4CS: Found 0 control ports for: 'C* PhaserI - Mono phaser'
>>DSSI4CS: Found 0 audio ports for: 'C* PhaserI - Mono phaser'
>>DSSI4CS: Created port array.
>>DSSI4CS: Created 0 control ports for: 'C* PhaserI - Mono phaser'
>>DSSI4CS: Created 0 audio ports for: 'C* PhaserI - Mono phaser'
>>DSSI4CS: Init Done.
>>============Plugin 0========================================
>>Plugin Type: LADSPA
>>Plugin UniqueID: 1775
>>Label: PhaserI
>>Name: C* PhaserI - Mono phaser
>>Maker: Tim Goetze 
>>Copyright: GPL, 2002-7
>>Number of Ports: 6
>>  Port #0: Audio Input: in - Range: -1.000000 -> 1.000000
>>  Port #1: Control Input: rate (Hz) - Range: 0.000000 -> 10.000000
>>  Port #2: Control Input: depth - Range: 0.000000 -> 1.000000
>>  Port #3: Control Input: spread - Range: 0.000000 -> 3.141593
>>  Port #4: Control Input: feedback - Range: 0.000000 -> 0.999000
>>  Port #5: Audio Output: out - Range: -Inf -> +Inf
>>Must run in realtime: NO
>>Is hard realtime capable: YES
>>Has activate() function: YES
>>=============================================================
>>orch now loaded
>>audio buffered in 256 sample-frame blocks
>>[New Thread 0x7fffe69c4700 (LWP 8529)]
>>ALSA output: total buffer size: 1024, period size: 256
>>writing 512 sample blks of 64-bit floats to dac
>>SECTION 1:
>>new alloc for instr 1:
>>new alloc for instr 4:
>>DSSI4CS: Activate function called for: C* PhaserI - Mono phaser
>>
>>Thread 1 "csound" received signal SIGSEGV, Segmentation fault.
>>0x00007fffeed9dbc2 in dssiaudio () from
>>/usr/local/lib/csound/plugins64-6.0//
>>libdssi4cs.so
>>Missing separate debuginfos, use: zypper install alsa-plugins-pulse-
>>debuginfo-1.1.4-1.1.x86_64 ladspa-caps-debuginfo-0.4.4-8.11.x86_64
>>libXau6-
>>debuginfo-1.0.8-9.3.x86_64 libcap2-debuginfo-2.22-18.16.x86_64
>>libdbus-1-3-
>>debuginfo-1.8.22-5.1.x86_64 libgcrypt20-debuginfo-1.6.1-39.1.x86_64
>>libgpg-
>>error0-debuginfo-1.27-1.3.x86_64 libjson-c2-debuginfo-0.12-7.3.x86_64
>>liblzma5-debuginfo-5.2.2-3.15.x86_64
>libpulse0-debuginfo-9.0-5.1.x86_64
>>
>>libsystemd0-debuginfo-228-35.1.x86_64
>>libxcb1-debuginfo-1.11.1-4.3.x86_64
>>(gdb) bt
>>#0  0x00007fffeed9dbc2 in dssiaudio () from /usr/local/lib/csound/
>>plugins64-6.0//libdssi4cs.so
>>#1  0x00007ffff787eb25 in kperf_nodebug () from
>>/usr/local/lib/libcsound64.so.
>>6.0
>>#2  0x00007ffff7880363 in csoundPerform () from
>>/usr/local/lib/libcsound64.so.
>>6.0
>>#3  0x000000000040194c in main ()
>>----
>>
>>tarmo
>>
>>Csound mailing list
>>Csound@listserv.heanet.ie
>>https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>Send bugs reports to
>>        https://github.com/csound/csound/issues
>>Discussions of bugs and features can be posted here
>
>Csound mailing list
>Csound@listserv.heanet.ie
>https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>Send bugs reports to
>        https://github.com/csound/csound/issues
>Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-11-05 21:00
Fromjpff
SubjectRe: [Csnd] DSSI/LADSPA opcodes crash
Another update; the code that allocates the memory to hold the audio date 
for the plugin is not being called.  No idea why yet but the code is 
convoluted especially if one does not know anything about dssi/ladspa.  Hope 
to have better news later
==John ff

On Sun, 5 Nov 2017, Tarmo Johannes wrote:

> Hi,
>
> Could someone try, if DSSI/LADSPA opcodes work for you - for me
> dssiactivate.csd from manual and similar crash (backtrace from gdb):
>
> Output from Csound and backtrace:
> (Csound 6.10, linux)
> ---
> --Csound version 6.10 (double samples) Oct 26 2017
>
> UnifiedCSD:  /home/tarmo/tarmo/csound/proov/dssiactivate.csd
> STARTING FILE
> Creating options
> Creating orchestra
> closing tag
> Creating score
> rtaudio: ALSA module enabled
> rtmidi: ALSA Raw MIDI module enabled
> Elapsed time at end of orchestra compile: real: 0.002s, CPU: 0.002s
> sorting score ...
>        ... done
> Elapsed time at end of score sort: real: 0.002s, CPU: 0.002s
> graphics suppressed, ascii substituted
> 0dBFS level = 32768.0
> DSSI4CS: Loading first instance.
> DSSI4CS: About to load descriptor function for plugin 0 of 1.
> DSSI4CS: LADSPA Plugin Detected
> DSSI4CS: About to instantiate plugin.
> DSSI4CS: Plugin instantiated.
> DSSI4CS: Found 0 control ports for: 'C* PhaserI - Mono phaser'
> DSSI4CS: Found 0 audio ports for: 'C* PhaserI - Mono phaser'
> DSSI4CS: Created port array.
> DSSI4CS: Created 0 control ports for: 'C* PhaserI - Mono phaser'
> DSSI4CS: Created 0 audio ports for: 'C* PhaserI - Mono phaser'
> DSSI4CS: Init Done.
> ============Plugin 0========================================
> Plugin Type: LADSPA
> Plugin UniqueID: 1775
> Label: PhaserI
> Name: C* PhaserI - Mono phaser
> Maker: Tim Goetze 
> Copyright: GPL, 2002-7
> Number of Ports: 6
>  Port #0: Audio Input: in - Range: -1.000000 -> 1.000000
>  Port #1: Control Input: rate (Hz) - Range: 0.000000 -> 10.000000
>  Port #2: Control Input: depth - Range: 0.000000 -> 1.000000
>  Port #3: Control Input: spread - Range: 0.000000 -> 3.141593
>  Port #4: Control Input: feedback - Range: 0.000000 -> 0.999000
>  Port #5: Audio Output: out - Range: -Inf -> +Inf
> Must run in realtime: NO
> Is hard realtime capable: YES
> Has activate() function: YES
> =============================================================
> orch now loaded
> audio buffered in 256 sample-frame blocks
> [New Thread 0x7fffe69c4700 (LWP 8529)]
> ALSA output: total buffer size: 1024, period size: 256
> writing 512 sample blks of 64-bit floats to dac
> SECTION 1:
> new alloc for instr 1:
> new alloc for instr 4:
> DSSI4CS: Activate function called for: C* PhaserI - Mono phaser
>
> Thread 1 "csound" received signal SIGSEGV, Segmentation fault.
> 0x00007fffeed9dbc2 in dssiaudio () from /usr/local/lib/csound/plugins64-6.0//
> libdssi4cs.so
> Missing separate debuginfos, use: zypper install alsa-plugins-pulse-
> debuginfo-1.1.4-1.1.x86_64 ladspa-caps-debuginfo-0.4.4-8.11.x86_64 libXau6-
> debuginfo-1.0.8-9.3.x86_64 libcap2-debuginfo-2.22-18.16.x86_64 libdbus-1-3-
> debuginfo-1.8.22-5.1.x86_64 libgcrypt20-debuginfo-1.6.1-39.1.x86_64 libgpg-
> error0-debuginfo-1.27-1.3.x86_64 libjson-c2-debuginfo-0.12-7.3.x86_64
> liblzma5-debuginfo-5.2.2-3.15.x86_64 libpulse0-debuginfo-9.0-5.1.x86_64
> libsystemd0-debuginfo-228-35.1.x86_64 libxcb1-debuginfo-1.11.1-4.3.x86_64
> (gdb) bt
> #0  0x00007fffeed9dbc2 in dssiaudio () from /usr/local/lib/csound/
> plugins64-6.0//libdssi4cs.so
> #1  0x00007ffff787eb25 in kperf_nodebug () from /usr/local/lib/libcsound64.so.
> 6.0
> #2  0x00007ffff7880363 in csoundPerform () from /usr/local/lib/libcsound64.so.
> 6.0
> #3  0x000000000040194c in main ()
> ----
>
> tarmo
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-11-05 21:02
FromTarmo Johannes
SubjectRe: [Csnd] DSSI/LADSPA opcodes crash
Thanks for looking at it, John!

tarmo

On Sunday, November 5, 2017 11:00:37 PM EET you wrote:
> Another update; the code that allocates the memory to hold the audio date
> for the plugin is not being called.  No idea why yet but the code is
> convoluted especially if one does not know anything about dssi/ladspa.  Hope
> to have better news later
> ==John ff
> 
> On Sun, 5 Nov 2017, Tarmo Johannes wrote:
> > Hi,
> > 
> > Could someone try, if DSSI/LADSPA opcodes work for you - for me
> > dssiactivate.csd from manual and similar crash (backtrace from gdb):
> > 
> > Output from Csound and backtrace:
> > (Csound 6.10, linux)
> > ---
> > --Csound version 6.10 (double samples) Oct 26 2017
> > 
> > UnifiedCSD:  /home/tarmo/tarmo/csound/proov/dssiactivate.csd
> > STARTING FILE
> > Creating options
> > Creating orchestra
> > closing tag
> > Creating score
> > rtaudio: ALSA module enabled
> > rtmidi: ALSA Raw MIDI module enabled
> > Elapsed time at end of orchestra compile: real: 0.002s, CPU: 0.002s
> > sorting score ...
> > 
> >        ... done
> > 
> > Elapsed time at end of score sort: real: 0.002s, CPU: 0.002s
> > graphics suppressed, ascii substituted
> > 0dBFS level = 32768.0
> > DSSI4CS: Loading first instance.
> > DSSI4CS: About to load descriptor function for plugin 0 of 1.
> > DSSI4CS: LADSPA Plugin Detected
> > DSSI4CS: About to instantiate plugin.
> > DSSI4CS: Plugin instantiated.
> > DSSI4CS: Found 0 control ports for: 'C* PhaserI - Mono phaser'
> > DSSI4CS: Found 0 audio ports for: 'C* PhaserI - Mono phaser'
> > DSSI4CS: Created port array.
> > DSSI4CS: Created 0 control ports for: 'C* PhaserI - Mono phaser'
> > DSSI4CS: Created 0 audio ports for: 'C* PhaserI - Mono phaser'
> > DSSI4CS: Init Done.
> > ============Plugin 0========================================
> > Plugin Type: LADSPA
> > Plugin UniqueID: 1775
> > Label: PhaserI
> > Name: C* PhaserI - Mono phaser
> > Maker: Tim Goetze 
> > Copyright: GPL, 2002-7
> > Number of Ports: 6
> > 
> >  Port #0: Audio Input: in - Range: -1.000000 -> 1.000000
> >  Port #1: Control Input: rate (Hz) - Range: 0.000000 -> 10.000000
> >  Port #2: Control Input: depth - Range: 0.000000 -> 1.000000
> >  Port #3: Control Input: spread - Range: 0.000000 -> 3.141593
> >  Port #4: Control Input: feedback - Range: 0.000000 -> 0.999000
> >  Port #5: Audio Output: out - Range: -Inf -> +Inf
> > 
> > Must run in realtime: NO
> > Is hard realtime capable: YES
> > Has activate() function: YES
> > =============================================================
> > orch now loaded
> > audio buffered in 256 sample-frame blocks
> > [New Thread 0x7fffe69c4700 (LWP 8529)]
> > ALSA output: total buffer size: 1024, period size: 256
> > writing 512 sample blks of 64-bit floats to dac
> > SECTION 1:
> > new alloc for instr 1:
> > new alloc for instr 4:
> > DSSI4CS: Activate function called for: C* PhaserI - Mono phaser
> > 
> > Thread 1 "csound" received signal SIGSEGV, Segmentation fault.
> > 0x00007fffeed9dbc2 in dssiaudio () from
> > /usr/local/lib/csound/plugins64-6.0// libdssi4cs.so
> > Missing separate debuginfos, use: zypper install alsa-plugins-pulse-
> > debuginfo-1.1.4-1.1.x86_64 ladspa-caps-debuginfo-0.4.4-8.11.x86_64
> > libXau6-
> > debuginfo-1.0.8-9.3.x86_64 libcap2-debuginfo-2.22-18.16.x86_64
> > libdbus-1-3-
> > debuginfo-1.8.22-5.1.x86_64 libgcrypt20-debuginfo-1.6.1-39.1.x86_64
> > libgpg-
> > error0-debuginfo-1.27-1.3.x86_64 libjson-c2-debuginfo-0.12-7.3.x86_64
> > liblzma5-debuginfo-5.2.2-3.15.x86_64 libpulse0-debuginfo-9.0-5.1.x86_64
> > libsystemd0-debuginfo-228-35.1.x86_64 libxcb1-debuginfo-1.11.1-4.3.x86_64
> > (gdb) bt
> > #0  0x00007fffeed9dbc2 in dssiaudio () from /usr/local/lib/csound/
> > plugins64-6.0//libdssi4cs.so
> > #1  0x00007ffff787eb25 in kperf_nodebug () from
> > /usr/local/lib/libcsound64.so. 6.0
> > #2  0x00007ffff7880363 in csoundPerform () from
> > /usr/local/lib/libcsound64.so. 6.0
> > #3  0x000000000040194c in main ()
> > ----
> > 
> > tarmo
> > 
> > Csound mailing list
> > Csound@listserv.heanet.ie
> > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> > Send bugs reports to
> > 
> >        https://github.com/csound/csound/issues
> > 
> > Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-11-05 21:20
Fromjpff
SubjectRe: [Csnd] DSSI/LADSPA opcodes crash
Found ad fixed in git


On Sun, 5 Nov 2017, Tarmo Johannes wrote:

> Hi,
>
> Could someone try, if DSSI/LADSPA opcodes work for you - for me
> dssiactivate.csd from manual and similar crash (backtrace from gdb):
>
> Output from Csound and backtrace:
> (Csound 6.10, linux)
> ---
> --Csound version 6.10 (double samples) Oct 26 2017
>
> UnifiedCSD:  /home/tarmo/tarmo/csound/proov/dssiactivate.csd
> STARTING FILE
> Creating options
> Creating orchestra
> closing tag
> Creating score
> rtaudio: ALSA module enabled
> rtmidi: ALSA Raw MIDI module enabled
> Elapsed time at end of orchestra compile: real: 0.002s, CPU: 0.002s
> sorting score ...
>        ... done
> Elapsed time at end of score sort: real: 0.002s, CPU: 0.002s
> graphics suppressed, ascii substituted
> 0dBFS level = 32768.0
> DSSI4CS: Loading first instance.
> DSSI4CS: About to load descriptor function for plugin 0 of 1.
> DSSI4CS: LADSPA Plugin Detected
> DSSI4CS: About to instantiate plugin.
> DSSI4CS: Plugin instantiated.
> DSSI4CS: Found 0 control ports for: 'C* PhaserI - Mono phaser'
> DSSI4CS: Found 0 audio ports for: 'C* PhaserI - Mono phaser'
> DSSI4CS: Created port array.
> DSSI4CS: Created 0 control ports for: 'C* PhaserI - Mono phaser'
> DSSI4CS: Created 0 audio ports for: 'C* PhaserI - Mono phaser'
> DSSI4CS: Init Done.
> ============Plugin 0========================================
> Plugin Type: LADSPA
> Plugin UniqueID: 1775
> Label: PhaserI
> Name: C* PhaserI - Mono phaser
> Maker: Tim Goetze 
> Copyright: GPL, 2002-7
> Number of Ports: 6
>  Port #0: Audio Input: in - Range: -1.000000 -> 1.000000
>  Port #1: Control Input: rate (Hz) - Range: 0.000000 -> 10.000000
>  Port #2: Control Input: depth - Range: 0.000000 -> 1.000000
>  Port #3: Control Input: spread - Range: 0.000000 -> 3.141593
>  Port #4: Control Input: feedback - Range: 0.000000 -> 0.999000
>  Port #5: Audio Output: out - Range: -Inf -> +Inf
> Must run in realtime: NO
> Is hard realtime capable: YES
> Has activate() function: YES
> =============================================================
> orch now loaded
> audio buffered in 256 sample-frame blocks
> [New Thread 0x7fffe69c4700 (LWP 8529)]
> ALSA output: total buffer size: 1024, period size: 256
> writing 512 sample blks of 64-bit floats to dac
> SECTION 1:
> new alloc for instr 1:
> new alloc for instr 4:
> DSSI4CS: Activate function called for: C* PhaserI - Mono phaser
>
> Thread 1 "csound" received signal SIGSEGV, Segmentation fault.
> 0x00007fffeed9dbc2 in dssiaudio () from /usr/local/lib/csound/plugins64-6.0//
> libdssi4cs.so
> Missing separate debuginfos, use: zypper install alsa-plugins-pulse-
> debuginfo-1.1.4-1.1.x86_64 ladspa-caps-debuginfo-0.4.4-8.11.x86_64 libXau6-
> debuginfo-1.0.8-9.3.x86_64 libcap2-debuginfo-2.22-18.16.x86_64 libdbus-1-3-
> debuginfo-1.8.22-5.1.x86_64 libgcrypt20-debuginfo-1.6.1-39.1.x86_64 libgpg-
> error0-debuginfo-1.27-1.3.x86_64 libjson-c2-debuginfo-0.12-7.3.x86_64
> liblzma5-debuginfo-5.2.2-3.15.x86_64 libpulse0-debuginfo-9.0-5.1.x86_64
> libsystemd0-debuginfo-228-35.1.x86_64 libxcb1-debuginfo-1.11.1-4.3.x86_64
> (gdb) bt
> #0  0x00007fffeed9dbc2 in dssiaudio () from /usr/local/lib/csound/
> plugins64-6.0//libdssi4cs.so
> #1  0x00007ffff787eb25 in kperf_nodebug () from /usr/local/lib/libcsound64.so.
> 6.0
> #2  0x00007ffff7880363 in csoundPerform () from /usr/local/lib/libcsound64.so.
> 6.0
> #3  0x000000000040194c in main ()
> ----
>
> tarmo
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-11-05 21:45
FromTarmo Johannes
SubjectRe: [Csnd] DSSI/LADSPA opcodes crash
Great!

caps.so gets loaded and works flawlessly. There are still some plugins that 
crash. I don't know what you have in your computer but here are some that 
fail:

adsr_1653.so
alias_1407.so
amp.so

In fact I could not find any at the moment that works besides caps.so

The Csound output (on amp.so, FAILURE):

---
DSSI4CS: Loading first instance.
DSSI4CS: About to load descriptor function for plugin 0 of 1.
DSSI4CS: LADSPA Plugin Detected
DSSI4CS: About to instantiate plugin.
DSSI4CS: Plugin instantiated.
DSSI4CS: Found 0 control ports for: 'PC&'
DSSI4CS: Found 1 audio ports for: 'PC&'
DSSI4CS: Created port array.
DSSI4CS: Queried port descriptor.
DSSI4CS: Queried port descriptor.
DSSI4CS: Queried port descriptor.

csound command: Segmentation fault

---

on caps.so (SUCCESS):

---
DSSI4CS: Loading first instance.
DSSI4CS: About to load descriptor function for plugin 0 of 1.
DSSI4CS: LADSPA Plugin Detected
DSSI4CS: About to instantiate plugin.
DSSI4CS: Plugin instantiated.
DSSI4CS: Found 10 control ports for: 'C* Eq - 10-band equalizer'
DSSI4CS: Found 2 audio ports for: 'C* Eq - 10-band equalizer'
DSSI4CS: Created port array.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal audio port 0 for Port 0.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal control port 0 for Port 1.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal control port 1 for Port 2.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal control port 2 for Port 3.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal control port 3 for Port 4.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal control port 4 for Port 5.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal control port 5 for Port 6.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal control port 6 for Port 7.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal control port 7 for Port 8.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal control port 8 for Port 9.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal control port 9 for Port 10.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal audio port 1 for Port 11.
DSSI4CS: Created 10 control ports for: 'C* Eq - 10-band equalizer'
DSSI4CS: Created 2 audio ports for: 'C* Eq - 10-band equalizer'
DSSI4CS: Init Done.
============Plugin 0========================================
Plugin Type: LADSPA
Plugin UniqueID: 1773
Label: Eq
Name: C* Eq - 10-band equalizer
Maker: Tim Goetze 
Copyright: GPL, 2004-7
Number of Ports: 12
  Port #0: Audio Input: in - Range: -Inf -> +Inf
  Port #1: Control Input: 31 Hz - Range: -48.000000 -> 24.000000
  Port #2: Control Input: 63 Hz - Range: -48.000000 -> 24.000000
  Port #3: Control Input: 125 Hz - Range: -48.000000 -> 24.000000
  Port #4: Control Input: 250 Hz - Range: -48.000000 -> 24.000000
  Port #5: Control Input: 500 Hz - Range: -48.000000 -> 24.000000
  Port #6: Control Input: 1 kHz - Range: -48.000000 -> 24.000000
  Port #7: Control Input: 2 kHz - Range: -48.000000 -> 24.000000
  Port #8: Control Input: 4 kHz - Range: -48.000000 -> 24.000000
  Port #9: Control Input: 8 kHz - Range: -48.000000 -> 24.000000
  Port #10: Control Input: 16 kHz - Range: -48.000000 -> 24.000000
  Port #11: Audio Output: out - Range: -Inf -> +Inf
Must run in realtime: NO
Is hard realtime capable: YES
Has activate() function: YES
=============================================================
orch now loaded


The csd I used for testing:
---


-odac 



sr = 44100
ksmps = 32
nchnls = 2

gihandle dssiinit "caps.so", 0, 1	; = mono phaser and

instr 1	; activate DSSI
ktoggle	=  p4
dssiactivate gihandle, ktoggle
endin




i 1 0 1 1
i 1 1 1 0
e



----

I hope it gives idea...

tarmo

On Sunday, November 5, 2017 11:20:39 PM EET you wrote:
> Found ad fixed in git
> 
> On Sun, 5 Nov 2017, Tarmo Johannes wrote:
> > Hi,
> > 
> > Could someone try, if DSSI/LADSPA opcodes work for you - for me
> > dssiactivate.csd from manual and similar crash (backtrace from gdb):
> > 
> > Output from Csound and backtrace:
> > (Csound 6.10, linux)
> > ---
> > --Csound version 6.10 (double samples) Oct 26 2017
> > 
> > UnifiedCSD:  /home/tarmo/tarmo/csound/proov/dssiactivate.csd
> > STARTING FILE
> > Creating options
> > Creating orchestra
> > closing tag
> > Creating score
> > rtaudio: ALSA module enabled
> > rtmidi: ALSA Raw MIDI module enabled
> > Elapsed time at end of orchestra compile: real: 0.002s, CPU: 0.002s
> > sorting score ...
> > 
> >        ... done
> > 
> > Elapsed time at end of score sort: real: 0.002s, CPU: 0.002s
> > graphics suppressed, ascii substituted
> > 0dBFS level = 32768.0
> > DSSI4CS: Loading first instance.
> > DSSI4CS: About to load descriptor function for plugin 0 of 1.
> > DSSI4CS: LADSPA Plugin Detected
> > DSSI4CS: About to instantiate plugin.
> > DSSI4CS: Plugin instantiated.
> > DSSI4CS: Found 0 control ports for: 'C* PhaserI - Mono phaser'
> > DSSI4CS: Found 0 audio ports for: 'C* PhaserI - Mono phaser'
> > DSSI4CS: Created port array.
> > DSSI4CS: Created 0 control ports for: 'C* PhaserI - Mono phaser'
> > DSSI4CS: Created 0 audio ports for: 'C* PhaserI - Mono phaser'
> > DSSI4CS: Init Done.
> > ============Plugin 0========================================
> > Plugin Type: LADSPA
> > Plugin UniqueID: 1775
> > Label: PhaserI
> > Name: C* PhaserI - Mono phaser
> > Maker: Tim Goetze 
> > Copyright: GPL, 2002-7
> > Number of Ports: 6
> > 
> >  Port #0: Audio Input: in - Range: -1.000000 -> 1.000000
> >  Port #1: Control Input: rate (Hz) - Range: 0.000000 -> 10.000000
> >  Port #2: Control Input: depth - Range: 0.000000 -> 1.000000
> >  Port #3: Control Input: spread - Range: 0.000000 -> 3.141593
> >  Port #4: Control Input: feedback - Range: 0.000000 -> 0.999000
> >  Port #5: Audio Output: out - Range: -Inf -> +Inf
> > 
> > Must run in realtime: NO
> > Is hard realtime capable: YES
> > Has activate() function: YES
> > =============================================================
> > orch now loaded
> > audio buffered in 256 sample-frame blocks
> > [New Thread 0x7fffe69c4700 (LWP 8529)]
> > ALSA output: total buffer size: 1024, period size: 256
> > writing 512 sample blks of 64-bit floats to dac
> > SECTION 1:
> > new alloc for instr 1:
> > new alloc for instr 4:
> > DSSI4CS: Activate function called for: C* PhaserI - Mono phaser
> > 
> > Thread 1 "csound" received signal SIGSEGV, Segmentation fault.
> > 0x00007fffeed9dbc2 in dssiaudio () from
> > /usr/local/lib/csound/plugins64-6.0// libdssi4cs.so
> > Missing separate debuginfos, use: zypper install alsa-plugins-pulse-
> > debuginfo-1.1.4-1.1.x86_64 ladspa-caps-debuginfo-0.4.4-8.11.x86_64
> > libXau6-
> > debuginfo-1.0.8-9.3.x86_64 libcap2-debuginfo-2.22-18.16.x86_64
> > libdbus-1-3-
> > debuginfo-1.8.22-5.1.x86_64 libgcrypt20-debuginfo-1.6.1-39.1.x86_64
> > libgpg-
> > error0-debuginfo-1.27-1.3.x86_64 libjson-c2-debuginfo-0.12-7.3.x86_64
> > liblzma5-debuginfo-5.2.2-3.15.x86_64 libpulse0-debuginfo-9.0-5.1.x86_64
> > libsystemd0-debuginfo-228-35.1.x86_64 libxcb1-debuginfo-1.11.1-4.3.x86_64
> > (gdb) bt
> > #0  0x00007fffeed9dbc2 in dssiaudio () from /usr/local/lib/csound/
> > plugins64-6.0//libdssi4cs.so
> > #1  0x00007ffff787eb25 in kperf_nodebug () from
> > /usr/local/lib/libcsound64.so. 6.0
> > #2  0x00007ffff7880363 in csoundPerform () from
> > /usr/local/lib/libcsound64.so. 6.0
> > #3  0x000000000040194c in main ()
> > ----
> > 
> > tarmo
> > 
> > Csound mailing list
> > Csound@listserv.heanet.ie
> > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> > Send bugs reports to
> > 
> >        https://github.com/csound/csound/issues
> > 
> > Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-11-05 22:20
FromJohn ff
SubjectRe: [Csnd] DSSI/LADSPA opcodes crash
Sorry to be obtuse but do ijust substitute one of those for caps.so in the dssiactive.csd file?

Sent from Blue
On 5 Nov 2017, at 21:46, Tarmo Johannes <trmjhnns@GMAIL.COM> wrote:
Great!

caps.so gets loaded and works flawlessly. There are still some plugins that
crash. I don't know what you have in your computer but here are some that
fail:

adsr_1653.so
alias_1407.so
amp.so

In fact I could not find any at the moment that works besides caps.so

The Csound output (on amp.so, FAILURE):

---
DSSI4CS: Loading first instance.
DSSI4CS: About to load descriptor function for plugin 0 of 1.
DSSI4CS: LADSPA Plugin Detected
DSSI4CS: About to instantiate plugin.
DSSI4CS: Plugin instantiated.
DSSI4CS: Found 0 control ports for: 'PC&'
DSSI4CS: Found 1 audio ports for: 'PC&'
DSSI4CS: Created port array.
DSSI4CS: Queried port descriptor.
DSSI4CS: Queried port descriptor.
DSSI4CS: Queried port descriptor.

csound command: Segmentation fault

---

on caps.so (SUCCESS):

---
DSSI4CS: Loading first instance.
DSSI4CS: About to load descriptor function for plugin 0 of 1.
DSSI4CS: LADSPA Plugin Detected
DSSI4CS: About to instantiate plugin.
DSSI4CS: Plugin instantiated.
DSSI4CS: Found 10 control ports for: 'C* Eq - 10-band equalizer'
DSSI4CS: Found 2 audio ports for: 'C* Eq - 10-band equalizer'
DSSI4CS: Created port array.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal audio port 0 for Port 0.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal control port 0 for Port 1.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal control port 1 for Port 2.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal control port 2 for Port 3.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal control port 3 for Port 4.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal control port 4 for Port 5.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal control port 5 for Port 6.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal control port 6 for Port 7.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal control port 7 for Port 8.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal control port 8 for Port 9.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal control port 9 for Port 10.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal audio port 1 for Port 11.
DSSI4CS: Created 10 control ports for: 'C* Eq - 10-band equalizer'
DSSI4CS: Created 2 audio ports for: 'C* Eq - 10-band equalizer'
DSSI4CS: Init Done.
============Plugin 0

Plugin Type: LADSPA
Plugin UniqueID: 1773
Label: Eq
Name: C* Eq - 10-band equalizer
Maker: Tim Goetze <tim@quitte.de>
Copyright: GPL, 2004-7
Number of Ports: 12
Port #0: Audio Input: in - Range: -Inf -> +Inf
Port #1: Control Input: 31 Hz - Range: -48.000000 -> 24.000000
Port #2: Control Input: 63 Hz - Range: -48.000000 -> 24.000000
Port #3: Control Input: 125 Hz - Range: -48.000000 -> 24.000000
Port #4: Control Input: 250 Hz - Range: -48.000000 -> 24.000000
Port #5: Control Input: 500 Hz - Range: -48.000000 -> 24.000000
Port #6: Control Input: 1 kHz - Range: -48.000000 -> 24.000000
Port #7: Control Input: 2 kHz - Range: -48.000000 -> 24.000000
Port #8: Control Input: 4 kHz - Range: -48.000000 -> 24.000000
Port #9: Control Input: 8 kHz - Range: -48.000000 -> 24.000000
Port #10: Control Input: 16 kHz - Range: -48.000000 -> 24.000000
Port #11: Audio Output: out - Range: -Inf -> +Inf
Must run in realtime: NO
Is hard realtime capable: YES
Has activate() function: YES


orch now loaded


The csd I used for testing:
---
<CsoundSynthesizer>
<CsOptions>
-odac
</CsOptions>
<CsInstruments>

sr = 44100
ksmps = 32
nchnls = 2

gihandle dssiinit "caps.so", 0, 1 ; = mono phaser and

instr 1 ; activate DSSI
ktoggle = p4
dssiactivate gihandle, ktoggle
endin


</CsInstruments>
<CsScore>
i 1 0 1 1
i 1 1 1 0
e
</CsScore>
</CsoundSynthesizer>

----

I hope it gives idea...

tarmo

On Sunday, November 5, 2017 11:20:39 PM EET you wrote:
Found ad fixed in git

On Sun, 5 Nov 2017, Tarmo Johannes wrote:
Hi,

Could someone try, if DSSI/LADSPA opcodes work for you - for me
dssiactivate.csd from manual and similar crash (backtrace from gdb):

Output from Csound and backtrace:
(Csound 6.10, linux)
---
--Csound version 6.10 (double samples) Oct 26 2017

UnifiedCSD: /home/tarmo/tarmo/csound/proov/dssiactivate.csd
STARTING FILE
Creating options
Creating orchestra
closing tag
Creating score
rtaudio: ALSA module enabled
rtmidi: ALSA Raw MIDI module enabled
Elapsed time at end of orchestra compile: real: 0.002s, CPU: 0.002s
sorting score ...

... done

Elapsed time at end of score sort: real: 0.002s, CPU: 0.002s
graphics suppressed, ascii substituted
0dBFS level = 32768.0
DSSI4CS: Loading first instance.
DSSI4CS: About to load descriptor function for plugin 0 of 1.
DSSI4CS: LADSPA Plugin Detected
DSSI4CS: About to instantiate plugin.
DSSI4CS: Plugin instantiated.
DSSI4CS: Found 0 control ports for: 'C* PhaserI - Mono phaser'
DSSI4CS: Found 0 audio ports for: 'C* PhaserI - Mono phaser'
DSSI4CS: Created port array.
DSSI4CS: Created 0 control ports for: 'C* PhaserI - Mono phaser'
DSSI4CS: Created 0 audio ports for: 'C* PhaserI - Mono phaser'
DSSI4CS: Init Done.
============Plugin 0

Plugin Type: LADSPA
Plugin UniqueID: 1775
Label: PhaserI
Name: C* PhaserI - Mono phaser
Maker: Tim Goetze <tim@quitte.de>
Copyright: GPL, 2002-7
Number of Ports: 6

Port #0: Audio Input: in - Range: -1.000000 -> 1.000000
Port #1: Control Input: rate (Hz) - Range: 0.000000 -> 10.000000
Port #2: Control Input: depth - Range: 0.000000 -> 1.000000
Port #3: Control Input: spread - Range: 0.000000 -> 3.141593
Port #4: Control Input: feedback - Range: 0.000000 -> 0.999000
Port #5: Audio Output: out - Range: -Inf -> +Inf

Must run in realtime: NO
Is hard realtime capable: YES
Has activate() function: YES


orch now loaded
audio buffered in 256 sample-frame blocks
[New Thread 0x7fffe69c4700 (LWP 8529)]
ALSA output: total buffer size: 1024, period size: 256
writing 512 sample blks of 64-bit floats to dac
SECTION 1:
new alloc for instr 1:
new alloc for instr 4:
DSSI4CS: Activate function called for: C* PhaserI - Mono phaser

Thread 1 "csound" received signal SIGSEGV, Segmentation fault.
0x00007fffeed9dbc2 in dssiaudio () from
/usr/local/lib/csound/plugins64-6.0// libdssi4cs.so
Missing separate debuginfos, use: zypper install alsa-plugins-pulse-
debuginfo-1.1.4-1.1.x86_64 ladspa-caps-debuginfo-0.4.4-8.11.x86_64
libXau6-
debuginfo-1.0.8-9.3.x86_64 libcap2-debuginfo-2.22-18.16.x86_64
libdbus-1-3-
debuginfo-1.8.22-5.1.x86_64 libgcrypt20-debuginfo-1.6.1-39.1.x86_64
libgpg-
error0-debuginfo-1.27-1.3.x86_64 libjson-c2-debuginfo-0.12-7.3.x86_64
liblzma5-debuginfo-5.2.2-3.15.x86_64 libpulse0-debuginfo-9.0-5.1.x86_64
libsystemd0-debuginfo-228-35.1.x86_64 libxcb1-debuginfo-1.11.1-4.3.x86_64
(gdb) bt
#0 0x00007fffeed9dbc2 in dssiaudio () from /usr/local/lib/csound/
plugins64-6.0//libdssi4cs.so
#1 0x00007ffff787eb25 in kperf_nodebug () from
/usr/local/lib/libcsound64.so. 6.0
#2 0x00007ffff7880363 in csoundPerform () from
/usr/local/lib/libcsound64.so. 6.0
#3 0x000000000040194c in main ()
----

tarmo

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to

https://github.com/csound/csound/issues

Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-11-06 01:12
FromKevin Krebs
SubjectRe: [Csnd] DSSI/LADSPA opcodes crash
Hi - I've been eavesdropping on this thread and thought I'd chime in with the little bit I know...

You're correct John, you can substitute out the 'caps.so 'file for the other ladspa plug-in files, which as I'm certain you know, you can list by using the dssilist opcode.

The 'caps.so' file from the example is from the caps ladspa plugin pack (ladspa-caps-plugins on my Fedora system).

I noticed that the plugindex value for dssininit in the manual example does not match the current caps plugin set (v0.9.24).  It specifies plugindex 19 as a 'mono phaser', when, at least for me, that loads 'C* EqFA4p - 4-band parametric eq.'  There is a phasor at index 13.  Furthermore, the ranges specified in the manual example don't match those of the plugin.




On Sun, Nov 5, 2017 at 2:20 PM, John ff <jpff@codemist.co.uk> wrote:
Sorry to be obtuse but do ijust substitute one of those for caps.so in the dssiactive.csd file?

Sent from Blue
On 5 Nov 2017, at 21:46, Tarmo Johannes <trmjhnns@GMAIL.COM> wrote:
Great!

caps.so gets loaded and works flawlessly. There are still some plugins that
crash. I don't know what you have in your computer but here are some that
fail:

adsr_1653.so
alias_1407.so
amp.so

In fact I could not find any at the moment that works besides caps.so

The Csound output (on amp.so, FAILURE):

---
DSSI4CS: Loading first instance.
DSSI4CS: About to load descriptor function for plugin 0 of 1.
DSSI4CS: LADSPA Plugin Detected
DSSI4CS: About to instantiate plugin.
DSSI4CS: Plugin instantiated.
DSSI4CS: Found 0 control ports for: 'PC&'
DSSI4CS: Found 1 audio ports for: 'PC&'
DSSI4CS: Created port array.
DSSI4CS: Queried port descriptor.
DSSI4CS: Queried port descriptor.
DSSI4CS: Queried port descriptor.

csound command: Segmentation fault

---

on caps.so (SUCCESS):

---
DSSI4CS: Loading first instance.
DSSI4CS: About to load descriptor function for plugin 0 of 1.
DSSI4CS: LADSPA Plugin Detected
DSSI4CS: About to instantiate plugin.
DSSI4CS: Plugin instantiated.
DSSI4CS: Found 10 control ports for: 'C* Eq - 10-band equalizer'
DSSI4CS: Found 2 audio ports for: 'C* Eq - 10-band equalizer'
DSSI4CS: Created port array.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal audio port 0 for Port 0.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal control port 0 for Port 1.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal control port 1 for Port 2.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal control port 2 for Port 3.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal control port 3 for Port 4.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal control port 4 for Port 5.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal control port 5 for Port 6.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal control port 6 for Port 7.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal control port 7 for Port 8.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal control port 8 for Port 9.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal control port 9 for Port 10.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal audio port 1 for Port 11.
DSSI4CS: Created 10 control ports for: 'C* Eq - 10-band equalizer'
DSSI4CS: Created 2 audio ports for: 'C* Eq - 10-band equalizer'
DSSI4CS: Init Done.
============Plugin 0

Plugin Type: LADSPA
Plugin UniqueID: 1773
Label: Eq
Name: C* Eq - 10-band equalizer
Maker: Tim Goetze <tim@quitte.de>
Copyright: GPL, 2004-7
Number of Ports: 12
Port #0: Audio Input: in - Range: -Inf -> +Inf
Port #1: Control Input: 31 Hz - Range: -48.000000 -> 24.000000
Port #2: Control Input: 63 Hz - Range: -48.000000 -> 24.000000
Port #3: Control Input: 125 Hz - Range: -48.000000 -> 24.000000
Port #4: Control Input: 250 Hz - Range: -48.000000 -> 24.000000
Port #5: Control Input: 500 Hz - Range: -48.000000 -> 24.000000
Port #6: Control Input: 1 kHz - Range: -48.000000 -> 24.000000
Port #7: Control Input: 2 kHz - Range: -48.000000 -> 24.000000
Port #8: Control Input: 4 kHz - Range: -48.000000 -> 24.000000
Port #9: Control Input: 8 kHz - Range: -48.000000 -> 24.000000
Port #10: Control Input: 16 kHz - Range: -48.000000 -> 24.000000
Port #11: Audio Output: out - Range: -Inf -> +Inf
Must run in realtime: NO
Is hard realtime capable: YES
Has activate() function: YES


orch now loaded


The csd I used for testing:
---
<CsoundSynthesizer>
<CsOptions>
-odac
</CsOptions>
<CsInstruments>

sr = 44100
ksmps = 32
nchnls = 2

gihandle dssiinit "caps.so", 0, 1 ; = mono phaser and

instr 1 ; activate DSSI
ktoggle = p4
dssiactivate gihandle, ktoggle
endin


</CsInstruments>
<CsScore>
i 1 0 1 1
i 1 1 1 0
e
</CsScore>
</CsoundSynthesizer>

----

I hope it gives idea...

tarmo

On Sunday, November 5, 2017 11:20:39 PM EET you wrote:
Found ad fixed in git

On Sun, 5 Nov 2017, Tarmo Johannes wrote:
Hi,

Could someone try, if DSSI/LADSPA opcodes work for you - for me
dssiactivate.csd from manual and similar crash (backtrace from gdb):

Output from Csound and backtrace:
(Csound 6.10, linux)
---
--Csound version 6.10 (double samples) Oct 26 2017

UnifiedCSD: /home/tarmo/tarmo/csound/proov/dssiactivate.csd
STARTING FILE
Creating options
Creating orchestra
closing tag
Creating score
rtaudio: ALSA module enabled
rtmidi: ALSA Raw MIDI module enabled
Elapsed time at end of orchestra compile: real: 0.002s, CPU: 0.002s
sorting score ...

... done

Elapsed time at end of score sort: real: 0.002s, CPU: 0.002s
graphics suppressed, ascii substituted
0dBFS level = 32768.0
DSSI4CS: Loading first instance.
DSSI4CS: About to load descriptor function for plugin 0 of 1.
DSSI4CS: LADSPA Plugin Detected
DSSI4CS: About to instantiate plugin.
DSSI4CS: Plugin instantiated.
DSSI4CS: Found 0 control ports for: 'C* PhaserI - Mono phaser'
DSSI4CS: Found 0 audio ports for: 'C* PhaserI - Mono phaser'
DSSI4CS: Created port array.
DSSI4CS: Created 0 control ports for: 'C* PhaserI - Mono phaser'
DSSI4CS: Created 0 audio ports for: 'C* PhaserI - Mono phaser'
DSSI4CS: Init Done.
============Plugin 0

Plugin Type: LADSPA
Plugin UniqueID: 1775
Label: PhaserI
Name: C* PhaserI - Mono phaser
Maker: Tim Goetze <tim@quitte.de>
Copyright: GPL, 2002-7
Number of Ports: 6

Port #0: Audio Input: in - Range: -1.000000 -> 1.000000
Port #1: Control Input: rate (Hz) - Range: 0.000000 -> 10.000000
Port #2: Control Input: depth - Range: 0.000000 -> 1.000000
Port #3: Control Input: spread - Range: 0.000000 -> 3.141593
Port #4: Control Input: feedback - Range: 0.000000 -> 0.999000
Port #5: Audio Output: out - Range: -Inf -> +Inf

Must run in realtime: NO
Is hard realtime capable: YES
Has activate() function: YES


orch now loaded
audio buffered in 256 sample-frame blocks
[New Thread 0x7fffe69c4700 (LWP 8529)]
ALSA output: total buffer size: 1024, period size: 256
writing 512 sample blks of 64-bit floats to dac
SECTION 1:
new alloc for instr 1:
new alloc for instr 4:
DSSI4CS: Activate function called for: C* PhaserI - Mono phaser

Thread 1 "csound" received signal SIGSEGV, Segmentation fault.
0x00007fffeed9dbc2 in dssiaudio () from
/usr/local/lib/csound/plugins64-6.0// libdssi4cs.so
Missing separate debuginfos, use: zypper install alsa-plugins-pulse-
debuginfo-1.1.4-1.1.x86_64 ladspa-caps-debuginfo-0.4.4-8.11.x86_64
libXau6-
debuginfo-1.0.8-9.3.x86_64 libcap2-debuginfo-2.22-18.16.x86_64
libdbus-1-3-
debuginfo-1.8.22-5.1.x86_64 libgcrypt20-debuginfo-1.6.1-39.1.x86_64
libgpg-
error0-debuginfo-1.27-1.3.x86_64 libjson-c2-debuginfo-0.12-7.3.x86_64
liblzma5-debuginfo-5.2.2-3.15.x86_64 libpulse0-debuginfo-9.0-5.1.x86_64
libsystemd0-debuginfo-228-35.1.x86_64 libxcb1-debuginfo-1.11.1-4.3.x86_64
(gdb) bt
#0 0x00007fffeed9dbc2 in dssiaudio () from /usr/local/lib/csound/
plugins64-6.0//libdssi4cs.so
#1 0x00007ffff787eb25 in kperf_nodebug () from
/usr/local/lib/libcsound64.so. 6.0
#2 0x00007ffff7880363 in csoundPerform () from
/usr/local/lib/libcsound64.so. 6.0
#3 0x000000000040194c in main ()
----

tarmo

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to

https://github.com/csound/csound/issues

Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2017-11-06 10:07
FromAnders Genell
SubjectRe: [Csnd] DSSI/LADSPA opcodes crash
We noticed when using caps plugins that the names of the plugins had been changed - probably a few years ago now. There is a utility program included in the distribution of ladspa called "analyseplugin" which can show what is included in different .so-files, and what names and limits of channels/values are in there as well. I don't know if something similar could be implemented in csound so that there is a warning when using wrong names or values?

Regards,
Anders

On Mon, Nov 6, 2017 at 2:12 AM, Kevin Krebs <kmkrebs@gmail.com> wrote:
Hi - I've been eavesdropping on this thread and thought I'd chime in with the little bit I know...

You're correct John, you can substitute out the 'caps.so 'file for the other ladspa plug-in files, which as I'm certain you know, you can list by using the dssilist opcode.

The 'caps.so' file from the example is from the caps ladspa plugin pack (ladspa-caps-plugins on my Fedora system).

I noticed that the plugindex value for dssininit in the manual example does not match the current caps plugin set (v0.9.24).  It specifies plugindex 19 as a 'mono phaser', when, at least for me, that loads 'C* EqFA4p - 4-band parametric eq.'  There is a phasor at index 13.  Furthermore, the ranges specified in the manual example don't match those of the plugin.




On Sun, Nov 5, 2017 at 2:20 PM, John ff <jpff@codemist.co.uk> wrote:
Sorry to be obtuse but do ijust substitute one of those for caps.so in the dssiactive.csd file?

Sent from Blue
On 5 Nov 2017, at 21:46, Tarmo Johannes <trmjhnns@GMAIL.COM> wrote:
Great!

caps.so gets loaded and works flawlessly. There are still some plugins that
crash. I don't know what you have in your computer but here are some that
fail:

adsr_1653.so
alias_1407.so
amp.so

In fact I could not find any at the moment that works besides caps.so

The Csound output (on amp.so, FAILURE):

---
DSSI4CS: Loading first instance.
DSSI4CS: About to load descriptor function for plugin 0 of 1.
DSSI4CS: LADSPA Plugin Detected
DSSI4CS: About to instantiate plugin.
DSSI4CS: Plugin instantiated.
DSSI4CS: Found 0 control ports for: 'PC&'
DSSI4CS: Found 1 audio ports for: 'PC&'
DSSI4CS: Created port array.
DSSI4CS: Queried port descriptor.
DSSI4CS: Queried port descriptor.
DSSI4CS: Queried port descriptor.

csound command: Segmentation fault

---

on caps.so (SUCCESS):

---
DSSI4CS: Loading first instance.
DSSI4CS: About to load descriptor function for plugin 0 of 1.
DSSI4CS: LADSPA Plugin Detected
DSSI4CS: About to instantiate plugin.
DSSI4CS: Plugin instantiated.
DSSI4CS: Found 10 control ports for: 'C* Eq - 10-band equalizer'
DSSI4CS: Found 2 audio ports for: 'C* Eq - 10-band equalizer'
DSSI4CS: Created port array.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal audio port 0 for Port 0.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal control port 0 for Port 1.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal control port 1 for Port 2.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal control port 2 for Port 3.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal control port 3 for Port 4.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal control port 4 for Port 5.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal control port 5 for Port 6.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal control port 6 for Port 7.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal control port 7 for Port 8.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal control port 8 for Port 9.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal control port 9 for Port 10.
DSSI4CS: Queried port descriptor.
DSSI4CS: Created internal audio port 1 for Port 11.
DSSI4CS: Created 10 control ports for: 'C* Eq - 10-band equalizer'
DSSI4CS: Created 2 audio ports for: 'C* Eq - 10-band equalizer'
DSSI4CS: Init Done.
============Plugin 0

Plugin Type: LADSPA
Plugin UniqueID: 1773
Label: Eq
Name: C* Eq - 10-band equalizer
Maker: Tim Goetze <tim@quitte.de>
Copyright: GPL, 2004-7
Number of Ports: 12
Port #0: Audio Input: in - Range: -Inf -> +Inf
Port #1: Control Input: 31 Hz - Range: -48.000000 -> 24.000000
Port #2: Control Input: 63 Hz - Range: -48.000000 -> 24.000000
Port #3: Control Input: 125 Hz - Range: -48.000000 -> 24.000000
Port #4: Control Input: 250 Hz - Range: -48.000000 -> 24.000000
Port #5: Control Input: 500 Hz - Range: -48.000000 -> 24.000000
Port #6: Control Input: 1 kHz - Range: -48.000000 -> 24.000000
Port #7: Control Input: 2 kHz - Range: -48.000000 -> 24.000000
Port #8: Control Input: 4 kHz - Range: -48.000000 -> 24.000000
Port #9: Control Input: 8 kHz - Range: -48.000000 -> 24.000000
Port #10: Control Input: 16 kHz - Range: -48.000000 -> 24.000000
Port #11: Audio Output: out - Range: -Inf -> +Inf
Must run in realtime: NO
Is hard realtime capable: YES
Has activate() function: YES


orch now loaded


The csd I used for testing:
---
<CsoundSynthesizer>
<CsOptions>
-odac
</CsOptions>
<CsInstruments>

sr = 44100
ksmps = 32
nchnls = 2

gihandle dssiinit "caps.so", 0, 1 ; = mono phaser and

instr 1 ; activate DSSI
ktoggle = p4
dssiactivate gihandle, ktoggle
endin


</CsInstruments>
<CsScore>
i 1 0 1 1
i 1 1 1 0
e
</CsScore>
</CsoundSynthesizer>

----

I hope it gives idea...

tarmo

On Sunday, November 5, 2017 11:20:39 PM EET you wrote:
Found ad fixed in git

On Sun, 5 Nov 2017, Tarmo Johannes wrote:
Hi,

Could someone try, if DSSI/LADSPA opcodes work for you - for me
dssiactivate.csd from manual and similar crash (backtrace from gdb):

Output from Csound and backtrace:
(Csound 6.10, linux)
---
--Csound version 6.10 (double samples) Oct 26 2017

UnifiedCSD: /home/tarmo/tarmo/csound/proov/dssiactivate.csd
STARTING FILE
Creating options
Creating orchestra
closing tag
Creating score
rtaudio: ALSA module enabled
rtmidi: ALSA Raw MIDI module enabled
Elapsed time at end of orchestra compile: real: 0.002s, CPU: 0.002s
sorting score ...

... done

Elapsed time at end of score sort: real: 0.002s, CPU: 0.002s
graphics suppressed, ascii substituted
0dBFS level = 32768.0
DSSI4CS: Loading first instance.
DSSI4CS: About to load descriptor function for plugin 0 of 1.
DSSI4CS: LADSPA Plugin Detected
DSSI4CS: About to instantiate plugin.
DSSI4CS: Plugin instantiated.
DSSI4CS: Found 0 control ports for: 'C* PhaserI - Mono phaser'
DSSI4CS: Found 0 audio ports for: 'C* PhaserI - Mono phaser'
DSSI4CS: Created port array.
DSSI4CS: Created 0 control ports for: 'C* PhaserI - Mono phaser'
DSSI4CS: Created 0 audio ports for: 'C* PhaserI - Mono phaser'
DSSI4CS: Init Done.
============Plugin 0

Plugin Type: LADSPA
Plugin UniqueID: 1775
Label: PhaserI
Name: C* PhaserI - Mono phaser
Maker: Tim Goetze <tim@quitte.de>
Copyright: GPL, 2002-7
Number of Ports: 6

Port #0: Audio Input: in - Range: -1.000000 -> 1.000000
Port #1: Control Input: rate (Hz) - Range: 0.000000 -> 10.000000
Port #2: Control Input: depth - Range: 0.000000 -> 1.000000
Port #3: Control Input: spread - Range: 0.000000 -> 3.141593
Port #4: Control Input: feedback - Range: 0.000000 -> 0.999000
Port #5: Audio Output: out - Range: -Inf -> +Inf

Must run in realtime: NO
Is hard realtime capable: YES
Has activate() function: YES


orch now loaded
audio buffered in 256 sample-frame blocks
[New Thread 0x7fffe69c4700 (LWP 8529)]
ALSA output: total buffer size: 1024, period size: 256
writing 512 sample blks of 64-bit floats to dac
SECTION 1:
new alloc for instr 1:
new alloc for instr 4:
DSSI4CS: Activate function called for: C* PhaserI - Mono phaser

Thread 1 "csound" received signal SIGSEGV, Segmentation fault.
0x00007fffeed9dbc2 in dssiaudio () from
/usr/local/lib/csound/plugins64-6.0// libdssi4cs.so
Missing separate debuginfos, use: zypper install alsa-plugins-pulse-
debuginfo-1.1.4-1.1.x86_64 ladspa-caps-debuginfo-0.4.4-8.11.x86_64
libXau6-
debuginfo-1.0.8-9.3.x86_64 libcap2-debuginfo-2.22-18.16.x86_64
libdbus-1-3-
debuginfo-1.8.22-5.1.x86_64 libgcrypt20-debuginfo-1.6.1-39.1.x86_64
libgpg-
error0-debuginfo-1.27-1.3.x86_64 libjson-c2-debuginfo-0.12-7.3.x86_64
liblzma5-debuginfo-5.2.2-3.15.x86_64 libpulse0-debuginfo-9.0-5.1.x86_64
libsystemd0-debuginfo-228-35.1.x86_64 libxcb1-debuginfo-1.11.1-4.3.x86_64
(gdb) bt
#0 0x00007fffeed9dbc2 in dssiaudio () from /usr/local/lib/csound/
plugins64-6.0//libdssi4cs.so
#1 0x00007ffff787eb25 in kperf_nodebug () from
/usr/local/lib/libcsound64.so. 6.0
#2 0x00007ffff7880363 in csoundPerform () from
/usr/local/lib/libcsound64.so. 6.0
#3 0x000000000040194c in main ()
----

tarmo

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to

https://github.com/csound/csound/issues

Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2017-11-06 14:07
Fromjpff
SubjectRe: [Csnd] DSSI/LADSPA opcodes crash
Not found a crash yet but these seem to say there is no ladspa_descriptor, 
although I think I can see one.  A bit busy today but will try and look.

First deep look ends with me wondering about the index into the plugin. 
It does find the ladspa_description but fails to get anything but a NULL 
back from calling it wit an index


On Sun, 5 Nov 2017, Tarmo Johannes wrote:

> Great!
>
> caps.so gets loaded and works flawlessly. There are still some plugins that
> crash. I don't know what you have in your computer but here are some that
> fail:
>
> adsr_1653.so
> alias_1407.so
> amp.so
>
> In fact I could not find any at the moment that works besides caps.so
>
> The Csound output (on amp.so, FAILURE):
>
> ---
> DSSI4CS: Loading first instance.
> DSSI4CS: About to load descriptor function for plugin 0 of 1.
> DSSI4CS: LADSPA Plugin Detected
> DSSI4CS: About to instantiate plugin.
> DSSI4CS: Plugin instantiated.
> DSSI4CS: Found 0 control ports for: 'PC&'
> DSSI4CS: Found 1 audio ports for: 'PC&'
> DSSI4CS: Created port array.
> DSSI4CS: Queried port descriptor.
> DSSI4CS: Queried port descriptor.
> DSSI4CS: Queried port descriptor.
>
> csound command: Segmentation fault
>
> ---
>
> on caps.so (SUCCESS):
>
> ---
> DSSI4CS: Loading first instance.
> DSSI4CS: About to load descriptor function for plugin 0 of 1.
> DSSI4CS: LADSPA Plugin Detected
> DSSI4CS: About to instantiate plugin.
> DSSI4CS: Plugin instantiated.
> DSSI4CS: Found 10 control ports for: 'C* Eq - 10-band equalizer'
> DSSI4CS: Found 2 audio ports for: 'C* Eq - 10-band equalizer'
> DSSI4CS: Created port array.
> DSSI4CS: Queried port descriptor.
> DSSI4CS: Created internal audio port 0 for Port 0.
> DSSI4CS: Queried port descriptor.
> DSSI4CS: Created internal control port 0 for Port 1.
> DSSI4CS: Queried port descriptor.
> DSSI4CS: Created internal control port 1 for Port 2.
> DSSI4CS: Queried port descriptor.
> DSSI4CS: Created internal control port 2 for Port 3.
> DSSI4CS: Queried port descriptor.
> DSSI4CS: Created internal control port 3 for Port 4.
> DSSI4CS: Queried port descriptor.
> DSSI4CS: Created internal control port 4 for Port 5.
> DSSI4CS: Queried port descriptor.
> DSSI4CS: Created internal control port 5 for Port 6.
> DSSI4CS: Queried port descriptor.
> DSSI4CS: Created internal control port 6 for Port 7.
> DSSI4CS: Queried port descriptor.
> DSSI4CS: Created internal control port 7 for Port 8.
> DSSI4CS: Queried port descriptor.
> DSSI4CS: Created internal control port 8 for Port 9.
> DSSI4CS: Queried port descriptor.
> DSSI4CS: Created internal control port 9 for Port 10.
> DSSI4CS: Queried port descriptor.
> DSSI4CS: Created internal audio port 1 for Port 11.
> DSSI4CS: Created 10 control ports for: 'C* Eq - 10-band equalizer'
> DSSI4CS: Created 2 audio ports for: 'C* Eq - 10-band equalizer'
> DSSI4CS: Init Done.
> ============Plugin 0========================================
> Plugin Type: LADSPA
> Plugin UniqueID: 1773
> Label: Eq
> Name: C* Eq - 10-band equalizer
> Maker: Tim Goetze 
> Copyright: GPL, 2004-7
> Number of Ports: 12
>  Port #0: Audio Input: in - Range: -Inf -> +Inf
>  Port #1: Control Input: 31 Hz - Range: -48.000000 -> 24.000000
>  Port #2: Control Input: 63 Hz - Range: -48.000000 -> 24.000000
>  Port #3: Control Input: 125 Hz - Range: -48.000000 -> 24.000000
>  Port #4: Control Input: 250 Hz - Range: -48.000000 -> 24.000000
>  Port #5: Control Input: 500 Hz - Range: -48.000000 -> 24.000000
>  Port #6: Control Input: 1 kHz - Range: -48.000000 -> 24.000000
>  Port #7: Control Input: 2 kHz - Range: -48.000000 -> 24.000000
>  Port #8: Control Input: 4 kHz - Range: -48.000000 -> 24.000000
>  Port #9: Control Input: 8 kHz - Range: -48.000000 -> 24.000000
>  Port #10: Control Input: 16 kHz - Range: -48.000000 -> 24.000000
>  Port #11: Audio Output: out - Range: -Inf -> +Inf
> Must run in realtime: NO
> Is hard realtime capable: YES
> Has activate() function: YES
> =============================================================
> orch now loaded
>
>
> The csd I used for testing:
> ---
> 
> 
> -odac
> 
> 
>
> sr = 44100
> ksmps = 32
> nchnls = 2
>
> gihandle dssiinit "caps.so", 0, 1	; = mono phaser and
>
> instr 1	; activate DSSI
> ktoggle	=  p4
> dssiactivate gihandle, ktoggle
> endin
>
>
> 
> 
> i 1 0 1 1
> i 1 1 1 0
> e
> 
> 
>
> ----
>
> I hope it gives idea...
>
> tarmo
>
> On Sunday, November 5, 2017 11:20:39 PM EET you wrote:
>> Found ad fixed in git
>>
>> On Sun, 5 Nov 2017, Tarmo Johannes wrote:
>>> Hi,
>>>
>>> Could someone try, if DSSI/LADSPA opcodes work for you - for me
>>> dssiactivate.csd from manual and similar crash (backtrace from gdb):
>>>
>>> Output from Csound and backtrace:
>>> (Csound 6.10, linux)
>>> ---
>>> --Csound version 6.10 (double samples) Oct 26 2017
>>>
>>> UnifiedCSD:  /home/tarmo/tarmo/csound/proov/dssiactivate.csd
>>> STARTING FILE
>>> Creating options
>>> Creating orchestra
>>> closing tag
>>> Creating score
>>> rtaudio: ALSA module enabled
>>> rtmidi: ALSA Raw MIDI module enabled
>>> Elapsed time at end of orchestra compile: real: 0.002s, CPU: 0.002s
>>> sorting score ...
>>>
>>>        ... done
>>>
>>> Elapsed time at end of score sort: real: 0.002s, CPU: 0.002s
>>> graphics suppressed, ascii substituted
>>> 0dBFS level = 32768.0
>>> DSSI4CS: Loading first instance.
>>> DSSI4CS: About to load descriptor function for plugin 0 of 1.
>>> DSSI4CS: LADSPA Plugin Detected
>>> DSSI4CS: About to instantiate plugin.
>>> DSSI4CS: Plugin instantiated.
>>> DSSI4CS: Found 0 control ports for: 'C* PhaserI - Mono phaser'
>>> DSSI4CS: Found 0 audio ports for: 'C* PhaserI - Mono phaser'
>>> DSSI4CS: Created port array.
>>> DSSI4CS: Created 0 control ports for: 'C* PhaserI - Mono phaser'
>>> DSSI4CS: Created 0 audio ports for: 'C* PhaserI - Mono phaser'
>>> DSSI4CS: Init Done.
>>> ============Plugin 0========================================
>>> Plugin Type: LADSPA
>>> Plugin UniqueID: 1775
>>> Label: PhaserI
>>> Name: C* PhaserI - Mono phaser
>>> Maker: Tim Goetze 
>>> Copyright: GPL, 2002-7
>>> Number of Ports: 6
>>>
>>>  Port #0: Audio Input: in - Range: -1.000000 -> 1.000000
>>>  Port #1: Control Input: rate (Hz) - Range: 0.000000 -> 10.000000
>>>  Port #2: Control Input: depth - Range: 0.000000 -> 1.000000
>>>  Port #3: Control Input: spread - Range: 0.000000 -> 3.141593
>>>  Port #4: Control Input: feedback - Range: 0.000000 -> 0.999000
>>>  Port #5: Audio Output: out - Range: -Inf -> +Inf
>>>
>>> Must run in realtime: NO
>>> Is hard realtime capable: YES
>>> Has activate() function: YES
>>> =============================================================
>>> orch now loaded
>>> audio buffered in 256 sample-frame blocks
>>> [New Thread 0x7fffe69c4700 (LWP 8529)]
>>> ALSA output: total buffer size: 1024, period size: 256
>>> writing 512 sample blks of 64-bit floats to dac
>>> SECTION 1:
>>> new alloc for instr 1:
>>> new alloc for instr 4:
>>> DSSI4CS: Activate function called for: C* PhaserI - Mono phaser
>>>
>>> Thread 1 "csound" received signal SIGSEGV, Segmentation fault.
>>> 0x00007fffeed9dbc2 in dssiaudio () from
>>> /usr/local/lib/csound/plugins64-6.0// libdssi4cs.so
>>> Missing separate debuginfos, use: zypper install alsa-plugins-pulse-
>>> debuginfo-1.1.4-1.1.x86_64 ladspa-caps-debuginfo-0.4.4-8.11.x86_64
>>> libXau6-
>>> debuginfo-1.0.8-9.3.x86_64 libcap2-debuginfo-2.22-18.16.x86_64
>>> libdbus-1-3-
>>> debuginfo-1.8.22-5.1.x86_64 libgcrypt20-debuginfo-1.6.1-39.1.x86_64
>>> libgpg-
>>> error0-debuginfo-1.27-1.3.x86_64 libjson-c2-debuginfo-0.12-7.3.x86_64
>>> liblzma5-debuginfo-5.2.2-3.15.x86_64 libpulse0-debuginfo-9.0-5.1.x86_64
>>> libsystemd0-debuginfo-228-35.1.x86_64 libxcb1-debuginfo-1.11.1-4.3.x86_64
>>> (gdb) bt
>>> #0  0x00007fffeed9dbc2 in dssiaudio () from /usr/local/lib/csound/
>>> plugins64-6.0//libdssi4cs.so
>>> #1  0x00007ffff787eb25 in kperf_nodebug () from
>>> /usr/local/lib/libcsound64.so. 6.0
>>> #2  0x00007ffff7880363 in csoundPerform () from
>>> /usr/local/lib/libcsound64.so. 6.0
>>> #3  0x000000000040194c in main ()
>>> ----
>>>
>>> tarmo
>>>
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>
>>>        https://github.com/csound/csound/issues
>>>
>>> Discussions of bugs and features can be posted here
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-11-06 14:23
Fromjpff
SubjectRe: [Csnd] DSSI/LADSPA opcodes crash
Further inspection gets worse!

Trying alias_1407.so I get

(gdb) print *LDescriptor
$9 = {UniqueID = 7451136, Label = 0x7d1120 "", Properties = 4,
   Name = 0x7fffe2194c3f ,
   Maker = 0x7fffe2194c68 , Copyright = 0x7fffe2194c48 , PortCount = 3, PortDescriptors = 0x7d31e0, 
PortNames = 0x7d26d0,
   PortRangeHints = 0x75d4f0, ImplementationData = 0x60, instantiate =
     0x7fffe2194bd0, connect_port = 0x7fffe2194a80, activate = 0x0, run =
     0x7fffe2194ab0, run_adding = 0x7fffe2194b40, set_run_adding_gain =
     0x7fffe2194b30, deactivate = 0x0, cleanup = 0xa0}

which leads to a crash when it tries to print LDescriptot->Name which is 
in unreadable memory.  Do we have someone who understands DSSI/Lapdspa in 
the community?  or a pointer as where to look?

==John ff

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-11-06 14:41
FromVictor Lazzarini
SubjectRe: [Csnd] DSSI/LADSPA opcodes crash
Would Andres Cabrera be able to help?

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 6 Nov 2017, at 14:23, jpff <jpff@CODEMIST.CO.UK> wrote:

Further inspection gets worse!

Trying alias_1407.so I get

(gdb) print *LDescriptor
$9 = {UniqueID = 7451136, Label = 0x7d1120 "", Properties = 4,
 Name = 0x7fffe2194c3f <error: Cannot access memory at address 0x7fffe2194c3f>,
 Maker = 0x7fffe2194c68 <error: Cannot access memory at address 0x7fffe2194c68>, Copyright = 0x7fffe2194c48 <error: Cannot access memory at address 0x7fffe2194c48>, PortCount = 3, PortDescriptors = 0x7d31e0, PortNames = 0x7d26d0,
 PortRangeHints = 0x75d4f0, ImplementationData = 0x60, instantiate =
   0x7fffe2194bd0, connect_port = 0x7fffe2194a80, activate = 0x0, run =
   0x7fffe2194ab0, run_adding = 0x7fffe2194b40, set_run_adding_gain =
   0x7fffe2194b30, deactivate = 0x0, cleanup = 0xa0}

which leads to a crash when it tries to print LDescriptot->Name which is in unreadable memory.  Do we have someone who understands DSSI/Lapdspa in the community?  or a pointer as where to look?

==John ff

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here