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

Scrcpy opens a black window but i can still click on things. #3229

Closed
2 tasks
HaveSomeRubicon opened this issue Apr 29, 2022 · 14 comments
Closed
2 tasks

Scrcpy opens a black window but i can still click on things. #3229

HaveSomeRubicon opened this issue Apr 29, 2022 · 14 comments

Comments

@HaveSomeRubicon
Copy link

  • I have read the FAQ.
  • I have searched in existing issues.

Environment

  • OS: Zorin 16 lite with i3 and no compositor
  • scrcpy version: 1.23
  • installation method: tried manual build and snap
  • device model: SM-T290
  • Android version: 11

*Scrcpy opens a completely blank window but when I click around on the window it still sends input
Whenever I open scrcpy it opens a blank window except I can click around in the window and it will register the clicks. The command output does not show any signs of anything going

scrcpy 1.23 <https://github.com/Genymobile/scrcpy>
/usr/local/share/scrcpy/scrcpy-server:...shed. 4.1 MB/s (41123 bytes in 0.010s)
[server] INFO: Device: samsung SM-T290 (Android 11)
INFO: Renderer: opengl
INFO: OpenGL version: 1.4 Mesa 21.2.6
WARN: Trilinear filtering disabled (OpenGL 3.0+ or ES 2.0+ required)
INFO: Initial texture: 1280x800
@HaveSomeRubicon
Copy link
Author

HaveSomeRubicon commented Apr 29, 2022

Note: ive got scrcpy working fine on other linux and windows instances with the same PC and tablet. I just had a different linux/windows setup this time

@rom1v
Copy link
Collaborator

rom1v commented Apr 29, 2022

Is the screen black in the recorded file if you record (scrcpy --record file.mp4)?

@HaveSomeRubicon
Copy link
Author

I can see everything crystal clear in the recording

@rom1v
Copy link
Collaborator

rom1v commented Apr 29, 2022

OK, so probably a driver issue.

INFO: OpenGL version: 1.4 Mesa 21.2.6

OpenGL 1.4 😮 That's very old and quite unexpected.

You could try with scrcpy --render-driver=opengles2 (maybe).

@HaveSomeRubicon
Copy link
Author

My computer is really old(REALLY OLD) so old drivers were expected. scrcpy --render-driver=opengles2 seemed to work absolutely fine and it rendered everything fine.

@nachtien
Copy link

nachtien commented May 27, 2022

I am running into this issue also. This was working fine up until yesterday. Reinstalling it did not fix the issue.

image

OS: MacOS 12.3 m1
scrcpy version: 1.24
installation method: Homebrew
device model: Pixel 4a
Android version: 12

@rom1v
Copy link
Collaborator

rom1v commented May 28, 2022

@nachtien On "protected" apps, that's expected on Android 12 (#2129 #36).

@nachtien
Copy link

nachtien commented May 28, 2022

It's not a protected app I don't think. But I do think I just started using android 12.

@AberuSama
Copy link

@nachtien On "protected" apps, that's expected on Android 12 (#2129 #36).

I just got my Realme updated to UI 3.0 and I'm having the same problem on "protected" apps.

@rom1v
Copy link
Collaborator

rom1v commented Jul 26, 2022

It's not a protected app I don't think

Does it work on other apps?

@AberuSama
Copy link

Yes

@rom1v
Copy link
Collaborator

rom1v commented Jul 26, 2022

OK, so when it's black, it's because the app enabled FLAG_SECURE to prevent capture and screenshots.

@rom1v rom1v closed this as completed Jul 26, 2022
@AberuSama
Copy link

Sorry I didn't read your message before.
The point is that scrcpy worked on the same protected app 2 months ago. Is it possible to make it go through the flag_secure as it used to do?

@msm-code
Copy link

As far as I know this is android 12 issue. It's possible you've updated your android version to 12+ 2 months ago (or I guess 7 months ago now).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants