Rstudio wont open

Please help. I got a new laptop (MacBook pro M3 with Sonoma 14.1). I downloaded R 4.3.2 and the console opens and seems to work, however I tried to download rstudio 12.1-402.dmg and it opened once but now it wont., every time click it the logo appears and nothing else happens. I tried downloading previous versions and still does not work.

I am not sure what else to do or why this isnt working.

Try resetting RStudio using the instructions here. If that does not work, try starting RStudio from a command prompt and post any error messages here.

I have the same problem. Below is some of the output of the error (from Console)

Edit/UPDATE: I don't have the problem with a sufficiently older version of rstudio. 20203.03.1 works. But 2023.12.0-369 doesn't.

error	11:49:45.044648-0500	kernel	Sandbox: logd_helper(669) deny(1) file-read-data /Applications/RStudio.app/Contents/Resources/app-x64/.webpack/main/native_modules/desktop.node
error	11:49:45.357326-0500	kernel	Sandbox: logd_helper(669) deny(1) file-read-data /Applications/RStudio.app/Contents/Resources/app-x64/.webpack/main/native_modules/build/Release/system-fonts.node
error	11:49:45.357614-0500	kernel	Sandbox: logd_helper(669) deny(1) file-read-data /Applications/RStudio.app/Contents/Resources/app-x64/.webpack/main/native_modules/dock.node

And another sandbox violation

error	11:49:45.590626-0500	sandboxd	Sandbox: RStudio Helper (GPU)(1096) deny(1) mach-lookup com.apple.tccd.system
Violation:       deny(1) mach-lookup com.apple.tccd.system
Process:         RStudio Helper (GPU) [1096]
Path:            /Applications/RStudio.app/Contents/Frameworks/RStudio Helper (GPU).app/Contents/MacOS/RStudio Helper (GPU)
Load Address:    0x101473000
Identifier:      com.rstudio.desktop.helper
Version:         2023.12.1+402 (2023.12.1+402)
Code Type:       x86_64 (Native)
Parent Process:  RStudio Helper (GPU) [1095]
Responsible:     /Applications/RStudio.app/Contents/MacOS/RStudio
User ID:         501

Date/Time:       2024-02-22 11:49:45.532 EST
OS Version:      macOS 14.3.1 (23D60)
Release Type:    User
Report Version:  8

MetaData: {"pid":1096,"hardware":"Mac","signing-id":"org.rstudio.RStudio","primary-filter-value":"com.apple.tccd.system","mach_namespace":1,"summary":"deny(1) mach-lookup com.apple.tccd.system","platform-binary":false,"team-id":"FYF2F5GFX4","checker":"launchd","errno":1,"profile-flags":2,"uid":501,"checker-pid":1,"platform-policy":false,"target":"com.apple.tccd.system","process_path":["Applications","RStudio.app","Contents","Frameworks","RStudio Helper (GPU).app","Contents","MacOS","RStudio Helper (GPU)"],"build":"macOS 14.3.1 (23D60)","platform_binary":"no","global-name":"com.apple.tccd.system","apple-internal":false,"responsible-process-team-id":"FYF2F5GFX4","profile-in-collection":false,"policy-description":"Sandbox","binary-in-trust-cache":false,"responsible-process-signing-id":"org.rstudio.RStudio","normalized_target":["com.apple.tccd.system"],"process":"RStudio Helper (GPU)","primary-filter":"global-name","flags":5,"process-path":"\/Applications\/RStudio.app\/Contents\/Frameworks\/RStudio Helper (GPU).app\/Contents\/MacOS\/RStudio Helper (GPU)","responsible-process-path":"\/Applications\/RStudio.app\/Contents\/MacOS\/RStudio","action":"deny","operation":"mach-lookup","sandbox_checker":"launchd","release-type":"User"}

