-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
Illegal Argumennt Exception? #2993
Comments
Please try #2990. |
Hello. scrcpy 1.22 https://github.com/Genymobile/scrcpy |
The workaround mentioned in #3033 |
Then #2990 should work.
It didn't use the one you built. How did you build and run? |
Are you asking me?
And then run |
On which commit SHA1 are you after that? I don't really know how arch packages work, but the fact that it does not retry with a lower definition suggests that you don't have the change from #2990. |
Could you please test the following commands: git clone https://github.com/Genymobile/scrcpy
cd scrcpy
git checkout dev
meson d -Db_sanitize=address
ninja -Cd
./run d |
That was from c4ab65e
Done. Still the same error with latest dev 36c75e1
|
What was your meson command (exactly what I provided)? (or post the result of |
Yes I ran the meson command as you had it. |
Thanks!
Oh ok, it's not IllegalStateException. I will catch this one for retry too, thank you. |
Please test #3043. |
Yes, I can confirm that the new change in the illegalargumentexception branch fixes this error by automatically retrying at a smaller video size. |
Thank you, merged 👍 |
Please test this version to make sure that it does not break this bugfix: #3693 (comment) |
scrcpy 1.22 https://github.com/Genymobile/scrcpy
C:\scrcpy\scrcpy-server: 1 file pushed, 0 skipped. 84.4 MB/s (40955 bytes in 0.000s)
[server] INFO: Device: OnePlus DE2118 (Android 11)
INFO: Renderer: direct3d
INFO: Initial texture: 1080x2400
WARN: Device disconnected
[server] ERROR: Exception on thread Thread[main,5,main]
java.lang.IllegalArgumentException
at android.media.MediaCodec.native_configure(Native Method)
at android.media.MediaCodec.configure(MediaCodec.java:2128)
at android.media.MediaCodec.configure(MediaCodec.java:2044)
at com.genymobile.scrcpy.ScreenEncoder.configure(ScreenEncoder.java:274)
at com.genymobile.scrcpy.ScreenEncoder.internalStreamScreen(ScreenEncoder.java:94)
at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:73)
at com.genymobile.scrcpy.Server.scrcpy(Server.java:100)
at com.genymobile.scrcpy.Server.main(Server.java:326)dn
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:438)
WARN: Killing the server...
Windows 11
Android Version 11
Phone: 1+
The text was updated successfully, but these errors were encountered: