Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[macOS][m1] App crashes in release mode upon app launch #100348

Closed
TabooSun opened this issue Mar 18, 2022 · 7 comments
Closed

[macOS][m1] App crashes in release mode upon app launch #100348

TabooSun opened this issue Mar 18, 2022 · 7 comments
Assignees
Labels
a: release Challenges faced when attempting to productionize an app c: fatal crash Crashes that terminate the process engine flutter/engine repository. See also e: labels. found in release: 2.13 Found to occur in 2.13 has reproducible steps The issue has been confirmed reproducible and is ready to work on P1 High-priority issues at the top of the work list platform-host-arm Building on an ARM-based platform platform-mac Building on or for macOS specifically r: fixed Issue is closed as already fixed in a newer version

Comments

@TabooSun
Copy link
Contributor

TabooSun commented Mar 18, 2022

Since the Flutter macOS Apple Chip support is ready, I went and tried it. However, it doesn't work for me if I build the app for release.

Steps to Reproduce

  1. Create a new project with flutter create
  2. Run flutter build macos
  3. Open the built app in build/macos/Build/Products/Release/<appname>.app

Expected results: The app does not crash

Actual results: The app crashes

Report collected from Console.app
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               playground [5945]
Path:                  /Users/USER/Documents/*/playground.app/Contents/MacOS/playground
Identifier:            com.example.playground
Version:               1.0.0 (1)
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2022-03-18 11:53:17.7752 +0800
OS Version:            macOS 12.3 (21E230)
Report Version:        12
Anonymous UUID:        14779CBC-35D9-D9B0-2944-25C223FA7672


Time Awake Since Boot: 1500 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:
abort() called


Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	       0x1b9e14db8 __pthread_kill + 8
1   libsystem_pthread.dylib       	       0x1b9e49ee0 pthread_kill + 288
2   libsystem_c.dylib             	       0x1b9d84340 abort + 168
3   FlutterMacOS                  	       0x106a4ac08 0x1069f0000 + 371720
4   FlutterMacOS                  	       0x106a4abf8 0x1069f0000 + 371704
5   FlutterMacOS                  	       0x1071cff14 0x1069f0000 + 8257300
6   FlutterMacOS                  	       0x1071ce8cc 0x1069f0000 + 8251596
7   FlutterMacOS                  	       0x1071cdf28 0x1069f0000 + 8249128
8   FlutterMacOS                  	       0x1071d05b4 0x1069f0000 + 8258996
9   FlutterMacOS                  	       0x10704a6a8 0x1069f0000 + 6661800
10  FlutterMacOS                  	       0x1071f8bd8 0x1069f0000 + 8424408
11  FlutterMacOS                  	       0x1071e553c 0x1069f0000 + 8344892
12  FlutterMacOS                  	       0x1069fc864 0x1069f0000 + 51300
13  FlutterMacOS                  	       0x106a138b8 0x1069f0000 + 145592
14  FlutterMacOS                  	       0x106a1361c 0x1069f0000 + 144924
15  AppKit                        	       0x1bcbace2c -[NSViewController _sendViewWillAppear] + 48
16  AppKit                        	       0x1bcbaccb8 -[NSViewController _windowWillOrderOnScreen] + 104
17  AppKit                        	       0x1bd3071b0 -[NSView _windowWillOrderOnScreen] + 80
18  AppKit                        	       0x1bd307234 -[NSView _windowWillOrderOnScreen] + 212
19  AppKit                        	       0x1bcbacb0c -[NSWindow _doWindowWillBeVisibleAsSheet:] + 64
20  AppKit                        	       0x1bcbab49c -[NSWindow _reallyDoOrderWindowAboveOrBelow:relativeTo:findKey:forCounter:force:isModal:] + 1232
21  AppKit                        	       0x1bcbaabb0 -[NSWindow _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 132
22  AppKit                        	       0x1bcba9b9c -[NSWindow _doOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 324
23  AppKit                        	       0x1bca50dc4 -[NSIBObjectData nibInstantiateWithOwner:options:topLevelObjects:] + 1584
24  AppKit                        	       0x1bca44eac loadNib + 416
25  AppKit                        	       0x1bca443dc +[NSBundle(NSNibLoading) _loadNibFile:nameTable:options:withZone:ownerBundle:] + 800
26  AppKit                        	       0x1bca43fe0 -[NSBundle(NSNibLoading) loadNibNamed:owner:topLevelObjects:] + 220
27  AppKit                        	       0x1bca43db0 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 388
28  AppKit                        	       0x1bca35b7c NSApplicationMain + 576
29  playground                    	       0x104e839a0 main + 12 (AppDelegate.swift:5)
30  dyld                          	       0x1050d9088 start + 516

Thread 1:
0   libsystem_pthread.dylib       	       0x1b9e45078 start_wqthread + 0

Thread 2:
0   libsystem_pthread.dylib       	       0x1b9e45078 start_wqthread + 0

Thread 3:
0   libsystem_pthread.dylib       	       0x1b9e45078 start_wqthread + 0

Thread 4:: io.flutter.ui
0   libsystem_kernel.dylib        	       0x1b9e0c8d0 mach_msg_trap + 8
1   libsystem_kernel.dylib        	       0x1b9e0cd40 mach_msg + 76
2   CoreFoundation                	       0x1b9f16c1c __CFRunLoopServiceMachPort + 372
3   CoreFoundation                	       0x1b9f150cc __CFRunLoopRun + 1180
4   CoreFoundation                	       0x1b9f14490 CFRunLoopRunSpecific + 600
5   FlutterMacOS                  	       0x106a56500 0x1069f0000 + 419072
6   FlutterMacOS                  	       0x106a4d8fc 0x1069f0000 + 383228
7   FlutterMacOS                  	       0x106a55200 0x1069f0000 + 414208
8   libsystem_pthread.dylib       	       0x1b9e4a26c _pthread_start + 148
9   libsystem_pthread.dylib       	       0x1b9e4508c thread_start + 8

Thread 5:: io.flutter.raster
0   libsystem_kernel.dylib        	       0x1b9e0c8d0 mach_msg_trap + 8
1   libsystem_kernel.dylib        	       0x1b9e0cd40 mach_msg + 76
2   CoreFoundation                	       0x1b9f16c1c __CFRunLoopServiceMachPort + 372
3   CoreFoundation                	       0x1b9f150cc __CFRunLoopRun + 1180
4   CoreFoundation                	       0x1b9f14490 CFRunLoopRunSpecific + 600
5   FlutterMacOS                  	       0x106a56500 0x1069f0000 + 419072
6   FlutterMacOS                  	       0x106a4d8fc 0x1069f0000 + 383228
7   FlutterMacOS                  	       0x106a55200 0x1069f0000 + 414208
8   libsystem_pthread.dylib       	       0x1b9e4a26c _pthread_start + 148
9   libsystem_pthread.dylib       	       0x1b9e4508c thread_start + 8

Thread 6:: io.flutter.io
0   libsystem_kernel.dylib        	       0x1b9e0c8d0 mach_msg_trap + 8
1   libsystem_kernel.dylib        	       0x1b9e0cd40 mach_msg + 76
2   CoreFoundation                	       0x1b9f16c1c __CFRunLoopServiceMachPort + 372
3   CoreFoundation                	       0x1b9f150cc __CFRunLoopRun + 1180
4   CoreFoundation                	       0x1b9f14490 CFRunLoopRunSpecific + 600
5   FlutterMacOS                  	       0x106a56500 0x1069f0000 + 419072
6   FlutterMacOS                  	       0x106a4d8fc 0x1069f0000 + 383228
7   FlutterMacOS                  	       0x106a55200 0x1069f0000 + 414208
8   libsystem_pthread.dylib       	       0x1b9e4a26c _pthread_start + 148
9   libsystem_pthread.dylib       	       0x1b9e4508c thread_start + 8

Thread 7:: io.worker.1
0   libsystem_kernel.dylib        	       0x1b9e10290 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1b9e4a83c _pthread_cond_wait + 1236
2   FlutterMacOS                  	       0x106a1d220 0x1069f0000 + 184864
3   FlutterMacOS                  	       0x106a4740c 0x1069f0000 + 357388
4   FlutterMacOS                  	       0x106a48160 0x1069f0000 + 360800
5   libsystem_pthread.dylib       	       0x1b9e4a26c _pthread_start + 148
6   libsystem_pthread.dylib       	       0x1b9e4508c thread_start + 8

Thread 8:: io.worker.2
0   libsystem_kernel.dylib        	       0x1b9e10290 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1b9e4a83c _pthread_cond_wait + 1236
2   FlutterMacOS                  	       0x106a1d220 0x1069f0000 + 184864
3   FlutterMacOS                  	       0x106a4740c 0x1069f0000 + 357388
4   FlutterMacOS                  	       0x106a48160 0x1069f0000 + 360800
5   libsystem_pthread.dylib       	       0x1b9e4a26c _pthread_start + 148
6   libsystem_pthread.dylib       	       0x1b9e4508c thread_start + 8

Thread 9:: io.worker.3
0   libsystem_kernel.dylib        	       0x1b9e10290 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1b9e4a83c _pthread_cond_wait + 1236
2   FlutterMacOS                  	       0x106a1d220 0x1069f0000 + 184864
3   FlutterMacOS                  	       0x106a4740c 0x1069f0000 + 357388
4   FlutterMacOS                  	       0x106a48160 0x1069f0000 + 360800
5   libsystem_pthread.dylib       	       0x1b9e4a26c _pthread_start + 148
6   libsystem_pthread.dylib       	       0x1b9e4508c thread_start + 8

Thread 10:: io.worker.4
0   libsystem_kernel.dylib        	       0x1b9e10290 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1b9e4a83c _pthread_cond_wait + 1236
2   FlutterMacOS                  	       0x106a1d220 0x1069f0000 + 184864
3   FlutterMacOS                  	       0x106a4740c 0x1069f0000 + 357388
4   FlutterMacOS                  	       0x106a48160 0x1069f0000 + 360800
5   libsystem_pthread.dylib       	       0x1b9e4a26c _pthread_start + 148
6   libsystem_pthread.dylib       	       0x1b9e4508c thread_start + 8

Thread 11:: io.worker.5
0   libsystem_kernel.dylib        	       0x1b9e10290 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1b9e4a83c _pthread_cond_wait + 1236
2   FlutterMacOS                  	       0x106a1d220 0x1069f0000 + 184864
3   FlutterMacOS                  	       0x106a4740c 0x1069f0000 + 357388
4   FlutterMacOS                  	       0x106a48160 0x1069f0000 + 360800
5   libsystem_pthread.dylib       	       0x1b9e4a26c _pthread_start + 148
6   libsystem_pthread.dylib       	       0x1b9e4508c thread_start + 8

Thread 12:: io.worker.6
0   libsystem_kernel.dylib        	       0x1b9e10290 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1b9e4a83c _pthread_cond_wait + 1236
2   FlutterMacOS                  	       0x106a1d220 0x1069f0000 + 184864
3   FlutterMacOS                  	       0x106a4740c 0x1069f0000 + 357388
4   FlutterMacOS                  	       0x106a48160 0x1069f0000 + 360800
5   libsystem_pthread.dylib       	       0x1b9e4a26c _pthread_start + 148
6   libsystem_pthread.dylib       	       0x1b9e4508c thread_start + 8

Thread 13:: io.worker.7
0   libsystem_kernel.dylib        	       0x1b9e10290 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1b9e4a83c _pthread_cond_wait + 1236
2   FlutterMacOS                  	       0x106a1d220 0x1069f0000 + 184864
3   FlutterMacOS                  	       0x106a4740c 0x1069f0000 + 357388
4   FlutterMacOS                  	       0x106a48160 0x1069f0000 + 360800
5   libsystem_pthread.dylib       	       0x1b9e4a26c _pthread_start + 148
6   libsystem_pthread.dylib       	       0x1b9e4508c thread_start + 8

Thread 14:: io.worker.8
0   libsystem_kernel.dylib        	       0x1b9e10290 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1b9e4a83c _pthread_cond_wait + 1236
2   FlutterMacOS                  	       0x106a1d220 0x1069f0000 + 184864
3   FlutterMacOS                  	       0x106a4740c 0x1069f0000 + 357388
4   FlutterMacOS                  	       0x106a48160 0x1069f0000 + 360800
5   libsystem_pthread.dylib       	       0x1b9e4a26c _pthread_start + 148
6   libsystem_pthread.dylib       	       0x1b9e4508c thread_start + 8

Thread 15:: dart:io EventHandler
0   libsystem_kernel.dylib        	       0x1b9e12c40 kevent + 8
1   FlutterMacOS                  	       0x10719a990 0x1069f0000 + 8038800
2   FlutterMacOS                  	       0x1071c27e4 0x1069f0000 + 8202212
3   libsystem_pthread.dylib       	       0x1b9e4a26c _pthread_start + 148
4   libsystem_pthread.dylib       	       0x1b9e4508c thread_start + 8


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x0000000000000000   x3: 0x0000000000000000
    x4: 0x000000016af7c348   x5: 0x0000000000000021   x6: 0x0000000000000000   x7: 0x00000000000005a0
    x8: 0x425d7881f67a6c94   x9: 0x425d7880f36ea914  x10: 0x0000000000000002  x11: 0x00000000fffffffd
   x12: 0x0000010000000000  x13: 0x0000000000000000  x14: 0x0000000000000000  x15: 0x0000000000000000
   x16: 0x0000000000000148  x17: 0x0000000213cb7640  x18: 0x0000000000000000  x19: 0x0000000000000006
   x20: 0x000000010514c580  x21: 0x0000000000000103  x22: 0x000000010514c660  x23: 0x0000000000000000
   x24: 0x00000001074d36d0  x25: 0x00000001074d3760  x26: 0x00006000038951d8  x27: 0x0000600003895200
   x28: 0x1fffffffffffffff   fp: 0x000000016af7c370   lr: 0x00000001b9e49ee0
    sp: 0x000000016af7c350   pc: 0x00000001b9e14db8 cpsr: 0x40001000
   far: 0x0000000106998000  esr: 0x56000080  Address size fault

Binary Images:
       0x1b9e0b000 -        0x1b9e42fff libsystem_kernel.dylib (*) <1d7b3b8e-75a1-34ea-aa52-9f7c23155c55> /usr/lib/system/libsystem_kernel.dylib
       0x1b9e43000 -        0x1b9e4ffff libsystem_pthread.dylib (*) <cee8bc77-6923-34d9-89a3-6f8f7279605e> /usr/lib/system/libsystem_pthread.dylib
       0x1b9d0a000 -        0x1b9d8bfff libsystem_c.dylib (*) <fd566a15-42d8-314a-a99a-b59237ddf5bc> /usr/lib/system/libsystem_c.dylib
       0x1069f0000 -        0x1074cffff io.flutter.flutter-macos (1.0) <9681b310-70f1-34e4-ae10-038b68e081ec> /Users/USER/Documents/*/playground.app/Contents/Frameworks/FlutterMacOS.framework/Versions/A/FlutterMacOS
       0x1bca32000 -        0x1bd8e9fff com.apple.AppKit (6.9) <465b9570-6646-31ea-a082-ab0dfa538966> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
       0x104e80000 -        0x104e83fff com.example.playground (1.0.0) <76ef00c5-1659-37ff-8188-3171623d77e9> /Users/USER/Documents/*/playground.app/Contents/MacOS/playground
       0x1050d4000 -        0x105133fff dyld (*) <fbb89662-e6f2-3434-b542-f75185ac5e74> /usr/lib/dyld
       0x1b9e92000 -        0x1ba3d7fff com.apple.CoreFoundation (6.9) <8e1809ff-f5b1-3d9e-be15-f2e7b1d8ce51> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation

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: 4
    thread_create: 0
    thread_set_state: 0

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

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Activity Tracing                   256K        1 
ColorSync                          528K       23 
CoreGraphics                        16K        1 
Foundation                          16K        1 
Kernel Alloc Once                   32K        1 
MALLOC                           242.3M       37 
MALLOC guard page                  192K       11 
MALLOC_MEDIUM (reserved)         480.0M        4         reserved VM address space (unallocated)
MALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)
STACK GUARD                       56.2M       16 
Stack                             16.5M       16 
VM_ALLOCATE                        624K        5 
__AUTH                            2158K      216 
__AUTH_CONST                      13.4M      382 
__DATA                             9.9M      374 
__DATA_CONST                      14.2M      389 
__DATA_DIRTY                      1262K      150 
__FONT_DATA                          4K        1 
__LINKEDIT                       584.9M        6 
__OBJC_CONST                      2367K      183 
__OBJC_RO                         82.9M        1 
__OBJC_RW                         3152K        1 
__TEXT                           338.5M      403 
__UNICODE                          592K        1 
dyld private memory               1024K        1 
mapped file                      143.1M       18 
shared memory                      848K       13 
===========                     =======  ======= 
TOTAL                              2.3G     2256 
TOTAL, minus reserved VM space     1.5G     2256 



-----------
Full Report
-----------

{"app_name":"playground","timestamp":"2022-03-18 11:53:17.00 +0800","app_version":"1.0.0","slice_uuid":"76ef00c5-1659-37ff-8188-3171623d77e9","build_version":"1","platform":1,"bundleID":"com.example.playground","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 12.3 (21E230)","incident_id":"78BCBB93-CBBF-4B0D-99E8-97A841904288","name":"playground"}
{
  "uptime" : 1500,
  "procLaunch" : "2022-03-18 11:53:17.6213 +0800",
  "procRole" : "Foreground",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "MacBookPro17,1",
  "procStartAbsTime" : 37330845361,
  "coalitionID" : 1346,
  "osVersion" : {
    "train" : "macOS 12.3",
    "build" : "21E230",
    "releaseType" : "User"
  },
  "captureTime" : "2022-03-18 11:53:17.7752 +0800",
  "incident" : "78BCBB93-CBBF-4B0D-99E8-97A841904288",
  "bug_type" : "309",
  "pid" : 5945,
  "procExitAbsTime" : 37334412926,
  "translated" : false,
  "cpuType" : "ARM-64",
  "procName" : "playground",
  "procPath" : "\/Users\/USER\/Documents\/*\/playground.app\/Contents\/MacOS\/playground",
  "bundleInfo" : {"CFBundleShortVersionString":"1.0.0","CFBundleVersion":"1","CFBundleIdentifier":"com.example.playground"},
  "storeInfo" : {"deviceIdentifierForVendor":"69779C74-ABF6-576B-9C69-B4D111A5CE3F","thirdParty":true},
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "com.example.playground",
  "crashReporterKey" : "14779CBC-35D9-D9B0-2944-25C223FA7672",
  "sip" : "enabled",
  "isCorpse" : 1,
  "exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},
  "asi" : {"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":4},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "faultingThread" : 0,
  "threads" : [{"triggered":true,"id":39847,"threadState":{"x":[{"value":0},{"value":0},{"value":0},{"value":0},{"value":6089589576},{"value":33},{"value":0},{"value":1440},{"value":4782110878918667412},{"value":4782110874572597524},{"value":2},{"value":4294967293},{"value":1099511627776},{"value":0},{"value":0},{"value":0},{"value":328},{"value":8922035776},{"value":0},{"value":6},{"value":4380214656,"symbolLocation":0,"symbol":"_main_thread"},{"value":259},{"value":4380214880,"symbolLocation":224,"symbol":"_main_thread"},{"value":0},{"value":4417468112},{"value":4417468256},{"value":105553175597528},{"value":105553175597568},{"value":2305843009213693951}],"flavor":"ARM_THREAD_STATE64","lr":{"value":7413735136},"cpsr":{"value":1073745920},"fp":{"value":6089589616},"sp":{"value":6089589584},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":7413517752,"matchesCrashFrame":1},"far":{"value":4405690368}},"queue":"com.apple.main-thread","frames":[{"imageOffset":40376,"symbol":"__pthread_kill","symbolLocation":8,"imageIndex":0},{"imageOffset":28384,"symbol":"pthread_kill","symbolLocation":288,"imageIndex":1},{"imageOffset":500544,"symbol":"abort","symbolLocation":168,"imageIndex":2},{"imageOffset":371720,"imageIndex":3},{"imageOffset":371704,"imageIndex":3},{"imageOffset":8257300,"imageIndex":3},{"imageOffset":8251596,"imageIndex":3},{"imageOffset":8249128,"imageIndex":3},{"imageOffset":8258996,"imageIndex":3},{"imageOffset":6661800,"imageIndex":3},{"imageOffset":8424408,"imageIndex":3},{"imageOffset":8344892,"imageIndex":3},{"imageOffset":51300,"imageIndex":3},{"imageOffset":145592,"imageIndex":3},{"imageOffset":144924,"imageIndex":3},{"imageOffset":1551916,"symbol":"-[NSViewController _sendViewWillAppear]","symbolLocation":48,"imageIndex":4},{"imageOffset":1551544,"symbol":"-[NSViewController _windowWillOrderOnScreen]","symbolLocation":104,"imageIndex":4},{"imageOffset":9261488,"symbol":"-[NSView _windowWillOrderOnScreen]","symbolLocation":80,"imageIndex":4},{"imageOffset":9261620,"symbol":"-[NSView _windowWillOrderOnScreen]","symbolLocation":212,"imageIndex":4},{"imageOffset":1551116,"symbol":"-[NSWindow _doWindowWillBeVisibleAsSheet:]","symbolLocation":64,"imageIndex":4},{"imageOffset":1545372,"symbol":"-[NSWindow _reallyDoOrderWindowAboveOrBelow:relativeTo:findKey:forCounter:force:isModal:]","symbolLocation":1232,"imageIndex":4},{"imageOffset":1543088,"symbol":"-[NSWindow _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:]","symbolLocation":132,"imageIndex":4},{"imageOffset":1538972,"symbol":"-[NSWindow _doOrderWindow:relativeTo:findKey:forCounter:force:isModal:]","symbolLocation":324,"imageIndex":4},{"imageOffset":126404,"symbol":"-[NSIBObjectData nibInstantiateWithOwner:options:topLevelObjects:]","symbolLocation":1584,"imageIndex":4},{"imageOffset":77484,"symbol":"loadNib","symbolLocation":416,"imageIndex":4},{"imageOffset":74716,"symbol":"+[NSBundle(NSNibLoading) _loadNibFile:nameTable:options:withZone:ownerBundle:]","symbolLocation":800,"imageIndex":4},{"imageOffset":73696,"symbol":"-[NSBundle(NSNibLoading) loadNibNamed:owner:topLevelObjects:]","symbolLocation":220,"imageIndex":4},{"imageOffset":73136,"symbol":"+[NSBundle(NSNibLoading) loadNibNamed:owner:]","symbolLocation":388,"imageIndex":4},{"imageOffset":15228,"symbol":"NSApplicationMain","symbolLocation":576,"imageIndex":4},{"imageOffset":14752,"sourceLine":5,"sourceFile":"AppDelegate.swift","symbol":"main","imageIndex":5,"symbolLocation":12},{"imageOffset":20616,"symbol":"start","symbolLocation":516,"imageIndex":6}]},{"id":39861,"frames":[{"imageOffset":8312,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":39862,"frames":[{"imageOffset":8312,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":39870,"frames":[{"imageOffset":8312,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":39877,"name":"io.flutter.ui","frames":[{"imageOffset":6352,"symbol":"mach_msg_trap","symbolLocation":8,"imageIndex":0},{"imageOffset":7488,"symbol":"mach_msg","symbolLocation":76,"imageIndex":0},{"imageOffset":543772,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":372,"imageIndex":7},{"imageOffset":536780,"symbol":"__CFRunLoopRun","symbolLocation":1180,"imageIndex":7},{"imageOffset":533648,"symbol":"CFRunLoopRunSpecific","symbolLocation":600,"imageIndex":7},{"imageOffset":419072,"imageIndex":3},{"imageOffset":383228,"imageIndex":3},{"imageOffset":414208,"imageIndex":3},{"imageOffset":29292,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":1},{"imageOffset":8332,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":39878,"name":"io.flutter.raster","frames":[{"imageOffset":6352,"symbol":"mach_msg_trap","symbolLocation":8,"imageIndex":0},{"imageOffset":7488,"symbol":"mach_msg","symbolLocation":76,"imageIndex":0},{"imageOffset":543772,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":372,"imageIndex":7},{"imageOffset":536780,"symbol":"__CFRunLoopRun","symbolLocation":1180,"imageIndex":7},{"imageOffset":533648,"symbol":"CFRunLoopRunSpecific","symbolLocation":600,"imageIndex":7},{"imageOffset":419072,"imageIndex":3},{"imageOffset":383228,"imageIndex":3},{"imageOffset":414208,"imageIndex":3},{"imageOffset":29292,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":1},{"imageOffset":8332,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":39879,"name":"io.flutter.io","frames":[{"imageOffset":6352,"symbol":"mach_msg_trap","symbolLocation":8,"imageIndex":0},{"imageOffset":7488,"symbol":"mach_msg","symbolLocation":76,"imageIndex":0},{"imageOffset":543772,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":372,"imageIndex":7},{"imageOffset":536780,"symbol":"__CFRunLoopRun","symbolLocation":1180,"imageIndex":7},{"imageOffset":533648,"symbol":"CFRunLoopRunSpecific","symbolLocation":600,"imageIndex":7},{"imageOffset":419072,"imageIndex":3},{"imageOffset":383228,"imageIndex":3},{"imageOffset":414208,"imageIndex":3},{"imageOffset":29292,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":1},{"imageOffset":8332,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":39880,"name":"io.worker.1","frames":[{"imageOffset":21136,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":30780,"symbol":"_pthread_cond_wait","symbolLocation":1236,"imageIndex":1},{"imageOffset":184864,"imageIndex":3},{"imageOffset":357388,"imageIndex":3},{"imageOffset":360800,"imageIndex":3},{"imageOffset":29292,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":1},{"imageOffset":8332,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":39881,"name":"io.worker.2","frames":[{"imageOffset":21136,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":30780,"symbol":"_pthread_cond_wait","symbolLocation":1236,"imageIndex":1},{"imageOffset":184864,"imageIndex":3},{"imageOffset":357388,"imageIndex":3},{"imageOffset":360800,"imageIndex":3},{"imageOffset":29292,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":1},{"imageOffset":8332,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":39882,"name":"io.worker.3","frames":[{"imageOffset":21136,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":30780,"symbol":"_pthread_cond_wait","symbolLocation":1236,"imageIndex":1},{"imageOffset":184864,"imageIndex":3},{"imageOffset":357388,"imageIndex":3},{"imageOffset":360800,"imageIndex":3},{"imageOffset":29292,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":1},{"imageOffset":8332,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":39883,"name":"io.worker.4","frames":[{"imageOffset":21136,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":30780,"symbol":"_pthread_cond_wait","symbolLocation":1236,"imageIndex":1},{"imageOffset":184864,"imageIndex":3},{"imageOffset":357388,"imageIndex":3},{"imageOffset":360800,"imageIndex":3},{"imageOffset":29292,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":1},{"imageOffset":8332,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":39884,"name":"io.worker.5","frames":[{"imageOffset":21136,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":30780,"symbol":"_pthread_cond_wait","symbolLocation":1236,"imageIndex":1},{"imageOffset":184864,"imageIndex":3},{"imageOffset":357388,"imageIndex":3},{"imageOffset":360800,"imageIndex":3},{"imageOffset":29292,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":1},{"imageOffset":8332,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":39885,"name":"io.worker.6","frames":[{"imageOffset":21136,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":30780,"symbol":"_pthread_cond_wait","symbolLocation":1236,"imageIndex":1},{"imageOffset":184864,"imageIndex":3},{"imageOffset":357388,"imageIndex":3},{"imageOffset":360800,"imageIndex":3},{"imageOffset":29292,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":1},{"imageOffset":8332,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":39886,"name":"io.worker.7","frames":[{"imageOffset":21136,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":30780,"symbol":"_pthread_cond_wait","symbolLocation":1236,"imageIndex":1},{"imageOffset":184864,"imageIndex":3},{"imageOffset":357388,"imageIndex":3},{"imageOffset":360800,"imageIndex":3},{"imageOffset":29292,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":1},{"imageOffset":8332,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":39887,"name":"io.worker.8","frames":[{"imageOffset":21136,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":30780,"symbol":"_pthread_cond_wait","symbolLocation":1236,"imageIndex":1},{"imageOffset":184864,"imageIndex":3},{"imageOffset":357388,"imageIndex":3},{"imageOffset":360800,"imageIndex":3},{"imageOffset":29292,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":1},{"imageOffset":8332,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":39888,"name":"dart:io EventHandler","frames":[{"imageOffset":31808,"symbol":"kevent","symbolLocation":8,"imageIndex":0},{"imageOffset":8038800,"imageIndex":3},{"imageOffset":8202212,"imageIndex":3},{"imageOffset":29292,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":1},{"imageOffset":8332,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7413477376,
    "size" : 229376,
    "uuid" : "1d7b3b8e-75a1-34ea-aa52-9f7c23155c55",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7413706752,
    "size" : 53248,
    "uuid" : "cee8bc77-6923-34d9-89a3-6f8f7279605e",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7412424704,
    "size" : 532480,
    "uuid" : "fd566a15-42d8-314a-a99a-b59237ddf5bc",
    "path" : "\/usr\/lib\/system\/libsystem_c.dylib",
    "name" : "libsystem_c.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4406050816,
    "CFBundleShortVersionString" : "1.0",
    "CFBundleIdentifier" : "io.flutter.flutter-macos",
    "size" : 11403264,
    "uuid" : "9681b310-70f1-34e4-ae10-038b68e081ec",
    "path" : "\/Users\/USER\/Documents\/*\/playground.app\/Contents\/Frameworks\/FlutterMacOS.framework\/Versions\/A\/FlutterMacOS",
    "name" : "FlutterMacOS",
    "CFBundleVersion" : "1.0"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7459774464,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.AppKit",
    "size" : 15433728,
    "uuid" : "465b9570-6646-31ea-a082-ab0dfa538966",
    "path" : "\/System\/Library\/Frameworks\/AppKit.framework\/Versions\/C\/AppKit",
    "name" : "AppKit",
    "CFBundleVersion" : "2113.40.126"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4377280512,
    "CFBundleShortVersionString" : "1.0.0",
    "CFBundleIdentifier" : "com.example.playground",
    "size" : 16384,
    "uuid" : "76ef00c5-1659-37ff-8188-3171623d77e9",
    "path" : "\/Users\/USER\/Documents\/*\/playground.app\/Contents\/MacOS\/playground",
    "name" : "playground",
    "CFBundleVersion" : "1"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 4379721728,
    "size" : 393216,
    "uuid" : "fbb89662-e6f2-3434-b542-f75185ac5e74",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7414030336,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.CoreFoundation",
    "size" : 5529600,
    "uuid" : "8e1809ff-f5b1-3d9e-be15-f2e7b1d8ce51",
    "path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/Versions\/A\/CoreFoundation",
    "name" : "CoreFoundation",
    "CFBundleVersion" : "1858.112"
  }
],
  "sharedCache" : {
  "base" : 7410417664,
  "size" : 3136438272,
  "uuid" : "00edbaf8-9281-3f26-b94f-e6a315e3a659"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=923.3M resident=0K(0%) swapped_out_or_unallocated=923.3M(100%)\nWritable regions: Total=1.1G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.1G(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nActivity Tracing                   256K        1 \nColorSync                          528K       23 \nCoreGraphics                        16K        1 \nFoundation                          16K        1 \nKernel Alloc Once                   32K        1 \nMALLOC                           242.3M       37 \nMALLOC guard page                  192K       11 \nMALLOC_MEDIUM (reserved)         480.0M        4         reserved VM address space (unallocated)\nMALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)\nSTACK GUARD                       56.2M       16 \nStack                             16.5M       16 \nVM_ALLOCATE                        624K        5 \n__AUTH                            2158K      216 \n__AUTH_CONST                      13.4M      382 \n__DATA                             9.9M      374 \n__DATA_CONST                      14.2M      389 \n__DATA_DIRTY                      1262K      150 \n__FONT_DATA                          4K        1 \n__LINKEDIT                       584.9M        6 \n__OBJC_CONST                      2367K      183 \n__OBJC_RO                         82.9M        1 \n__OBJC_RW                         3152K        1 \n__TEXT                           338.5M      403 \n__UNICODE                          592K        1 \ndyld private memory               1024K        1 \nmapped file                      143.1M       18 \nshared memory                      848K       13 \n===========                     =======  ======= \nTOTAL                              2.3G     2256 \nTOTAL, minus reserved VM space     1.5G     2256 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "com.apple.main-thread"
  }
},
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "6112e14f37f5d11121dcd519",
      "factorPackIds" : {
        "SIRI_TEXT_TO_SPEECH" : "62265b250683fd69cdcf0e26"
      },
      "deploymentId" : 240000068
    },
    {
      "rolloutId" : "61301e3a61217b3110231469",
      "factorPackIds" : {
        "SIRI_FIND_MY_CONFIGURATION_FILES" : "6216ae152a40e71046e16225"
      },
      "deploymentId" : 240000016
    }
  ],
  "experiments" : [

  ]
}
}
Logs
[✓] Flutter (Channel master, 2.13.0-0.0.pre.138, on macOS 12.3 21E230 darwin-arm, locale zh-Hans-MY)
    • Flutter version 2.13.0-0.0.pre.138 at /Users/taboosun/Development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 3d46ab920b (2 hours ago), 2022-03-17 18:45:21 -0700
    • Engine revision 4ac53a5b86
    • Dart version 2.17.0 (build 2.17.0-216.0.dev)
    • DevTools version 2.11.4

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/taboosun/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • ANDROID_HOME = /Users/taboosun/Library/Android/sdk
    • Java binary at: /Users/taboosun/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/211.7628.21.2111.8193401/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.1)
    • Android Studio at /Users/taboosun/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/211.7628.21.2111.8193401/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)

[✓] Android Studio (version 2021.1)
    • Android Studio at /Users/taboosun/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/211.7628.21.2111.8139111/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)

[✓] IntelliJ IDEA Ultimate Edition (version 2021.3.3)
    • IntelliJ at /Users/taboosun/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app
    • Flutter plugin version 65.2.4
    • Dart plugin version 213.7227

[✓] IntelliJ IDEA Ultimate Edition (version 2021.3.3)
    • IntelliJ at /Users/taboosun/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/213.7172.25/IntelliJ IDEA.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] IntelliJ IDEA Ultimate Edition (version 2021.3.2)
    • IntelliJ at /Users/taboosun/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/213.6777.52/IntelliJ IDEA.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.64.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.34.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-arm64   • macOS 12.3 21E230 darwin-arm
    • Chrome (web)    • chrome • web-javascript • Google Chrome 99.0.4844.74
    ! Error: 神的iPad is not connected. Xcode will continue when 神的iPad is connected. (code -13)
    ! Error: Kah Wai’s iPhone is not connected. Xcode will continue when Kah Wai’s iPhone is connected. (code -13)

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

@eggfly eggfly pinned this issue Mar 18, 2022
@eggfly eggfly unpinned this issue Mar 18, 2022
@danagbemava-nc danagbemava-nc added the in triage Presently being triaged by the triage team label Mar 18, 2022
@danagbemava-nc danagbemava-nc changed the title macOS Apple Chip release EXC_CRASH (SIGABRT) upon app launch [macOS][m1] App crashes in release mode upon app launch Mar 18, 2022
@danagbemava-nc
Copy link
Member

The crash is reproducible on the latest master following steps to reproduce in the original post.

logs
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               mac [60486]
Path:                  /Users/USER/*/mac.app/Contents/MacOS/mac
Identifier:            com.example.mac
Version:               1.0.0 (1)
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2022-03-18 10:01:35.0883 +0000
OS Version:            macOS 12.2.1 (21D62)
Report Version:        12
Anonymous UUID:        5D5308EB-06E3-DCAD-1420-BA7A9750ADDD

