IDE Crash in 2021r3

Hi Xojoers,

A crash report is not a language I read. I hope someone can bring some light to what happened.

Computer: MackookPro 2021 M1Pro
OS: Monterey 12.0.1
Target: Desktop

I was happily debugging my app using step by step and got “AWS_Backup.debug quit unexpectedly.” I started developing in a older version - 2021r2.1-, but since debugging had the IDE quitting once in a while, I thought I should use the latest version.

I tried hard to attach the dumps file but was denied the file extension, .rft and pdf. So here it is embedded.


Translated Report (Full Report Below)

Process: AWS_Backup.debug [23143]
Path: /Users/USER/Documents/*/AWS_Backup.debug.app/Contents/MacOS/AWS_Backup.debug
Identifier: AWS_Backup.debug
Version: ???
Code Type: X86-64 (Translated)
Parent Process: launchd [1]
User ID: 501

Date/Time: 2021-12-08 17:01:19.5228 -0500
OS Version: macOS 12.0.1 (21A559)
Report Version: 12
Anonymous UUID: D986E5FB-E181-43B3-B8CA-051DAA7F12DB

Sleep/Wake UUID: 27DFF080-956C-4747-84FA-89EE7E6605F9

Time Awake Since Boot: 160000 seconds
Time Since Wake: 4771 seconds

System Integrity Protection: enabled

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

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

Application Specific Information:
Performing @selector(performClick:) from sender XOJButton 0x7fefa3f19d90
AWS_Backup.debug(23143,0x2055fc600) malloc: *** error for object 0x30e4cb380: pointer being freed was not allocated
abort() called

Kernel Triage:
VM - pmap_enter failed with resource shortage

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 ??? 0x7ff891896940 ???
1 libsystem_kernel.dylib 0x7ff8013db112 __pthread_kill + 10
2 libsystem_c.dylib 0x7ff80135dd10 abort + 123
3 libsystem_malloc.dylib 0x7ff8012383e2 malloc_vreport + 548
4 libsystem_malloc.dylib 0x7ff80123b5ed malloc_report + 151
5 XojoFramework 0x10e778766 StringOpsClassic::MidNBytes(StringStorageBase*, long long, long long) + 234
6 XojoFramework 0x10e7f3ace 0x10e656000 + 1694414
7 XojoFramework 0x10e7f2a57 DSDelegate::DebuggerConnectionMessage(DebuggerPacketParser const&) + 17
8 XojoFramework 0x10e7f0d75 DebuggerConnection::ProcessMessage(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >) + 67
9 XojoFramework 0x10e8c4a80 TCPSocketConnection::SocketDataReceived(TCPSocket*) + 328
10 XojoFramework 0x10e7765ef TCPSocket::FireEvents() + 123
11 XojoFramework 0x10e773334 TCPSocketPosix::Poll() + 1114
12 XojoFramework 0x10e7f9565 0x10e656000 + 1717605
13 XojoFramework 0x10e7f93ea DebuggerHook + 591
14 AWS_Backup.debug 0x10506c862 Window1.Window1.AutomatedBackup%i8%o<Window1.Window1> + 2306 (/Window1:1253)
15 AWS_Backup.debug 0x105052979 Window1.Window1.BtnTest_Action%%o<Window1.Window1>o + 313 (/Window1:513)
16 AWS_Backup.debug 0x105073cd4 Delegate.IM_Invoke%%o + 52
17 AWS_Backup.debug 0x105073d24 AddHandler.Stub.15%% + 52
18 AppKit 0x7ff80402c64d -[NSApplication(NSResponder) sendAction:to:from:] + 288
19 AppKit 0x7ff80402c4f4 -[NSControl sendAction:to:] + 86
20 AppKit 0x7ff80402c426 __26-[NSCell _sendActionFrom:]_block_invoke + 131
21 AppKit 0x7ff80402c32f -[NSCell _sendActionFrom:] + 171
22 AppKit 0x7ff80402c276 -[NSButtonCell _sendActionFrom:] + 96
23 AppKit 0x7ff8040290e4 NSControlTrackMouse + 1817
24 AppKit 0x7ff8040289a7 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 121
25 AppKit 0x7ff80402887a -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 679
26 AppKit 0x7ff804027c48 -[NSControl mouseDown:] + 678
27 XojoFramework 0x10e73bf16 0x10e656000 + 941846
28 AppKit 0x7ff804026127 -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 4949
29 AppKit 0x7ff803f9a0a4 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 2582
30 AppKit 0x7ff803f9946e -[NSWindow(NSEventRouting) sendEvent:] + 352
31 XojoFramework 0x10e747d1b 0x10e656000 + 990491
32 AppKit 0x7ff803f9783c -[NSApplication(NSEvent) sendEvent:] + 352
33 XojoFramework 0x10e737ba9 0x10e656000 + 924585
34 AWS_Backup.debug 0x104f2f715 Application._CallFunctionWithExceptionHandling%%op + 181
35 XojoFramework 0x10e8c3b90 CallFunctionWithExceptionHandling(void (*)()) + 254
36 XojoFramework 0x10e737b27 0x10e656000 + 924455
37 AppKit 0x7ff80425080b -[NSApplication _handleEvent:] + 65
38 AppKit 0x7ff803e1837e -[NSApplication run] + 623
39 XojoFramework 0x10e8c247e RuntimeRun + 41
40 AWS_Backup.debug 0x104fdd603 REALbasic._RuntimeRun + 19
41 AWS_Backup.debug 0x10509b42e _Main + 846 (/#main:134)
42 AWS_Backup.debug 0x10509a3d3 main + 19
43 dyld 0x2055894fe start + 462
44 ??? 0x3 ???

Thread 1:: com.apple.rosetta.exceptionserver
0 runtime 0x7ff7ffdd98e4 0x7ff7ffdd5000 + 18660
1 runtime 0x7ff7ffde6928 0x7ff7ffdd5000 + 71976
2 runtime 0x7ff7ffde80a4 0x7ff7ffdd5000 + 77988

Thread 2:: com.apple.NSEventThread
0 ??? 0x7ff891896940 ???
1 libsystem_kernel.dylib 0x7ff8013d4aba mach_msg_trap + 10
2 CoreFoundation 0x7ff8014d7d51 __CFRunLoopServiceMachPort + 319
3 CoreFoundation 0x7ff8014d640f __CFRunLoopRun + 1329
4 CoreFoundation 0x7ff8014d5809 CFRunLoopRunSpecific + 567
5 AppKit 0x7ff803f95cec _NSEventThread + 132
6 libsystem_pthread.dylib 0x7ff801411514 _pthread_start + 125
7 libsystem_pthread.dylib 0x7ff80140d02f thread_start + 15

Thread 3:
0 runtime 0x7ff7ffdf7814 0x7ff7ffdd5000 + 141332

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000000000000000 rcx: 0x0000000000000000 rdx: 0x0000000000000000
rdi: 0x000000010def8028 rsi: 0x0000000000000003 rbp: 0x0000000000000000 rsp: 0x0000000000000000
r8: 0x00000002055fc600 r9: 0x0000000000000000 r10: 0x0000000000000000 r11: 0x0000000000000200
r12: 0x0000000000000103 r13: 0x0000000000000050 r14: 0x0000000000000006 r15: 0x0000000000000016
rip: rfl: 0x0000000000000283
tmp0: 0xffffffffffffffff tmp1: 0x00007ff891896914 tmp2: 0x00007ff8013db108

Binary Images:
0x0 - 0xffffffffffffffff ??? () <00000000-0000-0000-0000-000000000000> ???
0x7ff8013d4000 - 0x7ff80140afff libsystem_kernel.dylib (
) <12bd6f13-c452-35ee-9069-51befef29f1a> /usr/lib/system/libsystem_kernel.dylib
0x7ff8012dc000 - 0x7ff801364fff libsystem_c.dylib () <991f58b7-b4c0-3c3a-84a8-c9c571de5a27> /usr/lib/system/libsystem_c.dylib
0x7ff801229000 - 0x7ff801254fff libsystem_malloc.dylib (
) <896704b7-96b0-32b4-986d-a6bcd5c816b4> /usr/lib/system/libsystem_malloc.dylib
0x10e656000 - 0x10e9e5fff XojoFramework () <16f43cc9-e9b8-341d-9222-881a26e8c8b0> /Users/USER/Documents//AWS_Backup.debug.app/Contents/Frameworks/XojoFramework.framework/Versions/A/XojoFramework
0x104e99000 - 0x1050befff AWS_Backup.debug () <3be8b4fb-b530-37a1-a35f-f3d64a00ef4a> /Users/USER/Documents//AWS_Backup.debug.app/Contents/MacOS/AWS_Backup.debug
0x7ff803de9000 - 0x7ff804c75fff com.apple.AppKit (6.9) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x205584000 - 0x2055effff dyld () <1a6ae033-9438-33c0-8077-988fd885250a> /usr/lib/dyld
0x7ff7ffdd5000 - 0x7ff7ffe04fff runtime (
) <9f5d65be-d8d0-3979-bb05-e651a67e785c> /usr/libexec/rosetta/runtime
0x7ff801458000 - 0x7ff801958fff com.apple.CoreFoundation (6.9) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7ff80140b000 - 0x7ff801416fff libsystem_pthread.dylib (*) <29a2750e-f31b-3630-8761-242a6bc3e99e> /usr/lib/system/libsystem_pthread.dylib

External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 0
thread_create: 0
thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=1.1G resident=0K(0%) swapped_out_or_unallocated=1.1G(100%)
Writable regions: Total=2.0G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=2.0G(100%)

                            VIRTUAL   REGION 

REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
Accelerate framework 256K 2
Activity Tracing 256K 1
CG backing stores 4800K 8
CG image 124K 11
ColorSync 240K 27
CoreAnimation 23.5M 59
CoreGraphics 8K 2
CoreUI image data 2836K 21
Foundation 40K 2
Image IO 92K 1
Kernel Alloc Once 8K 1
MALLOC 316.4M 61
MALLOC guard page 192K 9
MALLOC_MEDIUM (reserved) 1.2G 10 reserved VM address space (unallocated)
MALLOC_NANO (reserved) 384.0M 1 reserved VM address space (unallocated)
Rosetta Arena 4096K 2
Rosetta Generic 952K 235
Rosetta IndirectBranch 1024K 1
Rosetta JIT 128.0M 1
Rosetta Return Stack 100K 10
Rosetta Thread Context 100K 10
STACK GUARD 4K 1
Stack 9228K 3
Stack Guard 56.0M 2
VM_ALLOCATE 2700K 70
VM_ALLOCATE (reserved) 8K 2 reserved VM address space (unallocated)
__DATA 29.2M 469
__DATA_CONST 27.8M 302
__DATA_DIRTY 1514K 194
__FONT_DATA 4K 1
__LINKEDIT 697.3M 17
__OBJC_RO 81.6M 1
__OBJC_RW 3120K 2
__TEXT 470.1M 486
__UNICODE 588K 1
__XOJO 8K 1
dyld private memory 1152K 3
mapped file 4.8G 656
shared memory 808K 15
unshared pmap 10.8M 8
=========== ======= =======
TOTAL 8.2G 2709
TOTAL, minus reserved VM space 6.7G 2709


Full Report

{“app_name”:“AWS_Backup.debug”,“timestamp”:“2021-12-08 17:01:22.00 -0500”,“app_version”:"",“slice_uuid”:“3be8b4fb-b530-37a1-a35f-f3d64a00ef4a”,“build_version”:"",“platform”:1,“share_with_app_devs”:0,“is_first_party”:1,“bug_type”:“309”,“os_version”:“macOS 12.0.1 (21A559)”,“incident_id”:“C4802CC6-264F-451D-A2F6-CC4DE3B00A3F”,“name”:“AWS_Backup.debug”}
{
“uptime” : 160000,
“procLaunch” : “2021-12-08 16:54:24.6650 -0500”,
“procRole” : “Background”,
“version” : 2,
“userID” : 501,
“deployVersion” : 210,
“modelCode” : “MacBookPro18,1”,
“procStartAbsTime” : 3884958470687,
“coalitionID” : 24032,
“osVersion” : {
“train” : “macOS 12.0.1”,
“build” : “21A559”,
“releaseType” : “User”
},
“captureTime” : “2021-12-08 17:01:19.5228 -0500”,
“incident” : “C4802CC6-264F-451D-A2F6-CC4DE3B00A3F”,
“bug_type” : “309”,
“pid” : 23143,
“procExitAbsTime” : 3894915110226,
“translated” : true,
“cpuType” : “X86-64”,
“procName” : “AWS_Backup.debug”,
“procPath” : “/Users/USER/Documents//AWS_Backup.debug.app/Contents/MacOS/AWS_Backup.debug",
“parentProc” : “launchd”,
“parentPid” : 1,
“coalitionName” : “com.vhiculemedia.awsbackup”,
“crashReporterKey” : “D986E5FB-E181-43B3-B8CA-051DAA7F12DB”,
“wakeTime” : 4771,
“sleepWakeUUID” : “27DFF080-956C-4747-84FA-89EE7E6605F9”,
“sip” : “enabled”,
“isCorpse” : 1,
“exception” : {“codes”:“0x0000000000000000, 0x0000000000000000”,“rawCodes”:[0,0],“type”:“EXC_CRASH”,“signal”:“SIGABRT”},
“ktriageinfo” : “VM - pmap_enter failed with resource shortage\n”,
“asi” : {“AppKit”:[“Performing @selector(performClick:) from sender XOJButton 0x7fefa3f19d90”],“libsystem_malloc.dylib”:[“AWS_Backup.debug(23143,0x2055fc600) malloc: *** error for object 0x30e4cb380: pointer being freed was not allocated”],“libsystem_c.dylib”:[“abort() called”]},
“extMods” : {“caller”:{“thread_create”:0,“thread_set_state”:0,“task_for_pid”:0},“system”:{“thread_create”:0,“thread_set_state”:0,“task_for_pid”:0},“targeted”:{“thread_create”:0,“thread_set_state”:0,“task_for_pid”:0},“warnings”:0},
“faultingThread” : 0,
“threads” : [{“triggered”:true,“id”:3354951,“threadState”:{“flavor”:“x86_THREAD_STATE”,“rbp”:{“value”:0},“r12”:{“value”:259},“rosetta”:{“tmp2”:{“value”:140703149437192},“tmp1”:{“value”:140705570318612},“tmp0”:{“value”:18446744073709551615}},“rbx”:{“value”:0},“r8”:{“value”:8680097280,“symbolLocation”:0,“symbol”:"_main_thread"},“r15”:{“value”:22},“r10”:{“value”:0},“rdx”:{“value”:0},“rdi”:{“value”:4528767016},“r9”:{“value”:0},“r13”:{“value”:80},“rflags”:{“value”:643},“rax”:{“value”:0},“rsp”:{“value”:0},“r11”:{“value”:512},“rcx”:{“value”:0},“r14”:{“value”:6},“rsi”:{“value”:3}},“queue”:“com.apple.main-thread”,“frames”:[{“imageOffset”:140705570318656,“imageIndex”:0},{“imageOffset”:28946,“symbol”:"__pthread_kill",“symbolLocation”:10,“imageIndex”:1},{“imageOffset”:531728,“symbol”:“abort”,“symbolLocation”:123,“imageIndex”:2},{“imageOffset”:62434,“symbol”:“malloc_vreport”,“symbolLocation”:548,“imageIndex”:3},{“imageOffset”:75245,“symbol”:“malloc_report”,“symbolLocation”:151,“imageIndex”:3},{“imageOffset”:1189734,“symbol”:"StringOpsClassic::MidNBytes(StringStorageBase
, long long, long long)”,“symbolLocation”:234,“imageIndex”:4},{“imageOffset”:1694414,“imageIndex”:4},{“imageOffset”:1690199,“symbol”:“DSDelegate::DebuggerConnectionMessage(DebuggerPacketParser const&)”,“symbolLocation”:17,“imageIndex”:4},{“imageOffset”:1682805,“symbol”:“DebuggerConnection::ProcessMessage(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >)”,“symbolLocation”:67,“imageIndex”:4},{“imageOffset”:2550400,“symbol”:“TCPSocketConnection::SocketDataReceived(TCPSocket*)”,“symbolLocation”:328,“imageIndex”:4},{“imageOffset”:1181167,“symbol”:“TCPSocket::FireEvents()”,“symbolLocation”:123,“imageIndex”:4},{“imageOffset”:1168180,“symbol”:“TCPSocketPosix::Poll()”,“symbolLocation”:1114,“imageIndex”:4},{“imageOffset”:1717605,“imageIndex”:4},{“imageOffset”:1717226,“symbol”:“DebuggerHook”,“symbolLocation”:591,“imageIndex”:4},{“imageOffset”:1914978,“sourceLine”:1253,“sourceFile”:"/Window1",“symbol”:“Window1.Window1.AutomatedBackup%i8%o<Window1.Window1>”,“imageIndex”:5,“symbolLocation”:2306},{“imageOffset”:1808761,“sourceLine”:513,“sourceFile”:"/Window1",“symbol”:“Window1.Window1.BtnTest_Action%%o<Window1.Window1>o”,“imageIndex”:5,“symbolLocation”:313},{“imageOffset”:1944788,“symbol”:“Delegate.IM_Invoke%%o”,“symbolLocation”:52,“imageIndex”:5},{“imageOffset”:1944868,“symbol”:“AddHandler.Stub.15%%”,“symbolLocation”:52,“imageIndex”:5},{“imageOffset”:2373197,“symbol”:"-[NSApplication(NSResponder) sendAction:to:from:]",“symbolLocation”:288,“imageIndex”:6},{“imageOffset”:2372852,“symbol”:"-[NSControl sendAction:to:]",“symbolLocation”:86,“imageIndex”:6},{“imageOffset”:2372646,“symbol”:"__26-[NSCell _sendActionFrom:]_block_invoke",“symbolLocation”:131,“imageIndex”:6},{“imageOffset”:2372399,“symbol”:"-[NSCell _sendActionFrom:]",“symbolLocation”:171,“imageIndex”:6},{“imageOffset”:2372214,“symbol”:"-[NSButtonCell _sendActionFrom:]",“symbolLocation”:96,“imageIndex”:6},{“imageOffset”:2359524,“symbol”:“NSControlTrackMouse”,“symbolLocation”:1817,“imageIndex”:6},{“imageOffset”:2357671,“symbol”:"-[NSCell trackMouse:inRect:ofView:untilMouseUp:]",“symbolLocation”:121,“imageIndex”:6},{“imageOffset”:2357370,“symbol”:"-[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:]",“symbolLocation”:679,“imageIndex”:6},{“imageOffset”:2354248,“symbol”:"-[NSControl mouseDown:]",“symbolLocation”:678,“imageIndex”:6},{“imageOffset”:941846,“imageIndex”:4},{“imageOffset”:2347303,“symbol”:"-[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:]",“symbolLocation”:4949,“imageIndex”:6},{“imageOffset”:1773732,“symbol”:"-[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:]",“symbolLocation”:2582,“imageIndex”:6},{“imageOffset”:1770606,“symbol”:"-[NSWindow(NSEventRouting) sendEvent:]",“symbolLocation”:352,“imageIndex”:6},{“imageOffset”:990491,“imageIndex”:4},{“imageOffset”:1763388,“symbol”:"-[NSApplication(NSEvent) sendEvent:]",“symbolLocation”:352,“imageIndex”:6},{“imageOffset”:924585,“imageIndex”:4},{“imageOffset”:616213,“symbol”:“Application._CallFunctionWithExceptionHandling%%op”,“symbolLocation”:181,“imageIndex”:5},{“imageOffset”:2546576,“symbol”:“CallFunctionWithExceptionHandling(void ()())",“symbolLocation”:254,“imageIndex”:4},{“imageOffset”:924455,“imageIndex”:4},{“imageOffset”:4618251,“symbol”:"-[NSApplication _handleEvent:]",“symbolLocation”:65,“imageIndex”:6},{“imageOffset”:193406,“symbol”:"-[NSApplication run]",“symbolLocation”:623,“imageIndex”:6},{“imageOffset”:2540670,“symbol”:“RuntimeRun”,“symbolLocation”:41,“imageIndex”:4},{“imageOffset”:1328643,“symbol”:“REALbasic._RuntimeRun”,“symbolLocation”:19,“imageIndex”:5},{“imageOffset”:2106414,“sourceLine”:134,“sourceFile”:"/#main",“symbol”:"_Main",“imageIndex”:5,“symbolLocation”:846},{“imageOffset”:2102227,“symbol”:“main”,“symbolLocation”:19,“imageIndex”:5},{“imageOffset”:21758,“symbol”:“start”,“symbolLocation”:462,“imageIndex”:7},{“imageOffset”:3,“imageIndex”:0}]},{“id”:3355028,“name”:“com.apple.rosetta.exceptionserver”,“frames”:[{“imageOffset”:18660,“imageIndex”:8},{“imageOffset”:71976,“imageIndex”:8},{“imageOffset”:77988,“imageIndex”:8}]},{“id”:3355457,“name”:“com.apple.NSEventThread”,“frames”:[{“imageOffset”:140705570318656,“imageIndex”:0},{“imageOffset”:2746,“symbol”:“mach_msg_trap”,“symbolLocation”:10,“imageIndex”:1},{“imageOffset”:523601,“symbol”:"__CFRunLoopServiceMachPort",“symbolLocation”:319,“imageIndex”:9},{“imageOffset”:517135,“symbol”:"__CFRunLoopRun",“symbolLocation”:1329,“imageIndex”:9},{“imageOffset”:514057,“symbol”:“CFRunLoopRunSpecific”,“symbolLocation”:567,“imageIndex”:9},{“imageOffset”:1756396,“symbol”:"_NSEventThread",“symbolLocation”:132,“imageIndex”:6},{“imageOffset”:25876,“symbol”:"_pthread_start",“symbolLocation”:125,“imageIndex”:10},{“imageOffset”:8239,“symbol”:“thread_start”,“symbolLocation”:15,“imageIndex”:10}]},{“id”:3378016,“frames”:[{“imageOffset”:141332,“imageIndex”:8}]}],
“usedImages” : [
{
“size” : 0,
“source” : “A”,
“base” : 0,
“uuid” : “00000000-0000-0000-0000-000000000000”
},
{
“source” : “P”,
“arch” : “x86_64”,
“base” : 140703149408256,
“size” : 225280,
“uuid” : “12bd6f13-c452-35ee-9069-51befef29f1a”,
“path” : “/usr/lib/system/libsystem_kernel.dylib”,
“name” : “libsystem_kernel.dylib”
},
{
“source” : “P”,
“arch” : “x86_64”,
“base” : 140703148392448,
“size” : 561152,
“uuid” : “991f58b7-b4c0-3c3a-84a8-c9c571de5a27”,
“path” : “/usr/lib/system/libsystem_c.dylib”,
“name” : “libsystem_c.dylib”
},
{
“source” : “P”,
“arch” : “x86_64”,
“base” : 140703147659264,
“size” : 180224,
“uuid” : “896704b7-96b0-32b4-986d-a6bcd5c816b4”,
“path” : “/usr/lib/system/libsystem_malloc.dylib”,
“name” : “libsystem_malloc.dylib”
},
{
“source” : “P”,
“arch” : “x86_64”,
“base” : 4536492032,
“size” : 3735552,
“uuid” : “16f43cc9-e9b8-341d-9222-881a26e8c8b0”,
“path” : "/Users/USER/Documents/
/AWS_Backup.debug.app/Contents/Frameworks/XojoFramework.framework/Versions/A/XojoFramework”,
“name” : “XojoFramework”
},
{
“source” : “P”,
“arch” : “x86_64”,
“base” : 4377382912,
“size” : 2252800,
“uuid” : “3be8b4fb-b530-37a1-a35f-f3d64a00ef4a”,
“path” : “/Users/USER/Documents/*/AWS_Backup.debug.app/Contents/MacOS/AWS_Backup.debug”,
“name” : “AWS_Backup.debug”
},
{
“source” : “P”,
“arch” : “x86_64”,
“base” : 140703193534464,
“CFBundleShortVersionString” : “6.9”,
“CFBundleIdentifier” : “com.apple.AppKit”,
“size” : 15257600,
“uuid” : “dd0028a3-78e3-3a8a-a51b-ddd68123adef”,
“path” : “/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit”,
“name” : “AppKit”,
“CFBundleVersion” : “2113”
},
{
“source” : “P”,
“arch” : “x86_64”,
“base” : 8679604224,
“size” : 442368,
“uuid” : “1a6ae033-9438-33c0-8077-988fd885250a”,
“path” : “/usr/lib/dyld”,
“name” : “dyld”
},
{
“source” : “P”,
“arch” : “arm64”,
“base” : 140703126343680,
“size” : 196608,
“uuid” : “9f5d65be-d8d0-3979-bb05-e651a67e785c”,
“path” : “/usr/libexec/rosetta/runtime”,
“name” : “runtime”
},
{
“source” : “P”,
“arch” : “x86_64”,
“base” : 140703149948928,
“CFBundleShortVersionString” : “6.9”,
“CFBundleIdentifier” : “com.apple.CoreFoundation”,
“size” : 5246976,
“uuid” : “afcc752e-074d-340f-890c-263efd2da77f”,
“path” : “/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation”,
“name” : “CoreFoundation”,
“CFBundleVersion” : “1855.105”
},
{
“source” : “P”,
“arch” : “x86_64”,
“base” : 140703149633536,
“size” : 49152,
“uuid” : “29a2750e-f31b-3630-8761-242a6bc3e99e”,
“path” : “/usr/lib/system/libsystem_pthread.dylib”,
“name” : “libsystem_pthread.dylib”
}
],
“sharedCache” : {
“base” : 140703146393600,
“size” : 15215640576,
“uuid” : “b5084610-afe4-3485-bade-628c4468b057”
},
“vmSummary” : “ReadOnly portion of Libraries: Total=1.1G resident=0K(0%) swapped_out_or_unallocated=1.1G(100%)\nWritable regions: Total=2.0G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=2.0G(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nAccelerate framework 256K 2 \nActivity Tracing 256K 1 \nCG backing stores 4800K 8 \nCG image 124K 11 \nColorSync 240K 27 \nCoreAnimation 23.5M 59 \nCoreGraphics 8K 2 \nCoreUI image data 2836K 21 \nFoundation 40K 2 \nImage IO 92K 1 \nKernel Alloc Once 8K 1 \nMALLOC 316.4M 61 \nMALLOC guard page 192K 9 \nMALLOC_MEDIUM (reserved) 1.2G 10 reserved VM address space (unallocated)\nMALLOC_NANO (reserved) 384.0M 1 reserved VM address space (unallocated)\nRosetta Arena 4096K 2 \nRosetta Generic 952K 235 \nRosetta IndirectBranch 1024K 1 \nRosetta JIT 128.0M 1 \nRosetta Return Stack 100K 10 \nRosetta Thread Context 100K 10 \nSTACK GUARD 4K 1 \nStack 9228K 3 \nStack Guard 56.0M 2 \nVM_ALLOCATE 2700K 70 \nVM_ALLOCATE (reserved) 8K 2 reserved VM address space (unallocated)\n__DATA 29.2M 469 \n__DATA_CONST 27.8M 302 \n__DATA_DIRTY 1514K 194 \n__FONT_DATA 4K 1 \n__LINKEDIT 697.3M 17 \n__OBJC_RO 81.6M 1 \n__OBJC_RW 3120K 2 \n__TEXT 470.1M 486 \n__UNICODE 588K 1 \n__XOJO 8K 1 \ndyld private memory 1152K 3 \nmapped file 4.8G 656 \nshared memory 808K 15 \nunshared pmap 10.8M 8 \n=========== ======= ======= \nTOTAL 8.2G 2709 \nTOTAL, minus reserved VM space 6.7G 2709 \n”,
“legacyInfo” : {
“threadTriggered” : {
“queue” : “com.apple.main-thread”
}
},
“trialInfo” : {
“rollouts” : [
{
“rolloutId” : “601d9415f79519000ccd4b69”,
“factorPackIds” : {
“SIRI_TEXT_TO_SPEECH” : “6194416dea7ed64a7812a429”
},
“deploymentId” : 240000322
},
{
“rolloutId” : “607844aa04477260f58a8077”,
“factorPackIds” : {
“SIRI_MORPHUN_ASSETS” : “6103050cbfe6dc472e1c982a”
},
“deploymentId” : 240000066
},
{
“rolloutId” : “5ffde50ce2aacd000d47a95f”,
“factorPackIds” : {

  },
  "deploymentId" : 240000076
},
{
  "rolloutId" : "60da5e84ab0ca017dace9abf",
  "factorPackIds" : {

  },
  "deploymentId" : 240000008
},
{
  "rolloutId" : "5fc94383418129005b4e9ae0",
  "factorPackIds" : {

  },
  "deploymentId" : 240000174
},
{
  "rolloutId" : "602ad4dac86151000cf27e46",
  "factorPackIds" : {
    "SIRI_DICTATION_ASSETS" : "61ae8d06da72d16a4beb762e"
  },
  "deploymentId" : 240000290
}

],
“experiments” : [

]
}
}

