Skip to content

Conversation

@PhysSong
Copy link
Member

This is a workaround for rare crashes when changing tempo while playing notes with stacking and/or arpeggio.
When playing the master note, _working_buffer is null. Tempo change causes false positive in the check because NotePlayHandle::resize changes m_totalFramesPlayed.
Thanks to 6fc4577, we can safely drop the memset call.

Fixes #4537.

This is a workaround for rare crashes when changing tempo
while playing notes with stacking and/or arpeggio.
When playing the master note, _working_buffer is null.
Tempo change causes false positive in the check because
NotePlayHandle::resize changes m_totalFramesPlayed.
Thanks to 6fc4577, we can safely drop
the memset call.
@PhysSong
Copy link
Member Author

As I mentioned in #4537, we still have #3775 after fixing this crash. #3775 means we're resizing notes in a wrong way, but it's not really critical. So I'll leave it for 1.3 unless it causes serious issues in normal use-cases.

@LmmsBot
Copy link

LmmsBot commented Aug 20, 2018

Downloads for this pull requests

Generated by a bot. Sorry. :P

@PhysSong PhysSong merged commit 7f541a5 into LMMS:stable-1.2 Aug 22, 2018
@PhysSong PhysSong deleted the nullclear branch August 22, 2018 11:18
sdasda7777 pushed a commit to sdasda7777/lmms that referenced this pull request Jun 28, 2022
This is a workaround for rare crashes when changing the tempo
while playing notes with stacking and/or arpeggio.
When playing the master note, _working_buffer is null.
Tempo change causes false positive in the check because
NotePlayHandle::resize changes m_totalFramesPlayed.
Thanks to 05c2c53, we can safely drop
the memset call.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants