Multiple users on MacOS causing Rstudio crash

Hi,

On MacOS 12.0.1, arm64 (M1 macbook pro), when user 1 installs RStudio, Rstudio crashes at launch for user 2. Reinstalling as user 2 fixes the issue, but causes Studio to crash at launch for user 1. Both users are administrators. Here is the crash report:

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

Process:               RStudio [2416]
Path:                  /Applications/RStudio.app/Contents/MacOS/RStudio
Identifier:            org.rstudio.RStudio
Version:               2021.09.1+372 (2021.09.1+372)
Code Type:             X86-64 (Translated)
Parent Process:        launchd [1]
User ID:               502

Date/Time:             2021-12-19 12:15:52.4966 -0500
OS Version:            macOS 12.0.1 (21A559)
Report Version:        12
Anonymous UUID:        55705A4A-83C0-2F5A-CA14-7EA529B9B15E

Sleep/Wake UUID:       E2180C51-3E57-447F-B11F-B2176DBDDFEF

Time Awake Since Boot: 3700 seconds
Time Since Wake:       232 seconds

System Integrity Protection: enabled

Crashed Thread:        0

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

Termination Reason:    Namespace DYLD, Code 1 Library missing
Library not loaded: @rpath/QtWebEngine.framework/Versions/5/QtWebEngine
Referenced from: /Applications/RStudio.app/Contents/MacOS/RStudio
Reason: tried: '/Applications/RStudio.app/Contents/MacOS/../Frameworks/QtWebEngine.framework/Versions/5/QtWebEngine' (open() failed with errno=13), '/Applications/RStudio.app/Contents/MacOS/../Frameworks/QtWebEngine.framework/Versions/5/QtWebEngine' (open() failed with errno=13), '/System/Library/Frameworks/QtWebEngine.framework/Versions/5/QtWebEngine' (no such file)
(terminated at launch; ignore backtrace)

Application Specific Information:
Library not loaded: @rpath/QtWebEngine.framework/Versions/5/QtWebEngine
Referenced from: /Applications/RStudio.app/Contents/MacOS/RStudio
Reason: tried: '/Applications/RStudio.app/Contents/MacOS/../Frameworks/QtWebEngine.framework/Versions/5/QtWebEngine' (open() failed with errno=13), '/Applications/RStudio.app/Contents/MacOS/../Frameworks/QtWebEngine.framework/Versions/5/QtWebEngine' (open() failed with errno=13), '/System/Library/Frameworks/QtWebEngine.framework/Versions/5/QtWebEngine' (no such file)


Thread 0 Crashed:
0   Rosetta Runtime Routines	       0x104d21940 ???
1   <translation info unavailable>	       0x104d642ac ???
2   dyld                          	       0x204d67201 abort_with_payload + 9
3   dyld                          	       0x204d15613 dyld4::halt(char const*) + 375
4   dyld                          	       0x204d1155d dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 3955
5   dyld                          	       0x204d104b4 start + 388
6   ???                           	               0x3 ???

Thread 1:: com.apple.rosetta.exceptionserver
0   runtime                       	    0x7ff7ffe218e4 0x7ff7ffe1d000 + 18660
1   runtime                       	    0x7ff7ffe2e928 0x7ff7ffe1d000 + 71976
2   runtime                       	    0x7ff7ffe300a4 0x7ff7ffe1d000 + 77988


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000006   x1: 0x0000000000000001   x2: 0x000000030d447a40   x3: 0x0000000000000079
    x4: 0x000000030d447640   x5: 0x0000000000000000   x6: 0x000000030d447630   x7: 0x0000002004d0dd3f
    x8: 0x000000030d447640   x9: 0x0000000000000000  x10: 0x0000000000000079  x11: 0x000000030d447640
   x12: 0x0000000000000079  x13: 0x000000030d447a40  x14: 0x0000000000000001  x15: 0x0000000000000006
   x16: 0x0000000000000209  x17: 0x0000000000000000  x18: 0x800000010cd8ab70  x19: 0x0000000104d17000
   x20: 0x00000000000007ff  x21: 0x000000010cd8ffa0  x22: 0xffffffffffffffff  x23: 0x0000000104d21914
   x24: 0x0000000204d671cf  x25: 0x0000000104d211f4  x26: 0x0000000104d63558  x27: 0x0000000000000000
   x28: 0x0000000204d510ce   fp: 0x000000002c000000   lr: 0x0000000104d642ac
    sp: 0x000000010cd8ab70   pc: 0x0000000104d21940 cpsr: 0x80000000
   far: 0x0000000104d64000  esr: 0x56000080  Address size fault