Model: MacBookPro18,1, BootROM 7429.41.5, proc 10:8:2 processors, 16 GB, SMC
Graphics: Apple M1 Pro, Apple M1 Pro, Built-In
Display: Color LCD, 3456 x 2234 Retina, Main, MirrorOff, Online
Display: LG FULL HD, 1920 x 1080 (1080p FHD - Full High Definition), MirrorOff, Online
Memory Module: LPDDR5
AirPort: Wi-Fi, wl0: Sep 24 2021 15:49:44 version 20.10.853.23.8.7.106 FWID 01-78e271b2
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: USB31Bus
USB Device: XS2000
USB Device: USB31Bus
USB Device: USB31Bus
Thunderbolt Bus: MacBook Pro, Apple Inc.
Thunderbolt Bus: MacBook Pro, Apple Inc.
Thunderbolt Bus: MacBook Pro, Apple Inc.

Thanks to all !

Any chance your app ran out of RAM?

1 Like

Good question ! The MacBook has 16 G memory and plenty of room to swap to disk, but running out of RAM can’t be excluded right off the bat.

I will check tomorrow morning. The project was originally written with 2019r?, then open in 2021r2.1 and finally in 2021r3. The reason I stopped using 2021r2.1 was that I had the same kind of issue. In short the app sends command using the Amazon CLI targeting an S3 instance. The commands are sent using a shell object and a timer is used to poll shell.DataAvailable to get data from the execution. Could something be prone to eat RAM ?

Thanks

Well there are some memory leak issues in Monterey that could explain this. You might want to open Activity Monitor and keep an eye on things.

Memory Allocation

Try a cold boot and do not fire any other application…

@Emile_Schwarz

Application Specific Information:
Performing @selector(performClick:) from sender XOJButton 0x7fefa3f19d90
AWS_Backup.debug(23143,0x2055fc600) malloc: *** error for object 0x30e4cb380: pointer being freed was not allocated
abort() called

Looks like it’s not an allocation issue, but deallocation issue: memory not allocated could not be freed.

All in all, it’s a memory problem. I noted where in a method the IDE crashed, and it was always on the exact same line the crash happened. I was doing step-by-step debugging for a while and a shell object was active. Is a shell running in its own thread ? If so does that mean that the shell is still running when the app is paused in the debugger ?

I wonder because after a few crashes, I have set a single breakpoint very close to the offending line and I didn’t get any crash - the shell was finished working. My conclusion is that pausing the app may have induced a condition that would not happen when the app continuously runs. I must add that each time DataAvailable was polled, triggered by a timer, something was written using SystemDebug log.

Thanks guys for your help.