Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Bug Reports

Reply
 
Thread Tools Display Modes
Old 03-28-2018, 03:55 PM   #1
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default ReaScript: Editing text or sysex event position immediately crashes REAPER (FIXED)

If a script changes the position of a text or sysex event, resulting in a (temporary) negative offset between the text/sysex events, REAPER immediately crashes.

This can happen with the functions MIDI_SetAllEvts, MIDI_SetEvt and MIDI_SetTextSysexEvt (with nosort=true).

For example, starting with three text events such as:



Running the following simple script (which moves event 3 to the start of the take) immediately crashes REAPER:

Code:
take = reaper.MIDIEditor_GetTake(reaper.MIDIEditor_GetActive())
reaper.MIDI_SetTextSysexEvt(take, 2, true, false, 0, nil, "", true)
(REAPER x64 v5.70, v5.79pre, etc)
juliansader is offline   Reply With Quote
Old 03-28-2018, 06:42 PM   #2
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 16,117
Default

Thanks, fixing the crash. You should definitely call reaper.MIDI_Sort(take); after calling with nosort=true, though, or various things may not work as desired.

Last edited by Justin; 03-28-2018 at 06:52 PM.
Justin is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:57 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.