Binary Images:
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
       0x204d0b000 -        0x204d76fff dyld (*) <1a6ae033-9438-33c0-8077-988fd885250a> /usr/lib/dyld
    0x7ff7ffe1d000 -     0x7ff7ffe4cfff runtime (*) <9f5d65be-d8d0-3979-bb05-e651a67e785c> /usr/libexec/rosetta/runtime

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

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Rosetta Arena                     4096K        2 
Rosetta Generic                    752K      185 
Rosetta IndirectBranch              32K        1 
Rosetta JIT                      128.0M        1 
Rosetta Return Stack                20K        2 
Rosetta Thread Context              20K        2 
Stack                             8176K        1 
Stack Guard                       56.0M        1 
VM_ALLOCATE                       13.0M        5 
VM_ALLOCATE (reserved)              32K        1         reserved VM address space (unallocated)
__DATA                             240K        6 
__DATA_CONST                        48K        1 
__LINKEDIT                         576K        8 
__TEXT                            3600K        4 
dyld private memory               1024K        1 
mapped file                        5.9G       28 
===========                     =======  ======= 
TOTAL                              6.1G      249 
TOTAL, minus reserved VM space     6.1G      249 



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

{"app_name":"RStudio","timestamp":"2021-12-19 12:15:52.00 -0500","app_version":"2021.09.1+372","slice_uuid":"de1a9b2e-8769-328b-92bb-241a24ede711","build_version":"2021.09.1+372","platform":1,"bundleID":"org.rstudio.RStudio","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 12.0.1 (21A559)","incident_id":"5DBD4144-3CE2-4AB5-9BDF-2C3F3B045B82","name":"RStudio"}
{
  "uptime" : 3700,
  "procLaunch" : "2021-12-19 12:15:52.4648 -0500",
  "procRole" : "Default",
  "version" : 2,
  "userID" : 502,
  "deployVersion" : 210,
  "modelCode" : "MacBookPro18,3",
  "procStartAbsTime" : 88861714284,
  "coalitionID" : 1498,
  "osVersion" : {
    "train" : "macOS 12.0.1",
    "build" : "21A559",
    "releaseType" : "User"
  },
  "captureTime" : "2021-12-19 12:15:52.4966 -0500",
  "incident" : "5DBD4144-3CE2-4AB5-9BDF-2C3F3B045B82",
  "bug_type" : "309",
  "pid" : 2416,
  "procExitAbsTime" : 88862461165,
  "translated" : true,
  "cpuType" : "X86-64",
  "procName" : "RStudio",
  "procPath" : "\/Applications\/RStudio.app\/Contents\/MacOS\/RStudio",
  "bundleInfo" : {"CFBundleShortVersionString":"2021.09.1+372","CFBundleVersion":"2021.09.1+372","CFBundleIdentifier":"org.rstudio.RStudio"},
  "storeInfo" : {"deviceIdentifierForVendor":"A72A7164-537D-5995-BDA8-4AC239395B08","thirdParty":true},
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "org.rstudio.RStudio",
  "crashReporterKey" : "55705A4A-83C0-2F5A-CA14-7EA529B9B15E",
  "wakeTime" : 232,
  "sleepWakeUUID" : "E2180C51-3E57-447F-B11F-B2176DBDDFEF",
  "sip" : "enabled",
  "isCorpse" : 1,
  "exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},
  "termination" : {"code":1,"flags":518,"namespace":"DYLD","indicator":"Library missing","details":["(terminated at launch; ignore backtrace)"],"reasons":["Library not loaded: @rpath\/QtWebEngine.framework\/Versions\/5\/QtWebEngine","Referenced from: \/Applications\/RStudio.app\/Contents\/MacOS\/RStudio","Reason: tried: '\/Applications\/RStudio.app\/Contents\/MacOS\/..\/Frameworks\/QtWebEngine.framework\/Versions\/5\/QtWebEngine' (open() failed with errno=13), '\/Applications\/RStudio.app\/Contents\/MacOS\/..\/Frameworks\/QtWebEngine.framework\/Versions\/5\/QtWebEngine' (open() failed with errno=13), '\/System\/Library\/Frameworks\/QtWebEngine.framework\/Versions\/5\/QtWebEngine' (no such file)"]},
  "asi" : {"dyld":["Library not loaded: @rpath\/QtWebEngine.framework\/Versions\/5\/QtWebEngine","Referenced from: \/Applications\/RStudio.app\/Contents\/MacOS\/RStudio","Reason: tried: '\/Applications\/RStudio.app\/Contents\/MacOS\/..\/Frameworks\/QtWebEngine.framework\/Versions\/5\/QtWebEngine' (open() failed with errno=13), '\/Applications\/RStudio.app\/Contents\/MacOS\/..\/Frameworks\/QtWebEngine.framework\/Versions\/5\/QtWebEngine' (open() failed with errno=13), '\/System\/Library\/Frameworks\/QtWebEngine.framework\/Versions\/5\/QtWebEngine' (no such file)"]},
  "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":86276,"threadState":{"x":[{"value":6},{"value":1},{"value":13107493440},{"value":121},{"value":13107492416},{"value":0},{"value":13107492400},{"value":137519750463},{"value":13107492416},{"value":0},{"value":121},{"value":13107492416},{"value":121},{"value":13107493440},{"value":1},{"value":6},{"value":521},{"value":0},{"value":9223372041365269360},{"value":4375801856},{"value":2047},{"value":4510515104},{"value":18446744073709551615},{"value":4375845140},{"value":8671097295,"symbolLocation":80,"symbol":"abort_with_payload_wrapper_internal"},{"value":4375843316},{"value":4376114520},{"value":0},{"value":8671006926,"symbolLocation":10,"symbol":"__abort_with_payload"}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4376117932},"cpsr":{"value":2147483648},"fp":{"value":738197504},"sp":{"value":4510493552},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":4375845184,"matchesCrashFrame":1},"far":{"value":4376117248}},"frames":[{"imageOffset":4375845184,"region":"Rosetta Runtime Routines","symbolLocation":10560,"imageIndex":0},{"imageOffset":4376117932,"region":"<translation info unavailable>","imageIndex":0},{"imageOffset":377345,"symbol":"abort_with_payload","symbolLocation":9,"imageIndex":1},{"imageOffset":42515,"symbol":"dyld4::halt(char const*)","symbolLocation":375,"imageIndex":1},{"imageOffset":25949,"symbol":"dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*)","symbolLocation":3955,"imageIndex":1},{"imageOffset":21684,"symbol":"start","symbolLocation":388,"imageIndex":1},{"imageOffset":3,"imageIndex":0}]},{"id":86278,"name":"com.apple.rosetta.exceptionserver","frames":[{"imageOffset":18660,"imageIndex":2},{"imageOffset":71976,"imageIndex":2},{"imageOffset":77988,"imageIndex":2}]}],
  "usedImages" : [
  {
    "size" : 0,
    "source" : "A",
    "base" : 0,
    "uuid" : "00000000-0000-0000-0000-000000000000"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 8670720000,
    "size" : 442368,
    "uuid" : "1a6ae033-9438-33c0-8077-988fd885250a",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 140703126638592,
    "size" : 196608,
    "uuid" : "9f5d65be-d8d0-3979-bb05-e651a67e785c",
    "path" : "\/usr\/libexec\/rosetta\/runtime",
    "name" : "runtime"
  }
],
  "sharedCache" : {
  "base" : 140703467831296,
  "size" : 15215640576,
  "uuid" : "b5084610-afe4-3485-bade-628c4468b057"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=4096K resident=0K(0%) swapped_out_or_unallocated=4096K(100%)\nWritable regions: Total=154.9M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=154.9M(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nRosetta Arena                     4096K        2 \nRosetta Generic                    752K      185 \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                       13.0M        5 \nVM_ALLOCATE (reserved)              32K        1         reserved VM address space (unallocated)\n__DATA                             240K        6 \n__DATA_CONST                        48K        1 \n__LINKEDIT                         576K        8 \n__TEXT                            3600K        4 \ndyld private memory               1024K        1 \nmapped file                        5.9G       28 \n===========                     =======  ======= \nTOTAL                              6.1G      249 \nTOTAL, minus reserved VM space     6.1G      249 \n",
  "legacyInfo" : {
  "threadTriggered" : {

  }
},
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "60da5e84ab0ca017dace9abf",
      "factorPackIds" : {

      },
      "deploymentId" : 240000008
    },
    {
      "rolloutId" : "607844aa04477260f58a8077",
      "factorPackIds" : {
        "SIRI_MORPHUN_ASSETS" : "6103050cbfe6dc472e1c982a"
      },
      "deploymentId" : 240000066
    },
    {
      "rolloutId" : "602ad4dac86151000cf27e46",
      "factorPackIds" : {
        "SIRI_DICTATION_ASSETS" : "61ae8d06da72d16a4beb762e"
      },
      "deploymentId" : 240000290
    },
    {
      "rolloutId" : "601d9415f79519000ccd4b69",
      "factorPackIds" : {
        "SIRI_TEXT_TO_SPEECH" : "61b913a253a0785760dd8bbb"
      },
      "deploymentId" : 240000341
    },
    {
      "rolloutId" : "5fc94383418129005b4e9ae0",
      "factorPackIds" : {

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

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

  ]
}
}

Model: MacBookPro18,3, BootROM 7429.41.5, proc 10:8:2 processors, 32 GB, SMC 
Graphics: Apple M1 Pro, Apple M1 Pro, Built-In
Display: Color LCD, 3024 x 1964 Retina, Main, MirrorOff, Online
Memory Module: LPDDR5
AirPort: Wi-Fi, wl0: Sep 24 2021 15:49:44 version 20.10.853.23.8.7.106 FWID 01-78e271b2
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: USB31Bus
USB Device: USB31Bus
USB Device: USB31Bus
Thunderbolt Bus: MacBook Pro, Apple Inc.
Thunderbolt Bus: MacBook Pro, Apple Inc.
Thunderbolt Bus: MacBook Pro, Apple Inc.

This is a known issue. We have a patched version available on our dailies page:

https://dailies.rstudio.com/

If running pre-release software makes you nervous, we also have a patched version of 2021.09 with the fix:

https://dailies.rstudio.com/rstudio/ghost-orchid/

Let us know if one of those doesn't fix it for you!

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.