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

Black Screen after Update of Android's One UI-Version 6.1 #5009

Closed
2 tasks done
kagahd opened this issue Jun 21, 2024 · 9 comments
Closed
2 tasks done

Black Screen after Update of Android's One UI-Version 6.1 #5009

kagahd opened this issue Jun 21, 2024 · 9 comments

Comments

@kagahd
Copy link

kagahd commented Jun 21, 2024

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

Environment

  • OS: macOS Sonomoa 14.5
  • scrcpy version: 2.4
  • installation method: brew
  • device model: Samsung Galaxy S22
  • Android version: 14
  • One UI-Version: 6.1

Describe the bug
Until the update of Androids One UI-Version to version 6.1, scrcpy worked correctly. After the Android update, scrcpy shows a black screen. The keyboard is still working, means, I can type on the keyboard and it's transmitted to the Android device. However, the mirrored screen is always black.

❯ scrcpy
scrcpy 2.4 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO:     -->   (usb)  R3CT20HC1ZR                     device  SM_S901B
/opt/homebrew/Cellar/scrcpy/2.4_1/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 18.0 MB/s (69007 bytes in 0.004s)
[server] INFO: Device: [samsung] samsung SM-S901B (Android 14)
INFO: Renderer: metal
INFO: Texture: 1080x2336

Please do not post screenshots of your terminal, just post the content as text instead.

@rom1v
Copy link
Collaborator

rom1v commented Jun 21, 2024

On all apps, or only the "protected" apps? (#36, #2129)

@kagahd
Copy link
Author

kagahd commented Jun 21, 2024

On all apps, or only the "protected" apps? (#36, #2129)

On all apps.
No errors are shown in the shell though.

@rom1v
Copy link
Collaborator

rom1v commented Jun 21, 2024

If you record with screenrecord, is it black?

adb shell screenrecord /sdcard/file.mp4
adb pull /sdcard/file.mp4

@kagahd
Copy link
Author

kagahd commented Jun 21, 2024

Interesting! screenrecord works. I can see my Android device in the file.mp4. Do I need some additional settings?

@rom1v
Copy link
Collaborator

rom1v commented Jun 21, 2024

Oh, it might be a rendering issue then.

What if you record with scrcpy?

scrcpy --no-playback --record=file.mp4

@kagahd
Copy link
Author

kagahd commented Jun 21, 2024

What if you record with scrcpy?

That works too! 😄 And now?

@rom1v
Copy link
Collaborator

rom1v commented Jun 21, 2024

OK, then it's a rendering issue on the client side, not related to your Android update (maybe a SDL update related to metal rendering?)

Try with another render driver:

scrcpy --render-driver=opengl
scrcpy --render-driver=opengles
scrcpy --render-driver=opengles2
scrcpy --render-driver=software

@kagahd
Copy link
Author

kagahd commented Jun 21, 2024

The first command results in this error:

❯ scrcpy --render-driver=opengl
scrcpy 2.4 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO:     -->   (usb)  R3CT20HC1ZR                     device  SM_S901B
/opt/homebrew/Cellar/scrcpy/2.4_1/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 275.9 MB/s (69007 bytes in 0.000s)
[server] INFO: Device: [samsung] samsung SM-S901B (Android 14)
INFO: Renderer: opengl
ERROR: Could not create OpenGL context: Failed creating OpenGL context

The last 3 commands just show a black mirrored screen. The same as scrcpy.

@kagahd kagahd closed this as completed Jun 21, 2024
@kagahd
Copy link
Author

kagahd commented Jun 21, 2024

Problem solved: it was an out-of-memory error. Once I closed some apps on my MacBook, scrcpy worked correctly again.
Thanks @rom1v for your quick assistance and help!

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

2 participants