-
Notifications
You must be signed in to change notification settings - Fork 66
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
textfile / text define : reading attempt of non-existing file makes plugin crash #239
Comments
I can reproduce the bug on Linux (not MacOS and I didn't test on Windows yet). The problem also occurs using Ardour. |
Here is an abstraction to insert before [textfile] / [text define] inlet in order to prevent crash. |
It seems that this call of error() generates a crash. The only way I managed to fix the problem is to remove this line. I couldn't find the exact cause of the crash so far, I tried to remove all the content of the error() function so the function doesn't do anything but it still crashes. It seems that the address of the function is not valid... |
Perhaps it gets confused with this function? |
Yes, and indeed soundfiler_read uses pd_error() instead of error() and doesn't crash.
You mean it should be linked instead with |
Yes, this is my assumption. But for an obscure reason, it links with another function named error()... |
It shoud be related to Juce framework ? |
I don't think but I'm not sure. I sent a mail on the pd-dev list to get some help from libpd and linux gurus
In fact, all the uses of the |
I did a dirty hack but can you confirm that the bug is fixed with these binaries? |
yes it works ! Thanks |
I tested camomile.so and camomileFx.so . It works perfectly, doesn't crash anymore. Thanks ! |
when sending a message [read ...( to [textfile] or [text define ...], plugin crashes if the specified file doesn't exist.
tested on linux 18.04-5 LTS with latest reaper 64 and camomille vst3 v1.0.8 beta
(using PdStalFx plugin to load the patch)
Open the attached patch.
test_textfile.pd.zip
if you click on the second row of bngs, you load the existing test_textfile.pd into [textfile] and [text define] objects

if you click on the first row, you are trying to load an unexisting file and the plugin crashes
The text was updated successfully, but these errors were encountered: