Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Greyhole and JPverb RTAlloc safety #133

Closed
nhthn opened this issue Dec 15, 2016 · 12 comments
Closed

Greyhole and JPverb RTAlloc safety #133

nhthn opened this issue Dec 15, 2016 · 12 comments

Comments

@nhthn
Copy link

nhthn commented Dec 15, 2016

A few people have experienced crashes with these two UGens. The help files correctly suggest increasing the server real-time memory size to 2^18 kb (around 260 mb), which fixes the problem.

The server crash is entirely preventable, by adding a check to see if RTAlloc returned NULL and gracefully exiting. However, both these UGens are generated by FAUST, so this is really an upstream issue.

@vivid-synth
Copy link
Member

To the Faust castle!

@nhthn
Copy link
Author

nhthn commented Dec 16, 2016

Alright, looks like this has been fixed upstream. The remaining steps are to recompile the FAUST code and ensure that nothing has changed in the process. (There may have been a behavior change in FAUST since the last time these two ugens were compiled.)

Since I'm too lazy to compile FAUST and I can't develop sc3-plugins anyway, this is a job for someone else :)

@muellmusik
Copy link
Contributor

muellmusik commented Dec 16, 2016 via email

@LFSaw
Copy link
Member

LFSaw commented May 1, 2017

I fixed the dsp files, need some help for the compilation (see #142 )

@LFSaw
Copy link
Member

LFSaw commented May 2, 2017

I don't know where to address this, the plugins compile fine but the server crashes immediately while booting. I assume this is due to an increased amount of memory allocated (?) since smaller FAUST plugins such as

import("stdfaust.lib");

process = _,_;

compile and run just fine.

Help much appreciated.

@LFSaw
Copy link
Member

LFSaw commented May 2, 2017

for the moment, I put the complete (and compiling in faust and faustlive) dsp files here: https://gist.github.com/LFSaw/17a6125b113cd420eaed104a10653b20

@LFSaw
Copy link
Member

LFSaw commented May 2, 2017

According to "the FAUST castle" ((c) @vivid-synth), the fix for FAUST RTAlloc safety is covered with grame-cncm/faust#12.

@LFSaw
Copy link
Member

LFSaw commented May 2, 2017

please review

@jbtwh
Copy link

jbtwh commented Sep 30, 2017

Greyhole and JPverb are crashing scsynth for me using basic examples from doc.
sc version 3.8.0 windows 7

@nhthn
Copy link
Author

nhthn commented Sep 30, 2017

@jbtwh this has been fixed in 3.9. the workaround for 3.8 is to set this in the server options before booting:

s.options.memSize_(2**18)

the units are kilobytes, so this is around 260MB.

@totalgee
Copy link

totalgee commented Dec 7, 2017

I know this is closed/solved for the future, and indeed I've confirmed it does work in 3.9-beta1, but just FYI unfortunately the "workaround" does not work with JPverb in the released v3.8.0 Windows (VS 64-bit version); even setting the memSize to 512MB didn't work. I think the workaround only works with the 32-bit version.

@LFSaw
Copy link
Member

LFSaw commented Dec 7, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants