Need the ability to symbolize crash reports using dsym files

Device crash reports are pretty much useless unless the call stack can be symbolized.

Without this it is not practical to debug complex apps or to provide proper support to those that purchase those apps.
[import]uid: 8353 topic_id: 4722 reply_id: 304722[/import]

I second that!
No way to handle crashes… A deal breaker for App developing… [import]uid: 9536 topic_id: 4722 reply_id: 15036[/import]

whats a call stack?

c. [import]uid: 24 topic_id: 4722 reply_id: 15372[/import]

For that matter, what are the device crash reports you’re talking about? That sounds like a useful thing I don’t know about; are these logs that users send when the app crashes on them? [import]uid: 12108 topic_id: 4722 reply_id: 15377[/import]

I’ve just finished my first iPhone game using Corona.
It runs great on the simulator
Unfortunately it crashes on the device after 5-20 minuets of playing…

  1. For every crash there is a crash log created on the device, it looks something like the text in the bottom of this post
  2. These logs show where the App / game has crashed
  3. Unfortunately , there is no way to understand this log without symbolizing it, meaning: replacing the code offset with function calls. Take a look at http://www.anoshkin.net/blog/2008/09/09/iphone-crash-logs/
  4. As far as I understand, when you develop for iPhone using the native environment (xCode / objective C) you have the ability to compile a debug version of your App, a version which lets you symbolize those crash logs and understand where the App has crashed…
  5. I don’t know if its possible using Corona, but if it is I’d like to know how (is there a switch which lets you compile a debug version?). If not I’d appreciate any advice regarding how to debug a crash on the device (I can’t find any infinite loops in my code and I don’t think its related to “out of memory” problem)

On a more personal note:
I’m a veteran Flash game developer and this is my first experience with Corona. It is really a great platform but this crash is preventing me from sending my game to the App Store.
Right now I’m putting print() calls in many code blocks, running my game from the device, watching the console (xCode organizer) and hoping to crash it and get some info. But this is a really frustrating way to try and find the problem.

I’d appreciate any help with this issue…
I apologize for the long post

A crash log for example:

Edit : Carlos knows what a dsym file is… [import]uid: 9536 topic_id: 4722 reply_id: 15378[/import]

seriously ! did you all fall for that too?

I guess my british sense of humor doesn’t come across really well on a forum :wink:

C. [import]uid: 24 topic_id: 4722 reply_id: 15392[/import]

the first part of my post (crash logs, symbols etc.) was for jhocking and other users which might not know what crash logs are… after all this forum should help other people beside me…
I do know that the Ansca staff knows all about crash logs, dsym files etc.

the second part of my post (how to debug crashes on devices), however, is for the Ansca staff.
I’m a great fan of the British humor, but without your help on this issue I’m afraid that players who will buy my game might come back to me with justified complaints on a dead parrot (http://www.youtube.com/watch?v=npjOSLCR2hE)… [import]uid: 9536 topic_id: 4722 reply_id: 15406[/import]

oh I didn’t realize you were joking, I seriously don’t know what a crash log is on iPhone.

Thanks for the link! That explains a lot. [import]uid: 12108 topic_id: 4722 reply_id: 15411[/import]

What can be done to help decipher the crash reports?

Can the dsym files be made available? [import]uid: 8353 topic_id: 4722 reply_id: 15463[/import]

We are looking to see what we can do.

c. [import]uid: 24 topic_id: 4722 reply_id: 15466[/import]

Hey Carlos, any update? - it’s been a week… [import]uid: 8353 topic_id: 4722 reply_id: 16314[/import]

Just saw this news on Apple’s developer site:
https://developer.apple.com/news/#crashlogs [import]uid: 12108 topic_id: 4722 reply_id: 17407[/import]

Hey Carlos, any update? - it’s been 2 weeks… [import]uid: 8353 topic_id: 4722 reply_id: 17629[/import]

If it helps anyone, I was able to “catch” two crashes of my game using the xCode console.
Although it is not a replacemnt for a charsh log analisys, you can try it, you might get lucky enough to find the cause for the crash.

Read more about it here:
http://developer.anscamobile.com/forum/2010/12/28/my-game-crashes-iphone-3g-where-can-i-find-dsym-file#comment-18086

P.S.
I’ve released my first iPhone game - Fingerless 3D :
http://itunes.apple.com/us/app/fingerless-3d/id413275480?mt=8 [import]uid: 9536 topic_id: 4722 reply_id: 18087[/import]

hey ez. i’ve read your thread - so basically you removed calls to the garbage collector and also used image scaling and that solved your problem?

btw, congrats on the release! i can’t release due to crashes and i’m getting no support from the ansca guys at all :frowning: [import]uid: 8353 topic_id: 4722 reply_id: 18355[/import]

:frowning: our bad -

we are knee deep in trying to get this release out and best thing sometimes is to send me a direct email to me and usually i reply, tell you am busy, then two three days later you have a answer.

as for symbol tables, that is something we are cooking - but because of daily builds that is coming along the pipeline we held off until we stabilize the daily build process

after our release tomorrow we should be more active in answering your support emails and all.

:frowning:

c. [import]uid: 24 topic_id: 4722 reply_id: 18360[/import]

thanks for the reply - i look forward to some progress on this issue.

that’s great news about the release. i’ll download tmoro and i’m hoping to *finally* get past my crash probs.

to be honest, i’ve been away from the forums for a few weeks and was feeling pretty disheartened with corona as i’ve been stuck with a game that took 5 months to dev and has now been sat gathering dust since pre-christmas due to crashing which i cannot solve. i’m going to try EZ’s tips to see if they work then the new SDK. hopefully one or both will fix it!

fingers crossed and good luck with the release.
[import]uid: 8353 topic_id: 4722 reply_id: 18366[/import]

email me your crash probs… (there is a log you can save the crash logs… send them)

cicaza @ anscamobile.com

c [import]uid: 24 topic_id: 4722 reply_id: 18381[/import]

@thegwill

Yes, I’ve removed the calls for the GC, but I didn’t change anything related to image scaling…
I’ve double checked my code for resource deallocation (remove display object, event listeners, transitions etc.).

Hope that you’ll be able to find the cause to your crash (please share it) soon and release you game.
I hope that the next releases of Corona will provide us tools to tackle these crashes (Corona has a HUGE potential but the lack of ability to find the cause for crashing is a major issue) [import]uid: 9536 topic_id: 4722 reply_id: 18390[/import]

@ez, thanks. I tried removing the GC calls and this has resulted in the game slowing and freezing. And, of course, I’ll share whatever I find…

@carlos, crash files will be sent ASAP - thanks. [import]uid: 8353 topic_id: 4722 reply_id: 18601[/import]