[Fixed 2.6 Beta] Crash With _Auto_Reload_Debug And Modal Windows

Steps to reproduce:

  1. Create tool with
  
_AUTO_RELOAD_DEBUG = function()  
 run();  
end   
  
renoise.tool():add_menu_entry {  
 name = "Main Menu:Tools:Test",  
 invoke = function()   
 run()   
 end  
}  
  
function run()  
 renoise.app():show_message("test")  
end  

and place in tools folder

  1. Start Renoise
  2. menu Tools -> Test (don’t press OK)
  3. edit source, function ‘run’:
  
function run()  
 sadvas98vtnu945  
 renoise.app():show_message("test")  
end  
  1. activate Renoise (don’t press OK)
  2. edit source, function ‘run’:
  
function run()  
 renoise.app():show_message("test")  
end  
  1. activate Renoise
  2. Press OK (‘test’ window)
  3. Press OK (‘test’ window)
  4. Press OK (error window)
  5. Press OK (‘test’ window)
  6. Press OK (‘test’ window)

Crash

Thanks for the excellent report. Will no longer happen in the next beta.