-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
IllegalStateException #465
Comments
When this happens, are there more relevant logs in the output of |
This will not solve your problem, but this will avoid to call stop() on an invalid state: 3eda38e. That way, you should get the root cause exception printed.
|
@rom1v thanks I will try the new jar. Will update if I see that again. |
"adb shell screenrecord /sdcard/video.mp4" works. Vysor works. However on running scrcpy , I see the device crashing as well. Tried the jar file suggested in the comments above. |
And with a lower definition?
|
The exception in the screenshot is with the jar above, or with v1.8? (or is it the very same on both?) (btw, please copy paste instead of screenshot, so that the content is searchable) |
Hi Rom, thanks for the reply. On few builds when I try scrcpy -m 512 , I get a green screen . Few builds device crashes.BTW, I tried both the jar files.
Not sure why I see this. Need your help. |
When this happens, are there errors in the output of |
Just happened to me with the new JAR, logcat output as follows:
|
Thank you for the details.
So the root cause seems a hardware encoder crash. The exception is just a harmless consequence (the video streaming already stopped due to this issue, and calling |
@rom1v , any idea why hardware encoder crashes? |
Again, as I mentioned before, I see green screen on trying scrcpy -m 640 -b 500000 , also tried with -m 320.. Vysor:
Scrcpy:
|
Then you could try to play with these parameters, and find values which does not crash your encoder (maybe use the same values as Vysor): scrcpy/server/src/main/java/com/genymobile/scrcpy/ScreenEncoder.java Lines 141 to 147 in e443518
|
We have simmilar issue, logs:
|
@axti This might help: #666 (comment) |
hi.... please help me.... i have a problem to load scrcpy. its show like this
PLease help me |
This error happens when you use a |
i changed but still out like this
|
Sir... please help me... it still out like that PS C:\scrcpywin64110> adb devices PS C:\scrcpywin64110> scrcpy.exe |
I can't help without a device to reproduce. But you can help: |
This was my problem: and this worked for me
|
Indeed, it seems it solves the problem for other users too: #1103 (comment) |
scrcpy -m1024 |
i changed the encoder to: scrcpy --encoder OMX.google.h264.encoder |
Someone can help me? Please... C:\Scrcpy>scrcpy -m 1024
|
Have you found any fix for this? I have the same device and just upgraded to MIUI13 |
Nothing to here, bro! I still have the same problem... |
It seems there is a bug in MIUI13 (many reports from users after the upgrade). |
Is there any solution? Also notice that the transmission is a little stuck. |
Also getting MediaCodec error using latest 64-bit scrcpy v1.23 on Xiaomi M2101K6G (Android 12) under 64-bit Windows 10 v10.0.19044.1586. Stopped working after Android 12 upgrade (I think). Tried various workarounds to no avail.
|
I saw this exception every now and then and it will close the connection. See below screenshot:
It happens when the screen orientation is changed most likely.
Does anyone know or understand what is going wrong in this case?
The text was updated successfully, but these errors were encountered: