Strange random crash on device but never during debug

Hi. I recently just launched a new app, and it’s on the store. During the building process, I’ve tested it hundreds of times. I downloaded my app and was playing around with it. It seems to be crashing on a certain screen (game board), but at random times. The app just quits. Opened back up played a couple times, and again a quit crash. Tried on the iPad, and same result.

Went back into the simulator, played 25+ times and no crash. I thought the new debug on device would show the crash, but again played 30+ times on the device in debug mode but no crash. When playing on the device (non debug), I would get between 3 and 5 plays before it would crash, and although the number of times differs, I can never get above 5 full plays without a crash

I was really hoping to get it to crash while debugging so I can find the error, but it simply won’t crash.

I have part of the crash log from my phone below. Only the first part of it. I can’t make heads or tails about this. If you need to see more, lmk

If anyone would like to download the app on the store to see the crash, the link is below. To get to where it crashes for me, Enter, Free, answer all 5 questions, and play the game board. I can get all the way through the game board, but when you play it all the way through a couple of times (you do the trivia and then get to the game board 3 to 5 times or so), it will crash eventually after you stop the board

“app_name”:“Whammy!”,“timestamp”:“2022-04-08 16:53:26.00 -0400”,“app_version”:“1.0.1”,“slice_uuid”:“fa2ac27d-1d11-3844-8ce2-bc9b5fc56435”,“build_version”:“1.0.1.3”,“platform”:2,“bundleID”:“com.visualveggiessoftware.nowhammies”,“share_with_app_devs”:1,“is_first_party”:0,“bug_type”:“309”,“os_version”:“iPhone OS 15.4.1 (19E258)”,“incident_id”:“7F6BB518-229C-4F6D-BEA2-E15943722BC4”,“name”:“Whammy!”}
{
“uptime” : 70000,
“procLaunch” : “2022-04-08 16:41:16.7249 -0400”,
“procRole” : “Foreground”,
“version” : 2,
“userID” : 501,
“deployVersion” : 210,
“modelCode” : “iPhone13,3”,
“procStartAbsTime” : 1689889528009,
“coalitionID” : 830,
“osVersion” : {
“isEmbedded” : true,
“train” : “iPhone OS 15.4.1”,
“releaseType” : “User”,
“build” : “19E258”
},
“captureTime” : “2022-04-08 16:53:26.2837 -0400”,
“incident” : “7F6BB518-229C-4F6D-BEA2-E15943722BC4”,
“bug_type” : “309”,
“pid” : 9679,
“procExitAbsTime” : 1700682949495,
“cpuType” : “ARM-64”,
“procName” : “Whammy!”,
“procPath” : “/private/var/containers/Bundle/Application/78FCC9D5-CC02-4016-9D55-AE286BA0BAD7/Whammy!.app/Whammy!”,
“bundleInfo” : {“CFBundleShortVersionString”:“1.0.1”,“CFBundleVersion”:“1.0.1.3”,“CFBundleIdentifier”:“com.visualveggiessoftware.nowhammies”},
“storeInfo” : {“deviceIdentifierForVendor”:“A218728C-D6ED-4358-A185-883CC9E8A109”,“thirdParty”:true},
“parentProc” : “launchd”,
“parentPid” : 1,
“coalitionName” : “com.visualveggiessoftware.nowhammies”,
“crashReporterKey” : “9535d85d788255aff8d72f555269d7217b503686”,
“basebandVersion” : “2.53.01”,
“isCorpse” : 1,
“exception” : {“codes”:“0x0000000000000000, 0x0000000000000000”,“rawCodes”:[0,0],“type”:“EXC_CRASH”,“signal”:“SIGABRT”},
“asi” : {“libsystem_c.dylib”:[“abort() called”]},
“faultingThread” : 0,
“threads”

Your crash log is incomplete, it isn’t possible to know what went wrong.

Do you have a return True in App.UnhandledException?
If you do, it is most likely a crash using a declare or maybe memory issues.
If you don’t, it could be any type of exception that is causing the app to terminate.

Thanks Jeremie. I am wondering if it is a memory issue. There are a lot of images in the app. Also, to get to some of the screens, I use the following instead of the PushTo and Back for navigation

dim GoToGame as new GameBoardView
app.CurrentLayout.Content = GoToGame

Assuming when I do this, the graphics are left open, and with more plays, the stack just keeps growing. Is there a way to remove the screen you are leaving when navigating to a new screen?

Here’s the full crash log

“app_name”:“Whammy!”,“timestamp”:“2022-04-08 16:53:26.00 -0400”,“app_version”:“1.0.1”,“slice_uuid”:“fa2ac27d-1d11-3844-8ce2-bc9b5fc56435”,“build_version”:“1.0.1.3”,“platform”:2,“bundleID”:“com.visualveggiessoftware.nowhammies”,“share_with_app_devs”:1,“is_first_party”:0,“bug_type”:“309”,“os_version”:“iPhone OS 15.4.1 (19E258)”,“incident_id”:“7F6BB518-229C-4F6D-BEA2-E15943722BC4”,“name”:“Whammy!”}
{
“uptime” : 70000,
“procLaunch” : “2022-04-08 16:41:16.7249 -0400”,
“procRole” : “Foreground”,
“version” : 2,
“userID” : 501,
“deployVersion” : 210,
“modelCode” : “iPhone13,3”,
“procStartAbsTime” : 1689889528009,
“coalitionID” : 830,
“osVersion” : {
“isEmbedded” : true,
“train” : “iPhone OS 15.4.1”,
“releaseType” : “User”,
“build” : “19E258”
},
“captureTime” : “2022-04-08 16:53:26.2837 -0400”,
“incident” : “7F6BB518-229C-4F6D-BEA2-E15943722BC4”,
“bug_type” : “309”,
“pid” : 9679,
“procExitAbsTime” : 1700682949495,
“cpuType” : “ARM-64”,
“procName” : “Whammy!”,
“procPath” : “/private/var/containers/Bundle/Application/78FCC9D5-CC02-4016-9D55-AE286BA0BAD7/Whammy!.app/Whammy!”,
“bundleInfo” : {“CFBundleShortVersionString”:“1.0.1”,“CFBundleVersion”:“1.0.1.3”,“CFBundleIdentifier”:“com.visualveggiessoftware.nowhammies”},
“storeInfo” : {“deviceIdentifierForVendor”:“A218728C-D6ED-4358-A185-883CC9E8A109”,“thirdParty”:true},
“parentProc” : “launchd”,
“parentPid” : 1,
“coalitionName” : “com.visualveggiessoftware.nowhammies”,
“crashReporterKey” : “9535d85d788255aff8d72f555269d7217b503686”,
“basebandVersion” : “2.53.01”,
“isCorpse” : 1,
“exception” : {“codes”:“0x0000000000000000, 0x0000000000000000”,“rawCodes”:[0,0],“type”:“EXC_CRASH”,“signal”:“SIGABRT”},
“asi” : {“libsystem_c.dylib”:[“abort() called”]},
“faultingThread” : 0,
“threads” : [{“triggered”:true,“id”:801224,“threadState”:{“x”:[{“value”:0},{“value”:0},{“value”:0},{“value”:0},{“value”:5308265728},{“value”:32},{“value”:115},{“value”:18446744069414584576},{“value”:1862214969173700740},{“value”:1862214964827190532},{“value”:2043},{“value”:2045},{“value”:112},{“value”:3468732529},{“value”:3470831616},{“value”:22},{“value”:328},{“value”:4378035584,“symbolLocation”:0,“symbol”:"_main_thread"},{“value”:0},{“value”:6},{“value”:259},{“value”:4378035808,“symbolLocation”:224,“symbol”:"_main_thread"},{“value”:1},{“value”:10753458608},{“value”:0},{“value”:1},{“value”:63113990400},{“value”:8730128384,“symbolLocation”:0,“symbol”:"_CFXRegistrationPost.blockOperationClass"},{“value”:1}],“flavor”:“ARM_THREAD_STATE64”,“lr”:{“value”:9132000188},“cpsr”:{“value”:1073745920},“fp”:{“value”:6101479712},“sp”:{“value”:6101479680},“esr”:{“value”:1442840704,“description”:" Address size fault"},“pc”:{“value”:8162663288,“matchesCrashFrame”:1},“far”:{“value”:8685837064}},“queue”:“com.apple.main-thread”,“frames”:[{“imageOffset”:31608,“symbol”:"__pthread_kill",“symbolLocation”:8,“imageIndex”:0},{“imageOffset”:29628,“symbol”:“pthread_kill”,“symbolLocation”:268,“imageIndex”:1},{“imageOffset”:132380,“symbol”:“abort”,“symbolLocation”:168,“imageIndex”:2},{“imageOffset”:72572,“symbol”:“abort_message”,“symbolLocation”:132,“imageIndex”:3},{“imageOffset”:6572,“symbol”:“demangling_terminate_handler()”,“symbolLocation”:312,“imageIndex”:3},{“imageOffset”:117912,“symbol”:"_objc_terminate()",“symbolLocation”:160,“imageIndex”:4},{“imageOffset”:69400,“symbol”:“std::__terminate(void ()())",“symbolLocation”:20,“imageIndex”:3},{“imageOffset”:81596,“symbol”:"__cxa_rethrow",“symbolLocation”:148,“imageIndex”:3},{“imageOffset”:100016,“symbol”:“objc_exception_rethrow”,“symbolLocation”:44,“imageIndex”:4},{“imageOffset”:128932,“symbol”:“CFRunLoopRunSpecific”,“symbolLocation”:836,“imageIndex”:5},{“imageOffset”:4980,“symbol”:“GSEventRunModal”,“symbolLocation”:164,“imageIndex”:6},{“imageOffset”:5324424,“symbol”:"-[UIApplication _run]",“symbolLocation”:1100,“imageIndex”:7},{“imageOffset”:2708972,“symbol”:“UIApplicationMain”,“symbolLocation”:364,“imageIndex”:7},{“imageOffset”:4233404,“symbol”:“runIOSMainLoop()”,“symbolLocation”:112,“imageIndex”:8},{“imageOffset”:163688,“symbol”:“Xojo._RuntimeRun”,“symbolLocation”:36,“imageIndex”:8},{“imageOffset”:2919968,“symbol”:"_Main",“symbolLocation”:440,“imageIndex”:8},{“imageOffset”:2917888,“symbol”:“main”,“symbolLocation”:36,“imageIndex”:8},{“imageOffset”:105700,“symbol”:“start”,“symbolLocation”:520,“imageIndex”:9}]},{“id”:801237,“name”:“com.apple.uikit.eventfetch-thread”,“frames”:[{“imageOffset”:5344,“symbol”:“mach_msg_trap”,“symbolLocation”:8,“imageIndex”:0},{“imageOffset”:6948,“symbol”:“mach_msg”,“symbolLocation”:76,“imageIndex”:0},{“imageOffset”:30752,“symbol”:"__CFRunLoopServiceMachPort",“symbolLocation”:372,“imageIndex”:5},{“imageOffset”:48300,“symbol”:"__CFRunLoopRun",“symbolLocation”:1180,“imageIndex”:5},{“imageOffset”:128696,“symbol”:“CFRunLoopRunSpecific”,“symbolLocation”:600,“imageIndex”:5},{“imageOffset”:99348,“symbol”:"-[NSRunLoop(NSRunLoop) runMode:beforeDate:]",“symbolLocation”:236,“imageIndex”:10},{“imageOffset”:367788,“symbol”:"-[NSRunLoop(NSRunLoop) runUntilDate:]",“symbolLocation”:92,“imageIndex”:10},{“imageOffset”:4775856,“symbol”:"-[UIEventFetcher threadMain]",“symbolLocation”:524,“imageIndex”:7},{“imageOffset”:427356,“symbol”:“NSThread__start”,“symbolLocation”:808,“imageIndex”:10},{“imageOffset”:6572,“symbol”:"_pthread_start",“symbolLocation”:148,“imageIndex”:1},{“imageOffset”:3688,“symbol”:“thread_start”,“symbolLocation”:8,“imageIndex”:1}]},{“id”:801248,“name”:“AVAudioSession Notify Thread”,“frames”:[{“imageOffset”:5344,“symbol”:“mach_msg_trap”,“symbolLocation”:8,“imageIndex”:0},{“imageOffset”:6948,“symbol”:“mach_msg”,“symbolLocation”:76,“imageIndex”:0},{“imageOffset”:30752,“symbol”:"__CFRunLoopServiceMachPort",“symbolLocation”:372,“imageIndex”:5},{“imageOffset”:48300,“symbol”:"__CFRunLoopRun",“symbolLocation”:1180,“imageIndex”:5},{“imageOffset”:128696,“symbol”:“CFRunLoopRunSpecific”,“symbolLocation”:600,“imageIndex”:5},{“imageOffset”:28420,“symbol”:"CADeprecated::GenericRunLoopThread::Entry(void)”,“symbolLocation”:164,“imageIndex”:11},{“imageOffset”:67824,“symbol”:“CADeprecated::CAPThread::Entry(CADeprecated::CAPThread*)”,“symbolLocation”:92,“imageIndex”:11},{“imageOffset”:6572,“symbol”:"_pthread_start",“symbolLocation”:148,“imageIndex”:1},{“imageOffset”:3688,“symbol”:“thread_start”,“symbolLocation”:8,“imageIndex”:1}]},{“id”:801256,“name”:“com.apple.coreaudio.AQClient”,“frames”:[{“imageOffset”:5344,“symbol”:“mach_msg_trap”,“symbolLocation”:8,“imageIndex”:0},{“imageOffset”:6948,“symbol”:“mach_msg”,“symbolLocation”:76,“imageIndex”:0},{“imageOffset”:30752,“symbol”:"__CFRunLoopServiceMachPort",“symbolLocation”:372,“imageIndex”:5},{“imageOffset”:48300,“symbol”:"__CFRunLoopRun",“symbolLocation”:1180,“imageIndex”:5},{“imageOffset”:128696,“symbol”:“CFRunLoopRunSpecific”,“symbolLocation”:600,“imageIndex”:5},{“imageOffset”:1894420,“symbol”:“CADeprecated::GenericRunLoopThread::Entry(void*)”,“symbolLocation”:164,“imageIndex”:12},{“imageOffset”:81992,“symbol”:“CADeprecated::CAPThread::Entry(CADeprecated::CAPThread*)”,“symbolLocation”:92,“imageIndex”:13},{“imageOffset”:6572,“symbol”:"_pthread_start",“symbolLocation”:148,“imageIndex”:1},{“imageOffset”:3688,“symbol”:“thread_start”,“symbolLocation”:8,“imageIndex”:1}]},{“id”:804161,“frames”:[{“imageOffset”:3668,“symbol”:“start_wqthread”,“symbolLocation”:0,“imageIndex”:1}]}],
“usedImages” : [
{
“source” : “P”,
“arch” : “arm64e”,
“base” : 8162631680,
“size” : 221184,
“uuid” : “c2fcc058-7480-3c14-b479-0064a3f843e3”,
“path” : “/usr/lib/system/libsystem_kernel.dylib”,
“name” : “libsystem_kernel.dylib”
},
{
“source” : “P”,
“arch” : “arm64e”,
“base” : 9131970560,
“size” : 49152,
“uuid” : “b48efcbe-d4f7-308b-a3fa-172e0ea78e33”,
“path” : “/usr/lib/system/libsystem_pthread.dylib”,
“name” : “libsystem_pthread.dylib”
},
{
“source” : “P”,
“arch” : “arm64e”,
“base” : 7413956608,
“size” : 524288,
“uuid” : “b0793d31-ed1b-3549-b861-92a10841bf68”,
“path” : “/usr/lib/system/libsystem_c.dylib”,
“name” : “libsystem_c.dylib”
},
{
“source” : “P”,
“arch” : “arm64e”,
“base” : 7645282304,
“size” : 98304,
“uuid” : “fe24cee6-11ec-3951-aa18-32594f98ef0d”,
“path” : “/usr/lib/libc++abi.dylib”,
“name” : “libc++abi.dylib”
},
{
“source” : “P”,
“arch” : “arm64e”,
“base” : 7644168192,
“size” : 249856,
“uuid” : “a196a0f6-cadb-325b-bc1f-5965e670f9b6”,
“path” : “/usr/lib/libobjc.A.dylib”,
“name” : “libobjc.A.dylib”
},
{
“source” : “P”,
“arch” : “arm64e”,
“base” : 7227981824,
“size” : 4546560,
“uuid” : “d2716f2f-688b-3d51-ba8b-17e6553b209e”,
“path” : “/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation”,
“name” : “CoreFoundation”
},
{
“source” : “P”,
“arch” : “arm64e”,
“base” : 7698497536,
“size” : 36864,
“uuid” : “75a910dc-87a4-3b3a-8c0e-a868b945f5d4”,
“path” : “/System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices”,
“name” : “GraphicsServices”
},
{
“source” : “P”,
“arch” : “arm64e”,
“base” : 7266193408,
“size” : 25800704,
“uuid” : “e6e89bb5-b586-3725-bf8f-4c85dcd443bd”,
“path” : “/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore”,
“name” : “UIKitCore”
},
{
“source” : “P”,
“arch” : “arm64”,
“base” : 4365402112,
“size” : 5406720,
“uuid” : “fa2ac27d-1d11-3844-8ce2-bc9b5fc56435”,
“path” : “/private/var/containers/Bundle/Application/78FCC9D5-CC02-4016-9D55-AE286BA0BAD7/Whammy!.app/Whammy!”,
“name” : “Whammy!”
},
{
“source” : “P”,
“arch” : “arm64e”,
“base” : 4377591808,
“size” : 360448,
“uuid” : “d16b72c0-d619-3e48-9262-2c10a1d3066f”,
“path” : “/usr/lib/dyld”,
“name” : “dyld”
},
{
“source” : “P”,
“arch” : “arm64e”,
“base” : 7253073920,
“size” : 3182592,
“uuid” : “feeef9b1-b0e6-3561-adfa-3ef0302d23f8”,
“path” : “/System/Library/Frameworks/Foundation.framework/Foundation”,
“name” : “Foundation”
},
{
“source” : “P”,
“arch” : “arm64e”,
“base” : 7385276416,
“size” : 176128,
“uuid” : “37d438b9-289d-39b0-8b67-1b38de65305f”,
“path” : “/System/Library/PrivateFrameworks/AudioSession.framework/AudioSession”,
“name” : “AudioSession”
},
{
“source” : “P”,
“arch” : “arm64e”,
“base” : 7409074176,
“size” : 2686976,
“uuid” : “086d5b9a-0afa-3f34-bd55-e09e64a534fa”,
“path” : “/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox”,
“name” : “AudioToolbox”
},
{
“source” : “P”,
“arch” : “arm64e”,
“base” : 7654395904,
“size” : 212992,
“uuid” : “bd379c21-5162-3f0c-b804-c20856d9ec33”,
“path” : “/usr/lib/libAudioToolboxUtility.dylib”,
“name” : “libAudioToolboxUtility.dylib”
}
],
“sharedCache” : {
“base” : 7224492032,
“size” : 2568536064,
“uuid” : “08b1038d-53e4-39b7-afc3-fb85774fba55”
},
“vmSummary” : “ReadOnly portion of Libraries: Total=982.5M resident=0K(0%) swapped_out_or_unallocated=982.5M(100%)\nWritable regions: Total=684.4M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=684.4M(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nAccelerate framework 128K 1 \nActivity Tracing 256K 1 \nColorSync 320K 20 \nCoreAnimation 11.5M 56 \nFoundation 16K 1 \nImage IO 83.3M 64 \nKernel Alloc Once 32K 1 \nMALLOC 588.9M 302 \nMALLOC guard page 128K 8 \nSTACK GUARD 80K 5 \nStack 3184K 5 \nVM_ALLOCATE 352K 8 \n__AUTH 5842K 623 \n__AUTH_CONST 30.7M 791 \n__CTF 759 1 \n__DATA 26.7M 787 \n__DATA_CONST 32.1M 798 \n__DATA_DIRTY 3019K 664 \n__FONT_DATA 4K 1 \n__LINKEDIT 192.3M 9 \n__OBJC_CONST 7908K 581 \n__OBJC_RO 92.1M 1 \n__OBJC_RW 3536K 1 \n__TEXT 790.2M 813 \n__UNICODE 592K 1 \n__XOJO 32K 1 \ndyld private memory 1392K 5 \nmapped file 49.2M 80 \nshared memory 48K 3 \n=========== ======= ======= \nTOTAL 1.9G 5632 \n”,
“legacyInfo” : {
“threadTriggered” : {
“queue” : “com.apple.main-thread”
}
},
“trialInfo” : {
“rollouts” : [
{
“rolloutId” : “6112dda2fc54bc3389840642”,
“factorPackIds” : {
“SIRI_DICTATION_ASSETS” : “624b7308273d707ffc05b1eb”
},
“deploymentId” : 240000101
},
{
“rolloutId” : “607844aa04477260f58a8077”,
“factorPackIds” : {
“SIRI_MORPHUN_ASSETS” : “6103050cbfe6dc472e1c982a”
},
“deploymentId” : 240000066
}
],
“experiments” : [

]

Try connecting your device to your Mac, open Xcode, go to Devices & Simulators, click on the device and click Open Logs. There should be one or more crash logs in there that would be much more helpful.

Also, have you implemented the memory warning event on the App class?

You can check if this is the fault using Instruments.
First open Xcode then right-click the dock icon and select Open Developer Tool > Instruments.

Use the Allocations or Leaks profiling template.

EDIT:
In the App.LowMemoryWarning you can get the total memory used like this:

Dim mem As Double = Runtime.MemoryUsed/1024/1024 //Value in MB

If your app has some sort of logging or exception management such as Sentry.io getting the memory usage can be useful.

Here is the log from Xcode. Jeremie, I will check your suggestion next

Incident Identifier: D24419F5-3056-42F6-940D-EA1B4B10C410
CrashReporter Key: 9535d85d788255aff8d72f555269d7217b503686
Hardware Model: iPhone13,3
Process: Whammy! [9789]
Path: /private/var/containers/Bundle/Application/78FCC9D5-CC02-4016-9D55-AE286BA0BAD7/Whammy!.app/Whammy!
Identifier: com.visualveggiessoftware.nowhammies
Version: 1.0.1 (1.0.1.3)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.visualveggiessoftware.nowhammies [830]

Date/Time: 2022-04-08 21:55:37.0586 -0400
Launch Time: 2022-04-08 17:01:25.1728 -0400
OS Version: iPhone OS 15.4.1 (19E258)
Release Type: User
Baseband Version: 2.53.01
Report Version: 104

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0

Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x1e6885b78 __pthread_kill + 8
1 libsystem_pthread.dylib 0x2204f43bc pthread_kill + 268
2 libsystem_c.dylib 0x1b9ea051c abort + 168
3 libsystem_c.dylib 0x1b9ef7998 __assert_rtn + 272
4 Whammy! 0x105182e6c UnhandledException(RuntimeObject*) + 444
5 Whammy! 0x1051bc76c -[XOJTimerAdapter timerFireMethod:] + 160
6 Foundation 0x1b05440bc __NSFireTimer + 104
7 CoreFoundation 0x1aedd3168 CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION + 32
8 CoreFoundation 0x1aed57144 __CFRunLoopDoTimer + 1064
9 CoreFoundation 0x1aed518f0 __CFRunLoopDoTimers + 320
10 CoreFoundation 0x1aed2ffa0 __CFRunLoopRun + 1936
11 CoreFoundation 0x1aed436b8 CFRunLoopRunSpecific + 600
12 GraphicsServices 0x1caddd374 GSEventRunModal + 164
13 UIKitCore 0x1b16a8e88 -[UIApplication _run] + 1100
14 UIKitCore 0x1b142a5ec UIApplicationMain + 364
15 Whammy! 0x1051858bc runIOSMainLoop() + 112
16 Whammy! 0x104da3f68 Xojo._RuntimeRun + 36
17 Whammy! 0x105044e20 _Main + 440
18 Whammy! 0x105044600 main + 36
19 dyld 0x105821ce4 start + 520

Thread 1 name: com.apple.uikit.eventfetch-thread
Thread 1:
0 libsystem_kernel.dylib 0x1e687f4e0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1e687fb24 mach_msg + 76
2 CoreFoundation 0x1aed2b820 __CFRunLoopServiceMachPort + 372
3 CoreFoundation 0x1aed2fcac __CFRunLoopRun + 1180
4 CoreFoundation 0x1aed436b8 CFRunLoopRunSpecific + 600
5 Foundation 0x1b052a414 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 236
6 Foundation 0x1b056bcac -[NSRunLoop(NSRunLoop) runUntilDate:] + 92
7 UIKitCore 0x1b1622fb0 -[UIEventFetcher threadMain] + 524
8 Foundation 0x1b057a55c NSThread__start + 808
9 libsystem_pthread.dylib 0x2204ee9ac _pthread_start + 148
10 libsystem_pthread.dylib 0x2204ede68 thread_start + 8

Thread 2 name: AVAudioSession Notify Thread
Thread 2:
0 libsystem_kernel.dylib 0x1e687f4e0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1e687fb24 mach_msg + 76
2 CoreFoundation 0x1aed2b820 __CFRunLoopServiceMachPort + 372
3 CoreFoundation 0x1aed2fcac __CFRunLoopRun + 1180
4 CoreFoundation 0x1aed436b8 CFRunLoopRunSpecific + 600
5 AudioSession 0x1b832cf04 CADeprecated::GenericRunLoopThread::Entry(void*) + 164
6 AudioSession 0x1b83368f0 CADeprecated::CAPThread::Entry(CADeprecated::CAPThread*) + 92
7 libsystem_pthread.dylib 0x2204ee9ac _pthread_start + 148
8 libsystem_pthread.dylib 0x2204ede68 thread_start + 8

Thread 3 name: com.apple.coreaudio.AQClient
Thread 3:
0 libsystem_kernel.dylib 0x1e687f4e0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1e687fb24 mach_msg + 76
2 CoreFoundation 0x1aed2b820 __CFRunLoopServiceMachPort + 372
3 CoreFoundation 0x1aed2fcac __CFRunLoopRun + 1180
4 CoreFoundation 0x1aed436b8 CFRunLoopRunSpecific + 600
5 AudioToolbox 0x1b9ba6814 CADeprecated::GenericRunLoopThread::Entry(void*) + 164
6 libAudioToolboxUtility.dylib 0x1c83e1048 CADeprecated::CAPThread::Entry(CADeprecated::CAPThread*) + 92
7 libsystem_pthread.dylib 0x2204ee9ac _pthread_start + 148
8 libsystem_pthread.dylib 0x2204ede68 thread_start + 8

Thread 4:
0 libsystem_pthread.dylib 0x2204ede54 start_wqthread + 0

Thread 5:
0 libsystem_pthread.dylib 0x2204ede54 start_wqthread + 0

Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000
x4: 0x0000000000000000 x5: 0x000000016b080c68 x6: 0x0000000000000005 x7: 0x00000001aef61524
x8: 0x126437a369f51c62 x9: 0x126437a26c7259e2 x10: 0xcccccccccccccccd x11: 0x000000000000000a
x12: 0x0000000000000000 x13: 0x0000000000000031 x14: 0x000000000000fffd x15: 0x0000000000000003
x16: 0x0000000000000148 x17: 0x0000000105874580 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x0000000000000103 x21: 0x0000000105874660 x22: 0x0000000105724000 x23: 0x000000010523b3f0
x24: 0x0000000205b75000 x25: 0xa25c7a8105044600 x26: 0x00000001052c0ea0 x27: 0x000000016b081700
x28: 0x00000002085b3000 fp: 0x000000016b081620 lr: 0x00000002204f43bc
sp: 0x000000016b081600 pc: 0x00000001e6885b78 cpsr: 0x40001000
far: 0x0000000205b75b08 esr: 0x56000080 Address size fault

Binary Images:
0x1e687e000 - 0x1e68b3fff libsystem_kernel.dylib arm64e /usr/lib/system/libsystem_kernel.dylib
0x2204ed000 - 0x2204f8fff libsystem_pthread.dylib arm64e /usr/lib/system/libsystem_pthread.dylib
0x1b9e80000 - 0x1b9efffff libsystem_c.dylib arm64e /usr/lib/system/libsystem_c.dylib
0x104d7c000 - 0x1052a3fff Whammy! arm64 /private/var/containers/Bundle/Application/78FCC9D5-CC02-4016-9D55-AE286BA0BAD7/Whammy!.app/Whammy!
0x1b0512000 - 0x1b081afff Foundation arm64e /System/Library/Frameworks/Foundation.framework/Foundation
0x1aed24000 - 0x1af179fff CoreFoundation arm64e /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x1caddc000 - 0x1cade4fff GraphicsServices arm64e <75a910dc87a43b3a8c0ea868b945f5d4> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
0x1b1195000 - 0x1b2a2ffff UIKitCore arm64e /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore
0x105808000 - 0x10585ffff dyld arm64e /usr/lib/dyld
0x1b8326000 - 0x1b8350fff AudioSession arm64e <37d438b9289d39b08b671b38de65305f> /System/Library/PrivateFrameworks/AudioSession.framework/AudioSession
0x1b99d8000 - 0x1b9c67fff AudioToolbox arm64e <086d5b9a0afa3f34bd55e09e64a534fa> /System/Library/Frameworks/AudioToolbox.framework/AudioToolbox
0x1c83cd000 - 0x1c8400fff libAudioToolboxUtility.dylib arm64e /usr/lib/libAudioToolboxUtility.dylib

EOF

According to your crash log, @Greg_O correct me if I’m wrong, it seems you have a:

Timer.CallLater that is not cancelled when a screen is closed or replaced with app.CurrentLayout.Content = GoToGame

1 Like

This here, right? I think I know where this is

Yes, that’s it.

Thanks for the help guys. I will be doing some additional work and testing on this now that I have an idea on where to start. Taking down the app from the store till I get this figured out

So I believe I took care of the looping timer issue. I got rid of the one and made sure all others have appropriate mode.off. Tested on the device, and it crashed again. No crashes in simulator or when debugging on the device. Only when the app is built and then tested on the device. Here is the latest crash report

I see there is an UnhandledException on line 4 of thread 0, and there’s this now:
CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28

How do I track this down? I read some other posts about looking at the dSYM file. Would this help? What app is used to open and read this file?

Incident Identifier: CC587211-1A85-4694-BB73-D11F01652BC3
CrashReporter Key: 9535d85d788255aff8d72f555269d7217b503686
Hardware Model: iPhone13,3
Process: Whammy! [22631]
Path: /private/var/containers/Bundle/Application/914617B0-46E7-4150-A87F-A6F167C5F10B/Whammy!.app/Whammy!
Identifier: com.visualveggiessoftware.nowhammies
Version: 1.0.1 (1.0.1.6)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.visualveggiessoftware.nowhammies [1363]

Date/Time: 2022-04-11 10:54:34.7703 -0400
Launch Time: 2022-04-11 10:43:49.7259 -0400
OS Version: iPhone OS 15.4.1 (19E258)
Release Type: User
Baseband Version: 2.53.01
Report Version: 104

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0

Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x1e6885b78 __pthread_kill + 8
1 libsystem_pthread.dylib 0x2204f43bc pthread_kill + 268
2 libsystem_c.dylib 0x1b9ea051c abort + 168
3 libsystem_c.dylib 0x1b9ef7998 __assert_rtn + 272
4 Whammy! 0x104c5ae98 UnhandledException(RuntimeObject*) + 444
5 Whammy! 0x104c87a04 -[XOJCanvasView invokeTouchEvent:withTouches:event:] + 664
6 Whammy! 0x104c87d30 -[XOJCanvasView touchesEnded:withEvent:] + 80
7 UIKitCore 0x1b1305e60 -[UIWindow _sendTouchesForEvent:] + 980
8 UIKitCore 0x1b1337100 -[UIWindow sendEvent:] + 4408
9 UIKitCore 0x1b14e4ae4 -[UIApplication sendEvent:] + 824
10 UIKitCore 0x1b130a9ec __dispatchPreprocessedEventFromEventQueue + 7896
11 UIKitCore 0x1b12ff71c __processEventQueue + 6616
12 UIKitCore 0x1b214f470 updateCycleEntry + 176
13 UIKitCore 0x1b196d084 _UIUpdateSequenceRun + 84
14 UIKitCore 0x1b1ff2cb0 schedulerStepScheduledMainSection + 144
15 UIKitCore 0x1b1ff2478 runloopSourceCallback + 92
16 CoreFoundation 0x1aeddff04 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 28
17 CoreFoundation 0x1aedf0c90 __CFRunLoopDoSource0 + 208
18 CoreFoundation 0x1aed2a184 __CFRunLoopDoSources0 + 268
19 CoreFoundation 0x1aed2fb4c __CFRunLoopRun + 828
20 CoreFoundation 0x1aed436b8 CFRunLoopRunSpecific + 600
21 GraphicsServices 0x1caddd374 GSEventRunModal + 164
22 UIKitCore 0x1b16a8e88 -[UIApplication _run] + 1100
23 UIKitCore 0x1b142a5ec UIApplicationMain + 364
24 Whammy! 0x104c5d8e8 runIOSMainLoop() + 112
25 Whammy! 0x10487e458 Xojo._RuntimeRun + 36
26 Whammy! 0x104b1d040 _Main + 440
27 Whammy! 0x104b1c820 main + 36
28 dyld 0x1051f9ce4 start + 520

Thread 1 name: com.apple.uikit.eventfetch-thread
Thread 1:
0 libsystem_kernel.dylib 0x1e687f4e0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1e687fb24 mach_msg + 76
2 CoreFoundation 0x1aed2b820 __CFRunLoopServiceMachPort + 372
3 CoreFoundation 0x1aed2fcac __CFRunLoopRun + 1180
4 CoreFoundation 0x1aed436b8 CFRunLoopRunSpecific + 600
5 Foundation 0x1b052a414 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 236
6 Foundation 0x1b056bcac -[NSRunLoop(NSRunLoop) runUntilDate:] + 92
7 UIKitCore 0x1b1622fb0 -[UIEventFetcher threadMain] + 524
8 Foundation 0x1b057a55c NSThread__start + 808
9 libsystem_pthread.dylib 0x2204ee9ac _pthread_start + 148
10 libsystem_pthread.dylib 0x2204ede68 thread_start + 8

Thread 2 name: AVAudioSession Notify Thread
Thread 2:
0 libsystem_kernel.dylib 0x1e687f4e0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1e687fb24 mach_msg + 76
2 CoreFoundation 0x1aed2b820 __CFRunLoopServiceMachPort + 372
3 CoreFoundation 0x1aed2fcac __CFRunLoopRun + 1180
4 CoreFoundation 0x1aed436b8 CFRunLoopRunSpecific + 600
5 AudioSession 0x1b832cf04 CADeprecated::GenericRunLoopThread::Entry(void*) + 164
6 AudioSession 0x1b83368f0 CADeprecated::CAPThread::Entry(CADeprecated::CAPThread*) + 92
7 libsystem_pthread.dylib 0x2204ee9ac _pthread_start + 148
8 libsystem_pthread.dylib 0x2204ede68 thread_start + 8

Thread 3 name: com.apple.coreaudio.AQClient
Thread 3:
0 libsystem_kernel.dylib 0x1e687f4e0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1e687fb24 mach_msg + 76
2 CoreFoundation 0x1aed2b820 __CFRunLoopServiceMachPort + 372
3 CoreFoundation 0x1aed2fcac __CFRunLoopRun + 1180
4 CoreFoundation 0x1aed436b8 CFRunLoopRunSpecific + 600
5 AudioToolbox 0x1b9ba6814 CADeprecated::GenericRunLoopThread::Entry(void*) + 164
6 libAudioToolboxUtility.dylib 0x1c83e1048 CADeprecated::CAPThread::Entry(CADeprecated::CAPThread*) + 92
7 libsystem_pthread.dylib 0x2204ee9ac _pthread_start + 148
8 libsystem_pthread.dylib 0x2204ede68 thread_start + 8

Thread 4:
0 libsystem_pthread.dylib 0x2204ede54 start_wqthread + 0

Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000
x4: 0x0000000000000000 x5: 0x000000016b5a8648 x6: 0x0000000000000005 x7: 0x00000001aef61524
x8: 0x181f63c9144ed99c x9: 0x181f63c8116a1c1c x10: 0xcccccccccccccccd x11: 0x000000000000000a
x12: 0x0000000000000000 x13: 0x0000000000000031 x14: 0x000000000000fffd x15: 0x0000000000000003
x16: 0x0000000000000148 x17: 0x000000010524c580 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x0000000000000103 x21: 0x000000010524c660 x22: 0x000000010bfe8000 x23: 0x0000000104d13410
x24: 0x0000000205b75000 x25: 0x96641b8104b1c820 x26: 0x0000000104d98e90 x27: 0x000000016b5a90e0
x28: 0x0000000000000001 fp: 0x000000016b5a9000 lr: 0x00000002204f43bc
sp: 0x000000016b5a8fe0 pc: 0x00000001e6885b78 cpsr: 0x40001000
far: 0x000000010bfe8000 esr: 0x56000080 Address size fault

Binary Images:
0x1e687e000 - 0x1e68b3fff libsystem_kernel.dylib arm64e /usr/lib/system/libsystem_kernel.dylib
0x2204ed000 - 0x2204f8fff libsystem_pthread.dylib arm64e /usr/lib/system/libsystem_pthread.dylib
0x1b9e80000 - 0x1b9efffff libsystem_c.dylib arm64e /usr/lib/system/libsystem_c.dylib
0x104854000 - 0x104d7bfff Whammy! arm64 <049e2b54b19e3a5980e16ec0cddf4994> /private/var/containers/Bundle/Application/914617B0-46E7-4150-A87F-A6F167C5F10B/Whammy!.app/Whammy!
0x1b1195000 - 0x1b2a2ffff UIKitCore arm64e /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore
0x1aed24000 - 0x1af179fff CoreFoundation arm64e /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x1caddc000 - 0x1cade4fff GraphicsServices arm64e <75a910dc87a43b3a8c0ea868b945f5d4> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
0x1051e0000 - 0x105237fff dyld arm64e /usr/lib/dyld
0x1b0512000 - 0x1b081afff Foundation arm64e /System/Library/Frameworks/Foundation.framework/Foundation
0x1b8326000 - 0x1b8350fff AudioSession arm64e <37d438b9289d39b08b671b38de65305f> /System/Library/PrivateFrameworks/AudioSession.framework/AudioSession
0x1b99d8000 - 0x1b9c67fff AudioToolbox arm64e <086d5b9a0afa3f34bd55e09e64a534fa> /System/Library/Frameworks/AudioToolbox.framework/AudioToolbox
0x1c83cd000 - 0x1c8400fff libAudioToolboxUtility.dylib arm64e /usr/lib/libAudioToolboxUtility.dylib

EOF

That is not necessary because your crash log is already symbolicated.

The issue here seems to be in a Canvas.PointerUp
You have an exception in there.

4 Whammy! 0x104c5ae98 UnhandledException(RuntimeObject*) + 444
5 Whammy! 0x104c87a04 -[XOJCanvasView invokeTouchEvent:withTouches:event:] + 664
6 Whammy! 0x104c87d30 -[XOJCanvasView touchesEnded:withEvent:] + 80

EDIT: I sent you a PM

Responded, thank you!

Yes, I have several canvases that use a PointerUp. This might be a challenge to try and track down which one is to blame