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

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 12-11-2018, 09:29 PM   #1
Human being with feelings
clepsydrae's Avatar
Join Date: Nov 2011
Posts: 2,279
Default Strange JSFX hang... (Can anyone reproduce?) (FIXED)

Had a strange busy-cycle hang happening with a project. After many many hours I have narrowed it down to this absurd demo code. It's bizarrely sensitive to any changes; as far as I've found every line has to be present, and even changes that seem meaningless (e.g. changing the test condition for the first while loop to remove the "-1", or removing pointless assignments, etc.) will make the hang go away and everything work normally.

So I'm thinking this is a bug, unless someone enlightens me as to what is going wrong?

Again, this is nonsensical code just to show the issue, so don't ask why I'm doing some pointless thing. :-) AFAICT, there should be no busy hangs in this code, even though it's crazy.

To reproduce, open a fresh profile [edit: by which I of course mean a new reaper install], make a track, throw it on there. Then start the transport and click around in the arrange window a bunch. Sometimes I need to start/stop a few times, etc. It usually kicks in in 3-10 seconds. The GUI hangs and the program is unresponsive.

This happens in Linux (5.96 and 5.963) and in Windows (5.95).





function funcA()
  while (index+slidervar-1<0)


function funcB()

  while(counter >= 0)
    while(idx <= total-counter)


Last edited by clepsydrae; 12-11-2018 at 10:54 PM.
clepsydrae is online now   Reply With Quote

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 09:47 AM.

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