I have a crash on SceneKit reported by multiple users on Crashlytics. It happens on a lot of devices (iPhone SE, iPhone 12, iPhone 11 Pro Max...) on iOS 14. They seem to appear quite randomly.
The callstack only contains SceneKit calls.
Crashed: com.apple.main-thread
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0068006b006a0099
Crashed: com.apple.main-thread
0 SceneKit 0x1dd1873a4 C3DAnimationManagerRemoveAnimationsForObject + 48
1 SceneKit 0x1dd33604c C3DEntityRemoveAllAnimations + 44
2 SceneKit 0x1dd335fe4 C3DEntityCFFinalize + 24
3 SceneKit 0x1dd180488 _C3DMeshSourceCFFinalize + 112
4 CoreFoundation 0x1a8952aac _CFRelease + 248
5 CoreFoundation 0x1a88afd88 -[__NSArrayM dealloc] + 192
6 SceneKit 0x1dd23df08 _C3DMeshCFFinalize + 84
7 CoreFoundation 0x1a8952aac _CFRelease + 248
8 SceneKit 0x1dd1c2a00 _C3DRendererElementFinalize + 96
9 SceneKit 0x1dd3c2c70 __C3DRendererElementStoreDeallocateSpan + 164
10 SceneKit 0x1dd3c2d88 C3DRendererElementStoreDeallocateSpanForNode + 64
11 SceneKit 0x1dd2439dc C3DSceneNodeWillBeRemovedOrHidden + 48
12 SceneKit 0x1dd239584 _C3DNodeWillRemoveFromScene + 36
13 SceneKit 0x1dd168440 C3DRemoveSceneRef + 160
14 SceneKit 0x1dd2394c8 _C3DNodeEnumerateSubEntities + 408
15 SceneKit 0x1dd16849c C3DRemoveSceneRef + 252
16 SceneKit 0x1dd2394c8 _C3DNodeEnumerateSubEntities + 408
17 SceneKit 0x1dd16849c C3DRemoveSceneRef + 252
18 SceneKit 0x1dd2394e0 _C3DNodeEnumerateSubEntities + 432
19 SceneKit 0x1dd16849c C3DRemoveSceneRef + 252
20 SceneKit 0x1dd2394e0 _C3DNodeEnumerateSubEntities + 432
21 SceneKit 0x1dd16849c C3DRemoveSceneRef + 252
22 SceneKit 0x1dd2449d4 _C3DSceneCFFinalize + 188
23 CoreFoundation 0x1a8952aac _CFRelease + 248
24 SceneKit 0x1dd374958 C3DTransactionFlush + 2112
25 CoreFoundation 0x1a894fc74 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 36
26 CoreFoundation 0x1a8949d98 __CFRunLoopDoObservers + 572
27 CoreFoundation 0x1a894a344 __CFRunLoopRun + 1052
28 CoreFoundation 0x1a89499f4 CFRunLoopRunSpecific + 600
29 GraphicsServices 0x1c001a734 GSEventRunModal + 164
30 UIKitCore 0x1ab3c775c -[UIApplication _run] + 1072
31 UIKitCore 0x1ab3ccfcc UIApplicationMain + 168
32 TagHeuerGolf 0x100084cac main + 27 (main.swift:27)
33 libdyld.dylib 0x1a8605cf8 start + 4
Does someone have the same crashes? If so, did you find a solution to fix it?
Im using xcode 12 and ios 13 for ios application.
I have caught runtime exceptions in AppDelegate level append StackTrace (using Thread.callStackSymbols) to Log file and save it with .crash extension. But Stacktrace is not human readable. I followed some article , found we have to generate symobolicate file from it and it should be human readable.
Unfortunately, i couldn't find the way to how to do it ? can someone suggest standard way to how to do it ?
I will attach my log.crash file output content here for your reference.
Please, help me to resolve this issue and i really appreciate your feedback and comment.
Crash Type : signal
Summary: OTHER
Reason: Signal OTHER(5) was raised
Version: 1.0
AppInfo:
Device: iPad
OS Version: iOS 13.5.1
CallStack:
2 libsystem_platform.dylib 0x00000001ad5b4884 3834105B-0F62-3E9B-A9F7-B9F29A2B7E1B + 34948
3 libswiftCore.dylib 0x00000001bad57d70 01A8EE3D-C8DC-396B-89AD-A5F64DF13F80 + 220528
4 libswiftCore.dylib 0x00000001bad57234 $ss17_assertionFailure__4file4line5flagss5NeverOs12StaticStringV_A2HSus6UInt32VtF + 468
5 libswiftCore.dylib 0x00000001bad35ed0 $ss12_ArrayBufferV37_checkInoutAndNativeTypeCheckedBounds_03wasfgH0ySi_SbtF + 208
6 libswiftCore.dylib 0x00000001bad39ac8 $sSayxSicig + 84
7 test 0x000000010047fda8 $s13test24ToolOptionsContainerViewC03setdE8MetaData8toolTypeyAA0dL0O_tF + 1188
8 test 0x000000010048341c $s13test24ToolOptionsContainerViewC06updatedeG08toolTypeyAA0dJ0O_tF + 188
9 test 0x000000010047f2bc $s13test24ToolOptionsContainerViewC5frame8toolType8delegateACSo6CGRectV_AA0dJ0OAA0defG8Delegate_ptcfc + 2852
10 test 0x000000010047e788 $s13test24ToolOptionsContainerViewC5frame8toolType8delegateACSo6CGRectV_AA0dJ0OAA0defG8Delegate_ptcfC + 88
11 test 0x00000001002d1564 $s13test0bC4ViewC18setUpHeaderToolbar33_DCFA78A12B92B8638AD99354F8879966LLyyF + 12292
12 test 0x00000001002ce540 $s13test0bC4ViewC12initSubViews33_DCFA78A12B92B8638AD99354F8879966LLyyF + 32
13 test 0x00000001002cd568 $s13test0bC4ViewC5frameACSo6CGRectV_tcfc + 3716
14 test 0x00000001002cd644 $s13test0bC4ViewC5frameACSo6CGRectV_tcfcTo + 56
15 test 0x000000010023c854 $sSo6UIViewCABycfcTO + 28
16 test 0x000000010023c82c $sSo6UIViewCABycfC + 32
17 test 0x000000010024d0ac $s13test0bC14ViewControllerC04loadD0yyF + 200
18 test 0x000000010024f7e8 $s13test0bC14ViewControllerC04loadD0yyFTo + 32
19 UIKitCore 0x00000001b130eee4 BD57BD6E-12B4-3F92-85CA-754932DA499D + 4108004
20 UIKitCore 0x00000001b130f5e8 BD57BD6E-12B4-3F92-85CA-754932DA499D + 4109800
21 UIKitCore 0x00000001b128dbc0 BD57BD6E-12B4-3F92-85CA-754932DA499D + 3578816
22 UIKitCore 0x00000001b12363d0 BD57BD6E-12B4-3F92-85CA-754932DA499D + 3220432
23 UIKitCore 0x00000001b1232654 BD57BD6E-12B4-3F92-85CA-754932DA499D + 3204692
24 UIKitCore 0x00000001b195bb64 BD57BD6E-12B4-3F92-85CA-754932DA499D + 10713956
25 UIKitCore 0x00000001b194b50c BD57BD6E-12B4-3F92-85CA-754932DA499D + 10646796
26 UIKitCore 0x00000001b197b9f0 BD57BD6E-12B4-3F92-85CA-754932DA499D + 10844656
27 CoreFoundation 0x00000001ad82906c 50CF3336-313F-3A7D-9048-CB1ED8EC3368 + 688236
28 CoreFoundation 0x00000001ad823f60 50CF3336-313F-3A7D-9048-CB1ED8EC3368 + 667488
29 CoreFoundation 0x00000001ad8243dc 50CF3336-313F-3A7D-9048-CB1ED8EC3368 + 668636
30 CoreFoundation 0x00000001ad823ce8 CFRunLoopRunSpecific + 424
31 GraphicsServices 0x00000001b796e38c GSEventRunModal + 160
32 UIKitCore 0x00000001b1952444 UIApplicationMain + 1932
33 test 0x000000010039d00c main + 88
34 libdyld.dylib 0x00000001ad6ab8f0 3D6D64B4-CB2B-3CC4-A7E9-02774DF7AE74 + 6384
Try it below link , it is working to some level. but line numbers are missing.
https://github.com/GDXRepo/CallStackParser
But CwlDemangle has some compile errors and replace it by below file.
https://github.com/mattgallagher/CwlDemangle/blob/master/CwlDemangle/CwlDemangle.swift
We can get callStackSymbols from below way.
var callStackSymbols = Thread.callStackSymbols
or
let callStackSymbols = exteption.callStackSymbols
and pass callStackSymbols to classAndMethodForStackSymbol(callStackSymbol)
Then it will return decoded string.
I have a question about monotouch app memory limitation.
I tried to stress my iPad memory with a very simple app that allocates 1MB arrays into a list. On each loop I display the number of loop. I notice my app crashing around 130 MB allocation.
My code:
List<byte[]> arrays = new List<byte[]>();
try
{
for (int i = 0; i < 1323; i++)
{
arrays.Add(new byte[1024 * 1024]);
Console.WriteLine("RAM: " + (i + 1) + " Mo");
}
}
catch { }
I don't understand why, on an iPad 3 or iPad 4, my app crashes around 130MB with following message:
Native stacktrace:
0 TestMemory 0x002687f9 mono_handle_native_sigsegv + 244
1 TestMemory 0x00295d75 sigabrt_signal_handler + 112
2 libsystem_c.dylib 0x35a75e93 _sigtramp + 42
3 libsystem_c.dylib 0x35a6c123 pthread_kill + 58
4 libsystem_c.dylib 0x35aa8973 abort + 94
5 TestMemory 0x0026353d GC_expand_hp_inner + 0
6 TestMemory 0x00263637 GC_expand_hp_inner + 250
7 TestMemory 0x00263aed GC_collect_or_expand + 128
8 TestMemory 0x00265d99 GC_alloc_large + 96
9 TestMemory 0x00265fe9 GC_generic_malloc + 180
10 TestMemory 0x00266185 GC_malloc_atomic + 112
11 TestMemory 0x0028c011 mono_array_new_specific + 124
12 TestMemory 0x00172e04 wrapper_managed_to_native_object___icall_wrapper_mono_array_new_specific_intptr_int + 68
13 TestMemory 0x0007305c MonoTouch_UIKit_UIControlEventProxy_Activated + 68
14 TestMemory 0x0016df50 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 200
15 TestMemory 0x002314e3 mono_jit_runtime_invoke + 1054
16 TestMemory 0x0028c8c3 mono_runtime_invoke + 90
17 TestMemory 0x0022b6f7 native_to_managed_trampoline_MonoTouch_UIKit_UIControlEventProxy_Activated + 178
18 UIKit 0x3ace40a5 <redacted> + 72
19 UIKit 0x3ace4057 <redacted> + 30
20 UIKit 0x3ace4035 <redacted> + 44
21 UIKit 0x3ace38eb <redacted> + 502
22 UIKit 0x3ace357b <redacted> + 242
23 UIKit 0x3ac0c523 <redacted> + 318
24 UIKit 0x3abf9801 <redacted> + 380
25 UIKit 0x3abf911b <redacted> + 6154
26 GraphicsServices 0x3637c5a3 <redacted> + 590
27 GraphicsServices 0x3637c1d3 <redacted> + 34
28 CoreFoundation 0x38856173 <redacted> + 34
29 CoreFoundation 0x38856117 <redacted> + 138
30 CoreFoundation 0x38854f99 <redacted> + 1384
31 CoreFoundation 0x387c7ebd CFRunLoopRunSpecific + 356
32 CoreFoundation 0x387c7d49 CFRunLoopRunInMode + 104
33 GraphicsServices 0x3637b2eb GSEventRunModal + 74
34 UIKit 0x3ac4d2f9 UIApplicationMain + 1120
35 TestMemory 0x0008b3c4 wrapper_managed_to_native_MonoTouch_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr + 240
36 TestMemory 0x00219bf0 TestMemory_Application_Main_string__ + 152
37 TestMemory 0x0016df50 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 200
38 TestMemory 0x002314e3 mono_jit_runtime_invoke + 1054
39 TestMemory 0x0028c8c3 mono_runtime_invoke + 90
40 TestMemory 0x0028f3a7 mono_runtime_exec_main + 306
41 TestMemory 0x0029262b mono_runtime_run_main + 482
42 TestMemory 0x00242ecf mono_jit_exec + 94
43 TestMemory 0x002cce3c main + 2220
44 TestMemory 0x00002028 start + 40
You crash because you use up all the memory iOS is willing to give you. This is not a MonoTouch limitation, it's an iOS limitation.
I am thinking this is somehow memory related, but I have done everything I can think of. I have made sure classes are disposed property. Maintained hard references at the class level instead of function scope, for things that might be getting GC'd while I am using them, etc.
Basically the app works fine in the simulator, but crashes at the same spot on a real device. Seems like I get a few different stacks, but they are all around the same place.
I am using a large amount of events in my application. Too many threads?
Stacktrace:
at Newtonsoft.Json.JsonWriter.WriteValue (object) at
Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue
(Newtonsoft.Json.JsonWriter,object,Newtonsoft.Json.Serialization.JsonContract,Newtonsoft.Json.Serialization.JsonProperty,Newtonsoft.Json.Serialization.JsonContract)
at
Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.WriteMemberInfoProperty
(Newtonsoft.Json.JsonWriter,object,Newtonsoft.Json.Serialization.JsonProperty,Newtonsoft.Json.Serialization.JsonContract)
at
Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject
(Newtonsoft.Json.JsonWriter,object,Newtonsoft.Json.Serialization.JsonObjectContract,Newtonsoft.Json.Serialization.JsonProperty,Newtonsoft.Json.Serialization.JsonContract)
at
Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue
(Newtonsoft.Json.JsonWriter,object,Newtonsoft.Json.Serialization.JsonContract,Newtonsoft.Json.Serialization.JsonProperty,Newtonsoft.Json.Serialization.JsonContract)
at
Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeList
(Newtonsoft.Json.JsonWriter,Newtonsoft.Json.Utilities.IWrappedCollection,Newtonsoft.Json.Serialization.JsonArrayContract,Newtonsoft.Json.Serialization.JsonProperty,Newtonsoft.Json.Serialization.JsonContract)
at
Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue
(Newtonsoft.Json.JsonWriter,object,Newtonsoft.Json.Serialization.JsonContract,Newtonsoft.Json.Serialization.JsonProperty,Newtonsoft.Json.Serialization.JsonContract)
at
Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.WriteMemberInfoProperty
(Newtonsoft.Json.JsonWriter,object,Newtonsoft.Json.Serialization.JsonProperty,Newtonsoft.Json.Serialization.JsonContract)
at
Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject
(Newtonsoft.Json.JsonWriter,object,Newtonsoft.Json.Serialization.JsonObjectContract,Newtonsoft.Json.Serialization.JsonProperty,Newtonsoft.Json.Serialization.JsonContract)
at
Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue
(Newtonsoft.Json.JsonWriter,object,Newtonsoft.Json.Serialization.JsonContract,Newtonsoft.Json.Serialization.JsonProperty,Newtonsoft.Json.Serialization.JsonContract)
at
Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize
(Newtonsoft.Json.JsonWriter,object) at
Newtonsoft.Json.JsonSerializer.SerializeInternal
(Newtonsoft.Json.JsonWriter,object) at
Newtonsoft.Json.JsonSerializer.Serialize
(Newtonsoft.Json.JsonWriter,object) at
RestSharp.Serializers.JsonSerializer.Serialize (object) [0x0001c] in
/Users/sonmez56/Projects/TrackAbout.Mono/RestSharp/RestSharp/Serializers/JsonSerializer.cs:64
at RestSharp.RestRequest.AddBody (object,string) [0x00019] in
/Users/sonmez56/Projects/TrackAbout.Mono/RestSharp/RestSharp/RestRequest.cs:203
at RestSharp.RestRequest.AddBody (object) [0x00000] in
/Users/sonmez56/Projects/TrackAbout.Mono/RestSharp/RestSharp/RestRequest.cs:232
at
TrackAboutMonoCore.Services.TrackAboutAPIRequestBuilder/TARestRequest.WithBody
(T) <0x00097> at
TrackAboutMonoCore.Services.ActionsService.CustomerSetVolume
(int,System.Collections.Generic.List1<TrackAboutMonoCore.Models.Asset>,System.Action1>)
[0x00000] in
/Users/sonmez56/Projects/TrackAbout.Mono/TrackAboutMonoCore/Services/ActionsService.cs:24
at TrackAboutMonoCore.Controllers.LocateController.Save
(object,System.EventArgs) [0x00055] in
/Users/sonmez56/Projects/TrackAbout.Mono/TrackAboutMonoCore/Controllers/LocateController.cs:64
at MonoTouch.UIKit.UIBarButtonItem/Callback.Call
(MonoTouch.Foundation.NSObject) [0x00010] in
/Developer/MonoTouch/Source/monotouch/src/UIKit/UIBarButtonItem.cs:23
at (wrapper runtime-invoke) object.runtime_invoke_dynamic
(intptr,intptr,intptr,intptr) <0xffffffff> at
MonoTouch.UIKit.UIApplication.Main (string[],string,string) [0x0004c]
in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:38
at TrackAboutIOS.Application.Main (string[]) [0x00000] in
/Users/sonmez56/Projects/TrackAbout.Mono/TrackAboutIOS/TrackAboutIOS/Main.cs:16
at (wrapper runtime-invoke) object.runtime_invoke_dynamic
(intptr,intptr,intptr,intptr) <0xffffffff>
Native stacktrace:
0 TrackAboutIOS 0x01d20618
mono_handle_native_sigsegv + 280 1 TrackAboutIOS
0x01d45bd4 sigabrt_signal_handler + 180 2 libsystem_c.dylib
0x376647ed _sigtramp + 48 3 libsystem_c.dylib
0x3765a20f pthread_kill + 54 4 libsystem_c.dylib
0x3765329f abort + 94 5 TrackAboutIOS
0x01e394ac monoeg_g_log + 208 6 TrackAboutIOS
0x01d11664 get_numerous_trampoline + 160 7 TrackAboutIOS
0x01d11aac mono_aot_get_imt_thunk + 56 8 TrackAboutIOS
0x01dbdc50 initialize_imt_slot + 112 9 TrackAboutIOS
0x01dbf1c4 build_imt_slots + 1124 10 TrackAboutIOS
0x01dbf32c mono_vtable_build_imt_slot + 120 11 TrackAboutIOS
0x01d236fc mono_convert_imt_slot_to_vtable_slot + 292 12
TrackAboutIOS 0x01d23974 common_call_trampoline
+ 284 13 TrackAboutIOS 0x01d21c60 mono_vcall_trampoline + 228 14 TrackAboutIOS
0x00934198 generic_trampoline_vcall + 136 15 TrackAboutIOS
0x00b9fec4
Newtonsoft_Json_Serialization_JsonSerializerInternalWriter_SerializeValue_Newtonsoft_Json_JsonWriter_object_Newtonsoft_Json_Serialization_JsonContract_Newtonsoft_Json_Serialization_JsonProperty_Newtonsoft_Json_Serialization_JsonContract + 1116 16 TrackAboutIOS 0x00ba13bc Newtonsoft_Json_Serialization_JsonSerializerInternalWriter_WriteMemberInfoProperty_Newtonsoft_Json_JsonWriter_object_Newtonsoft_Json_Serialization_JsonProperty_Newtonsoft_Json_Serialization_JsonContract + 1712 17 TrackAboutIOS 0x00ba2a70 Newtonsoft_Json_Serialization_JsonSerializerInternalWriter_SerializeObject_Newtonsoft_Json_JsonWriter_object_Newtonsoft_Json_Serialization_JsonObjectContract_Newtonsoft_Json_Serialization_JsonProperty_Newtonsoft_Json_Serialization_JsonContract + 1784 18 TrackAboutIOS 0x00ba0124 Newtonsoft_Json_Serialization_JsonSerializerInternalWriter_SerializeValue_Newtonsoft_Json_JsonWriter_object_Newtonsoft_Json_Serialization_JsonContract_Newtonsoft_Json_Serialization_JsonProperty_Newtonsoft_Json_Serialization_JsonContract + 1724 19 TrackAboutIOS 0x00ba3ec0 Newtonsoft_Json_Serialization_JsonSerializerInternalWriter_SerializeList_Newtonsoft_Json_JsonWriter_Newtonsoft_Json_Utilities_IWrappedCollection_Newtonsoft_Json_Serialization_JsonArrayContract_Newtonsoft_Json_Serialization_JsonProperty_Newtonsoft_Json_Serialization_JsonContract + 2520 20 TrackAboutIOS 0x00ba041c Newtonsoft_Json_Serialization_JsonSerializerInternalWriter_SerializeValue_Newtonsoft_Json_JsonWriter_object_Newtonsoft_Json_Serialization_JsonContract_Newtonsoft_Json_Serialization_JsonProperty_Newtonsoft_Json_Serialization_JsonContract + 2484 21 TrackAboutIOS 0x00ba13bc Newtonsoft_Json_Serialization_JsonSerializerInternalWriter_WriteMemberInfoProperty_Newtonsoft_Json_JsonWriter_object_Newtonsoft_Json_Serialization_JsonProperty_Newtonsoft_Json_Serialization_JsonContract + 1712 22 TrackAboutIOS 0x00ba2a70 Newtonsoft_Json_Serialization_JsonSerializerInternalWriter_SerializeObject_Newtonsoft_Json_JsonWriter_object_Newtonsoft_Json_Serialization_JsonObjectContract_Newtonsoft_Json_Serialization_JsonProperty_Newtonsoft_Json_Serialization_JsonContract + 1784 23 TrackAboutIOS 0x00ba0124 Newtonsoft_Json_Serialization_JsonSerializerInternalWriter_SerializeValue_Newtonsoft_Json_JsonWriter_object_Newtonsoft_Json_Serialization_JsonContract_Newtonsoft_Json_Serialization_JsonProperty_Newtonsoft_Json_Serialization_JsonContract + 1724 24 TrackAboutIOS 0x00b9f70c Newtonsoft_Json_Serialization_JsonSerializerInternalWriter_Serialize_Newtonsoft_Json_JsonWriter_object
+ 356 25 TrackAboutIOS 0x00b2c52c Newtonsoft_Json_JsonSerializer_SerializeInternal_Newtonsoft_Json_JsonWriter_object
+ 300 26 TrackAboutIOS 0x00b2c3b4 Newtonsoft_Json_JsonSerializer_Serialize_Newtonsoft_Json_JsonWriter_object
+ 156 27 TrackAboutIOS 0x012010c0 RestSharp_Serializers_JsonSerializer_Serialize_object + 452 28
TrackAboutIOS 0x011f8ad0
RestSharp_RestRequest_AddBody_object_string + 396 29 TrackAboutIOS
0x011f8e4c RestSharp_RestRequest_AddBody_object + 152 30
TrackAboutIOS 0x011d3c64
TrackAboutMonoCore_Services_TrackAboutAPIRequestBuilder_TARestRequest_WithBody_T_T
+ 152 31 TrackAboutIOS 0x011d22d4 TrackAboutMonoCore_Services_ActionsService_CustomerSetVolume_int_System_Collections_Generic_List_1_TrackAboutMonoCore_Models_Asset_System_Action_1_RestSharp_RestResponse_1_TrackAbout_Rest_Models_TARestResponse
+ 328 32 TrackAboutIOS 0x011ce3bc TrackAboutMonoCore_Controllers_LocateController_Save_object_System_EventArgs
+ 960 33 TrackAboutIOS 0x0139003c MonoTouch_UIKit_UIBarButtonItem_Callback_Call_MonoTouch_Foundation_NSObject
+ 96 34 TrackAboutIOS 0x008b0450 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr
+ 200 35 TrackAboutIOS 0x01d05834 mono_jit_runtime_invoke + 1644 36 TrackAboutIOS
0x01dbd09c mono_runtime_invoke + 128 37 TrackAboutIOS
0x01e4c054 monotouch_trampoline + 3436 38 CoreFoundation
0x30c7f3fd -[NSObject performSelector:withObject:withObject:] + 52 39
UIKit 0x3353efaf -[UIApplication
sendAction:to:from:forEvent:] + 62 40 UIKit
0x3360476b -[UIBarButtonItem(UIInternal) _sendAction:withEvent:] + 118
41 CoreFoundation 0x30c7f3fd -[NSObject
performSelector:withObject:withObject:] + 52 42 UIKit
0x3353efaf -[UIApplication sendAction:to:from:forEvent:] + 62 43
UIKit 0x3353ef6b -[UIApplication
sendAction:toTarget:fromSender:forEvent:] + 30 44 UIKit
0x3353ef49 -[UIControl sendAction:to:forEvent:] + 44 45 UIKit
0x3353ecb9 -[UIControl(Internal) _sendActionsForEvents:withEvent:] +
492 46 UIKit 0x3353f5f1 -[UIControl
touchesEnded:withEvent:] + 476 47 UIKit
0x3353dad3 -[UIWindow _sendTouchesForEvent:] + 318 48 UIKit
0x3353d4c1 -[UIWindow sendEvent:] + 380 49 UIKit
0x3352383d -[UIApplication sendEvent:] + 356 50 UIKit
0x335230e3 _UIApplicationHandleEvent + 5826 51 GraphicsServices
0x33e1322b PurpleEventCallback + 882 52 CoreFoundation
0x30cf9523 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION
+ 38 53 CoreFoundation 0x30cf94c5 CFRunLoopDoSource1 + 140 54 CoreFoundation 0x30cf8313 __CFRunLoopRun + 1370 55 CoreFoundation
0x30c7b4a5 CFRunLoopRunSpecific + 300 56 CoreFoundation
0x30c7b36d CFRunLoopRunInMode + 104 57 GraphicsServices
0x33e12439 GSEventRunModal + 136 58 UIKit
0x33551e7d UIApplicationMain + 1080 59 TrackAboutIOS
0x01696c74
wrapper_managed_to_native_MonoTouch_UIKit_UIApplication_UIApplicationMain_int_string_intptr_intptr
+ 240 60 TrackAboutIOS 0x00098420 TrackAboutIOS_Application_Main_string__ + 152 61 TrackAboutIOS
0x008b0450
wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr
+ 200 62 TrackAboutIOS 0x01d05834 mono_jit_runtime_invoke + 1644 63 TrackAboutIOS
0x01dbd09c mono_runtime_invoke + 128 64 TrackAboutIOS
0x01dc16b4 mono_runtime_exec_main + 436 65 TrackAboutIOS
0x01dc1a74 mono_runtime_run_main + 756 66 TrackAboutIOS
0x01d0c744 mono_jit_exec + 140 67 TrackAboutIOS
0x01e41110 main + 2288 68 TrackAboutIOS
0x0009826c start + 52
There's normally an exception type and message before the line:
Stacktrace:
It usually provides a good hint of the issue. Now the native stack trace also gives a clue here:
0x01e394ac monoeg_g_log + 208 6 TrackAboutIOS
0x01d11664 get_numerous_trampoline + 160 7 TrackAboutIOS
The first line tells us something was printed (or at least it tried to print) in your logs. It you check your device's log (e.g. using Xcode or mtouch --logdev) you should see the message.
The next line makes me think you're running out of trampolines (the error message will tell you which type). Here are the instructions on how to augment the number of trampolines available for your application.
Note: in case this is not trampoline-related please edit your question to add the exception type/message and the content of your device's log.
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.