[BUG] Sound engine crash with invalid generators (Segmentation Fault)
spessasus opened this issue · 1 comments
spessasus commented
The issue:
Polyphone crashes when out of limits generators are attempted to be played. (Pan generator here.)
The Pan generators are set to -100 and 100 respectively.
Expected behavior
It should not crash, even if it's invalid. One of the four solutions:
- Discard the generators like fluidsynth code
- Clamp the generator values at note on time like SpessaSynth code
- Automatically clamp the generators (at load time)
- Remove the generators (set to the default value)
Steps to reproduce:
- Download the attached soundfont
- Open it in Polyphone
- Try to play a key
- Polyphone Crashes
OS
Happens both on Windows (10) and Linux (Arch) with the latest version installed.
Soundfont
Logs (Linux):
spessasus@spessasus-gaming ~> polyphone
fish: Job 1, 'polyphone' terminated by signal SIGSEGV (Address boundary error)
spessasus@spessasus-gaming ~ [SIGSEGV]>
davy7125 commented
This might have already been solved since I cannot reproduce the bug with the latest sources.
I'm closing the ticket