Need help understanding crash report (repost with crash report)

Crash report :

Our app has been experiencing very frequent crashes.

The launch time and crash time are very far apart, what does this mean? The first 6 threads in the stack trace contain system methods, on thread 7 we have methods related to our app.

These are SQLite database access methods, from the termination reason (RUNNINGBOARD 0xdead10cc) I assume that our app was trying to access a database when OS was about to suspend the app. Is my assumption correct?

I would really appreciate it if someone could give me a more detailed explanation on why these crashes may be occurring and how to fix them

Thanks, Ankith

One common thing about all the crashes is the methods on stack trace from our app are all dispatched on the global queue asynchronously.

Accepted Answer

The launch time and crash time are very far apart, what does this mean?

That’s pretty normal for 0xdead10cc crashes. The user launched your app and has been using it for a while, possibly popping in and out to use other apps. However, at some point they popped out and your app got suspended in the background while holding a database open.

These are SQLite database access methods … I assume that our app was trying to access a database when OS was about to suspend the app. Is my assumption correct?

Yes. Well, if you replace “trying to access” with “in the middle of accessing”. Specifically, in thread 7 frame 26 your app called -[FMDatabaseQueue beginTransaction:withBlock:] and that call was busy doing its work, with the database open, when the app got suspended.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

We are unable to reproduce these crashes on development devices which is making it difficult for us to come up with solutions. What are some common techniques used to prevent these crashes?

Need help understanding crash report (repost with crash report)
 
 
Q