Simulator Runs twice, double launching, and CRASH

AAARGH! The simulator has started to launch twice (something I used to see a long time ago). It seems to cause my code to crash the simulator, over and over. I have to restart the simulator about every five code runs.

I’m on OSX.

I cannot predict it or stop it! This problem started in the last two weeks.

I don’t know what to do, and I can’t repeat it so I can’t report it properly. I HAVE made a bug report that might be related, but I am lost! And under deadline!

Here is what happened when I started Corona Simulator — it double-runs.

Then, I reload, and no problems…until there is a problem. It seems to happen after I change some code and click the “Relaunch” button.

<code>

ast login: Sat Oct 12 14:18:34 on ttys000

David-Gross:~ dgross$ /Applications/CoronaSDK/Corona\ Terminal ; exit;

Generic error: cannot open /Applications/CoronaSDK/Corona Simulator.app/Contents/Resources/homescreen/extension.lua: No such file or directory

2013-10-12 14:30:23.209 Corona Simulator[20546:707] 

Copyright © 2009-2013  C o r o n a   L a b s   I n c .

2013-10-12 14:30:23.210 Corona Simulator[20546:707]     Version: 2.0.0

2013-10-12 14:30:23.211 Corona Simulator[20546:707]     Build: 2013.1232

2013-10-12 14:30:27.509 Corona Simulator[20546:707] 

Copyright © 2009-2013  C o r o n a   L a b s   I n c .

2013-10-12 14:30:27.509 Corona Simulator[20546:707]     Version: 2.0.0

2013-10-12 14:30:27.509 Corona Simulator[20546:707]     Build: 2013.1232

2013-10-12 14:30:27.517 Corona Simulator[20546:707] The file sandbox for this project is located at the following folder:

    (/Volumes/Macintosh HD/Users/dgross/Library/Application Support/Corona Simulator/ecosystem-game-6CBFFB4D06752E4F54A4F3F39672D34C)

2013-10-12 14:30:27.602 Corona Simulator[20546:707] main: A

2013-10-12 14:30:27.603 Corona Simulator[20546:707] Not using autostorage…

2013-10-12 14:30:27.603 Corona Simulator[20546:707] game_engine: A

2013-10-12 14:30:27.603 Corona Simulator[20546:707] game_engine:new is testing, it rebuilds DB of cards every time.

2013-10-12 14:30:27.963 Corona Simulator[20546:707] game_engine: B

2013-10-12 14:30:27.996 Corona Simulator[20546:707] game_engine: C

2013-10-12 14:30:28.118 Corona Simulator[20546:707] game_engine: D

2013-10-12 14:30:28.246 Corona Simulator[20546:707] game_engine: E

2013-10-12 14:30:28.320 Corona Simulator[20546:707] game_engine: F

2013-10-12 14:30:28.320 Corona Simulator[20546:707] main: B

</code>

Here’s a double-run after clicking the “Relaunch” button after an error:

<code>

2013-10-12 14:32:15.963 Corona Simulator[20546:707] 

Copyright © 2009-2013  C o r o n a   L a b s   I n c .

2013-10-12 14:32:15.963 Corona Simulator[20546:707]     Version: 2.0.0

2013-10-12 14:32:15.964 Corona Simulator[20546:707]     Build: 2013.1232

2013-10-12 14:32:15.968 Corona Simulator[20546:707] The file sandbox for this project is located at the following folder:

    (/Volumes/Macintosh HD/Users/dgross/Library/Application Support/Corona Simulator/ecosystem-game-6CBFFB4D06752E4F54A4F3F39672D34C)

2013-10-12 14:32:16.039 Corona Simulator[20546:707] main: A

2013-10-12 14:32:16.040 Corona Simulator[20546:707] Not using autostorage…

2013-10-12 14:32:16.043 Corona Simulator[20546:707] game_engine: A

2013-10-12 14:32:16.044 Corona Simulator[20546:707] game_engine:new is testing, it rebuilds DB of cards every time.

2013-10-12 14:32:16.727 Corona Simulator[20546:707] game_engine: B

2013-10-12 14:32:16.748 Corona Simulator[20546:707] game_engine: C

2013-10-12 14:32:16.833 Corona Simulator[20546:707] game_engine: D

2013-10-12 14:32:16.914 Corona Simulator[20546:707] game_engine: E

2013-10-12 14:32:16.970 Corona Simulator[20546:707] game_engine: F

2013-10-12 14:32:16.970 Corona Simulator[20546:707] main: B

2013-10-12 14:32:17.282 Corona Simulator[20546:707] 

Copyright © 2009-2013  C o r o n a   L a b s   I n c .

2013-10-12 14:32:17.283 Corona Simulator[20546:707]     Version: 2.0.0

2013-10-12 14:32:17.283 Corona Simulator[20546:707]     Build: 2013.1232

2013-10-12 14:32:17.296 Corona Simulator[20546:707] The file sandbox for this project is located at the following folder:

    (/Volumes/Macintosh HD/Users/dgross/Library/Application Support/Corona Simulator/ecosystem-game-6CBFFB4D06752E4F54A4F3F39672D34C)

2013-10-12 14:32:17.347 Corona Simulator[20546:707] main: A

2013-10-12 14:32:17.347 Corona Simulator[20546:707] Not using autostorage…

2013-10-12 14:32:17.347 Corona Simulator[20546:707] game_engine: A

2013-10-12 14:32:17.348 Corona Simulator[20546:707] game_engine:new is testing, it rebuilds DB of cards every time.

2013-10-12 14:32:17.888 Corona Simulator[20546:707] game_engine: B

2013-10-12 14:32:17.908 Corona Simulator[20546:707] game_engine: C

2013-10-12 14:32:17.995 Corona Simulator[20546:707] game_engine: D

2013-10-12 14:32:18.075 Corona Simulator[20546:707] game_engine: E

2013-10-12 14:32:18.139 Corona Simulator[20546:707] game_engine: F

2013-10-12 14:32:18.143 Corona Simulator[20546:707] main: B

</code>

Are you using Lua Glider?  Are you requiring “main” somewhere?

I sometimes use Glider, and I fear it started when Glider crashed. No, I don’t require “main” anywhere.

Look to make sure Glider’s debug module isn’t being included in your main.lua. 

Are you using Lua Glider?  Are you requiring “main” somewhere?

I sometimes use Glider, and I fear it started when Glider crashed. No, I don’t require “main” anywhere.

Look to make sure Glider’s debug module isn’t being included in your main.lua.