Stack Trace Repeating Twice In Console

I would like to know if this is normal. I’m using Corona on Mac OS X and the terminal output always repeats runtime errors and stack traces twice. I hope I have no unknown recursion going on.

[import]uid: 107601 topic_id: 18306 reply_id: 318306[/import]

Do you have a sample you can provide so we can test?

Peach :slight_smile: [import]uid: 52491 topic_id: 18306 reply_id: 70286[/import]

Sure. This seems to happen when ‘runtime errors’ occur. So for example if you create a main.lua file with only these two lines:

print("Creating runtime error...")  
  
require("missingModule")  

You will see the console repeat the runtime error twice:

Copyright (C) 2009-2011 A n s c a , I n c . Version: 2.0.0 Build: 2011.591 The file sandbox for this project is located at the following folder: (/Users/mike/Library/Application Support/Corona Simulator/TestProject-449C046B287158BFF402B060B9F1435D) Creating runtime error... Runtime error /Users/mike/Projects/dev/TestProject/main.lua:3: module 'missingModule' not found:resource (missingModule.lu) does not exist in archive no field package.preload['missingModule'] no file '/Users/mike/Projects/dev/TestProject/missingModule.lua' no file '/Applications/CoronaSDK/Corona Simulator.app/Contents/Resources/missingModule.lua' no file '/Applications/CoronaSDK/Corona Simulator.app/Contents/Resources/missingModule.blu' stack traceback: [C]: ? [C]: in function 'require' /Users/mike/Projects/dev/TestProject/main.lua:3: in main chunk Runtime error: /Users/mike/Projects/dev/TestProject/main.lua:3: module 'missingModule' not found:resource (missingModule.lu) does not exist in archive no field package.preload['missingModule'] no file '/Users/mike/Projects/dev/TestProject/missingModule.lua' no file '/Applications/CoronaSDK/Corona Simulator.app/Contents/Resources/missingModule.lua' no file '/Applications/CoronaSDK/Corona Simulator.app/Contents/Resources/missingModule.blu' stack traceback: [C]: ? [C]: in function 'require' /Users/mike/Projects/dev/TestProject/main.lua:3: in main chunk [import]uid: 107601 topic_id: 18306 reply_id: 70307[/import]

So it does. This is very much out of my area, however I will bring it up in our next meeting.

Peach :slight_smile: [import]uid: 52491 topic_id: 18306 reply_id: 70311[/import]