question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MacOS Monterey on Simulator app crash

See original GitHub issue

Description

I updated my macos version to Monterey. When I build my app to simulator, app splash screen shows then crash immediately. I wrote arm64 to Excluded Arcitectures area, because not build if i won’t write. Arcitecture area is “Standart Arcitectures (arm64 - armv7)”

React Native version:

System:
    OS: macOS 12.0
    CPU: (8) arm64 Apple M1
    Memory: 388.94 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 15.14.0 - /opt/homebrew/bin/node
    Yarn: Not Found
    npm: 7.10.0 - /opt/homebrew/bin/npm
    Watchman: 4.9.0 - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.10.1 - /opt/homebrew/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.0, iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0
    Android SDK:
      API Levels: 28, 29, 30
      Build Tools: 28.0.3, 29.0.2, 29.0.3, 30.0.3
      System Images: android-30 | Google APIs Intel x86 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: 4.1 AI-201.8743.12.41.7199119
    Xcode: 13.0/13A5155e - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_282 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.1 => 17.0.1 
    react-native: 0.64.0 => 0.64.0 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Simulator Crash Logs:


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

Incident Identifier: C7117C8A-7ECE-4B80-83E5-5AA7668CBF48
CrashReporter Key:   4ADF621D-1F70-7DDD-BDA5-76A7E076C928
Hardware Model:      MacBookPro17,1
Process:             RN64 [20668]
Path:                /Users/USER/Library/Developer/CoreSimulator/Devices/EE02C1C3-18EF-4E55-8E7F-B29878F8D8D5/data/Containers/Bundle/Application/22900214-5263-4B6E-AA55-7F32D1B698BE/RN64.app/RN64
Identifier:          com.atlantis.mgmt
Version:             1.0 (1)
Code Type:           X86-64 (Native)
Role:                Foreground
Parent Process:      Exited process [20669]
Coalition:           com.apple.CoreSimulator.SimDevice.EE02C1C3-18EF-4E55-8E7F-B29878F8D8D5 [4323]
Responsible Process: SimulatorTrampoline [644]

Date/Time:           2021-07-04 03:15:47.0140 +0300
Launch Time:         2021-07-04 03:15:45.8506 +0300
OS Version:          macOS 12.0 (21A5268h)
Release Type:        User
Report Version:      104

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Codes: 0x0000000000000001, 0x0000000000000000
VM Region Info: 0 is not in any region.  Bytes before following region: 4330295296
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      mapped file                 1021b1000-102a99000    [ 9120K] r-x/r-x SM=COW  ...t_id=f82d008f
Exception Note:  EXC_CORPSE_NOTIFY
Termination Reason: SIGNAL 11 Segmentation fault: 11
Terminating Process: exc handler [20668]

Triggered by Thread:  0

Application Specific Information:



Thread 0 Crashed:
0   ???                           	    0x7ff7ffec4118 ???
1   <translation info unavailable>	       0x104ab131c ???
2   dyld                          	       0x204d93a32 dyld4::prepareSim(dyld4::RuntimeState&, char const*) + 890
3   dyld                          	       0x204d926b5 dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 244
4   dyld                          	       0x204d924b4 start + 388
5   ???                           	               0x3 ???

Thread 1:: com.apple.rosetta.exceptionserver
0   ???                           	    0x7ff7ffeb1984 ???
1   ???                           	    0x7ff7ffec9320 ???

Thread 2:: com.apple.rosetta.debugserver
0   ???                           	    0x7ff7ffeb1984 ???
1   ???                           	    0x7ff7ffec9320 ???


Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x000000010cb08af8  rcx: 0x0000000000000000  rdx: 0x0000000000000001
  rdi: 0x0000000000000000  rsi: 0x0000000000000000  rbp: 0x0000000000000000  rsp: 0x000000010d1ca000
   r8: 0x7d5b7d693aea00ff   r9: 0x0000000000000000  r10: 0x000000010d1ca000  r11: 0x000000010cfd3010
  r12: 0x0000000000000000  r13: 0x000000010cfd3060  r14: 0x0000000204e01080  r15: 0x0000000000000000
  rip: <unavailable>       rfl: 0x0000000000000283
 tmp0: 0x0000000104a9fd98 tmp1: 0x0000000104a9f090 tmp2: 0x0000000204daca13


Binary Images:
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
       0x204d8d000 -        0x204df4fff dyld (*) <1051784a-31a4-3307-b922-6e65e511ff69> /usr/lib/dyld

EOF

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

