Crash on iPhone, not on sim.

I have a simple enough project which has a main.lua, menu, game and gameover.

On the simulator all works fine and there are no errors thrown up at all; however on my iPhone 4 my game crashes rather than going to the game over screen.

Does anyone have any experience with this? [import]uid: 10144 topic_id: 3483 reply_id: 303483[/import]

given up on GS? :wink:

sounds like it could be a memory issue? [import]uid: 6645 topic_id: 3483 reply_id: 10502[/import]

How does one test the memory side of things? I’m new to that, admittedly.

As to GS, no - not given up just yet :stuck_out_tongue: I’ve got time left on my sub and honestly, I like the program - not as much as Corona, but as they’ve decided not to try and kill all the indies, I’m happy to have them as a second option when I just feel like making something basic :slight_smile: [import]uid: 10144 topic_id: 3483 reply_id: 10556[/import]

Can be a lot of things.

Check the casing of filename compared how you have them in your code.

What does the organizer console says? [import]uid: 5712 topic_id: 3483 reply_id: 10557[/import]

I will check that although I believe it’s all fine in that area - we’ll see - I just need to shower first XD

As to the organizer console, do you mean when it’s compiling? I don’t get any issues when playing at all. (Sorry if I just totally misunderstood that - I’m clueless on this stuff, still.) [import]uid: 10144 topic_id: 3483 reply_id: 10561[/import]

No I ment when you playx the app while still connect to xcode and the Organizer window is open. there in the Console tab, does it tell you any errors? [import]uid: 5712 topic_id: 3483 reply_id: 10574[/import]

I have never done that before XD - Play while connected to Xcode, that is.

Can you give me a brief run down on how to do so? I’m sorry - I feel so noobish >.
Do I compile the app for the Xcode simulator thing then do something with that? [import]uid: 10144 topic_id: 3483 reply_id: 10575[/import]

I would first check if the corona sim is experiencing any issues.

1.Quit the corona simulator
2.Go to the corona app folder
3.Click “Corona Terminal”
4.Then in the dock you will see that the corona simulator has been opened by the terminal
5.Click the OPEN corona simulator in the dock. Then open your game from it.
6.The terminal should show that it runs. If it does generate any errors when you play on the simulator post them on this forum
If no errors are shown
7. Connect your iDevice to your computer
8.Open Xcode.
9.Under the window tap at the top, select the organizer.
10.Select your Device
11. Then go to the console tab
12.PLay your game and post any errors on the forum
Whew! Kind of long but should give you answers.

Hope it helps!

-Gamexcb
[import]uid: 8517 topic_id: 3483 reply_id: 10578[/import]

Thank you, I’m off to bed now as I must be up early for the dentist (scary) but will absolutely do this as soon as I get home tomorrow.

I really appreciate you taking the time to type it up, I know the Corona sim side, but not the Xcode part - so this will be a first for me, and with any luck, give us some answers :slight_smile:

Peach. [import]uid: 10144 topic_id: 3483 reply_id: 10585[/import]

Wed Nov 10 12:33:00 Pugs-iPhone-4 MyGameName[3827] : Assertion failure in +[OpenFeint createSharedInstance], /Users/ansca/.hudson/jobs/Pong-DMG/workspace/platform/iphone/…/…/external/OpenFeint.2.7.2/OpenFeint/api/internal/OpenFeint/OpenFeint+Private.mm:99
Wed Nov 10 12:33:01 Pugs-iPhone-4 ReportCrash[3828] : Formulating crash report for process MyGameName[3827]
Wed Nov 10 12:33:01 Pugs-iPhone-4 com.apple.launchd[1] (UIKitApplication:com.gemmatyndall.MyGameName[0xa8c3][3827]) : (UIKitApplication:com.gemmatyndall.MyGameName[0xa8c3]) Job appears to have crashed: Bus error
Wed Nov 10 12:33:01 Pugs-iPhone-4 SpringBoard[28] : Application ‘My Game Name’ exited abnormally with signal 10: Bus error
Wed Nov 10 12:33:01 Pugs-iPhone-4 ReportCrash[3828] : Saved crashreport to /var/mobile/Library/Logs/CrashReporter/MyGameName_2010-11-10-123300_Pugs-iPhone-4.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0

*******************
Alright so that’s what I got when it crashed :S

Admittedly this is all jibberish to me - it appears to be some problem with OpenFeint, though? [import]uid: 10144 topic_id: 3483 reply_id: 10635[/import]

Have you checked your code to make sure that the case of any filenames for images or modules match those in your folder?

The simulator is case insensitive but the device isn’t.

I had a similar issue where I was trying to load “preGame.lua” instead of “PreGame.lua”. As soon as I made sure the filename case matched the error went away.

So maybe you are trying to load “gameover” when the file is called gameOver or something? [import]uid: 11459 topic_id: 3483 reply_id: 12867[/import]

Hey, sorry, this is a little old - I got it fixed although I cannot for the life of me remember what it was; although as far as I recall it wasn’t a typo.

Thanks though :slight_smile: [import]uid: 10144 topic_id: 3483 reply_id: 12868[/import]

ah cool! I did bang my head against that wall with mine! [import]uid: 11459 topic_id: 3483 reply_id: 12869[/import]