Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
105.92k stars 10.27k forks source link

Stuck at initial texture #2538

Open sssain opened 2 years ago

sssain commented 2 years ago

Environment

Describe the bug im trying to mirror my phone, but it stuck at INFO: Initial texture: 1080x2336, ive tried all scrcpy version from 1.10 to 1.18 and it still not working On errors, please provide the output of the console (and adb logcat if relevant).

[server] INFO: Device: xiaomi Mi 10 Pro (Android 10)
INFO: Renderer: direct3d
INFO: Initial texture: 1080x2336
rom1v commented 2 years ago

Does it work better with a lower definition?

scrcpy -m800
sssain commented 2 years ago

Does it work better with a lower definition?

scrcpy -m800

nope it doesnt

sssain commented 2 years ago

btw sometimes it says,

[server] ERROR: Exception on thread Thread[main,5,main]
java.lang.IllegalStateException
        at android.media.MediaCodec.native_dequeueOutputBuffer(Native Method)
        at android.media.MediaCodec.dequeueOutputBuffer(MediaCodec.java:2792)
        at com.genymobile.scrcpy.ScreenEncoder.encode(ScreenEncoder.java:113)
        at com.genymobile.scrcpy.ScreenEncoder.internalStreamScreen(ScreenEncoder.java:94)
        at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:60)
        at com.genymobile.scrcpy.Server.scrcpy(Server.java:78)
        at com.genymobile.scrcpy.Server.main(Server.java:239)
        at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
        at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:340)
rom1v commented 2 years ago

And with another encoder?

sssain commented 2 years ago

And with another encoder?

thank you for helping, i think its caused by my custom rom, changed the rom to android 11, and its works perfectly.

raymondcc2tm commented 2 years ago

Does anyone have idea how to solve this? Having exact same issue on an android 11 custom rom.

sssain commented 2 years ago

Does anyone have idea how to solve this? Having exact same issue on an android 11 custom rom.

i guess it was rom issues, flashed another rom and it works perfectly.