Infinite loop makes application unresponsive

Home Forums Procoding Infinite loop makes application unresponsive

This topic contains 1 reply, has 1 voice, and was last updated by  audiocommander 4 years, 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1039

    Jonas

    I was writing a really awesome little visualization of wave movements, I changed how I was getting a value, un unfortunately adding an infinite loop in the process. Now my code is inaccessible.

    When I open the visualization the initialization never finishes, and the infinite loop means the Procoding UI hangs waiting for the initialization code to return from the JS script. Since that never happens, I can never enter the code and fix my mistake.

    The only thing I can do is export the project, edit it somewhere else, and hopefully import it in place of my failed one.

    Ensuring that the web UI running the visualization isn’t able to bring down the whole application if the JS does something stupid seems very necessary.

    Feel free to reach out to me if you need further details or if I can help solve it.

    // Jonas

    #1040

    audiocommander
    Keymaster

    Hi Jonas,

    if you’re using Procoding on OSX, you can disable the canvas in the settings.
    On iOS, you might need to export the sketch and edit the .js (for a temp fix) or the .plist file (for a permanent fix), then you can import it back, see: http://www.audiocommander.de/blog/forums/topic/osx-sketch-that-hangs/

    On iOS sketch execution is also limited to ~10 seconds, so there’s a chance that the interface might get responsive again.

    Another option for iOS would be to connect your device to a Mac and enable Safari debugging, thus having a chance to stop execution on the debugging console.

    If you have no Mac, you can reply back, then I can get in touch via E-Mail and maybe fix the sketch for you.

    Hope this helps,
    best,
    Michael

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Infinite loop makes application unresponsive’ is closed to new replies.