Comments (12)
For now, I put the complete (and compiling in faust and faustlive) dsp files here: https://gist.github.com/LFSaw/17a6125b113cd420eaed104a10653b20
from faust.
We fixed some memory related issues some month ago. What Faust version are you using? I suggest using the GIT master branch.
from faust.
I am on current master: ce5f468
from faust.
I added the crash report and build/reproduce instructions to the gist (see above).
Apparently, it is a seg-fault, I copied important bits of the trace below:
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00007fff5e06b9f8
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [0]
VM Regions Near 0x7fff5e06b9f8:
MALLOC_SMALL 00007f8063800000-00007f8065800000 [ 32.0M] rw-/rwx SM=PRV
--> STACK GUARD 00007fff5a8f0000-00007fff5e0f0000 [ 56.0M] ---/rwx SM=NUL stack guard for thread 0
Stack 00007fff5e0f0000-00007fff5e8f0000 [ 8192K] rw-/rwx SM=COW thread 0
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 GreyholeRaw.scx 0x0000000103d8f8ad load + 77
1 scsynth 0x0000000101335109 PlugIn_LoadDir(char const*, bool) + 249 (vector:1587)
2 scsynth 0x00000001013351ac PlugIn_LoadDir(char const*, bool) + 412 (SC_Lib_Cintf.cpp:395)
3 scsynth 0x00000001013351ac PlugIn_LoadDir(char const*, bool) + 412 (SC_Lib_Cintf.cpp:395)
4 scsynth 0x0000000101334f7f initialize_library(char const*) + 607 (SC_Lib_Cintf.cpp:217)
5 scsynth 0x000000010134d1a6 World_New + 614 (SC_World.cpp:338)
6 scsynth 0x000000010131453a main + 1770 (scsynth_main.cpp:331)
7 libdyld.dylib 0x00007fff8f50e235 start + 1
from faust.
This object takes a lot of heap memory (something like 8923344 bytes) as well as static global memory taken by the prime_delays table (which take 1302 integer). Could the static global memory size be the issue?
from faust.
good point but the previous version (from some 4 years ago) used to work... and I did not change anything in the dsp file despite integrating the primes into the dsp file rather than having them as an external c-header function.
also, increasing memory to the server by
s.options.memSize_(65536 * 4); // in kilobyte
did not do the trick... Is the memory allocated at scsynth startup? AFAIK not, that is only where the interface table (holding pointers to the UGen plugins) is loaded... (that is my simple understanding, I might be wring here).
from faust.
Are you on OS X?
from faust.
from faust.
Can you test possible fix on master-dev branch ?
from faust.
I checked it out, run the appropriate commands and managed to make it work with the 2 dsp files.
Thanks for the quick fix!
Will this go into the master branch?
Btw., it seems that the mem-check in line 418 of supercollider.cpp is never reached by scsynth (not necessarily hazardous since the MAlloc
fail is catched otherwise...).
c80f442#diff-2e586352d40979469e42302965f6d390R418
from faust.
(quick fix as in "speedy", not "hacky" :) )
from faust.
Will be merged in master soon.
from faust.
Related Issues (20)
- Make fails on Mac OS 13.5 HOT 2
- Create a Universal Binary packaging for macOS release HOT 3
- Floating Point Exception in `remNode`
- ba.selectn is not working correctly in faust2juce HOT 7
- making ancient instrument models
- When INCLUDE_HTTP=ON configure finds libmicrohttpd but then build doesn't use it HOT 1
- faust2jaqt fails on examples/gameaudio/door.dsp: basics.lib : 2124 : ERROR : syntax error, unexpected ROUND
- Win11: Constant Syntax error when building basic DSP HOT 4
- The httpdynamic and httpstatic libraries aren't installed when INCLUDE_HTTP=ON and HTTPDYNAMIC=ON
- basics.lib : 2124 : ERROR : syntax error, unexpected ROUND HOT 1
- Need libfaust distribution for linux aarch64 HOT 5
- bagpipes model HOT 1
- Issue with process = (1.0 + ma.EPSILON/2.0) > 1.0 HOT 7
- Missing 'bitwise not' in the language HOT 1
- Creation of Windows LV2 bundles?
- basic Interpreter test failing for make libsall option HOT 4
- How to set the path to Faust libraries programmatically? HOT 8
- Current version of rtaudio doesn't use exceptions (fix included) HOT 6
- libfaustwithllvm.a has bogus symbols on arm64 HOT 1
- mesh2faust failing to build on Ubuntu 22.04 (Win 11 WSL) HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from faust.