openstf / minicap

Stream real-time screen capture data out of Android devices.
Other
1.72k stars 622 forks source link

LG-V350 fails to screenshare but only on Android 9 #206

Open miw-nik opened 4 years ago

miw-nik commented 4 years ago

I get this from logcat when attempting to launch the screen sharing on this device (LG-V350), but only on Android 9. I tested Android 8 and it works there.

This is a arm64-v8a device.

I tried using the new library that fixes the Vector<> error as seen in: https://github.com/openstf/minicap/issues/169 but it doesn't seem to help in this case.

INFO: Using projection 1440x2880@360x720/0 INFO: (external/MY_minicap/src/minicap_28.cpp:241) Creating SurfaceComposerClient INFO: (external/MY_minicap/src/minicap_28.cpp:244) Performing SurfaceComposerClient init check INFO: (external/MY_minicap/src/minicap_28.cpp:255) Creating virtual display INFO: (external/MY_minicap/src/minicap_28.cpp:261) Creating buffer queue INFO: (external/MY_minicap/src/minicap_28.cpp:264) Setting buffer options INFO: (external/MY_minicap/src/minicap_28.cpp:268) Creating CPU consumer INFO: (external/MY_minicap/src/minicap_28.cpp:272) Creating frame waiter INFO: (external/MY_minicap/src/minicap_28.cpp:276) Publishing virtual display INFO: (external/MY_minicap/src/minicap_28.cpp:278) New transaction done INFO: (external/MY_minicap/src/minicap_28.cpp:280) setDisplaySurface done INFO: (external/MY_minicap/src/minicap_28.cpp:283) setDisplayProjection done INFO: (external/MY_minicap/src/minicap_28.cpp:285) setDisplayLayerStack done INFO: (external/MY_minicap/src/minicap_28.cpp:287) apply done INFO: (jni/minicap/JpgEncoder.cpp:64) Allocating 12443652 bytes for JPG encoder INFO: (jni/minicap/minicap.cpp:464) New client connection INFO: (jni/minicap/minicap.cpp:200) Received SIGTERM, stopping INFO: (jni/minicap/minicap.cpp:536) Closing client connection INFO: (external/MY_minicap/src/minicap_28.cpp:296) Destroying virtual display

As you can see the New client connection is followed immediately by a shutdown but there doesn't seem to be any obvious exceptions. Logcat shows some oauth/gms errors but they don't really look related.

This error is also occurring when minitouch is started:

Note: device /dev/input/mice is not supported by libevdev Type B touch device touch_dev (1439x2879 with 10 contacts) detected on /dev/input/event2 (score 23044) Connection established Connection closed

miw-nik commented 4 years ago

@pcrepieux Does this issue look familiar to you at all? I thought the G8 fix you put together was going to help here but it doesn't seem to (G8 works fine for me, but V350 doesn't).

pcrepieux commented 4 years ago

@miw-nik right now I have no idea but could you please provide a bit more details on how you are using minicap and/or minitouch ? I wonder where the SIGTERM comes from.

Emperorlou commented 4 years ago

@pcrepieux Ok so I actually went ahead and setup OpenSTF on a fresh Ubuntu VM. I managed to get 3 other phones to work properly, but when I try to plug in the V35 it just never finishes the setup process. I've attached the stf logs. Let me know if there are any other logs I can provide you with (with specific instructions for how to retrieve them too, sorry i'm new to linux).

