Program runs fine in simulator, but crashes on device and in the corona debugger

Hello! I have a problem where when I try to run my program through the debugger (or on a device) the program freezes. Can anyone help me figure out whats wrong? =)

under is a pastebin of the code:

http://pastebin.com/0wzbKqWm

Is your build.settings file really in the middle of you main.lua like that?  That “settings” table should be in a file called build.settings and not be there.  Though I’m not sure that would cause your issue.

When you say the Corona debugger what are you referring to?  Debugging in Sublime Text + Corona Editor.  The “corona debugger” icon in with the system?

What are you seeing in the cmd window that opens?

Rob

Hello there, and thanks alot for replying! :slight_smile:

Yes, I had the build.settings located there, and I see now that that was a messy choice… This is my very first program, so I am still learning! :slight_smile:

Anyhow, I have now moved it, unfortunately it didnt make a difference though.

When I say Corona debugger I mean I run the file: ‘Corona Debugger’ which is located in the ‘Corona SDK’ folder. 

When I run this file, this is what appears: http://imgur.com/4jqXkSP

I then follow the instructions and try to open the project in the simulator. When I do this, this happens; http://imgur.com/v3miJU3

and eventually I get the ‘Program not responding error’. 

I am running on Windows 8 btw :) 

However I tried creating a brand new project and choose the ‘tab bar application’ preset, and not do anything with it and run it through the debugger. The exact same thing happened. Any idea what is causing this? 

I have also tried running the program on an android device. It froze right after it started there. 

I got a new error when I tried to run on my android device as described in this thread: http://forums.coronalabs.com/topic/53000-weird-runtime-error-when-running-on-android-device/

Is your build.settings file really in the middle of you main.lua like that?  That “settings” table should be in a file called build.settings and not be there.  Though I’m not sure that would cause your issue.

When you say the Corona debugger what are you referring to?  Debugging in Sublime Text + Corona Editor.  The “corona debugger” icon in with the system?

What are you seeing in the cmd window that opens?

Rob

Hello there, and thanks alot for replying! :slight_smile:

Yes, I had the build.settings located there, and I see now that that was a messy choice… This is my very first program, so I am still learning! :slight_smile:

Anyhow, I have now moved it, unfortunately it didnt make a difference though.

When I say Corona debugger I mean I run the file: ‘Corona Debugger’ which is located in the ‘Corona SDK’ folder. 

When I run this file, this is what appears: http://imgur.com/4jqXkSP

I then follow the instructions and try to open the project in the simulator. When I do this, this happens; http://imgur.com/v3miJU3

and eventually I get the ‘Program not responding error’. 

I am running on Windows 8 btw :) 

However I tried creating a brand new project and choose the ‘tab bar application’ preset, and not do anything with it and run it through the debugger. The exact same thing happened. Any idea what is causing this? 

I have also tried running the program on an android device. It froze right after it started there. 

I got a new error when I tried to run on my android device as described in this thread: http://forums.coronalabs.com/topic/53000-weird-runtime-error-when-running-on-android-device/