{"app_name":"RN64","timestamp":"2021-07-04 03:15:47.00 +0300","app_version":"1.0","slice_uuid":"478b4dae-f9cc-332d-af35-e5649dd33657","build_version":"1","platform":7,"bundleID":"com.atlantis.mgmt","share_with_app_devs":0,"is_first_party":0,"etl_key":"3","bug_type":"309","os_version":"macOS 12.0 (21A5268h)","incident_id":"C7117C8A-7ECE-4B80-83E5-5AA7668CBF48","name":"RN64"}
{
  "uptime" : 4300,
  "procLaunch" : "2021-07-04 03:15:45.8506 +0300",
  "procRole" : "Foreground",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 209,
  "modelCode" : "MacBookPro17,1",
  "coalitionID" : 4323,
  "osVersion" : {
    "train" : "macOS 12.0",
    "build" : "21A5268h",
    "releaseType" : "User"
  },
  "captureTime" : "2021-07-04 03:15:47.0140 +0300",
  "incident" : "C7117C8A-7ECE-4B80-83E5-5AA7668CBF48",
  "pid" : 20668,
  "translated" : true,
  "cpuType" : "X86-64",
  "procName" : "RN64",
  "procPath" : "\/Users\/USER\/Library\/Developer\/CoreSimulator\/Devices\/EE02C1C3-18EF-4E55-8E7F-B29878F8D8D5\/data\/Containers\/Bundle\/Application\/22900214-5263-4B6E-AA55-7F32D1B698BE\/RN64.app\/RN64",
  "bundleInfo" : {"CFBundleShortVersionString":"1.0","CFBundleVersion":"1","CFBundleIdentifier":"com.atlantis.mgmt"},
  "storeInfo" : {"deviceIdentifierForVendor":"D165BA32-0A52-501A-BA1D-31F613D2C050","thirdParty":true},
  "parentProc" : "Exited process",
  "parentPid" : 20669,
  "coalitionName" : "com.apple.CoreSimulator.SimDevice.EE02C1C3-18EF-4E55-8E7F-B29878F8D8D5",
  "crashReporterKey" : "4ADF621D-1F70-7DDD-BDA5-76A7E076C928",
  "responsiblePid" : 644,
  "responsibleProc" : "SimulatorTrampoline",
  "sip" : "enabled",
  "vmRegionInfo" : "0 is not in any region.  Bytes before following region: 4330295296\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  \n      mapped file                 1021b1000-102a99000    [ 9120K] r-x\/r-x SM=COW  ...t_id=f82d008f",
  "isCorpse" : 1,
  "exception" : {"codes":"0x0000000000000001, 0x0000000000000000","rawCodes":[1,0],"type":"EXC_BAD_ACCESS","signal":"SIGSEGV","subtype":"KERN_INVALID_ADDRESS at 0x0000000000000000"},
  "termination" : {"flags":0,"code":11,"namespace":"SIGNAL","indicator":"Segmentation fault: 11","byProc":"exc handler","byPid":20668},
  "vmregioninfo" : "0 is not in any region.  Bytes before following region: 4330295296\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  \n      mapped file                 1021b1000-102a99000    [ 9120K] r-x\/r-x SM=COW  ...t_id=f82d008f",
  "asi" : {"dyld":[]},
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":12,"thread_set_state":0,"task_for_pid":32},"targeted":{"thread_create":1,"thread_set_state":0,"task_for_pid":2},"warnings":1},
  "faultingThread" : 0,
  "threads" : [{"triggered":true,"id":114810,"threadState":{"flavor":"x86_THREAD_STATE","rbp":{"value":0},"r12":{"value":0},"rosetta":{"tmp2":{"value":8671382035},"tmp1":{"value":4373213328},"tmp0":{"value":4373216664}},"rbx":{"value":4507863800},"r8":{"value":9032951368535113983},"r15":{"value":0},"r10":{"value":4514947072},"rdx":{"value":1},"rdi":{"value":0},"r9":{"value":0},"r13":{"value":4512886880},"rflags":{"value":643},"rax":{"value":0},"rsp":{"value":4514947072},"r11":{"value":4512886800},"rcx":{"value":0},"r14":{"value":8671727744,"symbolLocation":0,"symbol":"dyld4::gProcessInfo"},"rsi":{"value":0}},"frames":[{"imageOffset":140703127322904,"imageIndex":0},{"imageOffset":4373287708,"region":"<translation info unavailable>","imageIndex":0},{"imageOffset":27186,"symbol":"dyld4::prepareSim(dyld4::RuntimeState&, char const*)","symbolLocation":890,"imageIndex":1},{"imageOffset":22197,"symbol":"dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*)","symbolLocation":244,"imageIndex":1},{"imageOffset":21684,"symbol":"start","symbolLocation":388,"imageIndex":1},{"imageOffset":3,"imageIndex":0}]},{"id":114954,"name":"com.apple.rosetta.exceptionserver","frames":[{"imageOffset":140703127247236,"imageIndex":0},{"imageOffset":140703127343904,"imageIndex":0}]},{"id":114955,"name":"com.apple.rosetta.debugserver","frames":[{"imageOffset":140703127247236,"imageIndex":0},{"imageOffset":140703127343904,"imageIndex":0}]}],
  "usedImages" : [
  {
    "size" : 0,
    "source" : "A",
    "base" : 0,
    "uuid" : "00000000-0000-0000-0000-000000000000"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 8671252480,
    "size" : 425984,
    "uuid" : "1051784a-31a4-3307-b922-6e65e511ff69",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  }
],
  "vmSummary" : "ReadOnly portion of Libraries: Total=1048K resident=0K(0%) swapped_out_or_unallocated=1048K(100%)\nWritable regions: Total=155.2M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=155.2M(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nRosetta Arena                     4096K        2 \nRosetta Generic                    740K      182 \nRosetta IndirectBranch              32K        1 \nRosetta JIT                      128.0M        1 \nRosetta Return Stack                20K        2 \nRosetta Thread Context              20K        2 \nStack                             8176K        1 \nStack Guard                       56.0M        1 \nVM_ALLOCATE                       12.9M        8 \nVM_ALLOCATE (reserved)             640K        4         reserved VM address space (unallocated)\n__DATA                              20K        2 \n__DATA_CONST                        92K        2 \n__LINKEDIT                         360K        4 \n__TEXT                             720K        4 \ndyld private memory               1024K        1 \nmapped file                        5.8G       34 \nshared memory                       32K        2 \n===========                     =======  ======= \nTOTAL                              6.1G      253 \nTOTAL, minus reserved VM space     6.1G      253 \n",
  "legacyInfo" : {
  "threadTriggered" : {

  }
},
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "607844aa04477260f58a8077",
      "factorPackIds" : {
        "SIRI_MORPHUN_ASSETS" : "60c88ac7e7d17206e1f95943"
      },
      "deploymentId" : 250000052
    },
    {
      "rolloutId" : "602ad4dac86151000cf27e46",
      "factorPackIds" : {
        "SIRI_DICTATION_ASSETS" : "60c8a862e7d17206e1f95953"
      },
      "deploymentId" : 250000112
    },
    {
      "rolloutId" : "601d9415f79519000ccd4b69",
      "factorPackIds" : {
        "SIRI_TEXT_TO_SPEECH" : "60ca460c10d03d047ed95dfe"
      },
      "deploymentId" : 250000082
    }
  ],
  "experiments" : [

  ]
}
}

