Skip to content

When using scrcpy 3.0 on some devices, no new SPS frames are generated when the device is rotated. #5537

@sbfkcel

Description

@sbfkcel

Environment

  • OS: macOS
  • Scrcpy version: 3.0
  • Installation method: github release
  • Device model: HUAWEI ANA-AN00
  • Android version: 12

Describe the bug

When the device screen rotates, the scrcpy screen does not rotate.
If you use scrcpy 2.7, everything is normal.

After preliminary investigation, when using scrcpy 3.0, when the device screen rotates, the SPS frame should change, but no new SPS frame is generated on this device.

➜ scrcpy
scrcpy 3.0 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO:     -->   (usb)  KXU0221408005112                device  ANA_AN00
/opt/homebrew/Cellar/scrcpy/3.0/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 133.6 MB/s (90224 bytes in 0.001s)
[server] INFO: Device: [HUAWEI] HUAWEI ANA-AN00 (Android 12)
INFO: Renderer: metal
INFO: Texture: 1080x2336
2024-11-26 09:48:43.848 scrcpy[30447:5761806] +[IMKClient subclass]: chose IMKClient_Modern
2024-11-26 09:48:43.848 scrcpy[30447:5761806] +[IMKInputSession subclass]: chose IMKInputSession_Modern
[server] ERROR: Exception on thread Thread[DisplayListener,5,main]
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.contains(java.lang.CharSequence)' on a null object reference
	at android.hardware.display.DisplayManagerGlobal$DisplayListenerDelegate.handleMessage(DisplayManagerGlobal.java:1000)
	at android.os.Handler.dispatchMessage(Handler.java:117)
	at android.os.Looper.loopOnce(Looper.java:205)
	at android.os.Looper.loop(Looper.java:293)
	at android.os.HandlerThread.run(HandlerThread.java:110)
image image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions