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

[Bug] Screen Recording permission invalid on macOS (waiting for image) #3261

Closed
wakewon opened this issue Feb 18, 2023 · 22 comments
Closed

[Bug] Screen Recording permission invalid on macOS (waiting for image) #3261

wakewon opened this issue Feb 18, 2023 · 22 comments
Labels
help wanted Extra attention is needed

Comments

@wakewon
Copy link

wakewon commented Feb 18, 2023

Bug Description

Rustdesk v1.2.0 cannot be granted with Screen Recording permission even the option in system preferences is enabled. When accessed by another device (to be the remote side), display on local side is in all black (it seems that the Accessibility permission is also invalid).

How to Reproduce

  1. Install / Update to Rustdesk v1.2.0.
  2. Configure Screen Recording permission.

image

  1. Disable Rustdesk's permission.

image

  1. Restart Rustdesk ( com.carriez.RustDesk_service.plist is unloaded [Bug]The Mac version cannot be stopped manually and the window cannot pop up when the icon is clicked #3260 ).
  2. Grant Rustdesk's permission
  3. Restart Rustdesk.
  4. Still require to grant Screen Recording permission.

Expected Behavior

Permisson notice disappeared and display on the controller works well.

Operating system(s) on local side and remote side

iOS / iPadOS / Windows -> macOS 13.2.1

RustDesk Version(s) on local side and remote side

1.1.10 / 1.1.10 / 1.2.0(Build Date: 2023-02-18 00:32) -> 1.2.0(Build Date: 2023-02-18 00:20)

Screenshots

No response

Additional Context

Other helpless attempts:

  • Grant permission and reboot (without unload com.carriez.RustDesk_service.plist ).
  • Remove Rustdesk permission item and grant again, then restart the app.
  • Reset permission tccutil reset ScreenCapture com.carriez.RustDesk and reboot.
@wakewon wakewon changed the title Screen Recording permission invalid on macOS [Bug] Screen Recording permission invalid on macOS Feb 18, 2023
@rustdesk
Copy link
Owner

rustdesk commented Feb 18, 2023

It works well on my M1 (13.1). Frankly, I do not know how to help you.

@rustdesk
Copy link
Owner

Hope you can help us figure it out.

@rustdesk rustdesk added the help wanted Extra attention is needed label Feb 18, 2023
@wakewon
Copy link
Author

wakewon commented Feb 18, 2023

It works well on my M1 (13.1). Frankly, I do not know how to help you.

Well mine is an ancient Intel……

Maybe later I will try again on another Intel device without rustdesk installed, or fully reset Screen Recording permission for all apps.

@wakewon
Copy link
Author

wakewon commented Feb 19, 2023

After fully uninstall & cleanup & reinstall 1.2.0(Build Date: 2023-02-19 00:17), together with removing the Rustdesk permission items and grant again, this issue disappeared.

It might be an update issue since this issue happened after I update my Rustdesk from 1.1.9 to 1.2.0(Build Date: 2023-02-18 00:20).

@rustdesk
Copy link
Owner

Thanks

@rustdesk rustdesk pinned this issue Feb 19, 2023
@ThomasWaldmann
Copy link

ThomasWaldmann commented Feb 19, 2023

I installed latest daily and it asks me again and again for screen permission, even if i grant / remove / grant them in system settings.

M1 MBA, macOS Ventura 13.2.1.

@frosn0w
Copy link

frosn0w commented Feb 22, 2023

+1, M1 MBP, MacOS Ventura 13.2.1

Repository owner deleted a comment from zhangbo8418 Feb 27, 2023
@rustdesk
Copy link
Owner

rustdesk commented Feb 27, 2023

I installed latest daily and it asks me again and again for screen permission, even if i grant / remove / grant them in system settings.

M1 MBA, macOS Ventura 13.2.1.

I encountered the same issue today, I did grant / remove (with the - button) and restart rustdesk twice or tripple to make it work. It embrassed me also, but I still do not have a good solution yet.

@wakewon
Copy link
Author

wakewon commented Feb 27, 2023

Here are some suggestions to solve this problem:

  1. Full removal + reinstall rustdesk (AppCleaner.app may help).
  2. Remove Rustdesk permission item and grant again, then restart the app.
  3. Reset screen recording permission for all apps: execute tccutil reset ScreenCapture in Terminal.app.
  4. Reset Accessibility permission for all apps: execute tccutil reset Accessibility in Terminal.app.
  5. Reboot, and grant this two permission for rustdesk.

You may try to reset the two permissions for rustdesk only before step 2 and 3:

tccutil reset ScreenCapture com.carriez.RustDesk
tccutil reset Accessibility com.carriez.RustDesk

Reboot is still required.

Reset permissions only for rustdesk doesn't work for me.
Full removal + reinstall rustdesk, then remove the previous permissions works for me.

@foss-
Copy link

foss- commented Mar 2, 2023

Executed both commands

tccutil reset ScreenCapture com.carriez.RustDesk
tccutil reset Accessibility com.carriez.RustDesk

rebooted intel mac.

RustDesk asked for the various permissions as expected and it seemed to remember them (Screencapture, Accessibility) but Input Monitoring keep going in circles. RD shows Permissions request, open System Settings. Disable, Re-Enable Permission, restart RD, still asking for Input Monitoring permission.

Is there another command availabel to reset InputMonitoring as well?
tccutil reset InputMonitoring com.carriez.RustDesk did not work:
tccutil: Failed to reset InputMonitoring approval status for com.carriez.RustDesk

@ThomasWaldmann
Copy link

@rustdesk so, what did fix it? can you give a link?

@rustdesk
Copy link
Owner

rustdesk commented Apr 6, 2023

We have no resolution for this, because we can not reproduce on our Macs. Reopened and left to contributors.

@godzfire
Copy link

godzfire commented Apr 7, 2023

Has anyone on an Intel Mac OS Monterey 12.x got nightly builds to work with this issue?

@rustdesk rustdesk unpinned this issue May 11, 2023
@rustdesk rustdesk changed the title [Bug] Screen Recording permission invalid on macOS [Bug] Screen Recording permission invalid on macOS (waiting for image) May 25, 2023
@godzfire
Copy link

Has anyone else encountered this?

@Majoraslayer
Copy link

Has anyone else encountered this?

July 1st, 2023 I'm having this same issue. I've created 3 Mac OS virtual machines (under Ubuntu), with different versions of Mac OS, and all have had this same problem with RustDesk. I'm currently using Mojave, which lacks a setting in the control panel security options, to allow or deny permissions for screen recording. Changing this in other versions made no difference anyway. Every time I try to remote to the VM, it gets stuck at "Connected, waiting for image...". If it's at all relevant, I'm self-hosting the RustDesk server.

@foss-
Copy link

foss- commented Jul 2, 2023

@Majoraslayer keep in mind that vms have additional issues on top of the permission issue being discussed here. In order to reduce complexity and allow for better test results not using vms is probably a good idea.
To get an idea of the issues related to vms see #4357 which is specific to vmware vms issues. I am pretty sure other vms have similar issues.

@rustdesk
Copy link
Owner

#4871 (comment)

@rustdesk rustdesk pinned this issue Jul 29, 2023
@justinnichols
Copy link

Yeah, #4871 (comment) didn't work for me. I'm on macOS Ventura (13.5) (late 2019 MBP, Intel) and I cannot get the pink Permissions UI to go away at all. I have disabled Accessibility and Screen Recording (Input Monitoring doesn't have one), then rebooted, then re-enabled them, then launched RustDesk and it still shows the pink Permissions UI.

@wriver0s
Copy link

So i managed to fix it by manually removing the permisions and manually selecting the apps using the "+" and "-"
you first need to deselect the given permissions and the delete it using the "-" button. Then add the rustdesk app using the "+" button

@i6941
Copy link

i6941 commented Oct 18, 2023

Referen

I tried with
tccutil reset ScreenCapture com.carriez.RustDesk
tccutil reset Accessibility com.carriez.RustDesk

It works for me

@pol-multar
Copy link

Referen

I tried with tccutil reset ScreenCapture com.carriez.RustDesk tccutil reset Accessibility com.carriez.RustDesk

It works for me

Hello,
this worked for me aswell on M2 + Sonoma 14.1.1

@rvmeush
Copy link

rvmeush commented Dec 3, 2023

Referen

I tried with tccutil reset ScreenCapture com.carriez.RustDesk tccutil reset Accessibility com.carriez.RustDesk

It works for me

thanks very much for this tip. It got my RustDesk working again on my m1 macbook pro running Sonoma 14.1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests