Application crashes when calling native code after upgrade to ios 9.3 - ios

Our application uses external library for scanning pdf417 bar code. Application worked ok before iOS 9.3 upgrade. On version 9.3 it crashes when executing native code on this line:
[[UIApplication sharedApplication].keyWindow.rootViewController presentViewController:cameraViewController animated:YES completion:nil];
this is the output from the xcode console:
Mar 25 12:47:41 iPhone-od-Ratko MobileBankRetail[616] <Warning>: ---- before [UIApplication sharedApplication].keyWindow.rootViewController presentViewController:cameraViewController animated:YES completion:nil
Mar 25 12:47:42 iPhone-od-Ratko MobileBankRetail[616] <Warning>: This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes. This will cause an exception in a future release.
Stack:(
0 CoreFoundation 0x20ef39a3 <redacted> + 150
1 libobjc.A.dylib 0x2068ee17 objc_exception_throw + 38
2 CoreFoundation 0x20ef38d1 <redacted> + 0
3 Foundation 0x217e53c7 <redacted> + 170
4 Foundation 0x21689e4f <redacted> + 38
5 UIKit 0x255662ad <redacted> + 52
6 UIKit 0x25566c93 <redacted> + 222
7 UIKit 0x255838c5 <redacted> + 96
8 UIKit 0x25ca32ef <redacted> + 322
9 UIKit 0x25471e41 <redacted> + 748
10 UIKit 0x25599df1 <redacted> + 936
11 UIKit 0x25618b49 <redacted> + 92
12 UIKit 0x254f2c67 <redacted> + 302
13 UIKit 0x25607337 <redacted> + 130
14 UIKit 0x25497a19 <redacted> + 548
15 UIKit 0x255e6e99 <redacted> + 68
16 UIKit 0x2551f1e9 <redacted> + 536
17 UIKit 0x25466d47 <redacted> + 490
18 UIKit 0x254d85c9 <redacted> + 192
19 UIKit 0x255622bb <redacted> + 70
20 UIKit 0x257ce063 <redacted> + 1490
21 UIKit 0x257cf82b <redacted> + 4346
22 UIKit 0x257d1bc5 <redacted> + 336
23 UIKit 0x257d1e31 <redacted> + 416
24 UIKit 0x25558ce9 <redacted> + 144
25 MobileBankRetail 0x0055b061 -[hr_kaba_bcscanner_NativeScannerImpl scanBarCode] + 448
26 MobileBankRetail 0x0064d9a9 hr_kaba_bcscanner_NativeScannerImplCodenameOne_scanBarCode__ + 32
27 MobileBankRetail 0x0055b82f hr_kaba_bcscanner_NativeScannerStub_scanBarCode__ + 90
28 MobileBankRetail 0x0055aa15 hr_kaba_bcscanner_BCScanner_scanBarCode___com_codename1_codescan_ScanResult + 844
29 MobileBankRetail 0x006bf1e7 userclasses_StateMachine_scan2DBarCode__ + 662
30 MobileBankRetail 0x006bef29 userclasses_StateMachine_onPlacanjaMenu_MultiButtonHUB2DBarCodeAction___com_codename1_ui_Component_com_codename1_ui_events_ActionEvent + 280
31 MobileBankRetail 0x00551597 generated_StateMachineBase_handleComponentAction___com_codename1_ui_Component_com_codename1_ui_events_ActionEvent + 68130
32 MobileBankRetail 0x004bcfed com_codename1_ui_util_UIBuilder_FormListener_actionPerformed___com_codename1_ui_events_ActionEvent + 1300
33 MobileBankRetail 0x0048e4a7 com_codename1_ui_util_EventDispatcher_fireActionEvent___com_codename1_ui_events_ActionEvent + 1154
34 MobileBankRetail 0x001d4b85 com_codename1_ui_Button_fireActionEvent___int_int + 916
35 MobileBankRetail 0x001d4efb com_codename1_ui_Button_released___int_int + 222
36 MobileBankRetail 0x001d58f1 com_codename1_ui_Button_pointerReleased___int_int + 496
37 MobileBankRetail 0x0027bd07 com_codename1_ui_Form_pointerReleased___int_int + 6126
38 MobileBankRetail 0x001ff507 com_codename1_ui_Component_pointerReleased___int_1ARRAY_int_1ARRAY + 386
39 MobileBankRetail 0x00248a51 com_codename1_ui_Display_handleEvent___int_R_int + 12052
40 MobileBankRetail 0x00240f21 com_codename1_ui_Display_edtLoopImpl__ + 1492
41 MobileBankRetail 0x002449fb com_codename1_ui_Display_mainEDTLoop__ + 5110
42 MobileBankRetail 0x00400603 com_codename1_ui_RunnableWrapper_run__ + 3270
43 MobileBankRetail 0x0010e4ef com_codename1_impl_CodenameOneThread_run__ + 282
44 MobileBankRetail 0x005da449 java_lang_Thread_runImpl___long + 556
45 MobileBankRetail 0x0064f469 threadRunner + 40
46 libsystem_pthread.dylib 0x20c2785b <redacted> + 138
47 libsystem_pthread.dylib 0x20c277cf _pthread_start + 110
48 libsystem_pthread.dylib 0x20c25724 thread_start + 8
)
Mar 25 12:47:42 iPhone-od-Ratko MobileBankRetail[616] <Warning>: This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes. This will cause an exception in a future release.
Stack:(
0 CoreFoundation 0x20ef39a3 <redacted> + 150
1 libobjc.A.dylib 0x2068ee17 objc_exception_throw + 38
2 CoreFoundation 0x20ef38d1 <redacted> + 0
3 Foundation 0x217e53c7 <redacted> + 170
4 Foundation 0x217e5253 <redacted> + 38
5 Foundation 0x2168e30b <redacted> + 42
6 Foundation 0x21689f93 <redacted> + 362
7 UIKit 0x255662ad <redacted> + 52
8 UIKit 0x25566c93 <redacted> + 222
9 UIKit 0x255838c5 <redacted> + 96
10 UIKit 0x25ca32ef <redacted> + 322
11 UIKit 0x25471e41 <redacted> + 748
12 UIKit 0x25599df1 <redacted> + 936
13 UIKit 0x25618b49 <redacted> + 92
14 UIKit 0x254f2c67 <redacted> + 302
15 UIKit 0x25607337 <redacted> + 130
16 UIKit 0x25497a19 <redacted> + 548
17 UIKit 0x255e6e99 <redacted> + 68
18 UIKit 0x2551f1e9 <redacted> + 536
19 UIKit 0x25466d47 <redacted> + 490
20 UIKit 0x254d85c9 <redacted> + 192
21 UIKit 0x255622bb <redacted> + 70
22 UIKit 0x257ce063 <redacted> + 1490
23 UIKit 0x257cf82b <redacted> + 4346
24 UIKit 0x257d1bc5 <redacted> + 336
25 UIKit 0x257d1e31 <redacted> + 416
26 UIKit 0x25558ce9 <redacted> + 144
27 MobileBankRetail 0x0055b061 -[hr_kaba_bcscanner_NativeScannerImpl scanBarCode] + 448
28 MobileBankRetail 0x0064d9a9 hr_kaba_bcscanner_NativeScannerImplCodenameOne_scanBarCode__ + 32
29 MobileBankRetail 0x0055b82f hr_kaba_bcscanner_NativeScannerStub_scanBarCode__ + 90
30 MobileBankRetail 0x0055aa15 hr_kaba_bcscanner_BCScanner_scanBarCode___com_codename1_codescan_ScanResult + 844
31 MobileBankRetail 0x006bf1e7 userclasses_StateMachine_scan2DBarCode__ + 662
32 MobileBankRetail 0x006bef29 userclasses_StateMachine_onPlacanjaMenu_MultiButtonHUB2DBarCodeAction___com_codename1_ui_Component_com_codename1_ui_events_ActionEvent + 280
33 MobileBankRetail 0x00551597 generated_StateMachineBase_handleComponentAction___com_codename1_ui_Component_com_codename1_ui_events_ActionEvent + 68130
34 MobileBankRetail 0x004bcfed com_codename1_ui_util_UIBuilder_FormListener_actionPerformed___com_codename1_ui_events_ActionEvent + 1300
35 MobileBankRetail 0x0048e4a7 com_codename1_ui_util_EventDispatcher_fireActionEvent___com_codename1_ui_events_ActionEvent + 1154
36 MobileBankRetail 0x001d4b85 com_codename1_ui_Button_fireActionEvent___int_int + 916
37 MobileBankRetail 0x001d4efb com_codename1_ui_Button_released___int_int + 222
38 MobileBankRetail 0x001d58f1 com_codename1_ui_Button_pointerReleased___int_int + 496
39 MobileBankRetail 0x0027bd07 com_codename1_ui_Form_pointerReleased___int_int + 6126
40 MobileBankRetail 0x001ff507 com_codename1_ui_Component_pointerReleased___int_1ARRAY_int_1ARRAY + 386
41 MobileBankRetail 0x00248a51 com_codename1_ui_Display_handleEvent___int_R_int + 12052
42 MobileBankRetail 0x00240f21 com_codename1_ui_Display_edtLoopImpl__ + 1492
43 MobileBankRetail 0x002449fb com_codename1_ui_Display_mainEDTLoop__ + 5110
44 MobileBankRetail 0x00400603 com_codename1_ui_RunnableWrapper_run__ + 3270
45 MobileBankRetail 0x0010e4ef com_codename1_impl_CodenameOneThread_run__ + 282
46 MobileBankRetail 0x005da449 java_lang_Thread_runImpl___long + 556
47 MobileBankRetail 0x0064f469 threadRunner + 40
48 libsystem_pthread.dylib 0x20c2785b <redacted> + 138
49 libsystem_pthread.dylib 0x20c277cf _pthread_start + 110
50 libsystem_pthread.dylib 0x20c25724 thread_start + 8
)
Mar 25 12:47:42 iPhone-od-Ratko MobileBankRetail[616] <Warning>: *** Assertion failure in -[UIApplication _cachedSystemAnimationFenceCreatingIfNecessary:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit/UIKit-3512.60.7/UIApplication.m:1774
Mar 25 12:47:42 iPhone-od-Ratko MobileBankRetail[616] <Error>: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'accessing _cachedSystemAnimationFence requires the main thread'
*** First throw call stack:
(0x20ef398b 0x2068ee17 0x20ef3861 0x216d7509 0x256fb2a9 0x2574fb0f 0x2551f297 0x25466d47 0x254d85c9 0x255622bb 0x257ce063 0x257cf82b 0x257d1bc5 0x257d1e31 0x25558ce9 0x55b061 0x64d9a9 0x55b82f 0x55aa15 0x6bf1e7 0x6bef29 0x551597 0x4bcfed 0x48e4a7 0x1d4b85 0x1d4efb 0x1d58f1 0x27bd07 0x1ff507 0x248a51 0x240f21 0x2449fb 0x400603 0x10e4ef 0x5da449 0x64f469 0x20c2785b 0x20c277cf 0x20c25724)
Mar 25 12:47:42 iPhone-od-Ratko SpringBoard[166] <Warning>: HW kbd: Failed to set (null) as keyboard focus
Mar 25 12:47:42 iPhone-od-Ratko com.apple.xpc.launchd[1] (UIKitApplication:hr.kaba.mbankretail[0xe600][616]) <Notice>: Service exited due to signal: Abort trap: 6
Mar 25 12:47:42 iPhone-od-Ratko mediaserverd[43] <Notice>: '' hr.kaba.mbankretail(pid = 616) setting DiscoveryMode = DiscoveryMode_None, currentDiscoveryMode = DiscoveryMode_None
Mar 25 12:47:42 iPhone-od-Ratko SpringBoard[166] <Warning>: Application 'UIKitApplication:hr.kaba.mbankretail[0xe600]' crashed.
Mar 25 12:47:42 iPhone-od-Ratko UserEventAgent[23] <Warning>: 1112896938070: id=hr.kaba.mbankretail pid=616, state=0
Mar 25 12:47:43 iPhone-od-Ratko ReportCrash[618] <Error>: assertion failed: 13E233: libsystem_trace.dylib + 15927 [2171E90D-32AA-3F60-9692-C2F8E0D4B1A0]: 0x0
Mar 25 12:47:43 iPhone-od-Ratko Unknown[618] <Error>:
Mar 25 12:47:43 iPhone-od-Ratko ReportCrash[618] <Warning>: os_activity_diagnostic_for_pid() failed!
Mar 25 12:47:43 iPhone-od-Ratko ReportCrash[618] <Notice>: Formulating report for corpse[616] MobileBankRetail
Mar 25 12:47:43 iPhone-od-Ratko ReportCrash[618] <Warning>: Saved type '109(109_MobileBankRetail)' report (5 of max 25) at /var/mobile/Library/Logs/CrashReporter/MobileBankRetail-2016-03-25-124743.ips
Mar 25 12:47:47 iPhone-od-Ratko kernel[0] <Notice>: AppleH4CamIn::setPowerStateGated: 0
Mar 25 12:47:47 iPhone-od-Ratko kernel[0] <Notice>: AppleH4CamIn::power_off_hardware
Mar 25 12:49:03 iPhone-od-Ratko com.apple.CDScheduler[23] <Error>: Failed to read UserNextSleepPeriod from contextstore
Mar 25 12:49:03 iPhone-od-Ratko com.apple.CDScheduler[23] <Error>: Failed to get user inactivity forecast
Mar 25 12:49:03 iPhone-od-Ratko com.apple.CDScheduler[23] <Error>: AutoSu doesn't have any prediction yet
Mar 25 12:49:03 iPhone-od-Ratko com.apple.CDScheduler[23] <Error>: Failed to get device restart forecast
Mar 25 12:49:03 iPhone-od-Ratko geocorrectiond[619] <Warning>: /BuildRoot/Library/Caches/com.apple.xbs/Sources/Maps/Maps-1906.50/iOS/geocorrectiond/MCAddressCorrector.m:79 0x14e1a290 _primaryAccount = DA48B5E1-3DB1-48DD-BEBA-739BAAC6BB6F personID = 1717754467 mapsToken = AQAAAABW9GfKzmxjlhvjb0VGYzq7LGFn161Mqyw~
Mar 25 12:49:03 iPhone-od-Ratko geocorrectiond[619] <Warning>: /BuildRoot/Library/Caches/com.apple.xbs/Sources/Maps/Maps-1906.50/iOS/geocorrectiond/MCAddressCorrector.m:120 0x14e1a290 startProcessing - failed. Too early. LastRunTime 480545405.295504 CurrentTime 480599343.342015 shouldRunAfter 481150205.295504
Mar 25 12:49:48 iPhone-od-Ratko syslogd[22] <Notice>: ASL Sender Statistics
Does anyone knows what could be causing the problem?

As the error says: you are modifying the autolayout engine from a background thread. You should use the main thread/queue:
dispatch_async(dispatch_get_main_queue(), ^{
[[UIApplication sharedApplication].keyWindow.rootViewController presentViewController:cameraViewController animated:YES completion:nil];
});

The first part of the problem was solved using main thread as Tapani and Larme said.
dispatch_async(dispatch_get_main_queue(), ^{
//some code here..
});
The second part of the problem (failed build on codenameone server) was solved by using
[[CodenameOne_GLViewController instance] presentViewController:cameraViewController animated:YES completion:nil];
instead of
[[UIApplication sharedApplication].keyWindow.rootViewController presentViewController:cameraViewController animated:YES completion:nil];
Thans everybody for the effort!

Related

iOS 16.1 objc_release Crash [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 days ago.
Improve this question
We have collected many crashes of this type in our APP on 16.1 or later systems, but it is normal on other systems. It looks like memory issues related to objc_release, but our code should be correct. Could someone help to locate the cause?
Hardware Model: iPhone14,3
Process: MyAPP [6850]
Path: /private/var/containers/Bundle/Application/C129C91C-89D6-4C6F-9057-D884CFACDB41/MyAPP.app/MyAPP
Version: 6.0.2 (6021)
AppStoreTools: 14C17
AppVariant: 1:iPhone14,3:15
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Date/Time: 2023-02-08 13:32:40.1633 +0800
Launch Time: 2023-02-07 01:19:36.8931 +0800
OS Version: iPhone OS 16.3 (20D47)
Release Type: User
Baseband Version: 2.40.01
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x00000000002008ff
Exception Codes: 0x0000000000000001, 0x00000000002008ff
VM Region Info: 0x2008ff is not in any region. Bytes before following region: 4361615105
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 104190000-104f64000 [ 13.8M] r-x/r-x SM=COW .../MyAPP
Termination Reason: SIGNAL 11 Segmentation fault: 11
Terminating Process: exc handler [6850]
Triggered by Thread: 0
Thread 0 name:
Thread 0 Crashed:
0 libobjc.A.dylib 0x0000000187a9754c objc_release_x0 + 8 (:-1)
1 MyAPP 0x00000001058474ec +[GSTree buildMenuTreeWithMenus:] + 792
2 MyAPP 0x00000001057d0230 -[SystemInfoCenter buildMenuTressWithMenus:] + 48
3 MyAPP 0x00000001057c8ad4 -[SystemInfoCenter parseMenu:] + 72
4 MyAPP 0x00000001057c8820 -[SystemInfoCenter parseSystemConfiguration:updatePersistance:] + 100
5 MyAPP 0x00000001057c741c -[SystemInfoCenter loadSystemInfoFromPersistance] + 92
6 MyAPP 0x00000001057c73a4 -[SystemInfoCenter systemInitializeWithAppName:productionVersion:] + 120
7 MyAPP 0x00000001051fb3b0 -[AppDelegate logoutSystem:restoreContentVC:] + 1508 (AppDelegate.m:635)
8 MyAPP 0x00000001051f8b40 -[AppDelegate applicationWillEnterForeground:] + 252 (AppDelegate.m:261)
9 MyAPP 0x00000001070bb33c -[NBSAppAgent nbs_applicationWillEnterForeground:] + 952
10 UIKitCore 0x0000000190c8c63c -[UIApplication _sendWillEnterForegroundCallbacks] + 184 (UIApplication.m:11710)
11 UIKitCore 0x0000000190c8c1a0 __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke_2 + 1272 (_UISceneLifecycleMultiplexer.m:651)
12 UIKitCore 0x0000000190b85e74 _UIScenePerformActionsWithLifecycleActionMask + 108 (_UISceneLifecycleState.m:109)
13 UIKitCore 0x0000000190ec7d78 __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 216 (_UISceneLifecycleMultiplexer.m:564)
14 UIKitCore 0x0000000190d78adc -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 220 (_UISceneLifecycleMultiplexer.m:513)
15 UIKitCore 0x0000000190d78904 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 620 (_UISceneLifecycleMultiplexer.m:563)
16 UIKitCore 0x0000000190d784b4 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 252 (_UISceneLifecycleMultiplexer.m:469)
17 UIKitCore 0x0000000190d78380 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block... + 148 (_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction.m:73)
18 UIKitCore 0x000000019145c56c +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:fromCurrentState:actions:completion:] + 736 (BSAnimationSettings+UIKit.m:54)
19 UIKitCore 0x00000001914f6568 _UISceneSettingsDiffActionPerformChangesWithTransitionContextAndCompletion + 224 (_UISceneSettingsDiffAction.m:27)
20 UIKitCore 0x0000000190c24374 -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 316 (_UISceneSettingsDiffAction.m:20)
21 UIKitCore 0x0000000191097294 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke.214 + 556 (UIScene.m:2000)
22 UIKitCore 0x0000000190cf69a0 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 216 (UIScene.m:1676)
23 UIKitCore 0x0000000190cf6810 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 244 (UIScene.m:1962)
24 UIKitCore 0x0000000190cf6650 -[UIApplicationSceneClientAgent scene:handleEvent:withCompletion:] + 336 (UIApplicationSceneClientAgent.m:86)
25 FrontBoardServices 0x00000001a469566c -[FBSScene updater:didUpdateSettings:withDiff:transitionContext:completion:] + 420 (FBSScene.m:549)
26 FrontBoardServices 0x00000001a46954a8 __94-[FBSWorkspaceScenesClient _queue_updateScene:withSettings:diff:transitionContext:completion:]_block_invoke_2 + 144 (FBSWorkspaceScenesClient.m:579)
27 FrontBoardServices 0x00000001a4698c24 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 168 (FBSWorkspace.m:359)
28 FrontBoardServices 0x00000001a4698b40 __94-[FBSWorkspaceScenesClient _queue_updateScene:withSettings:diff:transitionContext:completion:]_block_invoke + 340 (FBSWorkspaceScenesClient.m:578)
29 libdispatch.dylib 0x0000000195f34f88 _dispatch_client_callout + 20 (object.m:560)
30 libdispatch.dylib 0x0000000195f38a08 _dispatch_block_invoke_direct + 264 (queue.c:496)
31 FrontBoardServices 0x00000001a46a2d40 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 52 (FBSSerialQueue.m:157)
32 FrontBoardServices 0x00000001a46a28dc -[FBSSerialQueue _targetQueue_performNextIfPossible] + 220 (FBSSerialQueue.m:181)
33 FrontBoardServices 0x00000001a46a5184 -[FBSSerialQueue _performNextFromRunLoopSource] + 28 (FBSSerialQueue.m:194)
34 CoreFoundation 0x000000018e9e8f24 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 (CFRunLoop.c:1957)
35 CoreFoundation 0x000000018e9f52fc __CFRunLoopDoSource0 + 176 (CFRunLoop.c:2001)
36 CoreFoundation 0x000000018e979220 __CFRunLoopDoSources0 + 340 (CFRunLoop.c:2046)
37 CoreFoundation 0x000000018e98eb7c __CFRunLoopRun + 836 (CFRunLoop.c:2953)
38 CoreFoundation 0x000000018e993eb0 CFRunLoopRunSpecific + 612 (CFRunLoop.c:3418)
39 GraphicsServices 0x00000001c8b89368 GSEventRunModal + 164 (GSEvent.c:2196)
40 UIKitCore 0x0000000190e89668 -[UIApplication _run] + 888 (UIApplication.m:3758)
41 UIKitCore 0x0000000190e892cc UIApplicationMain + 340 (UIApplication.m:5348)
42 MyAPP 0x0000000104f65824 main + 1000 (main.m:54)
43 dyld 0x00000001ad28c960 start + 2528 (dyldMain.cpp:1170)
I tried to Google search this question, but I haven't found any clues yet.

Decipher the iOS crashlog. The program crashes at layoutIfNeeded

I've got crash logs for my app from App Store. I'm not able to reproduce the crash and having a hard time deciphering it.
Following is the log -
Incident Identifier: AEF0FFDD-77E4-460F-97E4-B97A32EAE36D
CrashReporter Key: 78177aeeda1175c67f4467d02c023a2a165d1a01
Hardware Model: iPhone7,1
Process: Visits [4558]
Path: /private/var/containers/Bundle/Application/81AC75BC-433C-43E7-887D-8FC6BF5B5703/Visits.app/Visits
Identifier: com.x.y
Version: 1.1.1 (1.1.1)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.x.y [1143]
Date/Time: 2018-07-20 22:30:36.6608 +0530
Launch Time: 2018-07-20 22:30:35.9017 +0530
OS Version: iPhone OS 11.4.1 (15G77)
Baseband Version: 6.80.00
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x184136d8c __exceptionPreprocess + 228 (NSException.m:166)
1 libobjc.A.dylib 0x1832f05ec objc_exception_throw + 56 (objc-exception.mm:521)
2 CoreFoundation 0x1840cfd80 -[__NSSingleObjectArrayI objectAtIndex:] + 128 (NSSingleObjectArray.m:16)
3 UIKit 0x18e6b0aa8 -[UITableViewDataSource tableView:cellForRowAtIndexPath:] + 172 (UITableViewDataSource.m:170)
4 UIKit 0x18e3c90f4 -[UITableViewController tableView:cellForRowAtIndexPath:] + 68 (UITableViewController.m:441)
5 UIKit 0x18de130cc -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] + 668 (UITableView.m:13463)
6 UIKit 0x18de12d84 -[UITableView _createPreparedCellForGlobalRow:willDisplay:] + 80 (UITableView.m:13514)
7 UIKit 0x18de11aa0 -[UITableView _updateVisibleCellsNow:isRecursive:] + 2280 (UITableView.m:2599)
8 UIKit 0x18de0d5ec -[UITableView layoutSubviews] + 140 (UITableView.m:8565)
9 UIKit 0x18dd4a6f4 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1420 (UIView.m:15239)
10 QuartzCore 0x1882bfe54 -[CALayer layoutSublayers] + 184 (CALayer.mm:9357)
11 QuartzCore 0x1882c3fe4 CA::Layer::layout_if_needed(CA::Transaction*) + 324 (CALayer.mm:9237)
12 UIKit 0x18dd62bf4 -[UIView(Hierarchy) layoutBelowIfNeeded] + 548 (UIView.m:10438)
13 Visits 0x1007a8300 MainViewController.initialSetupForScreen() + 804 (MainViewController.swift:217)
14 Visits 0x1007a7ea4 MainViewController.viewDidLoad() + 924 (MainViewController.swift:175)
15 Visits 0x1007a8838 #objc MainViewController.viewDidLoad() + 28
16 UIKit 0x18dd51e64 -[UIViewController loadViewIfRequired] + 1020 (UIViewController.m:3192)
17 UIKit 0x18dd51a50 -[UIViewController view] + 28 (UIViewController.m:3214)
18 UIKit 0x18dd42ce4 -[UIWindow addRootViewControllerViewIfPossible] + 136 (UIWindow.m:1358)
19 UIKit 0x18dd41b18 -[UIWindow _setHidden:forced:] + 272 (UIWindow.m:1455)
20 UIKit 0x18ddcf62c -[UIWindow makeKeyAndVisible] + 48 (UIWindow.m:4883)
21 UIKit 0x18dd45274 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3660 (UIApplication.m:2210)
22 UIKit 0x18dd125e0 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1680 (UIApplication.m:3491)
23 UIKit 0x18e342b1c __111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke + 784 (_UICanvasLifecycleMonitor.m:175)
24 UIKit 0x18dd11dd0 +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 160 (_UICanvas.m:591)
25 UIKit 0x18dd11c6c -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 240 (_UICanvasLifecycleMonitor.m:153)
26 UIKit 0x18dd10afc -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 724 (_UICanvasLifecycleMonitor.m:229)
27 UIKit 0x18e9a684c __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 296 (_UIApplicationCanvas.m:0)
28 UIKit 0x18dd101ec -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 432 (_UIApplicationCanvas.m:156)
29 UIKit 0x18e78bac8 __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 220 (_UICanvasLifecycleSettingsDiffAction.m:211)
30 UIKit 0x18e8d9bf8 _performActionsWithDelayForTransitionContext + 112 (_UICanvasSettingsDiffAction.m:34)
31 UIKit 0x18dd0fc0c -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 248 (_UICanvasLifecycleSettingsDiffAction.m:182)
32 UIKit 0x18dd0f5a8 -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 368 (_UICanvas.m:517)
33 UIKit 0x18dd0c5e0 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 540 (UIApplication.m:3109)
34 UIKit 0x18dd0c330 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 364 (UIApplicationSceneClientAgent.m:41)
35 FrontBoardServices 0x186938470 -[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 364 (FBSSceneImpl.m:460)
36 FrontBoardServices 0x186940d6c __56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 + 224 (FBSWorkspace.m:606)
37 libdispatch.dylib 0x183a28a60 _dispatch_client_callout + 16 (object.m:507)
38 libdispatch.dylib 0x183a30170 _dispatch_block_invoke_direct$VARIANT$mp + 224 (queue.c:3018)
39 FrontBoardServices 0x18696c878 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 36 (FBSSerialQueue.m:164)
40 FrontBoardServices 0x18696c51c -[FBSSerialQueue _performNext] + 404 (FBSSerialQueue.m:196)
41 FrontBoardServices 0x18696cab8 -[FBSSerialQueue _performNextFromRunLoopSource] + 56 (FBSSerialQueue.m:232)
42 CoreFoundation 0x1840df404 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24 (CFRunLoop.c:1982)
43 CoreFoundation 0x1840dec2c __CFRunLoopDoSources0 + 276 (CFRunLoop.c:2017)
44 CoreFoundation 0x1840dc79c __CFRunLoopRun + 1204 (CFRunLoop.c:2920)
45 CoreFoundation 0x183ffcda8 CFRunLoopRunSpecific + 552 (CFRunLoop.c:3245)
46 GraphicsServices 0x185fe2020 GSEventRunModal + 100 (GSEvent.c:2245)
47 UIKit 0x18e01c758 UIApplicationMain + 236 (UIApplication.m:3965)
48 Visits 0x1007a589c main + 56 (Location+CoreDataClass.swift:15)
49 libdyld.dylib 0x183a8dfc0 start + 4
Thread 0 name:
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000183bbd2e0 __pthread_kill + 8
1 libsystem_pthread.dylib 0x0000000183d5e288 pthread_kill$VARIANT$mp + 376 (pthread.c:1484)
2 libsystem_c.dylib 0x0000000183b2bd0c abort + 140 (abort.c:91)
3 libc++abi.dylib 0x00000001832c72c8 abort_message + 132 (abort_message.cpp:75)
4 libc++abi.dylib 0x00000001832c7470 default_terminate_handler() + 304 (cxa_default_handlers.cpp:68)
5 libobjc.A.dylib 0x00000001832f08d4 _objc_terminate() + 124 (objc-exception.mm:657)
6 libc++abi.dylib 0x00000001832e137c std::__terminate(void (*)()) + 16 (cxa_handlers.cpp:66)
7 libc++abi.dylib 0x00000001832e1400 std::terminate() + 84 (cxa_handlers.cpp:97)
8 libdispatch.dylib 0x0000000183a28a74 _dispatch_client_callout + 36 (object.m:510)
9 libdispatch.dylib 0x0000000183a30170 _dispatch_block_invoke_direct$VARIANT$mp + 224 (queue.c:3018)
10 FrontBoardServices 0x000000018696c878 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 36 (FBSSerialQueue.m:164)
11 FrontBoardServices 0x000000018696c51c -[FBSSerialQueue _performNext] + 404 (FBSSerialQueue.m:196)
12 FrontBoardServices 0x000000018696cab8 -[FBSSerialQueue _performNextFromRunLoopSource] + 56 (FBSSerialQueue.m:232)
13 CoreFoundation 0x00000001840df404 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24 (CFRunLoop.c:1982)
14 CoreFoundation 0x00000001840dec2c __CFRunLoopDoSources0 + 276 (CFRunLoop.c:2017)
15 CoreFoundation 0x00000001840dc79c __CFRunLoopRun + 1204 (CFRunLoop.c:2920)
16 CoreFoundation 0x0000000183ffcda8 CFRunLoopRunSpecific + 552 (CFRunLoop.c:3245)
17 GraphicsServices 0x0000000185fe2020 GSEventRunModal + 100 (GSEvent.c:2245)
18 UIKit 0x000000018e01c758 UIApplicationMain + 236 (UIApplication.m:3965)
19 Visits 0x00000001007a589c main + 56 (Location+CoreDataClass.swift:15)
20 libdyld.dylib 0x0000000183a8dfc0 start + 4
Following is the code snippet where the program crashes. The crash happens at the self.view.layoutIfNeeded().
func initialSetupForScreen(){
let screenHeight = UIScreen.main.bounds.height
let statusBarHeight = UIApplication.shared.statusBarFrame.height
fullyOpenSheetTop = -(screenHeight - (statusBarHeight * 2))
partiallyOpenSheetTop = -((screenHeight * 0.50) - titleBarHeight)
closedSheetTop = -titleBarHeight
notVisibleSheetTop = 40 //(+40 for iphone X)
fullyOrPartiallyThreshold = (fullyOpenSheetTop + partiallyOpenSheetTop)/2
partiallyOrClosedThreshold = (partiallyOpenSheetTop + closedSheetTop)/2
// set primary & secondary sheet height //(+40 for iphone X) (-40 fixed for iphone X)
primarySheetViewHeightConstraint.constant = -fullyOpenSheetTop
secondarySheetViewHeightConstraint.constant = -fullyOpenSheetTop
// primary sheet is set to fully open state
primarySheetViewTopConstraint.constant = fullyOpenSheetTop
primarySheetCurrentState = .fullyOpen
// secondary sheet is set to not visible state
secondarySheetViewTopConstraint.constant = notVisibleSheetTop
secondarySheetCurrentState = .notVisible
// settings View move it out of screen
settingsViewTopConstraint.constant = notVisibleSheetTop
primarySheetController.configurePrimarySheetContentView()
self.view.layoutIfNeeded()
}
Earlier, I was calling this function inside my viewDidLoad. I thought it was too early to call layoutIfNeeded inside viewDidLoad. So I moved the function to viewWillAppear. However, the crashes still seem to be happening . What am I missing/overseeing?
The crash is happening across very few devices and I'm not able to reproduce it.

Xcode is giving exception when Ionic 3 app run on ios greater than 9.3

Xcode is giving an exception when Ionic 3 app run on ios greater than 9.3 but 9.3 or below is fine, why?
Giving this trace:
2018-05-04 10:12:51.442622+0500 AfroCoin[3018:45327] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///Users/ApplePro/Library/Developer/CoreSimulator/Devices/13045814-2612-45C9-B223-CFC9C7F84987/data/Containers/Data/Application/5E794874-59EA-4DF6-B824-82B97E52E402/Library/Cookies/io.ionic.afrocoinworldwide.binarycookies
objc[3018]: Class VCWeakObjectHolder is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AVConference.framework/Frameworks/ViceroyTrace.framework/ViceroyTrace (0x1299384d0) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AVConference.framework/AVConference (0x128a64e38). One of the two will be used. Which one is undefined.
2018-05-04 10:13:03.634193+0500 AfroCoin[3018:45327] Apache Cordova native platform version 4.5.3 is starting.
2018-05-04 10:13:03.637288+0500 AfroCoin[3018:45327] Multi-tasking -> Device: YES, App: YES
2018-05-04 10:13:03.777136+0500 AfroCoin[3018:45327] CDVWKWebViewEngine: trying to inject XHR polyfill
2018-05-04 10:13:04.034624+0500 AfroCoin[3018:45327] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<WKWebViewConfiguration 0x7fc776d138a0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key _requiresUserActionForMediaPlayback.'
*** First throw call stack:
(
0 CoreFoundation 0x000000010c2bf1e6 __exceptionPreprocess + 294
1 libobjc.A.dylib 0x000000010a69e031 objc_exception_throw + 48
2 CoreFoundation 0x000000010c2bf0b9 -[NSException raise] + 9
3 Foundation 0x000000010a0bfb47 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 292
4 AfroCoin 0x000000010926df46 __43+[APPBackgroundMode swizzleWKWebViewEngine]_block_invoke + 358
5 AfroCoin 0x0000000109285667 -[CDVWKWebViewEngine pluginInitialize] + 983
6 AfroCoin 0x00000001092d13ab -[CDVViewController registerPlugin:withClassName:] + 315
7 AfroCoin 0x00000001092d0abc -[CDVViewController newCordovaViewWithFrame:] + 1404
8 AfroCoin 0x00000001092d0fc2 -[CDVViewController createGapView] + 354
9 AfroCoin 0x00000001092ce516 -[CDVViewController viewDidLoad] + 566
10 AfroCoin 0x000000010926c196 -[MainViewController viewDidLoad] + 54
11 UIKit 0x000000010f59b191 -[UIViewController loadViewIfRequired] + 1215
12 UIKit 0x000000010f59b5d4 -[UIViewController view] + 27
13 UIKit 0x000000010f469183 -[UIWindow addRootViewControllerViewIfPossible] + 122
14 UIKit 0x000000010f469894 -[UIWindow _setHidden:forced:] + 294
15 UIKit 0x000000012805a136 -[UIWindowAccessibility _orderFrontWithoutMakingKey] + 86
16 UIKit 0x000000010f47c62c -[UIWindow makeKeyAndVisible] + 42
17 AfroCoin 0x00000001092d2e08 -[CDVAppDelegate application:didFinishLaunchingWithOptions:] + 776
18 AfroCoin 0x000000010926bf17 -[AppDelegate application:didFinishLaunchingWithOptions:] + 199
19 UIKit 0x000000010f3ee75b -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 278
20 UIKit 0x000000010f3f01d2 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4123
21 UIKit 0x000000010f3f562b -[UIApplication _runWithMainScene:transitionContext:completion:] + 1677
22 UIKit 0x000000010f7b7e4a _111-[__UICanvasLifecycleMonitor_Compatability scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke + 866
23 UIKit 0x000000010fb8a909 +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 153
24 UIKit 0x000000010f7b7a86 -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 236
25 UIKit 0x000000010f7b82a7 -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 675
26 UIKit 0x00000001101294d4 _82-[_UIApplicationCanvas transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 299
27 UIKit 0x000000011012936e -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 433
28 UIKit 0x000000010fe0d62d __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 221
29 UIKit 0x0000000110008387 _performActionsWithDelayForTransitionContext + 100
30 UIKit 0x000000010fe0d4f7 -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 223
31 UIKit 0x000000010fb89fb0 -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 392
32 UIKit 0x000000010f3f3f0c -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 515
33 UIKit 0x000000010f9c6a97 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 361
34 FrontBoardServices 0x00000001184402f3 -[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 331
35 FrontBoardServices 0x0000000118448cfa __56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 + 225
36 libdispatch.dylib 0x000000010d5b8848 _dispatch_client_callout + 8
37 libdispatch.dylib 0x000000010d5bde14 _dispatch_block_invoke_direct + 592
38 FrontBoardServices 0x0000000118474470 _FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK_ + 24
39 FrontBoardServices 0x000000011847412e -[FBSSerialQueue _performNext] + 439
40 FrontBoardServices 0x000000011847468e -[FBSSerialQueue _performNextFromRunLoopSource] + 45
41 CoreFoundation 0x000000010c261bb1 _CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION_ + 17
42 CoreFoundation 0x000000010c2464af __CFRunLoopDoSources0 + 271
43 CoreFoundation 0x000000010c245a6f __CFRunLoopRun + 1263
44 CoreFoundation 0x000000010c24530b CFRunLoopRunSpecific + 635
45 GraphicsServices 0x000000010e1eba73 GSEventRunModal + 62
46 UIKit 0x000000010f3f70b7 UIApplicationMain + 159
47 AfroCoin 0x000000010926be31 main + 65
48 libdyld.dylib 0x000000010d635955 start + 1
49 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
As per my exprience, you need to update your cordova version as its old issue of cordova.
As its deprecated method after iOS 9.0 so either you need to remove _ from that key (_requiresUserActionForMediaPlayback) or update your cordova cli
Update cordova cmd:
$ sudo npm update -g cordova
By updating to latest Cordova CLI will solve your problem of crashing.
For more ref you can find below issue reported on GitHub:
Issue Link : https://github.com/katzer/cordova-plugin-background-mode/issues/264
Hope this will helps.

App Crashes in iOS 8 working in iOS 7

If I Push the View with Animation set to YES , the app crashes and below is the stack trace. and if I push to view without animation it is working correctly.
-[NewsFeedDetailView viewWillAppear:]
Nov 26 17:58:48 <Error>: -[NSNull length]: unrecognized selector sent to instance 0x307c1400
Nov 26 17:58:48 <Warning>: Stack Trace:: (
0 CoreFoundation 0x225f8d7f <redacted> + 150
1 libobjc.A.dylib 0x2fe57c77 objc_exception_throw + 38
2 CoreFoundation 0x225fe22d <redacted> + 0
3 CoreFoundation 0x225fc109 <redacted> + 712
4 CoreFoundation 0x2252d938 _CF_forwarding_prep_0 + 24
5 UIKit 0x25aa7a9b <redacted> + 38
6 UIKit 0x25b16d5b <redacted> + 66
7 UIKit 0x25b16d11 <redacted> + 84
8 UIKit 0x25b16c99 <redacted> + 400
9 QuartzCore 0x254f4681 <redacted> + 228
10 QuartzCore 0x254de0c1 <redacted> + 2068
11 QuartzCore 0x255bfb4d <redacted> + 52
12 QuartzCore 0x254dd8a5 <redacted> + 88
13 QuartzCore 0x254dd555 <redacted> + 1156
14 QuartzCore 0x254c1b1d <redacted> + 200
15 QuartzCore 0x254c17e1 <redacted> + 24
16 QuartzCore 0x254c11c7 <redacted> + 222
17 QuartzCore 0x254c0fd1 <redacted> + 324
18 UIKit 0x25a9c5f9 <redacted> + 1384
19 CoreFoundation 0x225bf5e7 <redacted> + 14
20 CoreFoundation 0x225be9fb <redacted> + 222
21 CoreFoundation 0x225bd079 <redacted> + 768
22 CoreFoundation 0x2250a981 CFRunLoopRunSpecific + 476
23 CoreFoundation 0x2250a793 CFRunLoopRunInMode + 106
24 GraphicsServices 0x298e3051 GSEventRunModal + 136
25 UIKit 0x25afc981 UIApplicationMain + 1440
26 W I T Party 0x0014b1fd main + 220
27 libdyld.dylib 0x303f3aaf <redacted> + 2
)
Please help me out with this
This is my viewWillAppear. I am just calling the super.
-(void)viewWillAppear:(BOOL)animated {
NSLog(#"%s",__func__);
[super viewWillAppear:NO];
}

I need help deciphering this stacktrace

While running my ios app a user has encountered the following error. It has only happened once and I cannot figure out how to repeat the error. Could someone please interpret the following stacktrace to help me find the cause of the error.
Signal
Unknown Signal
Stacktrace (9)
0 LeadsBoard 0x0001b5f2 testflight_backtrace + 142
1 LeadsBoard 0x0001c180 TFSignalHandler + 212
2 libsystem_c.dylib 0x3419d72e _sigtramp + 42
3 libsystem_c.dylib 0x341923ba pthread_kill + 58
4 libsystem_c.dylib 0x3418abfe abort + 78
5 libsystem_c.dylib 0x3419e828 szone_error + 216
6 libsystem_c.dylib 0x341a4f0e szone_realloc + 66
7 libsystem_c.dylib 0x341c60e6 malloc_zone_realloc + 62
8 Foundation 0x3486bcf4 NSZoneRealloc + 32
9 Foundation 0x3486bb40 _NSMutableDataGrowBytes + 336
10 Foundation 0x3486b96c -[NSConcreteMutableData appendData:] + 80
11 LeadsBoard 0x0000fd90 -[DataModelPeopleClass connection:didReceiveData:] (DataModelPeopleClass.m:152)
12 Foundation 0x3486b8f6 -[NSURLConnection(NSURLConnectionReallyInternal) sendDidReceiveData:originalLength:] + 150
13 Foundation 0x3486b822 _NSURLConnectionDidReceiveData + 90
14 CFNetwork 0x35a7406c _ZN19URLConnectionClient21_clientDidReceiveDataEPK8__CFDataPNS_26ClientConnectionEventQueueE + 172
15 CFNetwork 0x35a68fb4 _ZN19URLConnectionClient26ClientConnectionEventQueue33processAllEventsAndConsumePayloadEP20XConnectionEventInfoI12XClientEvent18XClientEventParamsEl + 212
16 CFNetwork 0x35a68e36 _ZN19URLConnectionClient13processEventsEv + 70
17 CFNetwork 0x35a68de8 _ZN13URLConnection24multiplexerClientPerformEP18RunLoopMultiplexer + 36
18 CFNetwork 0x35a68d5a _ZN17MultiplexerSource7performEv + 126
19 CFNetwork 0x35a68cd8 _ZN17MultiplexerSource8_performEPv + 8
20 CoreFoundation 0x36487a78 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12
21 CoreFoundation 0x3648975e __CFRunLoopDoSources0 + 382
22 CoreFoundation 0x3648a4ea __CFRunLoopRun + 230
23 CoreFoundation 0x3641aec2 CFRunLoopRunSpecific + 230
24 CoreFoundation 0x3641adca CFRunLoopRunInMode + 58
25 GraphicsServices 0x35bd441e GSEventRunModal + 114
26 GraphicsServices 0x35bd44ca GSEventRun + 62
27 UIKit 0x352c4d68 -[UIApplication _run] + 404
28 UIKit 0x352c2806 UIApplicationMain + 670
29 LeadsBoard 0x000020fc main (main.m:14)
30 LeadsBoard 0x000020c7 start + 39
Environment
Device Name: iPhone
Model: iPhone 4
Version: 4.3.5
Language: en_AU (English)
Carrier: Virgin Mobile
Timezone: AEST
Architecture: armv7
Connection State: Wifi
Check your NSURLConnection delegates, specifically in DataModelPeopleClass.

Resources