Simulator on Windows crashes with every assert

Hello. For the past few builds, whenever I have an error, assert like a syntax typo and the simulator lets me know and then asks to reload or not with “yes” or “no”, it crashes. If I fix code and then press “yes” the simulator crashes with no explanation. If I edit code, it reloads and still has the dialog box so when I say “no” it crashes. Either way I have to restart Simulator whenever I have an assert. 

One way around this is if I dont fix the code and press “no” then fix it and restart it

I remember having an issue before where it made the main.lua read-only on first assert and ddnt allow me to fix code if that is related. It wasnot so much of an issue (this issue is not happening now though)

And now Im getting audioWarning as someone else has mentioned. I have also had this for past builds. I have to close simulator and start again. No sound will work until then. I am using the same audio system I have used from the past few apps that have never had this problem before so I belive its another problem with simulator and perhaps just Windows

Attached picture of error

attached audio error

What version of Corona are you using?  Is there a message that happens with the Crash?  What version of Windows are you using?  Are your video drivers up-to date?

Its build 1225

Just seen a message

Lua Runtime error: Lua_pcall failed with status 2, error message is ?:-1 attempt to call a table value

Something to with new auto load on code change maybe

Can you post more of the console log around that error?

Can you also try running a sample app like the Hello World sample?

sure. It does the same thing on hello world too. Its something to do with the auto start. 

What they need to do is on auto detect code change to remove the message asking to reload if you fixed it. Otherwise it crashes whether you say yes or no

If you set the Simulator to “Never relaunch Simulator when project is modified”, does the problem go away?

What they need to do is on auto detect code change to remove the message asking to reload if you fixed it. Otherwise it crashes whether you say yes or no

Can you explain this in another way?  I’m afraid I can’t visualize what you are describing.

okay, how about this:

Open Hello World

Edit code to make a typo on purpose (for instance remove a bracket)

Save code

Corona reports an error and asks to reload, yes or now

No point reloading it so fix code

Save code

Now say yes to reload crashes

Try all steps again and say no… crashes

Thanks for the easy-to-follow steps to reproduce.

This is fixed in the next Daily Build.

Ahhh thats better! No messin with me workflow! :slight_smile:

And now Im getting audioWarning as someone else has mentioned. I have also had this for past builds. I have to close simulator and start again. No sound will work until then. I am using the same audio system I have used from the past few apps that have never had this problem before so I belive its another problem with simulator and perhaps just Windows

Attached picture of error

attached audio error

What version of Corona are you using?  Is there a message that happens with the Crash?  What version of Windows are you using?  Are your video drivers up-to date?

Its build 1225

Just seen a message

Lua Runtime error: Lua_pcall failed with status 2, error message is ?:-1 attempt to call a table value

Something to with new auto load on code change maybe

Can you post more of the console log around that error?

Can you also try running a sample app like the Hello World sample?

sure. It does the same thing on hello world too. Its something to do with the auto start. 

What they need to do is on auto detect code change to remove the message asking to reload if you fixed it. Otherwise it crashes whether you say yes or no

If you set the Simulator to “Never relaunch Simulator when project is modified”, does the problem go away?

What they need to do is on auto detect code change to remove the message asking to reload if you fixed it. Otherwise it crashes whether you say yes or no

Can you explain this in another way?  I’m afraid I can’t visualize what you are describing.

okay, how about this:

Open Hello World

Edit code to make a typo on purpose (for instance remove a bracket)

Save code

Corona reports an error and asks to reload, yes or now

No point reloading it so fix code

Save code

Now say yes to reload crashes

Try all steps again and say no… crashes

Thanks for the easy-to-follow steps to reproduce.

This is fixed in the next Daily Build.