2020-04-23T23:43:50.143Z INF/provider 3984 [] Providing all 0 device(s) 2020-04-23T23:43:50.661Z INF/provider 3984 [] Found device "LMV350AWM44a0fd4a" (offline) 2020-04-23T23:43:50.672Z INF/provider 3984 [] Registered device "LMV350AWM44a0fd4a" 2020-04-23T23:43:50.678Z INF/reaper 3983 [reaper001] Device "LMV350AWM44a0fd4a" is present 2020-04-23T23:43:50.698Z INF/provider 3984 [] Device "LMV350AWM44a0fd4a" is now "device" (was "offline") 2020-04-23T23:43:51.874Z INF/device:support:push 4146 [LMV350AWM44a0fd4a] Sending output to "tcp://127.0.0.1:7116" 2020-04-23T23:43:51.878Z INF/device 4146 [LMV350AWM44a0fd4a] Preparing device 2020-04-23T23:43:52.704Z INF/device:support:sub 4146 [LMV350AWM44a0fd4a] Receiving input from "tcp://127.0.0.1:7114" 2020-04-23T23:43:52.706Z INF/device:support:sub 4146 [LMV350AWM44a0fd4a] Subscribing to permanent channel "ALL" 2020-04-23T23:43:52.751Z INF/device:support:properties 4146 [LMV350AWM44a0fd4a] Loading properties 2020-04-23T23:43:52.794Z INF/device:support:sdk 4146 [LMV350AWM44a0fd4a] Supports SDK 28 2020-04-23T23:43:52.796Z INF/device:support:abi 4146 [LMV350AWM44a0fd4a] Supports ABIs arm64-v8a, armeabi-v7a, armeabi 2020-04-23T23:43:52.992Z INF/device:resources:minicap 4146 [LMV350AWM44a0fd4a] Installing "/home/osboxes/stf/stf/node_modules/minicap-prebuilt-beta/prebuilt/arm64-v8a/bin/minicap" as "/data/local/tmp/minicap" 2020-04-23T23:43:52.995Z INF/device:resources:minicap 4146 [LMV350AWM44a0fd4a] Installing "/home/osboxes/stf/stf/node_modules/minicap-prebuilt-beta/prebuilt/arm64-v8a/lib/android-28/minicap.so" as "/data/local/tmp/minicap.so" 2020-04-23T23:43:58.062Z FTL/device 4146 [LMV350AWM44a0fd4a] Setup had an error TimeoutError: operation timed out at ontimeout (timers.js:482:11) at tryOnTimeout (timers.js:317:5) at Timer.listOnTimeout (timers.js:277:5) 2020-04-23T23:43:58.066Z FTL/util:lifecycle 4146 [LMV350AWM44a0fd4a] Shutting down due to fatal error 2020-04-23T23:43:58.077Z INF/provider 3984 [] Cleaning up device worker "LMV350AWM44a0fd4a" 2020-04-23T23:43:58.077Z ERR/provider 3984 [] Device worker "LMV350AWM44a0fd4a" died with code 1 2020-04-23T23:43:58.077Z INF/provider 3984 [] Restarting device worker "LMV350AWM44a0fd4a" 2020-04-23T23:43:59.344Z INF/device:support:push 4163 [LMV350AWM44a0fd4a] Sending output to "tcp://127.0.0.1:7116" 2020-04-23T23:43:59.348Z INF/device 4163 [LMV350AWM44a0fd4a] Preparing device 2020-04-23T23:43:59.845Z INF/device:support:sub 4163 [LMV350AWM44a0fd4a] Receiving input from "tcp://127.0.0.1:7114" 2020-04-23T23:43:59.848Z INF/device:support:sub 4163 [LMV350AWM44a0fd4a] Subscribing to permanent channel "ALL" 2020-04-23T23:44:00.665Z INF/provider 3984 [] Providing 0 of 1 device(s); waiting for "LMV350AWM44a0fd4a" 2020-04-23T23:44:00.854Z INF/device:support:adb 4163 [LMV350AWM44a0fd4a] Waiting for boot to complete 2020-04-23T23:44:01.856Z INF/device:support:adb 4163 [LMV350AWM44a0fd4a] Waiting for boot to complete 2020-04-23T23:44:02.857Z INF/device:support:adb 4163 [LMV350AWM44a0fd4a] Waiting for boot to complete 2020-04-23T23:44:03.858Z INF/device:support:adb 4163 [LMV350AWM44a0fd4a] Waiting for boot to complete 2020-04-23T23:44:04.860Z INF/device:support:adb 4163 [LMV350AWM44a0fd4a] Waiting for boot to complete 2020-04-23T23:44:05.862Z INF/device:support:adb 4163 [LMV350AWM44a0fd4a] Waiting for boot to complete 2020-04-23T23:44:06.865Z INF/device:support:adb 4163 [LMV350AWM44a0fd4a] Waiting for boot to complete 2020-04-23T23:44:07.900Z INF/device:support:adb 4163 [LMV350AWM44a0fd4a] Waiting for boot to complete 2020-04-23T23:44:08.943Z INF/device:support:adb 4163 [LMV350AWM44a0fd4a] Waiting for boot to complete 2020-04-23T23:44:09.901Z INF/device:support:adb 4163 [LMV350AWM44a0fd4a] Waiting for boot to complete 2020-04-23T23:44:10.676Z INF/provider 3984 [] Providing 0 of 1 device(s); waiting for "LMV350AWM44a0fd4a" 2020-04-23T23:44:10.901Z INF/device:support:adb 4163 [LMV350AWM44a0fd4a] Waiting for boot to complete 2020-04-23T23:44:11.903Z INF/device:support:adb 4163 [LMV350AWM44a0fd4a] Waiting for boot to complete 2020-04-23T23:44:12.905Z INF/device:support:adb 4163 [LMV350AWM44a0fd4a] Waiting for boot to complete 2020-04-23T23:44:13.907Z INF/device:support:adb 4163 [LMV350AWM44a0fd4a] Waiting for boot to complete 2020-04-23T23:44:14.909Z INF/device:support:adb 4163 [LMV350AWM44a0fd4a] Waiting for boot to complete 2020-04-23T23:44:15.910Z INF/device:support:adb 4163 [LMV350AWM44a0fd4a] Waiting for boot to complete 2020-04-23T23:44:16.912Z INF/device:support:adb 4163 [LMV350AWM44a0fd4a] Waiting for boot to complete 2020-04-23T23:44:17.913Z INF/device:support:adb 4163 [LMV350AWM44a0fd4a] Waiting for boot to complete 2020-04-23T23:44:18.915Z INF/device:support:adb 4163 [LMV350AWM44a0fd4a] Waiting for boot to complete 2020-04-23T23:44:19.916Z INF/device:support:adb 4163 [LMV350AWM44a0fd4a] Waiting for boot to complete 2020-04-23T23:44:20.684Z INF/provider 3984 [] Providing 0 of 1 device(s); waiting for "LMV350AWM44a0fd4a" 2020-04-23T23:44:20.918Z INF/device:support:adb 4163 [LMV350AWM44a0fd4a] Waiting for boot to complete 2020-04-23T23:44:21.919Z INF/device:support:adb 4163 [LMV350AWM44a0fd4a] Waiting for boot to complete 2020-04-23T23:44:22.921Z INF/device:support:adb 4163 [LMV350AWM44a0fd4a] Waiting for boot to complete 2020-04-23T23:44:23.922Z INF/device:support:adb 4163 [LMV350AWM44a0fd4a] Waiting for boot to complete 2020-04-23T23:44:24.923Z INF/device:support:adb 4163 [LMV350AWM44a0fd4a] Waiting for boot to complete 2020-04-23T23:44:25.925Z INF/device:support:adb 4163 [LMV350AWM44a0fd4a] Waiting for boot to complete 2020-04-23T23:44:26.927Z INF/device:support:adb 4163 [LMV350AWM44a0fd4a] Waiting for boot to complete 2020-04-23T23:44:27.929Z INF/device:support:adb 4163 [LMV350AWM44a0fd4a] Waiting for boot to complete 2020-04-23T23:44:28.931Z INF/device:support:adb 4163 [LMV350AWM44a0fd4a] Waiting for boot to complete 2020-04-23T23:44:29.932Z INF/device:support:adb 4163 [LMV350AWM44a0fd4a] Waiting for boot to complete 2020-04-23T23:44:30.691Z INF/provider 3984 [] Providing 0 of 1 device(s); waiting for "LMV350AWM44a0fd4a" 2020-04-23T23:44:30.934Z INF/device:support:adb 4163 [LMV350AWM44a0fd4a] Waiting for boot to complete 2020-04-23T23:44:31.936Z INF/device:support:adb 4163 [LMV350AWM44a0fd4a] Waiting for boot to complete 2020-04-23T23:44:32.937Z INF/device:support:adb 4163 [LMV350AWM44a0fd4a] Waiting for boot to complete 2020-04-23T23:44:33.938Z INF/device:support:adb 4163 [LMV350AWM44a0fd4a] Waiting for boot to complete ^C2020-04-23T23:44:34.865Z INF/util:lifecycle 4163 [LMV350AWM44a0fd4a] Winding down for graceful exit 2020-04-23T23:44:34.867Z INF/util:lifecycle 3998 [] Winding down for graceful exit 2020-04-23T23:44:34.874Z INF/cli:local 3963 [] Received SIGINT, waiting for processes to terminate 2020-04-23T23:44:34.887Z INF/util:lifecycle 4013 [] Winding down for graceful exit 2020-04-23T23:44:34.894Z INF/util:lifecycle 3982 [proc002] Winding down for graceful exit 2020-04-23T23:44:34.869Z INF/util:lifecycle 3984 [] Winding down for graceful exit 2020-04-23T23:44:34.906Z INF/util:lifecycle 3984 [] Winding down for graceful exit 2020-04-23T23:44:34.872Z INF/util:lifecycle 3976 [dev001] Winding down for graceful exit 2020-04-23T23:44:34.866Z INF/util:lifecycle 4003 [] Winding down for graceful exit 2020-04-23T23:44:34.871Z INF/util:lifecycle 3981 [proc001] Winding down for graceful exit 2020-04-23T23:44:34.870Z INF/util:lifecycle 3983 [reaper001] Winding down for graceful exit 2020-04-23T23:44:34.873Z INF/util:lifecycle 3975 [app001] Winding down for graceful exit 2020-04-23T23:44:34.868Z INF/util:lifecycle 3993 [] Winding down for graceful exit 2020-04-23T23:44:34.934Z INF/util:lifecycle 3981 [proc001] Winding down for graceful exit 2020-04-23T23:44:34.913Z INF/util:lifecycle 3982 [proc002] Winding down for graceful exit 2020-04-23T23:44:34.941Z INF/auth-mock 3993 [] Waiting for client connections to end 2020-04-23T23:44:34.936Z INF/util:lifecycle 3983 [reaper001] Winding down for graceful exit 2020-04-23T23:44:34.936Z INF/provider 3984 [] Cleaning up device worker "LMV350AWM44a0fd4a" 2020-04-23T23:44:34.964Z INF/provider 3984 [] Gracefully killing device worker "LMV350AWM44a0fd4a" 2020-04-23T23:44:34.949Z WRN/db 3981 [proc001] Connection closed 2020-04-23T23:44:34.950Z INF/util:lifecycle 4010 [] Winding down for graceful exit 2020-04-23T23:44:34.985Z WRN/db 3983 [reaper001] Connection closed 2020-04-23T23:44:34.951Z WRN/db 3982 [proc002] Connection closed 2020-04-23T23:44:34.954Z INF/util:lifecycle 4003 [] Winding down for graceful exit 2020-04-23T23:44:34.956Z WRN/db 4013 [] Connection closed 2020-04-23T23:44:35.012Z WRN/db 4003 [] Connection closed 2020-04-23T23:44:35.014Z INF/provider 3984 [] Device worker "LMV350AWM44a0fd4a" has retired 2020-04-23T23:44:35.033Z INF/util:lifecycle 3993 [] Winding down for graceful exit 2020-04-23T23:44:35.033Z INF/auth-mock 3993 [] Waiting for client connections to end 2020-04-23T23:44:35.036Z WRN/db 4010 [] Connection closed 2020-04-23T23:44:35.070Z WRN/db 3993 [] Connection closed 2020-04-23T23:44:35.077Z INF/util:lifecycle 3998 [] Winding down for graceful exit 2020-04-23T23:44:35.078Z WRN/db 3998 [] Connection closed osboxes@osboxes:~/stf/stf$

Emperorlou commented 4 years ago

@pcrepieux Just making sure you saw this, thanks!