Still getting the crash with empty take and replacing all occurrences. I've created a simple way to repro.
1. Run this script:
track = reaper.GetTrack(0, 0)
item = reaper.AddMediaItemToTrack(track)
reaper.AddTakeToMediaItem(item)
reaper.SetMediaItemInfo_Value(item, "D_POSITION", 1)
reaper.SetMediaItemInfo_Value(item, "D_LENGTH", 1)
2. Add two of the same media item to the project
3. Drag another media item on one of the two media items just added
4. Select "Replace all 2 occurrences of target media with the source media" and click "Ok"
This will cause Reaper to crash 100% of the time.
|