Genymobile / Genymobile/scrcpy
Won't start with Samsung S21 on Win11
Open
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 150k
- Forks
- 13.8k
- Avg merge
- 4d 13h
- Merged PRs (30d)
- 2
Description
Environment
- OS: Windows 11
- scrcpy version: 2.3
- installation method:
- device model: Samsung S21
- Android version: 14
Describe the bug
Won't start
On errors, please provide the output of the console (and adb logcat if relevant).
scrcpy 2.3 <https://github.com/Genymobile/scrcpy>
* daemon not running; starting now at tcp:5037
* daemon started successfully
INFO: ADB device found:
INFO: --> (usb) R3CRB00ZVTV device SM_G991B
C:\Users\bonsi\OneDrive - N A\Documents\_Tools\scrcpy-win64-v2.0\scrcpy-server: 1 file pushed, 0 skipped. 50.5 MB/s (65851 bytes in 0.001s)
[server] INFO: Device: [samsung] samsung SM-G991B (Android 14)
[server] ERROR: Exception on thread Thread[video,5,main]
java.lang.AssertionError: java.lang.reflect.InvocationTargetException
at com.genymobile.scrcpy.wrappers.SurfaceControl.createDisplay(SurfaceControl.java:85)
at com.genymobile.scrcpy.ScreenCapture.createDisplay(ScreenCapture.java:77)
at com.genymobile.scrcpy.ScreenCapture.start(ScreenCapture.java:38)
at com.genymobile.scrcpy.SurfaceEncoder.streamScreen(SurfaceEncoder.java:72)
at com.genymobile.scrcpy.SurfaceEncoder.lambda$start$0$com-genymobile-scrcpy-SurfaceEncoder(SurfaceEncoder.java:253)
at com.genymobile.scrcpy.SurfaceEncoder$$ExternalSyntheticLambda0.run(Unknown Source:4)
at java.lang.Thread.run(Thread.java:1012)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at com.genymobile.scrcpy.wrappers.SurfaceControl.createDisplay(SurfaceControl.java:83)
... 6 more
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Configuration android.app.ConfigurationController.getConfiguration()' on a null object reference
at android.app.ActivityThread.getConfiguration(ActivityThread.java:3899)
at android.hardware.display.DisplayManagerGlobal.getDisplayInfoLocked(DisplayManagerGlobal.java:260)
at android.hardware.display.DisplayManagerGlobal.getDisplayInfo(DisplayManagerGlobal.java:234)
at android.hardware.display.DisplayManagerGlobal.getCompatibleDisplay(DisplayManagerGlobal.java:364)
at android.hardware.display.DisplayManagerGlobal.getRealDisplay(DisplayManagerGlobal.java:397)
at android.hardware.display.DisplayManagerGlobal.createVirtualDisplayWrapper(DisplayManagerGlobal.java:779)
at android.hardware.display.DisplayManager.createVirtualDisplay(DisplayManager.java:2088)
at android.view.SurfaceControl.createDisplay(SurfaceControl.java:2480)
... 8 more
INFO: Renderer: direct3d
INFO: Texture: 1080x2400
WARN: Device disconnected
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with scrcpy 2.3 on a Samsung S21 running Android 14 and Windows 11. Start by reading server/src/main/java/com/genymobile/scrcpy/wrappers/SurfaceControl.java and ScreenCapture.java, especially createDisplay and start; done means scrcpy starts successfully without the video-thread exception or device disconnect.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, c
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100