8

I got some crash reports in crashlytics which I don't understand at all, here's the crash log of the thread that crashed:

enter image description here

I don't find any hints to my code, nor is it something reproducable or only happening on specific devices. According to Crashlytics it's not a problem with RAM or disk space, so I'm really helpless here.

Does anyone have some hints with that stacktrace?

swalkner
  • 15,150
  • 25
  • 107
  • 195

1 Answers1

2

I have some thoughts:

  1. The second line of the first row is the iOS way of saying what went wrong. It reads: EXC_BAD_ACCESS KERN_INVALID_ADDRESS. This is a Bad access error.
  2. You're trying to _dealloc something, according to the stack trace listing a method, [_queueForDealloc:]. With iOS's ARC (Automatic Resource Counting) system, things in Xcode can't call alloc or release because of it allocating memory and releasing it automatically. This technology was released with iOS 5.

My guess is, the compiler really doesn't like that [_queueForDealloc:] method you may have called, or you're trying to dealloc something that has already been dealloc'ed. (See the third line: a call of -[_PFArray dealloc].)

Either way, this is a bad access error. Check what you're deallocating and whether or not you should be deallocating it.

DDPWNAGE
  • 1,423
  • 8
  • 35
  • Now I'm seeing it was `CoreData` that called the `dealloc`'s. That looks more like a bug in ARC than anything. – DDPWNAGE May 10 '15 at 05:55
  • hm... I don't like assuming it's a bug on Apples side; I really think I'm doing something wrong, should just have to know what – swalkner May 10 '15 at 09:35
  • Try adding debug logs with `NSLog()` to see where it is and paste the code as an edit to your question. – DDPWNAGE May 12 '15 at 11:39