[Csnd] Csound tidy up: Segmentation fault
Date | 2019-09-09 18:40 |
From | Marco Ippolito |
Subject | [Csnd] Csound tidy up: Segmentation fault |
I do hope I'm not already cluttering the mailing list with all my questions.... I do not understand why I get Csound tidy up: Segmentation fault : (base) marco@marco-U36SG:~/csoundCppAPIexamples$ g++ -std=c++17 -DUSE_DOUBLE -I /usr/include/csound -L /usr/lib/csound SetChannelExample.cpp -lcsound64 -lcsnd6 -o SetChannelExample (base) marco@marco-U36SG:~/csoundCppAPIexamples$ ./SetChannelExample 0dBFS level = 32768.0 --Csound version 6.10 (double samples) 2018-01-27 [commit: none] libsndfile-1.0.28 UnifiedCSD: test8.csd STARTING FILE Creating options Creating orchestra closing tag Creating score rtmidi: ALSA Raw MIDI module enabled rtaudio: JACK 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 = 1.0 orch now loaded audio buffered in 256 sample-frame blocks Cannot lock down 82280346 byte memory area (Cannot allocate memory) system sr: 44100.000000 *** rtjack: buffer size (-B) is too small Enter a frequency and press enter(enter a negative frequency to quit):new alloc for instr 1: backtrace() returned 9 addresses /usr/lib/libcsound64.so.6.0(+0x3f7e3) [0x7fc7b50267e3] /lib/x86_64-linux-gnu/libc.so.6(+0x3ef20) [0x7fc7b4407f20] /usr/lib/libcsound64.so.6.0(+0x71c04) [0x7fc7b5058c04] /usr/lib/libcsound64.so.6.0(+0x416fb) [0x7fc7b50286fb] /usr/lib/libcsound64.so.6.0(csoundPerformKsmps+0x4e) [0x7fc7b5029f2e] /usr/lib/libcsnd6.so.6.0(_ZN23CsoundPerformanceThread7PerformEv+0x36) [0x7fc7b4dd44b6] /usr/lib/libcsnd6.so.6.0(+0x22778) [0x7fc7b4dd4778] /lib/x86_64-linux-gnu/libpthread.so.0(+0x76db) [0x7fc7b3f386db] /lib/x86_64-linux-gnu/libc.so.6(clone+0x3f) [0x7fc7b44ea88f] Csound tidy up: Segmentation fault inactive allocs returned to freespace end of score. overall amps:10731736423055013868697508878618751562471393702299494063014714436942035812132418684485490751050410355025592066020158255660139968873327562727115839137437721757517813862249280513529346588809195880261810509167300278795785577653519690499326529388244609611340152497322596960896548864.00000 overall samples out of range: 2184 0 errors in performance Elapsed time at end of performance: real: 0.342s, CPU: 0.009s How can I solve this "Csound tidy up: Segmentation fault" ? Marco 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 |
Date | 2019-09-09 18:57 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Csound tidy up: Segmentation fault |
Your program crashed. Maybe you should learn a bit more about Csound and its language before trying to use the API. Look at the resources in csound.com, the FLOSS manual is a good place to start. Try getting used to running Csound first without actually embedding it in your own program, then when you understand how it works, look at the API examples. Prof. Victor Lazzarini Maynooth University Ireland > On 9 Sep 2019, at 18:41, Marco Ippolito |
Date | 2019-09-09 19:28 |
From | Tarmo Johannes |
Subject | Re: [Csnd] Csound tidy up: Segmentation fault |
Hi, Seems that you are trying to use jack for audio output but your Csound buffer is different from jack buffer. Try settings like -b 256 -B 512 in Csound options or use just default portauido (just -odac) in options. Tarmo E, 9. september 2019 20:57 Victor Lazzarini <Victor.Lazzarini@mu.ie> kirjutas: Your program crashed. |