Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Codea 3.5.3 (337)

dave1707dave1707 Mod
in Beta Posts: 9,977

@Simeon Just ran into this bug. Don’t remember if this was reported or not since this version has been out awhile. Run the below code which is an infinite loop. Slide the screen from the left side to the right to show the editor. The editor is locked up because the code is still running in the while loop. You have to swipe Codea off the top of the screen to exit. Codea eventually crashes. I thought sliding the screen to the editor was supposed to stop a running program.

function setup()
    while not a do



  • Posts: 412
    Seen the same issue here.
  • Posts: 308

    i’ve locked up codea many times in many past versions, i don’t think it’s out of the ordinary

  • dave1707dave1707 Mod
    Posts: 9,977

    @skar @Simeon It's not unusual that the code locked up, that's what an infinite loop will do. What I'm questioning is sliding the screen from left to right to get back to the editor and the program is still in the infinite loop. I was under the impression that sliding the screen over to the editor would stop the program. Apparently it does in most cases, but not in this. I don't know if that's a problem to be fixed or an infinite loop can't be stopped that way.

  • Posts: 308

    hmm that’s interesting because most of the time if it locks up me i can’t slide to go back to the editor, i have to force close the app and wait for the “Codea crashed” alert

  • edited May 5 Posts: 2,689
    @dave1707 - does that occur when you are running without buttons in viewer.mode or does it occur with or without buttons?

    I always play with buttons and never exit by sliding the screen.
  • dave1707dave1707 Mod
    Posts: 9,977

    @Bri_G It doesn’t matter what viewer.mode is. The slide screen to the editor doesn’t stop the while loop. I don’t normally stop a program that way, but I thought swiping back to the editor stopped anything running. That’s why I was asking if it was a bug or that Codea can’t stop a tight loop.

  • Posts: 2,689

    @dave1707 - just wondered if there was a routine built into Codea to properly stop Codea project activity that works when the button bar is present and stop activated. If so that routine should be called when the Codea window is dragged offscreen - perhaps it's not?

  • edited May 8 Posts: 1,795
    I’ve been suspecting for a while that certain loops keep running no matter how you exit to the editor.

    It’s nothing I’ve been able to pin down, just that sometimes projects with big or complex loops run fine the first time I run them and then crash Codea entirely the second time.
Sign In or Register to comment.