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

Reply
 
Thread Tools Display Modes
Old 04-27-2017, 02:58 AM   #1
bFooz
Human being with feelings
 
Join Date: Jul 2010
Location: Slovakia
Posts: 2,588
Default API: SetMediaItemTake_Source() crashing bug? (SOLVED)

When this function is used, crashing happens.

1) get a source from an existing item
2) set this source to a new take in another item on another track
3) delete this another track
4) BUG - another item stays visible and a crash follows



The minimal code bellow. Have two items selected, the first one is with audio, the second one is an empty item.
Code:
item = reaper.GetSelectedMediaItem(0,0)
take =  reaper.GetMediaItemTake( item, 0 )
source =  reaper.GetMediaItemTake_Source(take)
    
newItem = reaper.GetSelectedMediaItem(0,1)
newTake = reaper.AddTakeToMediaItem( newItem )
reaper.SetMediaItemTake_Source( newTake, source )      

reaper.TrackList_AdjustWindows( 0 )
reaper.UpdateArrange()

Win 7 x64, Reaper 5.40 x86.

Problem signature:
Problem Event Name: APPCRASH
Application Name: reaper.exe
Application Version: 5.4.0.0
Application Timestamp: 58d4503b
Fault Module Name: StackHash_0c47
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 00000000
Exception Code: c0000005
Exception Offset: 6f636e45
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 1051
Additional Information 1: 0c47
Additional Information 2: 0c47ecc18b31d3b3d50c3a36f49e3b09
Additional Information 3: 1941
Additional Information 4: 1941429135e595173f524b33e4c29689

Last edited by juliansader; 04-27-2017 at 03:58 AM.
bFooz is offline   Reply With Quote
Old 04-27-2017, 03:02 AM   #2
bFooz
Human being with feelings
 
Join Date: Jul 2010
Location: Slovakia
Posts: 2,588
Default

Ok, I have found a solution myself:

http://forum.cockos.com/showthread.php?t=171294 .

Rendering this thread of mine redundant, admin remove it if you want.
bFooz 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 05:57 PM.


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