Jump to content


Photo

[fixed 3.0.1] Lua API: Crash with error in coroutines (ProcessSlicer)


  • This topic is locked This topic is locked
2 replies to this topic

#1 re.dread

re.dread

    Advanced Member

  • Normal Members
  • PipPipPip
  • 97 posts

Posted 27 August 2014 - 09:33

Hi,

I managed to crash renoise with a Lua script again.

Nothing serious, problem occured because of a typo in my code:

function test()
    local a b = 0 -- should be a_b = 0
end

function go()
    local process = ProcessSlicer(test)
    process:start()
end

Normally this would simply throw a 'assigning to uninitialzed variable' error, but in combination with ProcessSlicer it crashes renoise.

Example tool attached: Tools->ProcessSlicerTest

Attached Files


Edited by taktik, 27 August 2014 - 11:51.


#2 re.dread

re.dread

    Advanced Member

  • Normal Members
  • PipPipPip
  • 97 posts

Posted 27 August 2014 - 11:18

Seems it doesn't matter what goes wrong in the function passed to a ProcessSlicer, even if it's just a #IINF return value to the update_progress function eg, or _anything_ really .. renoises crashes.



#3 taktik

taktik

    Renoise Developer

  • Admins
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 15040 posts
  • Gender:Male
  • Location:Berlin, Germany
  • Interests:füße waschen

Posted 27 August 2014 - 11:52

Thanks for the excellent description.  Any error within the coroutine may indeed cause a crash here. Renoise crashes when trying to show the error. This is fixed now.