cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Mobile EUM iOS Framework Crash Issue at - -[ADEumANRDetection initialAnrDetection]

RAMESH.CHANDRAN
New Poster

When we enabled AppDynamics and in our application, we are observing some crashes getting reported in our tool.

 

By symbolicating the crash logs its points to the following stack trace.

Crashed: com.twitter.crashlytics.ios.exception
0 MYAPP 0x101419040 CLSProcessRecordAllThreads + 1565424
1 MYAPP 0x101419040 CLSProcessRecordAllThreads + 1565424
2 MYAPP 0x101418efc CLSProcessRecordAllThreads + 1565100
3 MYAPP 0x1014096bc CLSHandler + 1501548
4 MYAPP 0x101417114 __CLSExceptionRecord_block_invoke + 1557444
5 libdispatch.dylib 0x1a925b484 _dispatch_client_callout + 16
6 libdispatch.dylib 0x1a9208610 _dispatch_lane_barrier_sync_invoke_and_complete + 56
7 MYAPP 0x101416bb8 CLSExceptionRecord + 1556072
8 MYAPP 0x1014169ec CLSExceptionRecordNSException + 1555612
9 MYAPP 0x10141660c CLSTerminateHandler() + 1554620
10 libc++abi.dylib 0x1a89e40fc std::__terminate(void (*)()) + 16
11 libc++abi.dylib 0x1a89e3a40 __cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code, _Unwind_Exception*) + 130
12 libobjc.A.dylib 0x1a89f0b84 _objc_exception_destructor(void*) + 378
13 Foundation 0x1aa2b478c _NSInitializePlatform + 54
14 CoreFoundation 0x1a97551e8 __CFReallocationFailed + 92
15 CoreFoundation 0x1a9755188 __CFSafelyReallocate + 68
16 CoreFoundation 0x1a97751d8 __CFDataGrow + 336
17 CoreFoundation 0x1a97744c0 CFDataReplaceBytes + 340
18 CoreFoundation 0x1a97a3da0 _CFAppendXML0 + 2536
19 CoreFoundation 0x1a97a3f74 _CFAppendXML0 + 3004
20 CoreFoundation 0x1a97a3ce8 _CFAppendXML0 + 2352
21 CoreFoundation 0x1a97a3f74 _CFAppendXML0 + 3004
22 CoreFoundation 0x1a97a3ce8 _CFAppendXML0 + 2352
23 CoreFoundation 0x1a97a3f74 _CFAppendXML0 + 3004
24 CoreFoundation 0x1a97a061c _CFPropertyListCreateXMLData + 184
25 CoreFoundation 0x1a97a2540 CFPropertyListCreateData + 200
26 Foundation 0x1aa1d8820 +[NSPropertyListSerialization dataWithPropertyList:format:options:error:] + 48
27 Foundation 0x1aa201b30 -[NSDictionary(NSDictionary) writeToFile:atomically:] + 180
28 MYAPP 0x1012bdba8 -[ADEumANRDetection initialAnrDetection] + 142936
29 MYAPP 0x1012bd2cc -[ADEumANRDetection anrThreadProcess] + 140668
30 Foundation 0x1aa2d23b0 __NSThread__start__ + 1040
31 libsystem_pthread.dylib 0x1a943c2fc _pthread_body + 128
32 libsystem_pthread.dylib 0x1a943c25c _pthread_start + 48
33 libsystem_pthread.dylib 0x1a943fd08 thread_start + 4

 

The following are the references to AppDynamics Library.

28 MYAPP 0x1012bdba8 -[ADEumANRDetection initialAnrDetection] + 142936
29 MYAPP 0x1012bd2cc -[ADEumANRDetection anrThreadProcess] + 140668

2 REPLIES 2

Chitra.Lal
AppDynamics Team

Hi Ramesh,

 

Could you please tell me what is ther version of controller and ios agent that you are using? ANR is generated when UI does not respond for 2 or more seconds, :

https://docs.appdynamics.com/display/PRO45/Mobile+Sessions#MobileSessions-anr

 

So if you are on version 4.5; we have an option to configure the ANR threashold, so you can try increasing it and see if that helps.

 

But before that can you please share the entire crash file so that we can see what is the main thread crashing? 

 

 

 

Thank You,

Chitra

 



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.

Hi Chitra,

 

Thank you very much for the Quick response. Let me check as you suggested. 

 

One more clarification. I was trying to disable ANR detection as per the following reference.

https://docs.appdynamics.com/display/PRO45/Customize+the+iOS+Instrumentation

 

ADEumAgentConfiguration *adeumAgentConfig = [[ADEumAgentConfiguration alloc] initWithAppKey:@"<EUM_APP_KEY>"];
// Disable ANR detection
adeumAgentConfig.anrDetectionEnabled  = NO;
[ADEumInstrumentation initWithConfiguration:adeumAgentConfig];

 

But , I couldn't find the reference for "anrDetectionEnabled" API in the downloaded Framework. Is that expected?