softcut crashing with position update in phase callback #1124
Comments
|
I just realized this is probably something with attempting to go out of range of the buffer. So how long is the buffer...? Checking lines I found:
So when position hits 350 (or beyond the end of the buffer) it craps out. |
|
yes, but we should not crash from an OOB positition value. in any case, this is fixed in the upcoming softcut update. if we need a bandaid i would just clamp the position in seconds on the lua side. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was trying some various things with softcut but I seem to have found a crashy bug. (tested on Shield and Fates)
Using softcut study 3 as an example, I changed some things to try and update
softcut.position()in the phase callback.Gist here of code I used
Turning encoder one will end up with the
posnumber going negative (stops printing at -348.875) and then softcut getting killed.While this is probably buggy/bad code, it is crashing softcut reproducibly. RESET from norns menu gets things back to normal, but otherwise, there's no output or errors shown in maiden.
journalctl -rreports:The text was updated successfully, but these errors were encountered: