Skip to content
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

No display when connecting a Meizu phone #240

Closed
FredWe opened this issue Aug 23, 2018 · 45 comments
Closed

No display when connecting a Meizu phone #240

FredWe opened this issue Aug 23, 2018 · 45 comments
Labels

Comments

@FredWe
Copy link

FredWe commented Aug 23, 2018

same issue as comment in #151

Scrcpy: v1.3
Device: Meizu Pro 6 plus
Android version: 7.0.0
ROM: Flyme 7.8.7.24 beta
Host: Ubuntu 18.04

screenrecording by adb works well as following:

adb shell screenrecord /sdcard/test.mp4
adb pull /sdcard/test.mp4

But issue appeared when executing

./run x        
x/server/scrcpy-server.jar: 1 file pushed. 3.0 MB/s (18570 bytes in 0.006s)
DEBUG: Starting decoder thread
DEBUG: Starting controller thread
INFO: OpenGL shaders: ENABLED
INFO: Created renderer: opengl
INFO: Initial texture: 1440x2560

and hold on here... no response, no display window (as i expected)

and i got some logcat related to maybe a ROM bug:

08-23 14:01:00.196  2650  3656 E OMXNodeInstance: getConfig(a5a00bd:Exynos.AVC.Encoder, ConfigAndroidIntraRefresh(0x6f60000a)) ERROR: UnsupportedIndex(0x8000101a)
08-23 14:01:00.200 18461 18461 E Surface : Could not create instance of Surface from IGraphicBufferProducer.
08-23 14:01:00.201 18461 18461 E Surface : java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
08-23 14:01:00.201 18461 18461 E Surface : 	at android.os.Handler.<init>(Handler.java:200)
08-23 14:01:00.201 18461 18461 E Surface : 	at android.os.Handler.<init>(Handler.java:114)
08-23 14:01:00.201 18461 18461 E Surface : 	at com.meizu.nightmode.MzNightModeManager.<init>(MzNightModeManager.java:148)
08-23 14:01:00.201 18461 18461 E Surface : 	at com.meizu.nightmode.MzNightModeManager.getDefault(MzNightModeManager.java:262)
08-23 14:01:00.201 18461 18461 E Surface : 	at android.graphics.Canvas.<init>(Canvas.java:2606)
08-23 14:01:00.201 18461 18461 E Surface : 	at android.view.Surface$CompatibleCanvas.<init>(Surface.java:595)
08-23 14:01:00.201 18461 18461 E Surface : 	at android.view.Surface.<init>(Surface.java:93)
08-23 14:01:00.201 18461 18461 E Surface : 	at android.media.MediaCodec.createInputSurface(Native Method)
08-23 14:01:00.201 18461 18461 E Surface : 	at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:63)
08-23 14:01:00.201 18461 18461 E Surface : 	at com.genymobile.scrcpy.Server.scrcpy(Server.java:24)
08-23 14:01:00.201 18461 18461 E Surface : 	at com.genymobile.scrcpy.Server.main(Server.java:102)
08-23 14:01:00.201 18461 18461 E Surface : 	at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
08-23 14:01:00.201 18461 18461 E Surface : 	at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:277)

Just for your reference, or for other who met the same issue.

@FredWe FredWe changed the title No display on a Meizu phone No display when connecting a Meizu phone Aug 23, 2018
@rom1v rom1v added the device label Aug 23, 2018
@zmjios
Copy link

zmjios commented Oct 15, 2018

i am also meet this question,can anybody reslove this?

@rom1v
Copy link
Collaborator

rom1v commented Feb 20, 2019

cf #434

rom1v pushed a commit that referenced this issue Nov 9, 2019
Some devices internally create a Handler when creating an input Surface,
causing an exception:

> Surface: java.lang.RuntimeException: Can't create handler inside
> thread that has not called Looper.prepare()

As a workaround, call Looper.prepareMainLooper() beforehand.

Fixes:
 - <#240>
 - <#921>
rom1v pushed a commit that referenced this issue Nov 9, 2019
Some devices internally create a Handler when creating an input Surface,
causing an exception:

> Surface: java.lang.RuntimeException: Can't create handler inside
> thread that has not called Looper.prepare()

As a workaround, call Looper.prepareMainLooper() beforehand.

Fixes:
 - <#240>
 - <#921>

Signed-off-by: Romain Vimont <rom@rom1v.com>
rom1v pushed a commit that referenced this issue Nov 9, 2019
Some devices internally create a Handler when creating an input Surface,
causing an exception:

> Surface: java.lang.RuntimeException: Can't create handler inside
> thread that has not called Looper.prepare()

As a workaround, call Looper.prepareMainLooper() beforehand.

Fixes:
 - <#240>
 - <#921>

Signed-off-by: Romain Vimont <rom@rom1v.com>
@rom1v
Copy link
Collaborator

rom1v commented Apr 9, 2020

It has been fixed some time ago.

@Stanislavoloshchuk
Copy link

I download archive and tried instructions(as far as I understood it) but gives following

stanislav@stanislav:~$ meson x --buildtype release --strip -Db_lto=true     -Dprebuilt_server=/home/stanislav/Downloads/scrcpy-server-v1.13

Then I tried to extract and add the path of extracted files:

ERROR: Neither directory contains a build file meson.build.

stanislav@stanislav:~$ meson x --buildtype release --strip -Db_lto=true     -Dprebuilt_server=/home/stanislav/Downloads/scrcpy-server-v1

ERROR: Neither directory contains a build file meson.build.

stanislav@stanislav:~$ ninja -Cx
ninja: Entering directory `x'
ninja: error: loading 'build.ninja': No such file or directory

stanislav@stanislav:~$ sudo ninja -Cx install
[sudo] password for stanislav: 
ninja: Entering directory `x'
ninja: error: loading 'build.ninja': No such file or directory

Seems I am doing something wrong...

@rom1v
Copy link
Collaborator

rom1v commented Jun 11, 2020

I download archive and tried instructions(as far as I understood it) but gives following

You need to clone the repo beforehand:

git clone https://github.com/Genymobile/scrcpy
cd scrcpy
meson ...

@Stanislavoloshchuk
Copy link

Stanislavoloshchuk commented Jun 11, 2020

Hello! So I have done all those steps, and what we have here:

The Meson build system
Version: 0.53.2
Source dir: /home/stanislav/scrcpy
Build dir: /home/stanislav/scrcpy/x
Build type: native build
Project name: scrcpy
Project version: 1.14
C compiler for the host machine: cc (gcc 9.3.0 "cc (Ubuntu 9.3.0-10ubuntu2) 9.3.0")
C linker for the host machine: cc ld.bfd 2.34
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Run-time dependency libavformat found: YES 58.29.100
Run-time dependency libavcodec found: YES 58.54.100
Run-time dependency libavutil found: YES 56.31.100
Run-time dependency sdl2 found: YES 2.0.10
Configuring config.h using configuration
server/meson.build:19: WARNING: Custom target input '/home/stanislav/Downloads/scrcpy-server-v1' can't be converted to File object(s).
This will become a hard error in the future.
Build targets in project: 3

Found ninja-1.10.0 at /usr/bin/ninja
stanislav@stanislav:~/scrcpy$ meson x --buildtype release --strip -Db_lto=true     -Dprebuilt_server=/home/stanislav/Downloads/scrcpy-server-v1.13
Directory already configured.

Just run your build command (e.g. ninja) and Meson will regenerate as necessary.
If ninja fails, run "ninja reconfigure" or "meson --reconfigure"
to force Meson to regenerate.

If build failures persist, run "meson setup --wipe" to rebuild from scratch
using the same options as passed when configuring the build.
To change option values, run "meson configure" instead.
stanislav@stanislav:~/scrcpy$ ninja -Cx
ninja: Entering directory `x'
[20/26] Generating scrcpy-server-prebuilt with a custom command.
FAILED: server/scrcpy-server 
cp /home/stanislav/Downloads/scrcpy-server-v1 server/scrcpy-server
cp: -r not specified; omitting directory '/home/stanislav/Downloads/scrcpy-server-v1'
[25/26] Compiling C object 'app/a172ced@@scrcpy@exe/src_tiny_xpm.c.o'.
ninja: build stopped: subcommand failed.
stanislav@stanislav:~/scrcpy$ sudo ninja -Cx install
ninja: Entering directory `x'
[1/3] Generating scrcpy-server-prebuilt with a custom command.
FAILED: server/scrcpy-server 
cp /home/stanislav/Downloads/scrcpy-server-v1 server/scrcpy-server
cp: -r not specified; omitting directory '/home/stanislav/Downloads/scrcpy-server-v1'
[2/3] Linking target app/scrcpy.
ninja: build stopped: subcommand failed.