Model: MacBookPro17,1, BootROM 7429.0.133.121.1, proc 8:4:4 processors, 16 GB, SMC 
Graphics: kHW_AppleM1Item, Apple M1, spdisplays_builtin
Memory Module: LPDDR4
AirPort: spairport_wireless_card_type_wifi, wl0: May 11 2021 22:21:31 version 18.20.284.1.7.8.108 FWID 01-9dd86976
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: USB 3.1 Bus
USB Device: USB 3.1 Bus
Thunderbolt Bus: MacBook Pro, Apple Inc.
Thunderbolt Bus: MacBook Pro, Apple Inc.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:5
  • Comments:6

github_iconTop GitHub Comments

4reactions
yuritoledocommented, Nov 5, 2021

same problem here! 12.0.1

1reaction
efec89commented, Jul 19, 2021

Bug fixed with update to Monterey Beta 3

Read more comments on GitHub >

github_iconTop Results From Across the Web

Application crashes on simulator after update Monterey
Hi, I update mac Big Sur to Monterey Beta. After update my application not opens on iPhone Simulator (crashes immediately).
Read more >
iOS Simulator crashes on macOS Monterey - xcode
Save this question. Show activity on this post. After I updated macOS on macbook with M1, my project crashes when running on any...
Read more >
iOS : iOS Simulator crashes on macOS Monterey - YouTube
iOS : iOS Simulator crashes on macOS Monterey [ Beautify Your Computer : https://www.hows.tech/p/recommended.html ] iOS : iOS Simulator ...
Read more >
Apps Crashing on macOS Ventura? Here's the Fix
Reasons Why Apps Keep Crashing on macOS Ventura · App are not compatible. · Your Mac is out of memory space. · Too...
Read more >
iOS Simulator Crash Reports - CircleCI Support
If your iOS app crashes in the Simulator during a test run, the crash report can be used for diagnosing the exact cause...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found