Sleep/Wake UUID:       8DC6CFC9-5BE7-4EE2-B79C-15F101A5B011

Time Awake Since Boot: 200000 seconds
Time Since Wake:       14651 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:
abort() called


Kernel Triage:
VM - pmap_enter failed with resource shortage
VM - pmap_enter failed with resource shortage
VM - pmap_enter failed with resource shortage
VM - pmap_enter failed with resource shortage
VM - pmap_enter failed with resource shortage


Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	       0x1b34099b8 __pthread_kill + 8
1   libsystem_pthread.dylib       	       0x1b343ceb0 pthread_kill + 288
2   libsystem_c.dylib             	       0x1b337a314 abort + 164
3   FlutterMacOS                  	       0x105de2c08 0x105d88000 + 371720
4   FlutterMacOS                  	       0x105de2bf8 0x105d88000 + 371704
5   FlutterMacOS                  	       0x106567f14 0x105d88000 + 8257300
6   FlutterMacOS                  	       0x1065668cc 0x105d88000 + 8251596
7   FlutterMacOS                  	       0x106565f28 0x105d88000 + 8249128
8   FlutterMacOS                  	       0x1065685b4 0x105d88000 + 8258996
9   FlutterMacOS                  	       0x1063e26a8 0x105d88000 + 6661800
10  FlutterMacOS                  	       0x106590bd8 0x105d88000 + 8424408
11  FlutterMacOS                  	       0x10657d53c 0x105d88000 + 8344892
12  FlutterMacOS                  	       0x105d94864 0x105d88000 + 51300
13  FlutterMacOS                  	       0x105dab8b8 0x105d88000 + 145592
14  FlutterMacOS                  	       0x105dab61c 0x105d88000 + 144924
15  AppKit                        	       0x1b6196574 -[NSViewController _sendViewWillAppear] + 48
16  AppKit                        	       0x1b6196400 -[NSViewController _windowWillOrderOnScreen] + 104
17  AppKit                        	       0x1b68ee88c -[NSView _windowWillOrderOnScreen] + 80
18  AppKit                        	       0x1b68ee910 -[NSView _windowWillOrderOnScreen] + 212
19  AppKit                        	       0x1b6196254 -[NSWindow _doWindowWillBeVisibleAsSheet:] + 64
20  AppKit                        	       0x1b6194bbc -[NSWindow _reallyDoOrderWindowAboveOrBelow:relativeTo:findKey:forCounter:force:isModal:] + 1224
21  AppKit                        	       0x1b61942d0 -[NSWindow _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 132
22  AppKit                        	       0x1b61932c0 -[NSWindow _doOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 324
23  AppKit                        	       0x1b603a0f4 -[NSIBObjectData nibInstantiateWithOwner:options:topLevelObjects:] + 1568
24  AppKit                        	       0x1b602e1c0 loadNib + 384
25  AppKit                        	       0x1b602d990 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:options:withZone:ownerBundle:] + 1464
26  AppKit                        	       0x1b602d2fc -[NSBundle(NSNibLoading) loadNibNamed:owner:topLevelObjects:] + 220
27  AppKit                        	       0x1b602d0cc +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 388
28  AppKit                        	       0x1b601eea0 NSApplicationMain + 576
29  mac                           	       0x1041339b0 main + 12 (AppDelegate.swift:5)
30  dyld                          	       0x1044710f4 start + 520

Thread 1:
0   libsystem_pthread.dylib       	       0x1b3438010 start_wqthread + 0

Thread 2:
0   libsystem_pthread.dylib       	       0x1b3438010 start_wqthread + 0

Thread 3:
0   libsystem_pthread.dylib       	       0x1b3438010 start_wqthread + 0

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

Thread 5:: io.flutter.ui
0   libsystem_kernel.dylib        	       0x1b3401954 mach_msg_trap + 8
1   libsystem_kernel.dylib        	       0x1b3401d00 mach_msg + 76
2   CoreFoundation                	       0x1b3508ed8 __CFRunLoopServiceMachPort + 372
3   CoreFoundation                	       0x1b3507390 __CFRunLoopRun + 1212
4   CoreFoundation                	       0x1b3506734 CFRunLoopRunSpecific + 600
5   FlutterMacOS                  	       0x105dee500 0x105d88000 + 419072
6   FlutterMacOS                  	       0x105de58fc 0x105d88000 + 383228
7   FlutterMacOS                  	       0x105ded200 0x105d88000 + 414208
8   libsystem_pthread.dylib       	       0x1b343d240 _pthread_start + 148
9   libsystem_pthread.dylib       	       0x1b3438024 thread_start + 8

Thread 6:: io.flutter.raster
0   libsystem_kernel.dylib        	       0x1b3401954 mach_msg_trap + 8
1   libsystem_kernel.dylib        	       0x1b3401d00 mach_msg + 76
2   CoreFoundation                	       0x1b3508ed8 __CFRunLoopServiceMachPort + 372
3   CoreFoundation                	       0x1b3507390 __CFRunLoopRun + 1212
4   CoreFoundation                	       0x1b3506734 CFRunLoopRunSpecific + 600
5   FlutterMacOS                  	       0x105dee500 0x105d88000 + 419072
6   FlutterMacOS                  	       0x105de58fc 0x105d88000 + 383228
7   FlutterMacOS                  	       0x105ded200 0x105d88000 + 414208
8   libsystem_pthread.dylib       	       0x1b343d240 _pthread_start + 148
9   libsystem_pthread.dylib       	       0x1b3438024 thread_start + 8

Thread 7:: io.flutter.io
0   libsystem_kernel.dylib        	       0x1b3401954 mach_msg_trap + 8
1   libsystem_kernel.dylib        	       0x1b3401d00 mach_msg + 76
2   CoreFoundation                	       0x1b3508ed8 __CFRunLoopServiceMachPort + 372
3   CoreFoundation                	       0x1b3507390 __CFRunLoopRun + 1212
4   CoreFoundation                	       0x1b3506734 CFRunLoopRunSpecific + 600
5   FlutterMacOS                  	       0x105dee500 0x105d88000 + 419072
6   FlutterMacOS                  	       0x105de58fc 0x105d88000 + 383228
7   FlutterMacOS                  	       0x105ded200 0x105d88000 + 414208
8   libsystem_pthread.dylib       	       0x1b343d240 _pthread_start + 148
9   libsystem_pthread.dylib       	       0x1b3438024 thread_start + 8

Thread 8:: io.worker.1
0   libsystem_kernel.dylib        	       0x1b34050c0 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1b343d808 _pthread_cond_wait + 1228
2   FlutterMacOS                  	       0x105db5220 0x105d88000 + 184864
3   FlutterMacOS                  	       0x105ddf40c 0x105d88000 + 357388
4   FlutterMacOS                  	       0x105de0160 0x105d88000 + 360800
5   libsystem_pthread.dylib       	       0x1b343d240 _pthread_start + 148
6   libsystem_pthread.dylib       	       0x1b3438024 thread_start + 8

Thread 9:: io.worker.2
0   libsystem_kernel.dylib        	       0x1b34050c0 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1b343d808 _pthread_cond_wait + 1228
2   FlutterMacOS                  	       0x105db5220 0x105d88000 + 184864
3   FlutterMacOS                  	       0x105ddf40c 0x105d88000 + 357388
4   FlutterMacOS                  	       0x105de0160 0x105d88000 + 360800
5   libsystem_pthread.dylib       	       0x1b343d240 _pthread_start + 148
6   libsystem_pthread.dylib       	       0x1b3438024 thread_start + 8

Thread 10:: io.worker.3
0   libsystem_kernel.dylib        	       0x1b34050c0 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1b343d808 _pthread_cond_wait + 1228
2   FlutterMacOS                  	       0x105db5220 0x105d88000 + 184864
3   FlutterMacOS                  	       0x105ddf40c 0x105d88000 + 357388
4   FlutterMacOS                  	       0x105de0160 0x105d88000 + 360800
5   libsystem_pthread.dylib       	       0x1b343d240 _pthread_start + 148
6   libsystem_pthread.dylib       	       0x1b3438024 thread_start + 8

Thread 11:: io.worker.4
0   libsystem_kernel.dylib        	       0x1b34050c0 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1b343d808 _pthread_cond_wait + 1228
2   FlutterMacOS                  	       0x105db5220 0x105d88000 + 184864
3   FlutterMacOS                  	       0x105ddf40c 0x105d88000 + 357388
4   FlutterMacOS                  	       0x105de0160 0x105d88000 + 360800
5   libsystem_pthread.dylib       	       0x1b343d240 _pthread_start + 148
6   libsystem_pthread.dylib       	       0x1b3438024 thread_start + 8

Thread 12:: io.worker.5
0   libsystem_kernel.dylib        	       0x1b34050c0 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1b343d808 _pthread_cond_wait + 1228
2   FlutterMacOS                  	       0x105db5220 0x105d88000 + 184864
3   FlutterMacOS                  	       0x105ddf40c 0x105d88000 + 357388
4   FlutterMacOS                  	       0x105de0160 0x105d88000 + 360800
5   libsystem_pthread.dylib       	       0x1b343d240 _pthread_start + 148
6   libsystem_pthread.dylib       	       0x1b3438024 thread_start + 8

Thread 13:: io.worker.6
0   libsystem_kernel.dylib        	       0x1b34050c0 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1b343d808 _pthread_cond_wait + 1228
2   FlutterMacOS                  	       0x105db5220 0x105d88000 + 184864
3   FlutterMacOS                  	       0x105ddf40c 0x105d88000 + 357388
4   FlutterMacOS                  	       0x105de0160 0x105d88000 + 360800
5   libsystem_pthread.dylib       	       0x1b343d240 _pthread_start + 148
6   libsystem_pthread.dylib       	       0x1b3438024 thread_start + 8

Thread 14:: io.worker.7
0   libsystem_kernel.dylib        	       0x1b34050c0 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1b343d808 _pthread_cond_wait + 1228
2   FlutterMacOS                  	       0x105db5220 0x105d88000 + 184864
3   FlutterMacOS                  	       0x105ddf40c 0x105d88000 + 357388
4   FlutterMacOS                  	       0x105de0160 0x105d88000 + 360800
5   libsystem_pthread.dylib       	       0x1b343d240 _pthread_start + 148
6   libsystem_pthread.dylib       	       0x1b3438024 thread_start + 8

Thread 15:: io.worker.8
0   libsystem_kernel.dylib        	       0x1b34050c0 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1b343d808 _pthread_cond_wait + 1228
2   FlutterMacOS                  	       0x105db5220 0x105d88000 + 184864
3   FlutterMacOS                  	       0x105ddf40c 0x105d88000 + 357388
4   FlutterMacOS                  	       0x105de0160 0x105d88000 + 360800
5   libsystem_pthread.dylib       	       0x1b343d240 _pthread_start + 148
6   libsystem_pthread.dylib       	       0x1b3438024 thread_start + 8

Thread 16:: dart:io EventHandler
0   libsystem_kernel.dylib        	       0x1b34078cc kevent + 8
1   FlutterMacOS                  	       0x106532990 0x105d88000 + 8038800
2   FlutterMacOS                  	       0x10655a7e4 0x105d88000 + 8202212
3   libsystem_pthread.dylib       	       0x1b343d240 _pthread_start + 148
4   libsystem_pthread.dylib       	       0x1b3438024 thread_start + 8


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x0000000000000000   x3: 0x0000000000000000
    x4: 0x000000016bccc3e8   x5: 0x0000000000000021   x6: 0x0000000000000000   x7: 0x00000000000005a0
    x8: 0xc2c6f76bef55f8f2   x9: 0xc2c6f76aeb1bbd72  x10: 0x0000000000000002  x11: 0x00000000fffffffd
   x12: 0x0000000000000000  x13: 0x0000000000000000  x14: 0x0000000000000001  x15: 0x0000000000000002
   x16: 0x0000000000000148  x17: 0x000000020dc73530  x18: 0x0000000000000000  x19: 0x0000000000000006
   x20: 0x00000001044e4580  x21: 0x0000000000000103  x22: 0x000000016bccc470  x23: 0x0000000000000000
   x24: 0x000000010686b6d0  x25: 0x000000010686b760  x26: 0x000060000386b168  x27: 0x000060000386b190
   x28: 0x1fffffffffffffff   fp: 0x000000016bccc410   lr: 0x00000001b343ceb0
    sp: 0x000000016bccc3f0   pc: 0x00000001b34099b8 cpsr: 0x40001000
   far: 0x000000010e040000  esr: 0x56000080  Address size fault

Binary Images:
       0x1b3400000 -        0x1b3435fff libsystem_kernel.dylib (*) <384945e6-dd71-37e5-9a3d-84fff14a1e60> /usr/lib/system/libsystem_kernel.dylib
       0x1b3436000 -        0x1b3442fff libsystem_pthread.dylib (*) <f7b2eccf-e6f1-3109-ae81-9028c0b8332a> /usr/lib/system/libsystem_pthread.dylib
       0x1b3301000 -        0x1b3381fff libsystem_c.dylib (*) <0dbc8b95-0037-3725-a769-0c772c293488> /usr/lib/system/libsystem_c.dylib
       0x105d88000 -        0x106867fff io.flutter.flutter-macos (1.0) <5d235724-b7ae-303b-a2e1-7154cc27d25a> /Users/USER/*/mac.app/Contents/Frameworks/FlutterMacOS.framework/Versions/A/FlutterMacOS
       0x1b601b000 -        0x1b6ed1fff com.apple.AppKit (6.9) <8701760d-31b6-37eb-be77-ffb39921dd22> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
       0x104130000 -        0x104133fff com.example.mac (1.0.0) <06a9f94b-e375-3c6f-a752-e0213ac40a89> /Users/USER/*/mac.app/Contents/MacOS/mac
       0x10446c000 -        0x1044cbfff dyld (*) <d21a73ea-79cd-36eb-8ac9-2c5cf5181a27> /usr/lib/dyld
       0x1b3484000 -        0x1b39c7fff com.apple.CoreFoundation (6.9) <35473de6-c433-332c-aee0-013fd5f6d4fd> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation

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=908.8M resident=0K(0%) swapped_out_or_unallocated=908.8M(100%)
Writable regions: Total=850.2M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=850.2M(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Activity Tracing                   256K        1 
ColorSync                          528K       23 
CoreGraphics                        32K        2 
Foundation                          16K        1 
Kernel Alloc Once                   32K        1 
MALLOC                           208.3M       31 
MALLOC guard page                  192K       11 
MALLOC_MEDIUM (reserved)         240.0M        2         reserved VM address space (unallocated)
MALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)
STACK GUARD                       56.3M       17 
Stack                             17.0M       17 
VM_ALLOCATE                        1.0G        6 
__AUTH                            2146K      217 
__AUTH_CONST                      13.2M      377 
__DATA                             9.9M      366 
__DATA_CONST                      14.1M      383 
__DATA_DIRTY                      1256K      148 
__FONT_DATA                          4K        1 
__LINKEDIT                       576.8M        6 
__OBJC_CONST                      2336K      181 
__OBJC_RO                         82.1M        1 
__OBJC_RW                         3104K        1 
__TEXT                           331.9M      398 
__UNICODE                          588K        1 
dyld private memory               1024K        1 
mapped file                      139.2M       18 
shared memory                      848K       13 
===========                     =======  ======= 
TOTAL                              3.0G     2225 
TOTAL, minus reserved VM space     2.4G     2225 



-----------
Full Report
-----------

{"app_name":"mac","timestamp":"2022-03-18 10:01:44.00 +0000","app_version":"1.0.0","slice_uuid":"06a9f94b-e375-3c6f-a752-e0213ac40a89","build_version":"1","platform":1,"bundleID":"com.example.mac","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 12.2.1 (21D62)","incident_id":"CBCACA58-C14A-4105-B166-4561EF9CBB7F","name":"mac"}
{
  "uptime" : 200000,
  "procLaunch" : "2022-03-18 10:01:33.7403 +0000",
  "procRole" : "Foreground",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "MacBookPro17,1",
  "procStartAbsTime" : 4837541386194,
  "coalitionID" : 38484,
  "osVersion" : {
    "train" : "macOS 12.2.1",
    "build" : "21D62",
    "releaseType" : "User"
  },
  "captureTime" : "2022-03-18 10:01:35.0883 +0000",
  "incident" : "CBCACA58-C14A-4105-B166-4561EF9CBB7F",
  "bug_type" : "309",
  "pid" : 60486,
  "procExitAbsTime" : 4837573264992,
  "translated" : false,
  "cpuType" : "ARM-64",
  "procName" : "mac",
  "procPath" : "\/Users\/USER\/*\/mac.app\/Contents\/MacOS\/mac",
  "bundleInfo" : {"CFBundleShortVersionString":"1.0.0","CFBundleVersion":"1","CFBundleIdentifier":"com.example.mac"},
  "storeInfo" : {"deviceIdentifierForVendor":"540BD7C2-0142-5CFA-8488-98AC8BDE5099","thirdParty":true},
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "com.example.mac",
  "crashReporterKey" : "5D5308EB-06E3-DCAD-1420-BA7A9750ADDD",
  "wakeTime" : 14651,
  "sleepWakeUUID" : "8DC6CFC9-5BE7-4EE2-B79C-15F101A5B011",
  "sip" : "enabled",
  "isCorpse" : 1,
  "exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},
  "ktriageinfo" : "VM - pmap_enter failed with resource shortage\nVM - pmap_enter failed with resource shortage\nVM - pmap_enter failed with resource shortage\nVM - pmap_enter failed with resource shortage\nVM - pmap_enter failed with resource shortage\n",
  "asi" : {"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":3975732,"threadState":{"x":[{"value":0},{"value":0},{"value":0},{"value":0},{"value":6103548904},{"value":33},{"value":0},{"value":1440},{"value":14035177331695679730},{"value":14035177327329787250},{"value":2},{"value":4294967293},{"value":0},{"value":0},{"value":1},{"value":2},{"value":328},{"value":8821093680},{"value":0},{"value":6},{"value":4367205760,"symbolLocation":0,"symbol":"_main_thread"},{"value":259},{"value":6103549040},{"value":0},{"value":4404459216},{"value":4404459360},{"value":105553175425384},{"value":105553175425424},{"value":2305843009213693951}],"flavor":"ARM_THREAD_STATE64","lr":{"value":7302532784},"cpsr":{"value":1073745920},"fp":{"value":6103548944},"sp":{"value":6103548912},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":7302322616,"matchesCrashFrame":1},"far":{"value":4530110464}},"queue":"com.apple.main-thread","frames":[{"imageOffset":39352,"symbol":"__pthread_kill","symbolLocation":8,"imageIndex":0},{"imageOffset":28336,"symbol":"pthread_kill","symbolLocation":288,"imageIndex":1},{"imageOffset":496404,"symbol":"abort","symbolLocation":164,"imageIndex":2},{"imageOffset":371720,"imageIndex":3},{"imageOffset":371704,"imageIndex":3},{"imageOffset":8257300,"imageIndex":3},{"imageOffset":8251596,"imageIndex":3},{"imageOffset":8249128,"imageIndex":3},{"imageOffset":8258996,"imageIndex":3},{"imageOffset":6661800,"imageIndex":3},{"imageOffset":8424408,"imageIndex":3},{"imageOffset":8344892,"imageIndex":3},{"imageOffset":51300,"imageIndex":3},{"imageOffset":145592,"imageIndex":3},{"imageOffset":144924,"imageIndex":3},{"imageOffset":1553780,"symbol":"-[NSViewController _sendViewWillAppear]","symbolLocation":48,"imageIndex":4},{"imageOffset":1553408,"symbol":"-[NSViewController _windowWillOrderOnScreen]","symbolLocation":104,"imageIndex":4},{"imageOffset":9255052,"symbol":"-[NSView _windowWillOrderOnScreen]","symbolLocation":80,"imageIndex":4},{"imageOffset":9255184,"symbol":"-[NSView _windowWillOrderOnScreen]","symbolLocation":212,"imageIndex":4},{"imageOffset":1552980,"symbol":"-[NSWindow _doWindowWillBeVisibleAsSheet:]","symbolLocation":64,"imageIndex":4},{"imageOffset":1547196,"symbol":"-[NSWindow _reallyDoOrderWindowAboveOrBelow:relativeTo:findKey:forCounter:force:isModal:]","symbolLocation":1224,"imageIndex":4},{"imageOffset":1544912,"symbol":"-[NSWindow _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:]","symbolLocation":132,"imageIndex":4},{"imageOffset":1540800,"symbol":"-[NSWindow _doOrderWindow:relativeTo:findKey:forCounter:force:isModal:]","symbolLocation":324,"imageIndex":4},{"imageOffset":127220,"symbol":"-[NSIBObjectData nibInstantiateWithOwner:options:topLevelObjects:]","symbolLocation":1568,"imageIndex":4},{"imageOffset":78272,"symbol":"loadNib","symbolLocation":384,"imageIndex":4},{"imageOffset":76176,"symbol":"+[NSBundle(NSNibLoading) _loadNibFile:nameTable:options:withZone:ownerBundle:]","symbolLocation":1464,"imageIndex":4},{"imageOffset":74492,"symbol":"-[NSBundle(NSNibLoading) loadNibNamed:owner:topLevelObjects:]","symbolLocation":220,"imageIndex":4},{"imageOffset":73932,"symbol":"+[NSBundle(NSNibLoading) loadNibNamed:owner:]","symbolLocation":388,"imageIndex":4},{"imageOffset":16032,"symbol":"NSApplicationMain","symbolLocation":576,"imageIndex":4},{"imageOffset":14768,"sourceLine":5,"sourceFile":"AppDelegate.swift","symbol":"main","imageIndex":5,"symbolLocation":12},{"imageOffset":20724,"symbol":"start","symbolLocation":520,"imageIndex":6}]},{"id":3975790,"frames":[{"imageOffset":8208,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":3975791,"frames":[{"imageOffset":8208,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":3975799,"frames":[{"imageOffset":8208,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":3975811,"frames":[{"imageOffset":8208,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":3975827,"name":"io.flutter.ui","frames":[{"imageOffset":6484,"symbol":"mach_msg_trap","symbolLocation":8,"imageIndex":0},{"imageOffset":7424,"symbol":"mach_msg","symbolLocation":76,"imageIndex":0},{"imageOffset":544472,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":372,"imageIndex":7},{"imageOffset":537488,"symbol":"__CFRunLoopRun","symbolLocation":1212,"imageIndex":7},{"imageOffset":534324,"symbol":"CFRunLoopRunSpecific","symbolLocation":600,"imageIndex":7},{"imageOffset":419072,"imageIndex":3},{"imageOffset":383228,"imageIndex":3},{"imageOffset":414208,"imageIndex":3},{"imageOffset":29248,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":1},{"imageOffset":8228,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":3975828,"name":"io.flutter.raster","frames":[{"imageOffset":6484,"symbol":"mach_msg_trap","symbolLocation":8,"imageIndex":0},{"imageOffset":7424,"symbol":"mach_msg","symbolLocation":76,"imageIndex":0},{"imageOffset":544472,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":372,"imageIndex":7},{"imageOffset":537488,"symbol":"__CFRunLoopRun","symbolLocation":1212,"imageIndex":7},{"imageOffset":534324,"symbol":"CFRunLoopRunSpecific","symbolLocation":600,"imageIndex":7},{"imageOffset":419072,"imageIndex":3},{"imageOffset":383228,"imageIndex":3},{"imageOffset":414208,"imageIndex":3},{"imageOffset":29248,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":1},{"imageOffset":8228,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":3975829,"name":"io.flutter.io","frames":[{"imageOffset":6484,"symbol":"mach_msg_trap","symbolLocation":8,"imageIndex":0},{"imageOffset":7424,"symbol":"mach_msg","symbolLocation":76,"imageIndex":0},{"imageOffset":544472,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":372,"imageIndex":7},{"imageOffset":537488,"symbol":"__CFRunLoopRun","symbolLocation":1212,"imageIndex":7},{"imageOffset":534324,"symbol":"CFRunLoopRunSpecific","symbolLocation":600,"imageIndex":7},{"imageOffset":419072,"imageIndex":3},{"imageOffset":383228,"imageIndex":3},{"imageOffset":414208,"imageIndex":3},{"imageOffset":29248,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":1},{"imageOffset":8228,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":3975830,"name":"io.worker.1","frames":[{"imageOffset":20672,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":30728,"symbol":"_pthread_cond_wait","symbolLocation":1228,"imageIndex":1},{"imageOffset":184864,"imageIndex":3},{"imageOffset":357388,"imageIndex":3},{"imageOffset":360800,"imageIndex":3},{"imageOffset":29248,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":1},{"imageOffset":8228,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":3975831,"name":"io.worker.2","frames":[{"imageOffset":20672,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":30728,"symbol":"_pthread_cond_wait","symbolLocation":1228,"imageIndex":1},{"imageOffset":184864,"imageIndex":3},{"imageOffset":357388,"imageIndex":3},{"imageOffset":360800,"imageIndex":3},{"imageOffset":29248,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":1},{"imageOffset":8228,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":3975832,"name":"io.worker.3","frames":[{"imageOffset":20672,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":30728,"symbol":"_pthread_cond_wait","symbolLocation":1228,"imageIndex":1},{"imageOffset":184864,"imageIndex":3},{"imageOffset":357388,"imageIndex":3},{"imageOffset":360800,"imageIndex":3},{"imageOffset":29248,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":1},{"imageOffset":8228,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":3975833,"name":"io.worker.4","frames":[{"imageOffset":20672,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":30728,"symbol":"_pthread_cond_wait","symbolLocation":1228,"imageIndex":1},{"imageOffset":184864,"imageIndex":3},{"imageOffset":357388,"imageIndex":3},{"imageOffset":360800,"imageIndex":3},{"imageOffset":29248,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":1},{"imageOffset":8228,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":3975834,"name":"io.worker.5","frames":[{"imageOffset":20672,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":30728,"symbol":"_pthread_cond_wait","symbolLocation":1228,"imageIndex":1},{"imageOffset":184864,"imageIndex":3},{"imageOffset":357388,"imageIndex":3},{"imageOffset":360800,"imageIndex":3},{"imageOffset":29248,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":1},{"imageOffset":8228,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":3975835,"name":"io.worker.6","frames":[{"imageOffset":20672,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":30728,"symbol":"_pthread_cond_wait","symbolLocation":1228,"imageIndex":1},{"imageOffset":184864,"imageIndex":3},{"imageOffset":357388,"imageIndex":3},{"imageOffset":360800,"imageIndex":3},{"imageOffset":29248,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":1},{"imageOffset":8228,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":3975836,"name":"io.worker.7","frames":[{"imageOffset":20672,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":30728,"symbol":"_pthread_cond_wait","symbolLocation":1228,"imageIndex":1},{"imageOffset":184864,"imageIndex":3},{"imageOffset":357388,"imageIndex":3},{"imageOffset":360800,"imageIndex":3},{"imageOffset":29248,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":1},{"imageOffset":8228,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":3975837,"name":"io.worker.8","frames":[{"imageOffset":20672,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":30728,"symbol":"_pthread_cond_wait","symbolLocation":1228,"imageIndex":1},{"imageOffset":184864,"imageIndex":3},{"imageOffset":357388,"imageIndex":3},{"imageOffset":360800,"imageIndex":3},{"imageOffset":29248,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":1},{"imageOffset":8228,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":3975838,"name":"dart:io EventHandler","frames":[{"imageOffset":30924,"symbol":"kevent","symbolLocation":8,"imageIndex":0},{"imageOffset":8038800,"imageIndex":3},{"imageOffset":8202212,"imageIndex":3},{"imageOffset":29248,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":1},{"imageOffset":8228,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7302283264,
    "size" : 221184,
    "uuid" : "384945e6-dd71-37e5-9a3d-84fff14a1e60",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7302504448,
    "size" : 53248,
    "uuid" : "f7b2eccf-e6f1-3109-ae81-9028c0b8332a",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7301238784,
    "size" : 528384,
    "uuid" : "0dbc8b95-0037-3725-a769-0c772c293488",
    "path" : "\/usr\/lib\/system\/libsystem_c.dylib",
    "name" : "libsystem_c.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4393041920,
    "CFBundleShortVersionString" : "1.0",
    "CFBundleIdentifier" : "io.flutter.flutter-macos",
    "size" : 11403264,
    "uuid" : "5d235724-b7ae-303b-a2e1-7154cc27d25a",
    "path" : "\/Users\/USER\/*\/mac.app\/Contents\/Frameworks\/FlutterMacOS.framework\/Versions\/A\/FlutterMacOS",
    "name" : "FlutterMacOS",
    "CFBundleVersion" : "1.0"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7348531200,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.AppKit",
    "size" : 15429632,
    "uuid" : "8701760d-31b6-37eb-be77-ffb39921dd22",
    "path" : "\/System\/Library\/Frameworks\/AppKit.framework\/Versions\/C\/AppKit",
    "name" : "AppKit",
    "CFBundleVersion" : "2113.30.116"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4363321344,
    "CFBundleShortVersionString" : "1.0.0",
    "CFBundleIdentifier" : "com.example.mac",
    "size" : 16384,
    "uuid" : "06a9f94b-e375-3c6f-a752-e0213ac40a89",
    "path" : "\/Users\/USER\/*\/mac.app\/Contents\/MacOS\/mac",
    "name" : "mac",
    "CFBundleVersion" : "1"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 4366712832,
    "size" : 393216,
    "uuid" : "d21a73ea-79cd-36eb-8ac9-2c5cf5181a27",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7302823936,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.CoreFoundation",
    "size" : 5521408,
    "uuid" : "35473de6-c433-332c-aee0-013fd5f6d4fd",
    "path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/Versions\/A\/CoreFoundation",
    "name" : "CoreFoundation",
    "CFBundleVersion" : "1856.107"
  }
],
  "sharedCache" : {
  "base" : 7299334144,
  "size" : 3091218432,
  "uuid" : "296eb28e-6aeb-3129-8fa6-feb92261a4eb"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=908.8M resident=0K(0%) swapped_out_or_unallocated=908.8M(100%)\nWritable regions: Total=850.2M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=850.2M(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nActivity Tracing                   256K        1 \nColorSync                          528K       23 \nCoreGraphics                        32K        2 \nFoundation                          16K        1 \nKernel Alloc Once                   32K        1 \nMALLOC                           208.3M       31 \nMALLOC guard page                  192K       11 \nMALLOC_MEDIUM (reserved)         240.0M        2         reserved VM address space (unallocated)\nMALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)\nSTACK GUARD                       56.3M       17 \nStack                             17.0M       17 \nVM_ALLOCATE                        1.0G        6 \n__AUTH                            2146K      217 \n__AUTH_CONST                      13.2M      377 \n__DATA                             9.9M      366 \n__DATA_CONST                      14.1M      383 \n__DATA_DIRTY                      1256K      148 \n__FONT_DATA                          4K        1 \n__LINKEDIT                       576.8M        6 \n__OBJC_CONST                      2336K      181 \n__OBJC_RO                         82.1M        1 \n__OBJC_RW                         3104K        1 \n__TEXT                           331.9M      398 \n__UNICODE                          588K        1 \ndyld private memory               1024K        1 \nmapped file                      139.2M       18 \nshared memory                      848K       13 \n===========                     =======  ======= \nTOTAL                              3.0G     2225 \nTOTAL, minus reserved VM space     2.4G     2225 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "com.apple.main-thread"
  }
},
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "60da5e84ab0ca017dace9abf",
      "factorPackIds" : {

      },
      "deploymentId" : 240000008
    },
    {
      "rolloutId" : "607844aa04477260f58a8077",
      "factorPackIds" : {
        "SIRI_MORPHUN_ASSETS" : "6103050cbfe6dc472e1c982a"
      },
      "deploymentId" : 240000066
    },
    {
      "rolloutId" : "602ad4dac86151000cf27e46",
      "factorPackIds" : {
        "SIRI_DICTATION_ASSETS" : "61fb0e87c773c43cde3bb80e"
      },
      "deploymentId" : 240000305
    },
    {
      "rolloutId" : "60356660bbe37970735c5624",
      "factorPackIds" : {

      },
      "deploymentId" : 240000027
    },
    {
      "rolloutId" : "601d9415f79519000ccd4b69",
      "factorPackIds" : {
        "SIRI_TEXT_TO_SPEECH" : "622657ce37186c771d5404ad"
      },
      "deploymentId" : 240000416
    },
    {
      "rolloutId" : "5fc94383418129005b4e9ae0",
      "factorPackIds" : {

      },
      "deploymentId" : 240000274
    },
    {
      "rolloutId" : "5ffde50ce2aacd000d47a95f",
      "factorPackIds" : {

      },
      "deploymentId" : 240000123
    }
  ],
  "experiments" : [

  ]
}
}
flutter doctor -v
[✓] Flutter (Channel master, 2.13.0-0.0.pre.142, on macOS 12.2.1 21D62
    darwin-arm, locale en-GB)
    • Flutter version 2.13.0-0.0.pre.142 at /Users/nexus/dev/sdks/flutters
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 8e11192d0f (4 hours ago), 2022-03-18 01:55:20 -0400
    • Engine revision 6495796bce
    • Dart version 2.17.0 (build 2.17.0-216.0.dev)
    • DevTools version 2.11.4

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/nexus/Library/Android/sdk
    • Platform android-32, build-tools 31.0.0
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)

[✓] IntelliJ IDEA Community Edition (version 2021.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin version 213.5744.122

[✓] VS Code (version 1.65.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.36.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-arm64   • macOS 12.2.1 21D62 darwin-arm
    • Chrome (web)    • chrome • web-javascript • Google Chrome 99.0.4844.74

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

@danagbemava-nc danagbemava-nc added platform-mac Building on or for macOS specifically a: release Challenges faced when attempting to productionize an app has reproducible steps The issue has been confirmed reproducible and is ready to work on c: fatal crash Crashes that terminate the process platform-host-arm Building on an ARM-based platform found in release: 2.13 Found to occur in 2.13 and removed in triage Presently being triaged by the triage team labels Mar 18, 2022
@danagbemava-nc
Copy link
Member

/cc @cbracken

@danagbemava-nc danagbemava-nc added the engine flutter/engine repository. See also e: labels. label Mar 18, 2022
@cbracken
Copy link
Member

Thanks -- taking a look!

@cbracken
Copy link
Member

Looks like the issue is that despite everything being built as universal binaries, we're incorrectly loading the x64 snapshot when running under arm64 at runtime. Putting together a patch.

@chinmaygarde chinmaygarde added P2 P1 High-priority issues at the top of the work list and removed P2 labels Mar 21, 2022
@cbracken
Copy link
Member

A patch that fixes this issue is out in #100504.

cbracken added a commit to cbracken/flutter that referenced this issue Mar 22, 2022
Previously, flutter#100271 enabled
building universal macOS binaries by default, but included a bug causing
the arm64 App.framework to be built such that the TEXT section
containing the app instructions built by gen_snapshot incorrectly
contained x86_64 instructions rather than arm64 instructions.

When building macOS (and iOS) apps, Flutter builds them in three
components:
* The Runner application: built by Xcode
* The bundled App.framework: built from assembly code generated by
  gen_snapshot from the application's Dart sources.
* The bundled FlutterMacOS.framework: built as part of the engine build
  and packaged by copying the distributed binary framework from our
  artifacts cache.

Building App.framework consists of the following steps:
* For each architecture, invoke gen_snapshot to generate
  architecture-specific assembly code, which is then built to object
  code and linked into an architecture-specific App.framework.
* Use the `lipo` tool to generate a universal binary that includes both
  x86_64 and arm64 architectures.

Previously, we were building architecture specific App.framework
binaries. However, for all architectures we were (mistakenly) invoking
the general `gen_snapshot` tool (which emitted x64 instructions, and
which is now deprecated) instead of the architecture-specific
`gen_snapshot_x86` and `gen_snapshot_arm64` builds which emit
instructions for the correct architecture.

This change introduces a small refactoring, which is to split the
`getNameForDarwinArch` function into two functions:
* `getDartNameForDarwinArch`: the name for the specified architecture as
  used in the Dart SDK, for example as the suffix of `gen_snapshot`.
* `getNameForDarwinArch`: the name for the specified architecture
  as used in Apple tools, for example as an argument to `lipo`. For
  consistency, and to match developer expectations on Darwin platforms,
  this is also the name used in Flutter's build outputs.

Issue: flutter#100348
cbracken added a commit that referenced this issue Mar 22, 2022
Previously, #100271 enabled
building universal macOS binaries by default, but included a bug causing
the arm64 App.framework to be built such that the TEXT section
containing the app instructions built by gen_snapshot incorrectly
contained x86_64 instructions rather than arm64 instructions.

When building macOS (and iOS) apps, Flutter builds them in three
components:
* The Runner application: built by Xcode
* The bundled App.framework: built from assembly code generated by
  gen_snapshot from the application's Dart sources.
* The bundled FlutterMacOS.framework: built as part of the engine build
  and packaged by copying the distributed binary framework from our
  artifacts cache.

Building App.framework consists of the following steps:
* For each architecture, invoke gen_snapshot to generate
  architecture-specific assembly code, which is then built to object
  code and linked into an architecture-specific App.framework.
* Use the `lipo` tool to generate a universal binary that includes both
  x86_64 and arm64 architectures.

Previously, we were building architecture specific App.framework
binaries. However, for all architectures we were (mistakenly) invoking
the general `gen_snapshot` tool (which emitted x64 instructions, and
which is now deprecated) instead of the architecture-specific
`gen_snapshot_x86` and `gen_snapshot_arm64` builds which emit
instructions for the correct architecture.

This change introduces a small refactoring, which is to split the
`getNameForDarwinArch` function into two functions:
* `getDartNameForDarwinArch`: the name for the specified architecture as
  used in the Dart SDK, for example as the suffix of `gen_snapshot`.
* `getNameForDarwinArch`: the name for the specified architecture
  as used in Apple tools, for example as an argument to `lipo`. For
  consistency, and to match developer expectations on Darwin platforms,
  this is also the name used in Flutter's build outputs.

Issue: #100348
@cbracken
Copy link
Member

cbracken commented Mar 22, 2022

This was fixed in #100504, which has now landed on master branch. Adding x86_64/M1 release run tests in #100526.

cbracken added a commit to cbracken/flutter that referenced this issue Mar 22, 2022
Adds a test that invokes flutter run in release mode on macOS desktop,
waits for successful launch and the flutter command list, then sends the
'q' command to quit the running app.

This adds an integration test for
flutter#100504.

Issue: flutter#100348
@danagbemava-nc danagbemava-nc added the r: fixed Issue is closed as already fixed in a newer version label Mar 22, 2022
cbracken added a commit that referenced this issue Mar 22, 2022
Adds a test that invokes flutter run in release mode on macOS desktop,
waits for successful launch and the flutter command list, then sends the
'q' command to quit the running app.

This adds an integration test for #100504.

Issue: #100348 (fix)
Issue: #97978 (partial fix)
Issue: #97977 (partial fix)
Umbrella issue: #60113
@cbracken cbracken added this to To do in macOS Desktop Stable via automation Mar 22, 2022
@cbracken cbracken moved this from To do to Done in macOS Desktop Stable Mar 22, 2022
cbracken added a commit to cbracken/flutter that referenced this issue Mar 22, 2022
In the run_release_test_macos integration test that verifies that a
release build of an app can be launched (and quit), xcodebuild from the
Xcode install on the macOS bots emits a few info messages about
Simulator SDK versions that are irrelevant to the functioning of this
test.

Ignore these instead of failing the test if they occur.

Related: flutter#100526

Issue: flutter#100348 (fix)
Issue: flutter#97978 (partial fix)
Issue: flutter#97977 (partial fix)
Umbrella issue: flutter#60113
cbracken added a commit that referenced this issue Mar 23, 2022
In the run_release_test_macos integration test that verifies that a
release build of an app can be launched (and quit), xcodebuild from the
Xcode install on the macOS bots emits a few info messages about
Simulator SDK versions that are irrelevant to the functioning of this
test.

Ignore these instead of failing the test if they occur.

Related: #100526

Issue: #100348 (fix)
Issue: #97978 (partial fix)
Issue: #97977 (partial fix)
Umbrella issue: #60113
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a: release Challenges faced when attempting to productionize an app c: fatal crash Crashes that terminate the process engine flutter/engine repository. See also e: labels. found in release: 2.13 Found to occur in 2.13 has reproducible steps The issue has been confirmed reproducible and is ready to work on P1 High-priority issues at the top of the work list platform-host-arm Building on an ARM-based platform platform-mac Building on or for macOS specifically r: fixed Issue is closed as already fixed in a newer version
Projects
No open projects
Development

No branches or pull requests

4 participants