Solving a crash issue iOS

So I’m looking at my crash logs for my app trying to figure out what it might doing. Here is an example. Read from the bottom up, and it stops at (2)


0 Little Digits 0x00214aaa _ZNSt6vectorIP24ofxiPhoneExternalDisplaySaIS1_EED1Ev + 1694
1 Little Digits 0x002156d4 _ZNSt6vectorIP24ofxiPhoneExternalDisplaySaIS1_EED1Ev + 4808
2 libsystem_c.dylib 0x34f2a7ec _sigtramp + 48
3 Little Digits 0x00000000 + 0
4 AudioToolbox 0x353db48e _ZN10AUIOHelper20NotifyInputAvailableERK14AudioTimeStampmRK15AudioBufferList + 374
5 AudioToolbox 0x353cb792 _ZN10AURemoteIO9PerformIOEjjRK15XAudioTimeStampS2_Ri + 462
6 AudioToolbox 0x353cba96 AURIOCallbackReceiver_PerformIO + 198
7 AudioToolbox 0x353c2a24 _XPerformIO + 184
8 AudioToolbox 0x3532bce2 mshMIGPerform + 374
9 AudioToolbox 0x35396b9c MSHMIGDispatchMessage + 28
10 AudioToolbox 0x353cb2f0 _ZN10AURemoteIO8IOThread3RunEv + 64
11 AudioToolbox 0x353cef48 _ZN10AURemoteIO8IOThread5EntryEPv + 8
12 AudioToolbox 0x3530bca2 _ZN9CAPThread5EntryEPS_ + 214
13 libsystem_c.dylib 0x34ee1734 _pthread_start + 320
14 libsystem_c.dylib 0x34ee15ef thread_start + 7

The only thing I can see there stepping through is:

NotifyInputAvailableERK14AudioTimeStampmRK15AudioBufferList

I just found this on google
http://stackoverflow.com/questions/7354964/intermittent-crash-in-recordingcallback-on-app-launch

perhaps related?

my code looks a bit like this:

  
  
class soundRecording: public ofBaseSoundInput{  
  
  init(){  
    soundStream.setInput(this);  
    soundStream.setup(0, 1, sampleRate, startBufferSize, 4);  
 }  
  
}  
  

Any thoughts appreciated. Thanks.

So I am back to looking at this bug as it is happening lots.

I emailed the crash analytics to check if my report was syndicated properly, but they emailed back an insight into the crash above:

"A delegate (or callback of some kind) is being used with AudioToolbox which at some point during execution has its object deallocated from memory.

My reasoning goes like this:

  1. The exception reason is SIGSEGV which indicates that a bad memory address was accessed.
  2. _sigtramp is the source of the exception which indicates that the exception occurred while attempting to run a callback (delegate).
  3. AudioToolbox can be seen all over the stack trace, but line 6 is the important one, it refers to a CallbackReceiver."

Anyone have any thoughts re the above?

Here is another crash report on a (probably seperate) issue…

2 libsystem_c.dylib 0x32bf7e92 _sigtramp + 42
3 UIKit 0x3570037a -[UIViewController _setViewAppearState:isAnimating:] + 226
4 UIKit 0x357274ec -[UIViewController applicationWantsViewsToDisappear] + 88
5 CoreFoundation 0x38766036 _CFXNotificationPost + 1426
6 Foundation 0x37710d90 -[NSNotificationCenter postNotificationName:object:userInfo:] + 72
7 Foundation 0x37714852 -[NSNotificationCenter postNotificationName:object:] + 30
8 UIKit 0x3572465e -[UIApplication _handleApplicationSuspend:eventInfo:] + 2182
9 UIKit 0x3569a1ee -[UIApplication handleEvent:withNewEvent:] + 2458
10 UIKit 0x356996d4 -[UIApplication sendEvent:] + 72
11 UIKit 0x35699122 _UIApplicationHandleEvent + 6154
12 GraphicsServices 0x346965a2 _PurpleEventCallback + 590
13 GraphicsServices 0x346961d2 PurpleEventCallback + 34
14 CoreFoundation 0x387ea172 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 34
15 CoreFoundation 0x387ea116 __CFRunLoopDoSource1 + 138
16 CoreFoundation 0x387e8f98 __CFRunLoopRun + 1384
17 CoreFoundation 0x3875bebc CFRunLoopRunSpecific + 356
18 CoreFoundation 0x3875bd48 CFRunLoopRunInMode + 104
19 GraphicsServices 0x346952ea GSEventRunModal + 74
20 UIKit 0x356ed300 UIApplicationMain + 1120
21 Little Digits 0x001cf4dc _ZN17ofAppiPhoneWindow20startAppWithDelegateESs + 168
22 Little Digits 0x001cf364 _ZN17ofAppiPhoneWindow21runAppViaInfiniteLoopEP9ofBaseApp + 200
23 Little Digits 0x001dd7ce _Z8ofRunAppP9ofBaseApp + 422
24 Little Digits 0x000027aa main (main.mm:13)
25 Little Digits 0x0000271b start + 39

Seems it only goes as far as 0startAppWithDelegate in ofAppiPhoneWindow.

Hmm.

Hi, I know this is from 2012, but were you able to fix this [UIViewController _setViewAppearState:isAnimating] crash? I’m running into the same problem.

Thanks!