Possible bug with openURL()

I’ve been having some issues with openURL() and I see that @SkyTheCoder has the same issue. When the Codea browser is closed, sometimes the draw function does not continue. This results in a blank, black screen. The only way to fix this is to close codea, clear it from memory and restart codea. This is not a guarantee to fix it, but it usually does.

When openURL() is called the draw function is ran one time then paused. This is great for receiving callbacks on the close of the browser inside of a hooked draw function. But it does not seem to always continue the draw function.

Anyone have any ideas on how to fix this, or have experienced this issue?

I can replicate it with this simple test.

function setup()
    parameter.action("test",function() openURL("http://www.google.com",true) end)

function draw()
    background(255, 255, 255, 255)
    sprite("Cargo Bot:Codea Icon",WIDTH/2,HEIGHT/2)

Browse for a few minutes then close the browser. You will notice the screen no longer shows the codea logo. Sometimes it will fix itself when you restart the project. Other times Codea needs to be cleared from memory.

You should put this on the issue tracker (link above)