Thread 0 (id: 31961, CrGpuMain):
0   libsystem_kernel.dylib        	0x00007ff815dbea2e mach_msg2_trap + 10
1   libsystem_kernel.dylib        	0x00007ff815dc5b62 mach_msg_overwrite + 653
2   libsystem_kernel.dylib        	0x00007ff815dbed1f mach_msg + 19
3   libxpc.dylib                  	0x00007ff815b3639f _xpc_pipe_mach_msg + 49
4   libxpc.dylib                  	0x00007ff815b35c2d _xpc_pipe_routine + 347
5   libxpc.dylib                  	0x00007ff815b14509 _xpc_interface_routine + 160
6   libxpc.dylib                  	0x00007ff815b192e7 _xpc_look_up_endpoint + 231
7   libxpc.dylib                  	0x00007ff815b19181 _xpc_connection_bootstrap_look_up_slow + 396
8   libxpc.dylib                  	0x00007ff815b188d6 _xpc_connection_init + 762
9   libxpc.dylib                  	0x00007ff815b18574 _xpc_connection_activate_if_needed + 317
10  libxpc.dylib                  	0x00007ff815b1ace4 xpc_connection_resume + 71
11  TCC                           	0x00007ff81b443011
12  TCC                           	0x00007ff81b4462cd
13  libdispatch.dylib             	0x00007ff815c5659a _dispatch_client_callout + 8
14  libdispatch.dylib             	0x00007ff815c63447 _dispatch_lane_barrier_sync_invoke_and_complete + 60
15  libsystem_trace.dylib         	0x00007ff815b59ac9 _os_activity_initiate_impl + 50
16  TCC                           	0x00007ff81b4429a8
17  TCC                           	0x00007ff81b443959
18  SkyLight                      	0x00007ff81b580ec8 (anonymous namespace)::SLSTCCService::TCCAccessCheck((anonymous namespace)::SLSTCCService::TCCAccessCheckType, __CFString const*, __CFDictionary const*) + 124
19  SkyLight                      	0x00007ff81b5e74fd __SLSInitialize_block_invoke + 115
20  libdispatch.dylib             	0x00007ff815c5659a _dispatch_client_callout + 8
21  libdispatch.dylib             	0x00007ff815c577cb _dispatch_once_callout + 20
22  SkyLight                      	0x00007ff81b6dfb8e SLSMainConnection + 198
23  SkyLight                      	0x00007ff81b6e2431 SLSMainConnectionID + 20
24  OpenGL                        	0x00007ffa315ea392
25  OpenGL                        	0x00007ffa315ea2b1
26  libGLESv2.dylib               	0x000000010a8b58dc
27  libGLESv2.dylib               	0x000000010a6e97db
28  libGLESv2.dylib               	0x000000010a56b6c5
29  libGLESv2.dylib               	0x000000010a56dfcc
30  Electron Framework            	0x0000000117ca0e7b
31  Electron Framework            	0x0000000117ca0265
32  Electron Framework            	0x0000000117ce5e0c
33  Electron Framework            	0x0000000117ce5fbd
34  Electron Framework            	0x0000000117ce3261
35  Electron Framework            	0x0000000117ce2ebc
36  Electron Framework            	0x0000000117ce30ac
37  Electron Framework            	0x00000001184221c6
38  Electron Framework            	0x000000011a3fc5d3
39  Electron Framework            	0x0000000113b93f09
40  Electron Framework            	0x0000000113b94abd
41  Electron Framework            	0x0000000113b93525
42  Electron Framework            	0x0000000113b93627
43  Electron Framework            	0x000000011385882b
44  RStudio Helper (GPU)          	0x0000000101473b79
45  dyld                          	0x00007ff815a73386 start + 1942

Thread 1 (id: 31974):
0   libsystem_kernel.dylib        	0x00007ff815dc0152 __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007ff815df9b97 start_wqthread + 15

Thread 2 (id: 31975):
0   libsystem_kernel.dylib        	0x00007ff815dc0152 __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007ff815df9b97 start_wqthread + 15

Thread 3 (id: 31979, GpuWatchdog):
0   libsystem_kernel.dylib        	0x00007ff815dbea2e mach_msg2_trap + 10
1   libsystem_kernel.dylib        	0x00007ff815dc5b62 mach_msg_overwrite + 653
2   libsystem_kernel.dylib        	0x00007ff815dbed1f mach_msg + 19
3   Electron Framework            	0x0000000116dd25e7
4   Electron Framework            	0x0000000116d615e3
5   Electron Framework            	0x0000000116d21f74
6   Electron Framework            	0x0000000116d8112d
7   Electron Framework            	0x0000000116d46a8f
8   Electron Framework            	0x0000000116d9ec78
9   Electron Framework            	0x0000000116d9ee1e
10  Electron Framework            	0x0000000116db23e9
11  libsystem_pthread.dylib       	0x00007ff815dfe202 _pthread_start + 99
12  libsystem_pthread.dylib       	0x00007ff815df9bab thread_start + 15

Binary Images:
       0x101473000 -        0x10147383f  com.rstudio.desktop.helper (2023.12.1+402 - 2023.12.1+402) <4c4c44aa-5555-3144-a1d4-961194514a4e> /Applications/RStudio.app/Contents/Frameworks/RStudio Helper (GPU).app/Contents/MacOS/RStudio Helper (GPU)
       0x10a561000 -        0x10a561e8f  libGLESv2.dylib <4c4c444f-5555-3144-a1f3-5126062a68d3> /Applications/RStudio.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libGLESv2.dylib
       0x11342f000 -        0x1134313bf  com.github.Electron.framework (26.2.4) <4c4c4415-5555-3144-a193-a4d4a156cff7> /Applications/RStudio.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework
    0x7ff815a6d000 -     0x7ff815a6dfff  com.apple.darwin.ignition (1.0.0 - 56) <01ae3ae3-f6ca-34d1-a2f8-462ede5fa818> /usr/lib/dyld
    0x7ff815b0e000 -     0x7ff815b0f60f  libxpc.dylib <902eb51f-373f-3aa3-b084-228ac4c1b80b> /usr/lib/system/libxpc.dylib
    0x7ff815b52000 -     0x7ff815b533ff  libsystem_trace.dylib <5fd42781-36f9-34e3-af41-0dfc3afc4000> /usr/lib/system/libsystem_trace.dylib
    0x7ff815c53000 -     0x7ff815c54b3f  libdispatch.dylib <c964889c-7792-333d-93f6-8f3e51a9f4c2> /usr/lib/system/libdispatch.dylib
    0x7ff815dbd000 -     0x7ff815dbe66f  libsystem_kernel.dylib <3e22fb41-20e3-3568-a00b-d8e901e333bf> /usr/lib/system/libsystem_kernel.dylib
    0x7ff815df8000 -     0x7ff815df8bef  libsystem_pthread.dylib <0f6c8ecc-a9bd-39c6-9f41-a8b9159201eb> /usr/lib/system/libsystem_pthread.dylib
    0x7ff81b441000 -     0x7ff81b442647  com.apple.TCC (1.0 - 1) <56c8d6aa-4dae-3338-9347-9ffec51b699f> /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC
    0x7ff81b45f000 -     0x7ff81b46129f  com.apple.SkyLight (1.600.0) <44c36221-6308-3df3-821f-755130080968> /System/Library/PrivateFrameworks/SkyLight.framework/Versions/A/SkyLight
    0x7ffa315e1000 -     0x7ffa315e26af  com.apple.opengl (21.0.19 - 21.0.19) <1c7a201f-fcbb-3d4b-85ca-788f1b190aea> /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL

I reset rstudio, didn't help

J

I don't know if this is the problem, but check to make sure you have Rosetta2 (the Intel emulation layer on Mx Macs) installed.

You can do this from the terminal via this command:

/usr/sbin/softwareupdate --install-rosetta

It's safe to run this even if you already have Rosetta.

Again, I don't know that this is the problem you are experiencing, but it can be a factor in some configurations.

Thanks. I'm on an Intel Mac however.

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.