Exporting project file fails, weird sound is in the .wavfile

Having trouble with LMMS? Ask about it here.
Hello;

I have a problem; when I try to export my project into a .wav file, the exported song has weird, ear-hurting sounds in it. I have put a Vinyl filter on it, which might be the reason why this weird sound appears, it also appeared sometimes when I opened a project with this effect. (Other projects didn't fail like this before though)
So I put it from 160 KBit/s to 128 KBit/s and the sound wasn't there anymore, but instead, my drums and instruments disappeared, so only the added sample-track and kickdrum was left. Fyi, in my track everything fades out at the end, so when the song ends, the volume buttons everywhere (including drums) are set low at the end. I made sure that the volume is as high as it should be, but when I exported it with 128 KBit/s, the drums and instruments still disappeared.

The rest is set normally for the export (44100 Hz, 16 Bit Integer, Sinc Fastest/Medium doesn't make a difference, Oversampling 1x)

Please help

Thanks a lot in advance
Hello!

There are different sorts of bad data that can be produced and the plug-in 'Vynil' is known to be defective. try and change settings on the knobs just slightly and if any of them reads '0', then definitely change that value.
The reason you get different results when exporting is that the exporter performs some extra checks and substitutes some bad data with 0.0 . And when it's not producing 0.0 it's producing numbers that nears infinity. You probably have a reverb after this and this feedbacks a very large number. I've had massive decays for like a minute when probing into this.

Solutions:
- Put a clipping unit after the defective plug-in and before the reverb. Anything that limits the sound output, the harder the better. This should remove most of the noise.
- Look for alternatives to the bad plug-in.


Related issues:
Broken effect: https://github.com/LMMS/lmms/issues/3170
Bad data and handling of it: https://github.com/LMMS/lmms/issues/1048
Experimental fix: https://github.com/LMMS/lmms/pull/3706
I tested this some more. Right after the FX that is troubling you put a Waveshaper Effect and the only setting you need to do is check the box Clip input. Now when you get a noise it will be a short beep instead. Still annoying but overall better.