Many thanks for your assistance. But still no success. =(
log.txt

@rom1v
Copy link
Collaborator

rom1v commented Jun 11, 2020

Directory already configured.

rm -rf x and retry.

@Stanislavoloshchuk
Copy link

Stanislavoloshchuk commented Jun 11, 2020

So, I just entered rm -rf x then call scrcpy and nothing except

INFO: scrcpy 1.14 <https://github.com/Genymobile/scrcpy>
/usr/local/share/scrcpy/scrcpy-serve...ed. 5.2 MB/s (33142 bytes in 0.006s)
[server] INFO: Device: Meizu M6 Note (Android 7.1.2)
INFO: OpenGL shaders: ENABLED
INFO: Created renderer: opengl
INFO: Renderer: opengl
INFO: OpenGL version: 4.4.0 NVIDIA 340.108
INFO: Trilinear filtering enabled
INFO: Initial texture: 1080x1920

happens =( sorry if I am mising some simple points I am noob in this kind of stuff.

@rom1v
Copy link
Collaborator

rom1v commented Jun 11, 2020

So, I just entered rm -rf x

Then you must re-execute the meson/ninja commands.

Then, to run your build without installing, just execute ./run x.

@Stanislavoloshchuk
Copy link

Stanislavoloshchuk commented Jun 11, 2020

As I get:

stanislav@stanislav:~/scrcpy$ rm -rf x

then

stanislav@stanislav:~/scrcpy$ meson x --buildtype release --strip -Db_lto=true     -Dprebuilt_server=/home/stanislav/Downloads/scrcpy-server-v1
The Meson build system
Version: 0.53.2
Source dir: /home/stanislav/scrcpy
Build dir: /home/stanislav/scrcpy/x
Build type: native build
Project name: scrcpy
Project version: 1.14
C compiler for the host machine: cc (gcc 9.3.0 "cc (Ubuntu 9.3.0-10ubuntu2) 9.3.0")
C linker for the host machine: cc ld.bfd 2.34
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Run-time dependency libavformat found: YES 58.29.100
Run-time dependency libavcodec found: YES 58.54.100
Run-time dependency libavutil found: YES 56.31.100
Run-time dependency sdl2 found: YES 2.0.10
Configuring config.h using configuration
server/meson.build:19: WARNING: Custom target input '/home/stanislav/Downloads/scrcpy-server-v1' can't be converted to File object(s).
This will become a hard error in the future.
Build targets in project: 3

Found ninja-1.10.0 at /usr/bin/ninja
stanislav@stanislav:~/scrcpy$ ninja -Cx
ninja: Entering directory `x'
[20/26] Generating scrcpy-server-prebuilt with a custom command.
FAILED: server/scrcpy-server 
cp /home/stanislav/Downloads/scrcpy-server-v1 server/scrcpy-server
cp: -r not specified; omitting directory '/home/stanislav/Downloads/scrcpy-server-v1'
[25/26] Compiling C object 'app/a172ced@@scrcpy@exe/src_tiny_xpm.c.o'.
ninja: build stopped: subcommand failed.
stanislav@stanislav~/scrcpy$ sudo ninja -Cx install
ninja: Entering directory `x'
[1/3] Generating scrcpy-server-prebuilt with a custom command.
FAILED: server/scrcpy-server 
cp /home/stanislav/Downloads/scrcpy-server-v1 server/scrcpy-server
cp: -r not specified; omitting directory '/home/stanislav/Downloads/scrcpy-server-v1'
[2/3] Linking target app/scrcpy.
ninja: build stopped: subcommand failed.
stanislav@stanislav:~/scrcpy$ ./run x
INFO: scrcpy 1.14 <https://github.com/Genymobile/scrcpy>
stat: No such file or directory
ERROR: 'x/server/scrcpy-server' does not exist or is not a regular file

is this correct actions?

@rom1v
Copy link
Collaborator

rom1v commented Jun 11, 2020

-Dprebuilt_server=/home/stanislav/Downloads/scrcpy-server-v1

The file is scrcpy-server-v1.13, not scrcpy-server-v1.

@Stanislavoloshchuk
Copy link

Alright, now seems to be all correct, let`s try it =)

stanislav@stanislav:~/scrcpy$ meson x --buildtype release --strip -Db_lto=true     -Dprebuilt_server=/home/stanislav/Downloads/scrcpy-server-v1.13
The Meson build system
Version: 0.53.2
Source dir: /home/stanislav/scrcpy
Build dir: /home/stanislav/scrcpy/x
Build type: native build
Project name: scrcpy
Project version: 1.14
C compiler for the host machine: cc (gcc 9.3.0 "cc (Ubuntu 9.3.0-10ubuntu2) 9.3.0")
C linker for the host machine: cc ld.bfd 2.34
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Run-time dependency libavformat found: YES 58.29.100
Run-time dependency libavcodec found: YES 58.54.100
Run-time dependency libavutil found: YES 56.31.100
Run-time dependency sdl2 found: YES 2.0.10
Configuring config.h using configuration
Build targets in project: 3

Found ninja-1.10.0 at /usr/bin/ninja
stanislav@stanislav:~/scrcpy$ ninja -Cx
ninja: Entering directory `x'
[26/26] Linking target app/scrcpy.
stanislav@stanislav:~/scrcpy$ sudo ninja -Cx install
ninja: Entering directory `x'
[0/1] Installing files.
Installing app/scrcpy to /usr/local/bin
Stripping target 'app/scrcpy' using strip.
Installing server/scrcpy-server to /usr/local/share/scrcpy
Installing /home/stanislav/scrcpy/app/scrcpy.1 to /usr/local/share/man/man1
stanislav@stanislav:~/scrcpy$ ./run x
INFO: scrcpy 1.14 <https://github.com/Genymobile/scrcpy>
x/server/scrcpy-server: 1 file pushed. 0.7 MB/s (27694 bytes in 0.040s)
[server] ERROR: Exception on thread Thread[main,5,main]
java.lang.IllegalArgumentException: The server version (1.13) does not match the client (1.14)
	at com.genymobile.scrcpy.Server.createOptions(Server.java:78)
	at com.genymobile.scrcpy.Server.main(Server.java:176)
	at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
	at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:281)

@Stanislavoloshchuk
Copy link

Stanislavoloshchuk commented Jun 11, 2020

So, nothing =(
log.txt
scrcpy.txt

@rom1v
Copy link
Collaborator

rom1v commented Jun 11, 2020

The server version (1.13) does not match the client (1.14)

You're compiling the current master of the client. You must compile v1.13.

git checkout v1.13
ninja -Cx
./run x

@Stanislavoloshchuk
Copy link

Genius! =) Many-many thanks! I owe you! =)

@rom1v
Copy link
Collaborator

rom1v commented Jun 11, 2020

Does v1.13 work better than v1.14?

@Stanislavoloshchuk
Copy link

Actually, seems the only 1.13 works, as I understood it was last recommended and it works.

@rom1v
Copy link
Collaborator

rom1v commented Jun 11, 2020

OK, then there is a regression in v1.14 (the latest stable), that's bad.

I need your help to fix now :)

Could you confirm that if you replace x/server/scrcpy-server (in your scrcpy directory) by this one: #365 (comment)
then it fails again.

@Stanislavoloshchuk
Copy link

Sure I will try my best, I already downloaded from #365 (comment) and now could you advice how to find this x/server/scrcpy-server directory to replace it ?

@Stanislavoloshchuk
Copy link

Oh, found! =)

@Stanislavoloshchuk
Copy link

So, yeah I am confirming after replacement it is not working =(
But before replacement I copied original folder and now trying to replace it back-again and it doesn`t work anymore.

@rom1v
Copy link
Collaborator

rom1v commented Jun 11, 2020

OK so the culprit is 62c0c13 :/

@rom1v
Copy link
Collaborator

rom1v commented Jun 11, 2020

Too bad that your logs are not complete.

Could you try to clear the logs again:

adb logcat -c
./run x  # the version which fails
adb logcat -d > log.txt

@Stanislavoloshchuk
Copy link

After all these steps log is empty now

@rom1v
Copy link
Collaborator

rom1v commented Jun 11, 2020

Your logcat may have crashed. Could you reboot the device and try again, please?

@Stanislavoloshchuk
Copy link

okay lets try this one, but I am not exactly sure that this is one which was crashed because none is working now...
log.txt

@rom1v
Copy link
Collaborator

rom1v commented Jun 11, 2020

OK so your logs seems limited to 1100 lines, then nothing :/ Very annoying.
Is it the same with just adb logcat (without -d …)?

none is working now

You probably overwrote server v1.13 :)

Just to be sure, could you please try this one (it's v1.13 + the culprit commit in v1.14, without anything else):

  • scrcpy-server
    SHA256: 24b5ddd38641541122a4b7437fb04f3948d013765a14edf0aad8a74aeac9c194

@Stanislavoloshchuk
Copy link

Here is log and log-d txts
log.txt
log-d.txt

@Stanislavoloshchuk
Copy link

could you please advice is I should do anything with this: SHA256: 24b5ddd38641541122a4b7437fb04f3948d013765a14edf0aad8a74aeac9c194?

@rom1v
Copy link
Collaborator

rom1v commented Jun 11, 2020

It's the checksum, so that you can check that the file content is exactly the expected one.

Once you downloaded the file, execute:

sha256sum scrcpy-server

The sum should be the same.

It avoids corruption, and it mitigate risks of malicious downloads (one would have to modify both the file on my server and the checksum on github).

@Stanislavoloshchuk
Copy link

Stanislavoloshchuk commented Jun 11, 2020

Here is checked sum:

sha256sum scrcpy-server1
24b5ddd38641541122a4b7437fb04f3948d013765a14edf0aad8a74aeac9c194  scrcpy-server1

seems to be ok

So to make sure now I have to:

rm -rf x
meson x --buildtype release --strip -Db_lto=true -Dprebuilt_server=/home/stanislav/Downloads/scrcpy-server1 # lately downloaded from your message 10 minutes ago
ninja -Cx
sudo ninja -Cx install
./run x

Am I right?

@rom1v
Copy link
Collaborator

rom1v commented Jun 11, 2020

Yes (but no need to sudo ninja -Cx install if you just run it with ./run x)

@Stanislavoloshchuk
Copy link

So:

INFO: scrcpy 1.13 <https://github.com/Genymobile/scrcpy>
x/server/scrcpy-server: 1 file pushed. 3.4 MB/s (38916 bytes in 0.011s)
[server] INFO: Device: Meizu M6 Note (Android 7.1.2)
INFO: Renderer: opengl
INFO: OpenGL version: 4.4.0 NVIDIA 340.108
INFO: Trilinear filtering enabled
INFO: Initial texture: 1080x1920

and thats it nothing else happens

@rom1v
Copy link
Collaborator

rom1v commented Jun 11, 2020

OK.

@FredWe and @olbb (#434), could you test v1.14 on your Meizu, and (if it fails for you) post your logs. Thank you for your help :)

@Stanislavoloshchuk
Copy link

Stanislavoloshchuk commented Jun 11, 2020

Could we please continue after about 10 hours (it is 01:26 am now in Ukraine)? I just falling asleep now had a rush day. I will reply asap. BTW thank you.

@Stanislavoloshchuk
Copy link

Hello. So shall I do anything or this is questions only for @FredWe and @olbb ?

@rom1v
Copy link
Collaborator

rom1v commented Jun 12, 2020

The request is for anyone having a Meizu having the problem, with a working adb logcat. 😉

@Stanislavoloshchuk
Copy link

Ah, alright! Then thank you ;)

@rom1v
Copy link
Collaborator

rom1v commented Jun 17, 2020

@Stanislavoloshchuk Just in case, could you try this (replace in v1.14), please?

  • scrcpy-server
    SHA256: eed7226eb179676c84812a8793cbb4946c5ff0a0f00ce7f031980de73a1dae53
diff
diff --git a/server/src/main/java/com/genymobile/scrcpy/ScreenEncoder.java b/server/src/main/java/com/genymobile/scrcpy/ScreenEncoder.java
index d722388c..0da689d8 100644
--- a/server/src/main/java/com/genymobile/scrcpy/ScreenEncoder.java
+++ b/server/src/main/java/com/genymobile/scrcpy/ScreenEncoder.java
@@ -53,11 +53,11 @@ public class ScreenEncoder implements Device.RotationListener {
 
         try {
             internalStreamScreen(device, fd);
-        } catch (NullPointerException e) {
+        } catch (Throwable 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");
+            Ln.d("Applying workarounds to avoid exceptions");
             Workarounds.fillAppInfo();
             internalStreamScreen(device, fd);
         }

@olbb
Copy link

olbb commented Jun 22, 2020

Hello. So shall I do anything or this is questions only for @FredWe and @olbb ?

I'm sorry, but mine Meizu phone is damaged.

@FredWe
Copy link
Author

FredWe commented Jun 28, 2020

OK.

@FredWe and @olbb (#434), could you test v1.14 on your Meizu, and (if it fails for you) post your logs. Thank you for your help :)

Sorry for late response, i will test it after several hours.

@rom1v
Copy link
Collaborator

rom1v commented Aug 3, 2020

I plan to release a new version soon (v1.15), with or without this issue. If someone having this problem could find where (on which line) the server is blocked in v1.14, it would help.

@rom1v
Copy link
Collaborator

rom1v commented Oct 5, 2020

I added some logs.

diff
diff --git a/server/src/main/java/com/genymobile/scrcpy/ScreenEncoder.java b/server/src/main/java/com/genymobile/scrcpy/ScreenEncoder.java
index d722388c..a7855f3b 100644
--- a/server/src/main/java/com/genymobile/scrcpy/ScreenEncoder.java
+++ b/server/src/main/java/com/genymobile/scrcpy/ScreenEncoder.java
@@ -49,17 +49,27 @@ public class ScreenEncoder implements Device.RotationListener {
     }
 
     public void streamScreen(Device device, FileDescriptor fd) throws IOException {
+        Ln.i("### 1");
         Workarounds.prepareMainLooper();
+        Ln.i("### 2");
 
         try {
             internalStreamScreen(device, fd);
+            Ln.i("### 3");
         } catch (NullPointerException e) {
+            Ln.i("### 4");
             // 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");
+            Ln.i("### 5");
             Workarounds.fillAppInfo();
+            Ln.i("### 6");
             internalStreamScreen(device, fd);
+            Ln.i("### 7");
+        } catch (Throwable t) {
+            Ln.e("### 8", t);
+            throw new AssertionError(t);
         }
     }
 

@FredWe @olbb @Stanislavoloshchuk @ilceramista (from #434 (comment)) Could you test it please, and copy-paste the logs printed in the console when it is blocked. This should help to determine where it deadlocks.

For windows users, take both scrcpy.exe and scrcpy-server, and replace them in your scrcpy v1.16 release.

For other platforms, take scrcpy-server and build only the client.

  • scrcpy.exe
    SHA256: 5ee3fc5f0094a50db9198ae3bb9e7fff9fd29199174f32e579e6d28bf6a69a10
  • scrcpy-server
    SHA256: c742ec74cf9293db9d5660e9904f26010552b6e03c21fa6f562705da130fca1d

@rom1v
Copy link
Collaborator

rom1v commented Oct 12, 2020

Could you please test and paste the logs? This will help to fix the problem in the next version of scrcpy.

rom1v added a commit that referenced this issue Sep 22, 2021
Workarounds.fillAppInfo() is necessary for Meizu devices even before the
first call to internalStreamScreen(), but it is harmful on other
devices (#940).

Therefore, simplify the workaround, by calling fillAppInfo() only if
Build.BRAND equals "meizu" (case insensitive).

Fixes #240 <#240> (again)
Fixes #2656 <#2656>
@rom1v
Copy link
Collaborator

rom1v commented Sep 22, 2021

Re-fixed, see #2656.

rom1v added a commit that referenced this issue Oct 21, 2021
Workarounds.fillAppInfo() is necessary for Meizu devices even before the
first call to internalStreamScreen(), but it is harmful on other
devices (#940).

Therefore, simplify the workaround, by calling fillAppInfo() only if
Build.BRAND equals "meizu" (case insensitive).

Fixes #240 <#240> (again)
Fixes #2656 <#2656>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants