-
-
Notifications
You must be signed in to change notification settings - Fork 11k
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
Meizu M6s display issue #1985
Comments
Could you follow these steps to help resolving this specific issue, please? #240 (comment) |
I tried the linked binaries and again the console window appears but not the UI window.
Here is the logcat for your reference. Thank you. |
Thank you for the test. The commit introducing the "regression" is 62c0c13. This should work for your device: diffdiff --git a/server/src/main/java/com/genymobile/scrcpy/ScreenEncoder.java b/server/src/main/java/com/genymobile/scrcpy/ScreenEncoder.java
index c7c104e4..b723cf32 100644
--- a/server/src/main/java/com/genymobile/scrcpy/ScreenEncoder.java
+++ b/server/src/main/java/com/genymobile/scrcpy/ScreenEncoder.java
@@ -55,17 +55,8 @@ public class ScreenEncoder implements Device.RotationListener {
public void streamScreen(Device device, FileDescriptor fd) throws IOException {
Workarounds.prepareMainLooper();
-
- try {
- internalStreamScreen(device, fd);
- } catch (NullPointerException e) {
- // Retry with workarounds enabled:
- // <https://github.com/Genymobile/scrcpy/issues/365>
- // <https://github.com/Genymobile/scrcpy/issues/940>
- Ln.d("Applying workarounds to avoid NullPointerException");
- Workarounds.fillAppInfo();
- internalStreamScreen(device, fd);
- }
+ Workarounds.fillAppInfo();
+ internalStreamScreen(device, fd);
}
private void internalStreamScreen(Device device, FileDescriptor fd) throws IOException { If you are comfortable with editing and building, could you try removing the
Thank you, but like others with that device, the logcat is broken (it only prints the ~500 first lines). |
Unfortunately I am not familiar with programming. In this case, I can make a separate folder for scrcpy v1.13 and use it to connect to this Meizu phone only.
Is there any way to fix the logcat? Thank you. |
@rom1v - if (Looper.getMainLooper() != null) {
- return;
+ if (Build.BRAND.toLowerCase().contains("meizu")) {
+ if (Looper.myLooper() != null) {
+ return;
+ }
+ Looper.prepare();
+ } else {
+ if (Looper.getMainLooper() != null) {
+ return;
+ }
+ Looper.prepareMainLooper();
}
- Looper.prepareMainLooper();
} |
@HEZI0427 Thank you for the details. But scrcpy just calls On meizu, is scrcpy stuck in |
|
This should be fixed by 8df42ce (on |
Environment
Describe the bug
Scrcpy cannot display the output when connected to Meizu M6s from v1.14 onwards.
For the record, version 1.13 works well
I tried the adb shell screenrecord command as suggested in other threads and it works on this phone.
Also tried these command-line options but to no avail.
On errors, please provide the output of the console (and
adb logcat
if relevant).These are the console outputs when running different version(s).
logcat0001.txt
logcat0002.txt
Please find attached the logcat files. Hope these information help in figuring out a solution.
Thank you.
The text was updated successfully, but these errors were encountered: