Simulator Crashes Make Debugging Tedious

Whenever the Simulator crashes, it’s tedious to restart it.

I’ve boiled the crash down to this code:

[lua]local function onEnterFrame(event)
a=b+1
end

Runtime:addEventListener( “enterFrame”, onEnterFrame )[/lua]

I’m running Corona Build 268 on Mac.

stack traceback:  
 [C]: ?  
 /Users/m/Desktop/apps/test/main.lua:23: in function   
 ?: in function <?:214>  
Assertion failed: (L-\>top \< L-\>ci-\>top), function lua\_pushlstring, file /Users/ansca/.hudson/jobs/Main-DMG/workspace/platform/mac/../../external/lua-5.1.3/src/lapi.c, line 450.  
/Applications/Corona.268/Corona Terminal: line 9: 2416 Abort trap "$path/Corona Simulator.app/Contents/MacOS/Corona Simulator" $\*  
logout  
  
[Process completed]  

Anyone else get this? Do newer build address this problem?
[import]uid: 36578 topic_id: 7219 reply_id: 307219[/import]

Looking at your code I am not sure what “b” is. Is it a global variable and does it have an actual value. Having no value including nil maybe a possible cause of your crash. [import]uid: 22878 topic_id: 7219 reply_id: 25380[/import]

Sorry I didn’t make myself clear:

The code is wrong - b is undeclared - but the point is that this code doesn’t just crash my program, it crashes the Corona Simulator. [import]uid: 36578 topic_id: 7219 reply_id: 25381[/import]

The new build fixes this. I’m using Corona 2011.312.
[import]uid: 36578 topic_id: 7219 reply_id: 27887[/import]