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

Android device soft reboots when I use mouse input over scrcpy #962

Closed
patientx opened this issue Nov 29, 2019 · 8 comments
Closed

Android device soft reboots when I use mouse input over scrcpy #962

patientx opened this issue Nov 29, 2019 · 8 comments

Comments

@patientx
Copy link

patientx commented Nov 29, 2019

I have a android tv box with android 7.1 and wanted to try to control it with scrcpy. I don't have the means to connect it to pc so I enabled adb over tcp ip via :

su
setprop service.adb.tcp.port 5555
stop adbd
start adbd

in termux in the android device.
After this I am using a batch file to connect to this box over the wifi:

adb connect 192.168.2.41
scrcpy --bit-rate 4M --max-size 1280 --max-fps 30

And this works great, no need to ever re-enable to adb over usb since I would never use adb over usb with that box , even if I needed to I can disable wifi and re-enable adb over usb with :

setprop service.adb.tcp.port -1
stop adbd
start adbd

So far so good , except ... When I click on anything with my mouse on the open scrcpy window the tvbox reboots -soft reboots- and I can even see the company logo animating in the beginning for a while too :) BUT keyboard input is all right somehow ...

Yes I enabled usb-debugging and yes scrcpy works with my phone etc over the standart usb cable method and it works with the phone over THE WIFI METHOD as well. -which is an android 6 leeco device and rooted-

Here is the windows command screen when the error happens :

[server] ERROR: Could not invoke injectInputEvent
java.lang.reflect.InvocationTargetException
        at java.lang.reflect.Method.invoke(Native Method)
        at com.genymobile.scrcpy.wrappers.InputManager.injectInputEvent(InputManager.java:41)
        at com.genymobile.scrcpy.Device.injectInputEvent(Device.java:124)
        at com.genymobile.scrcpy.Controller.injectEvent(Controller.java:218)
        at com.genymobile.scrcpy.Controller.injectTouch(Controller.java:181)
        at com.genymobile.scrcpy.Controller.handleEvent(Controller.java:85)
        at com.genymobile.scrcpy.Controller.control(Controller.java:67)
        at com.genymobile.scrcpy.Server$1.run(Server.java:45)
        at java.lang.Thread.run(Thread.java:761)
Caused by: android.os.DeadObjectException: Transaction failed on small parcel; remote process probably died
        at android.os.BinderProxy.transactNative(Native Method)
        at android.os.BinderProxy.transact(Binder.java:615)
        at android.hardware.input.IInputManager$Stub$Proxy.injectInputEvent(IInputManager.java:536)
        ... 9 more

Edit : Tvbox uses standard android 7.1 and leeco uses miui, I had to enable both "USB debugging (Security settings) and normal USB debugging" on leeco but on standard android there is only normal usb debugging option which is enabled, anyways isn't it weird that keyboard input works but only mouse input causes this ?

@rom1v
Copy link
Collaborator

rom1v commented Nov 29, 2019

It seems injecting a mouse event cause a segfault or something in a system process.

Open adb logcat in a separate terminal. Then click in scrcpy to make the TV crash.

Maybe it will have time to print more details about the crash.

@patientx
Copy link
Author

patientx commented Nov 29, 2019

here is adb log from the start of the crash :

--------- beginning of crash
11-29 13:32:48.992  4385  4426 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: android.ui
11-29 13:32:48.992  4385  4426 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.view.InputDevice.getName()' on a null object reference
11-29 13:32:48.992  4385  4426 E AndroidRuntime:        at com.android.internal.policy.NavBarEventListener.onPointerEvent(NavBarEventListener.java:91)
11-29 13:32:48.992  4385  4426 E AndroidRuntime:        at com.android.server.wm.PointerEventDispatcher.onInputEvent(PointerEventDispatcher.java:53)
11-29 13:32:48.992  4385  4426 E AndroidRuntime:        at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
11-29 13:32:48.992  4385  4426 E AndroidRuntime:        at android.os.MessageQueue.nativePollOnce(Native Method)
11-29 13:32:48.992  4385  4426 E AndroidRuntime:        at android.os.MessageQueue.next(MessageQueue.java:323)
11-29 13:32:48.992  4385  4426 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:136)
11-29 13:32:48.992  4385  4426 E AndroidRuntime:        at android.os.HandlerThread.run(HandlerThread.java:61)
11-29 13:32:48.992  4385  4426 E AndroidRuntime:        at com.android.server.ServiceThread.run(ServiceThread.java:46)
11-29 13:32:49.014  4385  4426 I Process : Sending signal. PID: 4385 SIG: 9
11-29 13:32:49.083  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:49.083  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:49.083  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:49.108  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:49.108  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf31beaa0, ...) failed: 7
11-29 13:32:49.108  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf31beaa0 for access, handle: 0xf3a187d0
11-29 13:32:49.125  4162  7338 I FASTGX_RC: base qp--:19
11-29 13:32:49.152  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:49.152  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:49.152  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:49.179  4160  4160 E         : eof
11-29 13:32:49.179  4160  4160 E         : failed to read size
11-29 13:32:49.179  4160  4160 I         : closing connection
11-29 13:32:49.180  4125  4125 I lowmemorykiller: ActivityManager disconnected
11-29 13:32:49.180  4125  4125 I lowmemorykiller: Closing Activity Manager data connection
11-29 13:32:49.219  4126  4126 I ServiceManager: service 'dreams' died
11-29 13:32:49.231  7322  7332 E scrcpy  : Could not invoke injectInputEvent
11-29 13:32:49.231  7322  7332 E scrcpy  : java.lang.reflect.InvocationTargetException
11-29 13:32:49.231  7322  7332 E scrcpy  :      at java.lang.reflect.Method.invoke(Native Method)
11-29 13:32:49.231  7322  7332 E scrcpy  :      at com.genymobile.scrcpy.wrappers.InputManager.injectInputEvent(InputManager.java:41)
11-29 13:32:49.231  7322  7332 E scrcpy  :      at com.genymobile.scrcpy.Device.injectInputEvent(Device.java:124)
11-29 13:32:49.231  7322  7332 E scrcpy  :      at com.genymobile.scrcpy.Controller.injectEvent(Controller.java:218)
11-29 13:32:49.231  7322  7332 E scrcpy  :      at com.genymobile.scrcpy.Controller.injectTouch(Controller.java:181)
11-29 13:32:49.231  7322  7332 E scrcpy  :      at com.genymobile.scrcpy.Controller.handleEvent(Controller.java:85)
11-29 13:32:49.231  7322  7332 E scrcpy  :      at com.genymobile.scrcpy.Controller.control(Controller.java:67)
11-29 13:32:49.231  7322  7332 E scrcpy  :      at com.genymobile.scrcpy.Server$1.run(Server.java:45)
11-29 13:32:49.231  7322  7332 E scrcpy  :      at java.lang.Thread.run(Thread.java:761)
11-29 13:32:49.231  7322  7332 E scrcpy  : Caused by: android.os.DeadObjectException
11-29 13:32:49.231  7322  7332 E scrcpy  :      at android.os.BinderProxy.transactNative(Native Method)
11-29 13:32:49.231  7322  7332 E scrcpy  :      at android.os.BinderProxy.transact(Binder.java:615)
11-29 13:32:49.231  7322  7332 E scrcpy  :      at android.hardware.input.IInputManager$Stub$Proxy.injectInputEvent(IInputManager.java:536)
11-29 13:32:49.231  7322  7332 E scrcpy  :      ... 9 more
11-29 13:32:49.231  5202  5202 D AndroidRuntime: Shutting down VM
11-29 13:32:49.234  6231  7146 E NsdManager: Channel lost
11-29 13:32:49.235  6444  6719 W Sensors : sensorservice died [0xc7b1d600]
11-29 13:32:49.236  6778  6888 W Sensors : sensorservice died [0xcada9c40]
11-29 13:32:49.236  4666  6526 W Sensors : sensorservice died [0xce4096c0]
11-29 13:32:49.236  4666  6526 W Sensors : sensorservice died [0xce4096c0]
11-29 13:32:49.236  4567  4724 W Sensors : sensorservice died [0xe0c19e00]
11-29 13:32:49.236  4157  4188 W AudioFlinger: power manager service died !!!
11-29 13:32:49.239  5202  5202 E GCore-Chimera-Crash: Hit an exception while processing the UncaughtExceptionHandler:
11-29 13:32:49.239  5202  5202 E GCore-Chimera-Crash: DeadSystemException: The system died; earlier logs will point to the root cause
11-29 13:32:49.241  5202  5202 E BaseUncaughtHandler: Hit an exception while processing the UncaughtExceptionHandler. Original exception:
11-29 13:32:49.241  5202  5202 E BaseUncaughtHandler: DeadSystemException: The system died; earlier logs will point to the root cause
11-29 13:32:49.242  5202  5202 E AndroidRuntime: FATAL EXCEPTION: main
11-29 13:32:49.242  5202  5202 E AndroidRuntime: Process: com.google.android.gms, PID: 5202
11-29 13:32:49.242  5202  5202 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause
11-29 13:32:49.245  5202  5202 I Process : Sending signal. PID: 5202 SIG: 9
11-29 13:32:49.245  4127  4127 D SurfaceFlinger: Set power mode=2, type=0 flinger=0xf6332000
11-29 13:32:49.245  4127  4127 D SurfaceFlinger: Screen type=0 is already mode=2
11-29 13:32:49.237  7368  7368 I bootanimation: type=1400 audit(0.0:107): avc: denied { getattr } for path="/vendor" dev="rootfs" ino=8208 scontext=u:r:bootanim:s0 tcontext=u:object_r:rootfs:s0 tclass=lnk_file permissive=1
11-29 13:32:49.264  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:49.264  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:49.264  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:49.278  4126  4126 I ServiceManager: service 'hdmi_control' died
11-29 13:32:49.285  4126  4126 I ServiceManager: service 'assetatlas' died
11-29 13:32:49.288  4126  4126 I ServiceManager: service 'graphicsstats' died
11-29 13:32:49.288  4126  4126 I ServiceManager: service 'restrictions' died
11-29 13:32:49.288  4126  4126 I ServiceManager: service 'media_router' died
11-29 13:32:49.288  4126  4126 I ServiceManager: service 'trust' died
11-29 13:32:49.288  4126  4126 I ServiceManager: service 'media_session' died
11-29 13:32:49.288  4126  4126 I ServiceManager: service 'shortcut' died
11-29 13:32:49.288  4126  4126 I ServiceManager: service 'launcherapps' died
11-29 13:32:49.288  4126  4126 I ServiceManager: service 'media_projection' died
11-29 13:32:49.288  4126  4126 I ServiceManager: service 'imms' died
11-29 13:32:49.288  4126  4126 I ServiceManager: service 'bluetooth_manager' died
11-29 13:32:49.288  4126  4126 I ServiceManager: service 'connectivity_metrics_logger' died
11-29 13:32:49.288  4126  4126 I ServiceManager: service 'connmetrics' died
11-29 13:32:49.288  4126  4126 I ServiceManager: service 'netd_listener' died
11-29 13:32:49.288  4126  4126 I ServiceManager: service 'contexthub_service' died
11-29 13:32:49.288  4126  4126 I ServiceManager: service 'otadexopt' died
11-29 13:32:49.288  4126  4126 I ServiceManager: service 'user' died
11-29 13:32:49.288  4126  4126 I ServiceManager: service 'activity' died
11-29 13:32:49.288  4126  4126 I ServiceManager: service 'procstats' died
11-29 13:32:49.288  4126  4126 I ServiceManager: service 'meminfo' died
11-29 13:32:49.288  4126  4126 I ServiceManager: service 'gfxinfo' died
11-29 13:32:49.288  4126  4126 I ServiceManager: service 'dbinfo' died
11-29 13:32:49.288  4126  4126 I ServiceManager: service 'cpuinfo' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'permission' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'processinfo' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'battery' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'usagestats' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'webviewupdate' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'scheduling_policy' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'telephony.registry' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'lock_settings' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'deviceidle' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'package' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'media.camera.proxy' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'account' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'content' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'vibrator' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'consumer_ir' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'alarm' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'window' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'vrmanager' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'input' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'pinner' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'input_method' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'accessibility' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'mount' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'uimode' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'device_policy' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'statusbar' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'clipboard' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'network_management' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'textservices' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'network_score' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'netstats' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'netpolicy' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'wifip2p' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'wifi' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'rttmanager' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'wifiscanner' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'ethernet' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'connectivity' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'servicediscovery' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'updatelock' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'recovery' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'notification' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'devicestoragemonitor' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'location' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'country_detector' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'search' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'dropbox' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'wallpaper' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'audio' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'DockObserver' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'usb' died
11-29 13:32:49.289  4126  4126 I ServiceManager: service 'serial' died
11-29 13:32:49.290  4126  4126 I ServiceManager: service 'hardware_properties' died
11-29 13:32:49.290  4126  4126 I ServiceManager: service 'jobscheduler' died
11-29 13:32:49.290  4126  4126 I ServiceManager: service 'soundtrigger' died
11-29 13:32:49.290  4126  4126 I ServiceManager: service 'backup' died
11-29 13:32:49.290  4126  4126 I ServiceManager: service 'appwidget' died
11-29 13:32:49.290  4126  4126 I ServiceManager: service 'voiceinteraction' died
11-29 13:32:49.290  4126  4126 I ServiceManager: service 'diskstats' died
11-29 13:32:49.290  4126  4126 I ServiceManager: service 'samplingprofiler' died
11-29 13:32:49.290  4126  4126 I ServiceManager: service 'network_time_update_service' died
11-29 13:32:49.290  4126  4126 I ServiceManager: service 'batterystats' died
11-29 13:32:49.290  4126  4126 I ServiceManager: service 'appops' died
11-29 13:32:49.290  4126  4126 I ServiceManager: service 'power' died
11-29 13:32:49.290  4126  4126 I ServiceManager: service 'display' died
11-29 13:32:49.290  4126  4126 I ServiceManager: service 'sensorservice' died
11-29 13:32:49.290  4126  4126 I ServiceManager: service 'commontime_management' died
11-29 13:32:49.314  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:49.314  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf31beaa0, ...) failed: 7
11-29 13:32:49.314  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf31beaa0 for access, handle: 0xf3a187d0
11-29 13:32:49.326  4666  6562 E GCore-Chimera-Crash: Hit an exception while processing the UncaughtExceptionHandler:
11-29 13:32:49.326  4666  6562 E GCore-Chimera-Crash: DeadSystemException: The system died; earlier logs will point to the root cause
11-29 13:32:49.326  4127  4473 E BufferQueueProducer: [ca.dstudio.atvlauncher.pro/ca.dstudio.atvlauncher.screens.launcher.LauncherActivity] queueBuffer: BufferQueue has been abandoned
11-29 13:32:49.327  5083  5172 E Surface : queueBuffer: error queuing buffer to SurfaceTexture, -19
11-29 13:32:49.327  5083  5172 E [EGL-ERROR]: void __egl_platform_queue_buffer_android(mali_base_ctx_handle, egl_buffer *):1437: unable to queue buffer (0x0xcdced3c8)
11-29 13:32:49.328  4162  7338 I FASTGX_RC: base qp--:18
11-29 13:32:49.328  4666  6562 E BaseUncaughtHandler: Hit an exception while processing the UncaughtExceptionHandler. Original exception:
11-29 13:32:49.328  4666  6562 E BaseUncaughtHandler: DeadSystemException: The system died; earlier logs will point to the root cause
11-29 13:32:49.328  4666  6562 E AndroidRuntime: FATAL EXCEPTION: lowpool[12]
11-29 13:32:49.328  4666  6562 E AndroidRuntime: Process: com.google.android.gms.persistent, PID: 4666
11-29 13:32:49.328  4666  6562 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause
11-29 13:32:49.329  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:49.329  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:49.329  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:49.337  4666  6562 I Process : Sending signal. PID: 4666 SIG: 9
11-29 13:32:49.349  4162  7338 I FASTGX_RC: base qp - 4:17
11-29 13:32:49.424  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:49.424  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:49.424  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:49.435  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:49.453  5083  5083 W SectionalGridFragmentDefaultState: [f:245] [LONG_CLICK] Open application menu, uuid = 05042c87-9355-4a3f-802a-0310dbc0d593
11-29 13:32:49.475  4127  4135 E BufferQueueProducer: [ca.dstudio.atvlauncher.pro/ca.dstudio.atvlauncher.screens.launcher.LauncherActivity] dequeueBuffer: BufferQueue has been abandoned
11-29 13:32:49.475  5083  5172 E [EGL-ERROR]: void __egl_platform_dequeue_buffer(egl_surface *):1809: failed to dequeue buffer from native window 0xd2a59808; err = -19, buf = 0x0,max_allowed_dequeued_buffers 3
11-29 13:32:49.475  4127  4133 E BufferQueueProducer: [ca.dstudio.atvlauncher.pro/ca.dstudio.atvlauncher.screens.launcher.LauncherActivity] dequeueBuffer: BufferQueue has been abandoned
11-29 13:32:49.475  5083  5172 E [EGL-ERROR]: void __egl_platform_dequeue_buffer(egl_surface *):1809: failed to dequeue buffer from native window 0xd2a59808; err = -19, buf = 0x0,max_allowed_dequeued_buffers 3
11-29 13:32:49.477  4127  4473 E BufferQueueProducer: [ca.dstudio.atvlauncher.pro/ca.dstudio.atvlauncher.screens.launcher.LauncherActivity] dequeueBuffer: BufferQueue has been abandoned
11-29 13:32:49.478  5083  5172 E [EGL-ERROR]: void __egl_platform_dequeue_buffer(egl_surface *):1809: failed to dequeue buffer from native window 0xd2a59808; err = -19, buf = 0x0,max_allowed_dequeued_buffers 3
11-29 13:32:49.478  4127  4471 E BufferQueueProducer: [ca.dstudio.atvlauncher.pro/ca.dstudio.atvlauncher.screens.launcher.LauncherActivity] dequeueBuffer: BufferQueue has been abandoned
11-29 13:32:49.478  5083  5172 E [EGL-ERROR]: void __egl_platform_dequeue_buffer(egl_surface *):1809: failed to dequeue buffer from native window 0xd2a59808; err = -19, buf = 0x0,max_allowed_dequeued_buffers 3
11-29 13:32:49.478  4127  4472 E BufferQueueProducer: [ca.dstudio.atvlauncher.pro/ca.dstudio.atvlauncher.screens.launcher.LauncherActivity] dequeueBuffer: BufferQueue has been abandoned
11-29 13:32:49.478  5083  5172 E [EGL-ERROR]: void __egl_platform_dequeue_buffer(egl_surface *):1809: failed to dequeue buffer from native window 0xd2a59808; err = -19, buf = 0x0,max_allowed_dequeued_buffers 3
11-29 13:32:49.478  5083  5172 W OpenGLRenderer: swapBuffers encountered EGL error 12301 on 0xcda4eac0, halting rendering...
11-29 13:32:49.500  5083  5083 W ApplicationMenu: [q:58] LC onResume
11-29 13:32:49.507  6778  6890 W CrashMetricService: Failed to get process stats.
11-29 13:32:49.507  6778  6890 W CrashMetricService: DeadSystemException: The system died; earlier logs will point to the root cause
11-29 13:32:49.513  5083  5083 E SystemServiceRegistry: Failed to get power manager service.
11-29 13:32:49.514  6778  6890 W CrashMetricService: Failed to record crash.
11-29 13:32:49.514  6778  6890 W CrashMetricService: DeadSystemException: The system died; earlier logs will point to the root cause
11-29 13:32:49.515  6778  6890 E AndroidRuntime: FATAL EXCEPTION: ANRGuard-Thread
11-29 13:32:49.515  6778  6890 E AndroidRuntime: Process: com.vanced.android.youtube, PID: 6778
11-29 13:32:49.515  6778  6890 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause
11-29 13:32:49.517  6778  6890 I Process : Sending signal. PID: 6778 SIG: 9
11-29 13:32:49.524  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:49.524  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:49.524  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:49.536  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:49.559  5083  5083 W System.err: java.lang.RuntimeException: android.os.DeadSystemException
11-29 13:32:49.559  5083  5083 W System.err:    at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1392)
11-29 13:32:49.559  5083  5083 W System.err:    at android.app.ContextImpl.startService(ContextImpl.java:1358)
11-29 13:32:49.559  5083  5083 W System.err:    at android.content.ContextWrapper.startService(ContextWrapper.java:613)
11-29 13:32:49.559  5083  5083 W System.err:    at androidx.core.app.c$c.a(JobIntentService.java:182)
11-29 13:32:49.559  5083  5083 W System.err:    at androidx.core.app.c.a(JobIntentService.java:1523)
11-29 13:32:49.559  5083  5083 W System.err:    at org.acra.sender.f.a(SenderServiceStarter.java:54)
11-29 13:32:49.559  5083  5083 W System.err:    at org.acra.b.c.a(ReportExecutor.java:243)
11-29 13:32:49.559  5083  5083 W System.err:    at org.acra.b.c.a(ReportExecutor.java:178)
11-29 13:32:49.559  5083  5083 W System.err:    at org.acra.b.b.a(ReportBuilder.java:183)
11-29 13:32:49.559  5083  5083 W System.err:    at org.acra.h.a.a(ErrorReporterImpl.java:3193)
11-29 13:32:49.559  5083  5083 W System.err:    at ca.dstudio.atvlauncher.LauncherApplication.a(LauncherApplication.java:100)
11-29 13:32:49.559  5083  5083 W System.err:    at ca.dstudio.atvlauncher.LauncherApplication.lambda$PbQZKpsPkb1QW36n48tTF3S_va0(LauncherApplication.java)
11-29 13:32:49.559  5083  5083 W System.err:    at ca.dstudio.atvlauncher.-$$Lambda$LauncherApplication$PbQZKpsPkb1QW36n48tTF3S_va0.accept(lambda)
11-29 13:32:49.559  5083  5083 W System.err:    at io.a.g.a.a(RxJavaPlugins.java:373)
11-29 13:32:49.559  5083  5083 W System.err:    at io.a.e.d.h.a(EmptyCompletableObserver.java:50)
11-29 13:32:49.560  5083  5083 W System.err:    at io.a.e.e.a.i$a.a(CompletablePeek.java:95)
11-29 13:32:49.560  5083  5083 W System.err:    at io.a.e.e.a.h$a.run(CompletableObserveOn.java:87)
11-29 13:32:49.560  5083  5083 W System.err:    at io.a.a.b.b$b.run(HandlerScheduler.java:109)
11-29 13:32:49.560  5083  5083 W System.err:    at android.os.Handler.handleCallback(Handler.java:751)
11-29 13:32:49.560  5083  5083 W System.err:    at android.os.Handler.dispatchMessage(Handler.java:95)
11-29 13:32:49.560  5083  5083 W System.err:    at android.os.Looper.loop(Looper.java:154)
11-29 13:32:49.560  5083  5083 W System.err:    at android.app.ActivityThread.main(ActivityThread.java:6121)
11-29 13:32:49.560  5083  5083 W System.err:    at java.lang.reflect.Method.invoke(Native Method)
11-29 13:32:49.560  5083  5083 W System.err:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:892)
11-29 13:32:49.560  5083  5083 W System.err:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:782)
11-29 13:32:49.560  5083  5083 W System.err: Caused by: android.os.DeadSystemException
11-29 13:32:49.560  5083  5083 W System.err:    ... 25 more
11-29 13:32:49.561  5083  5083 E ACRA    : ACRA caught a RuntimeException for ca.dstudio.atvlauncher.pro
11-29 13:32:49.561  5083  5083 E ACRA    : DeadSystemException: The system died; earlier logs will point to the root cause
11-29 13:32:49.567  5083  5083 E ACRA    : ACRA failed to capture the error - handing off to native error reporter
11-29 13:32:49.567  5083  5083 E ACRA    : DeadSystemException: The system died; earlier logs will point to the root cause
11-29 13:32:49.567  5083  5083 I ACRA    : ACRA is disabled for ca.dstudio.atvlauncher.pro - forwarding uncaught Exception on to default ExceptionHandler
11-29 13:32:49.567  5083  5083 E AndroidRuntime: FATAL EXCEPTION: main
11-29 13:32:49.567  5083  5083 E AndroidRuntime: Process: ca.dstudio.atvlauncher.pro, PID: 5083
11-29 13:32:49.567  5083  5083 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause
11-29 13:32:49.568  5083  5083 I Process : Sending signal. PID: 5083 SIG: 9
11-29 13:32:49.624  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:49.624  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:49.624  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:49.635  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:49.725  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:49.725  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:49.725  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:49.736  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:49.825  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:49.825  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:49.825  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:49.836  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:49.925  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:49.925  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:49.925  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:49.936  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:50.025  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:50.025  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:50.025  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:50.037  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:50.063  7368  7385 D libEGL  : loaded /system/lib/egl/libGLES_mali.so
11-29 13:32:50.107  4156  4156 E Zygote  : Exit zygote because system server (4385) has terminated
11-29 13:32:50.126  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:50.126  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:50.126  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:50.137  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:50.189  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:50.189  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf31beaa0, ...) failed: 7
11-29 13:32:50.189  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf31beaa0 for access, handle: 0xf3a187d0
11-29 13:32:50.200  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:50.300  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:50.300  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf31beaa0, ...) failed: 7
11-29 13:32:50.300  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf31beaa0 for access, handle: 0xf3a187d0
11-29 13:32:50.316  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:50.357  4126  4126 I ServiceManager: service 'netd' died
11-29 13:32:50.374  4126  4126 I ServiceManager: service 'media.camera' died
11-29 13:32:50.374  7322  7330 W MediaCodec: ResourceManagerService died.
11-29 13:32:50.375  4126  4126 I ServiceManager: service 'subtitle_service' died
11-29 13:32:50.375  4126  4126 I ServiceManager: service 'media.player' died
11-29 13:32:50.376  4126  4126 I ServiceManager: service 'media.resource_manager' died
11-29 13:32:50.376  4126  4126 I ServiceManager: service 'media.audio_flinger' died
11-29 13:32:50.376  4126  4126 I ServiceManager: service 'media.audio_policy' died
11-29 13:32:50.376  4126  4126 I ServiceManager: service 'media.sound_trigger_hw' died
11-29 13:32:50.376  4126  4126 I ServiceManager: service 'media.radio' died
11-29 13:32:50.389  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:50.389  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:50.389  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:50.404  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:50.411  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:50.412  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf31beaa0, ...) failed: 7
11-29 13:32:50.412  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf31beaa0 for access, handle: 0xf3a187d0
11-29 13:32:50.424  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:50.445  7393  7393 I Netd    : Netd 1.0 starting
11-29 13:32:50.445  7393  7393 D TetherController: Setting IP forward enable = 0
11-29 13:32:50.456  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:50.456  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:50.456  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:50.469  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:50.499  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:50.500  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf31beaa0, ...) failed: 7
11-29 13:32:50.500  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf31beaa0 for access, handle: 0xf3a187d0
11-29 13:32:50.511  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:50.553  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:50.553  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:50.553  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:50.564  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:50.633  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:50.633  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf31beaa0, ...) failed: 7
11-29 13:32:50.633  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf31beaa0 for access, handle: 0xf3a187d0
11-29 13:32:50.652  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:50.700  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:50.700  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:50.700  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:50.707  7392  7392 I cameraserver: ServiceManager: 0xf4b99420
11-29 13:32:50.707  7392  7392 I CameraService: CameraService started (pid=7392)
11-29 13:32:50.707  7392  7392 I CameraService: CameraService process starting
11-29 13:32:50.707  7392  7392 W BatteryNotifier: batterystats service unavailable!
11-29 13:32:50.707  7392  7392 W BatteryNotifier: batterystats service unavailable!
11-29 13:32:50.712  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:50.714  7392  7392 I EmulatedCamera_Factory:   306 get_number_of_cameras - get_number_of_cameras : cam is NULL
11-29 13:32:50.714  7392  7392 I CameraService: Loaded "Camera Module" camera module
11-29 13:32:50.714  7392  7392 I EmulatedCamera_Factory:   306 get_number_of_cameras - get_number_of_cameras : cam is NULL
11-29 13:32:50.714  7392  7392 I EmulatedCamera_Factory:   306 get_number_of_cameras - get_number_of_cameras : cam is NULL
11-29 13:32:50.725  7392  7392 I ServiceManager: Waiting for service media.camera.proxy...
11-29 13:32:50.743  7391  7391 I         : sMaxFastTracks = 8
11-29 13:32:50.744  7391  7391 I audioserver: ServiceManager: 0xf0899420
11-29 13:32:50.745  7391  7391 W BatteryNotifier: batterystats service unavailable!
11-29 13:32:50.745  7391  7391 I AudioFlinger: Using default 3000 mSec as standby time.
11-29 13:32:50.746  7391  7391 I AudioPolicyService: AudioPolicyService CSTOR in new mode
11-29 13:32:50.747  7391  7391 I APM::ConfigParsingUtils: loadAudioPolicyConfig() loaded /system/etc/audio_policy.conf
11-29 13:32:50.762  7391  7391 D audio_hw_primary: select_devices(mode=0, out_device=0x2)
11-29 13:32:50.762  7391  7391 D audio_hw_primary: select_devices : hs=0 , hp=0, sp=2, hdmi=0x0,earpiece=0x0
11-29 13:32:50.762  7391  7391 D audio_hw_primary: select_devices : in_device(0x4), mic_in(0x4), headset_mic(0)
11-29 13:32:50.762  7391  7391 I AudioFlinger: loadHwModule() Loaded primary audio interface from aml audio HW HAL (audio) handle 10
11-29 13:32:50.307  7391  7391 I audioserver: type=1400 audit(0.0:108): avc: denied { getattr } for path="/vendor" dev="rootfs" ino=8208 scontext=u:r:audioserver:s0 tcontext=u:object_r:rootfs:s0 tclass=lnk_file permissive=1
11-29 13:32:50.763  7391  7391 I AudioFlinger: openOutput(), module 10 Device 2, SamplingRate 48000, Format 0x000001, Channels 3, flags 2
11-29 13:32:50.763  7391  7391 I audio_hw_primary: enter adev_open_output_stream(devices=0x0002,format=0x1, ch=0x0003, SR=48000, flags=0x2)
11-29 13:32:50.763  7391  7391 I audio_hw_primary: hwsync_lpcm 0
11-29 13:32:50.763  7391  7391 D audio_hw_primary: **leave adev_open_output_stream(devices=0x0002,format=0x1, ch=0x0003, SR=48000)
11-29 13:32:50.763  7391  7391 I AudioFlinger: HAL output buffer size 1024 frames, normal sink buffer size 1024 frames
11-29 13:32:50.768  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:50.317  7392  7392 I cameraserver: type=1400 audit(0.0:109): avc: denied { getattr } for path="/vendor" dev="rootfs" ino=8208 scontext=u:r:cameraserver:s0 tcontext=u:object_r:rootfs:s0 tclass=lnk_file permissive=1
11-29 13:32:50.768  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf31beaa0, ...) failed: 7
11-29 13:32:50.768  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf31beaa0 for access, handle: 0xf3a187d0
11-29 13:32:50.772  7391  7391 I BufferProvider: found effect "Multichannel Downmix To Stereo" from The Android Open Source Project
11-29 13:32:50.773  7391  7391 I AudioFlinger: Using module 10 has the primary audio interface
11-29 13:32:50.773  7391  7391 D audio_hw_primary: adev_set_mode(0xf0403bc0, 0)
11-29 13:32:50.773  7391  7410 I AudioFlinger: AudioFlinger's thread 0xf0383fc0 ready to run
11-29 13:32:50.773  7391  7391 V APM_AudioPolicyManager: setOutputDevice() device 0002 delayMs 0
11-29 13:32:50.774  7391  7391 V APM_AudioPolicyManager: setOutputDevice() prevDevice 0x0002
11-29 13:32:50.774  7391  7391 V APM::AudioPolicyEngine: getDeviceForStrategy() no device found for strategy 1
11-29 13:32:50.774  7391  7391 V APM_AudioPolicyManager: setOutputDevice() changing device
11-29 13:32:50.774  7391  7410 W BatteryNotifier: batterystats service unavailable!
11-29 13:32:50.774  7391  7410 D audio_hw_primary: out_standby(0xf041c000)
11-29 13:32:50.774  7391  7410 D audio_hw_primary: do_output_standby(0xf041c000)
11-29 13:32:50.774  7391  7410 W BatteryNotifier: batterystats service unavailable!
11-29 13:32:50.774  7391  7410 W BatteryNotifier: batterystats service unavailable!
11-29 13:32:50.774  7391  7410 D audio_hw_primary: out_set_parameters(kvpairs(routing=2), out_device=0x2)
11-29 13:32:50.774  7391  7410 W AudioFlinger: no wake lock to update, system not ready yet
11-29 13:32:50.775  7391  7391 V APM_AudioPolicyManager: setOutputDevice() createAudioPatch returned 1 patchHandle 0num_sources 1 num_sinks 1
11-29 13:32:50.775  7391  7391 V APM_AudioPolicyManager: checkAndSetVolume() cannot set stream 6 volume with force use = 0 for comm
11-29 13:32:50.775  7391  7391 V APM_AudioPolicyManager:   for input device 0x80000004 using address
11-29 13:32:50.775  7391  7391 D audio_hw_primary: adev_open_input_stream(0x80000004, 1, 0x000c, 48000)
11-29 13:32:50.775  7391  7391 D audio_hw_primary: check_input_parameters(sample_rate=48000, format=1, channel_count=2)
11-29 13:32:50.776  7391  7391 D audio_hw_primary: get_input_buffer_size(sample_rate=48000, format=1, channel_count=2)
11-29 13:32:50.776  7391  7391 D audio_hw_primary: check_input_parameters(sample_rate=48000, format=1, channel_count=2)
11-29 13:32:50.776  7391  7391 D audio_hw_primary: get_input_buffer_size(sample_rate=48000, format=1, channel_count=2)
11-29 13:32:50.776  7391  7391 D audio_hw_primary: check_input_parameters(sample_rate=48000, format=1, channel_count=2)
11-29 13:32:50.777  7391  7411 I AudioFlinger: AudioFlinger's thread 0xf0183c80 ready to run
11-29 13:32:50.777  7391  7391 D audio_hw_primary: adev_close_input_stream(0xf0403bc0, 0xf08b20e0)
11-29 13:32:50.777  7391  7391 D audio_hw_primary: in_standby(0xf08b20e0)
11-29 13:32:50.777  7391  7391 D audio_hw_primary: do_input_standby(0xf08b20e0)
11-29 13:32:50.779  7391  7391 I bt_a2dp_hw: adev_open:  adev_open in A2dp_hw module
11-29 13:32:50.779  7391  7391 I AudioFlinger: loadHwModule() Loaded a2dp audio interface from A2DP Audio HW HAL (audio) handle 18
11-29 13:32:50.781  7391  7391 I AudioFlinger: loadHwModule() Loaded usb audio interface from USB audio HW HAL (audio) handle 26
11-29 13:32:50.783  7391  7391 I r_submix: adev_open(name=audio_hw_if)
11-29 13:32:50.783  7391  7391 I r_submix: adev_init_check()
11-29 13:32:50.783  7391  7391 I AudioFlinger: loadHwModule() Loaded r_submix audio interface from Wifi Display audio HAL (audio) handle 34
11-29 13:32:50.783  7391  7391 V APM_AudioPolicyManager:   for input device 0x80000100 using address 0
11-29 13:32:50.783  7391  7391 D r_submix: adev_open_input_stream(addr=0)
11-29 13:32:50.783  7391  7391 D r_submix: submix_audio_device_create_pipe_l(addr=0, idx=9)
11-29 13:32:50.783  7391  7391 D r_submix:   now using address 0 for route 9
11-29 13:32:50.784  4162  7338 I FASTGX_RC: base qp - 2:16
11-29 13:32:50.785  7391  7412 I AudioFlinger: AudioFlinger's thread 0xf0103580 ready to run
11-29 13:32:50.785  7391  7391 D r_submix: adev_close_input_stream()
11-29 13:32:50.785  7391  7391 D r_submix: submix_audio_device_release_pipe_l(idx=9) addr=0
11-29 13:32:50.785  7391  7391 D r_submix: submix_audio_device_destroy_pipe_l(): pipe destroyed
11-29 13:32:50.788  7391  7391 I AudioFlinger: loadHwModule() Loaded dia_remote audio interface from Audio HW HAL (audio) handle 42
11-29 13:32:50.788  7391  7391 V APM_AudioPolicyManager:   for input device 0x80200000 using address
11-29 13:32:50.791  7391  7416 I AudioFlinger: AudioFlinger's thread 0xefe83c00 ready to run
11-29 13:32:50.792  7391  7391 I AudioFlinger: loadHwModule() Loaded huitong audio interface from Huitong audio HW HAL (audio) handle 50
11-29 13:32:50.793  7391  7391 E AudioFlinger: int android::load_audio_interface(const char *, audio_hw_device_t **) couldn't load audio hw module audio.vaudio (No such file or directory)
11-29 13:32:50.793  7391  7391 E AudioFlinger: loadHwModule() error -2 loading module vaudio
11-29 13:32:50.793  7391  7391 W APM_AudioPolicyManager: could not open HW module vaudio
11-29 13:32:50.793  7391  7391 V APM::AudioPolicyEngine: getDeviceForStrategy() no device found for strategy 1
11-29 13:32:50.793  7391  7415 E FastThread: did not receive expected priority boost
11-29 13:32:50.794  7391  7391 I RadioService: RadioService
11-29 13:32:50.794  7391  7391 I RadioService: onFirstRef
11-29 13:32:50.794  7391  7391 E RadioService: couldn't load radio module radio.primary (No such file or directory)
11-29 13:32:50.795  7391  7391 E SoundTriggerHwService: couldn't load sound trigger module sound_trigger.primary (No such file or directory)
11-29 13:32:50.855  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:50.855  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:50.856  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:50.867  4162  7338 I FASTGX_RC: base qp - 2:16
11-29 13:32:50.880  7394  7394 I mediaserver: ServiceManager: 0xf4899480
11-29 13:32:50.881  7394  7394 W BatteryNotifier: batterystats service unavailable!
11-29 13:32:50.953  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:50.953  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf31beaa0, ...) failed: 7
11-29 13:32:50.953  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf31beaa0 for access, handle: 0xf3a187d0
11-29 13:32:50.967  4162  7338 I FASTGX_RC: base qp - 2:16
11-29 13:32:50.973  7394  7394 E amavutils: unable to open file /sys/class/tv/policy_fr_auto_switch,err: Permission denied
11-29 13:32:50.973  7394  7394 I amplayer: LibPlayer version:Version:2.1.0.9d41b488
11-29 13:32:50.973  7394  7394 I amplayer: LibPlayer git version:9d41b48895bc02921e426a0f5572b77968f3ea63
11-29 13:32:50.973  7394  7394 I amplayer: LibPlayer version serial::20100009d41b488
11-29 13:32:50.973  7394  7394 I amplayer: LibPlayer Last Changed:Date: Mon Oct 9 16:03:51 2017 +0800
11-29 13:32:50.973  7394  7394 I amplayer: LibPlayer Last Build: Mon Mar 11 15:07:05 CST 2019
11-29 13:32:50.973  7394  7394 I amplayer: LibPlayer Builer Name: weizhongyi
11-29 13:32:50.973  7394  7394 I amplayer: gxb-wcs--loglevel changed to 35
11-29 13:32:50.974  7394  7394 I amffmpeg: pts item:[000000:00000001:00000001]
11-29 13:32:50.974  7394  7394 I amplayer: Get modules:[vhls_mod,dash_mod,curl_mod,prhls_mod,vm_mod,bluray_mod],mod path:media.libplayer.modules
11-29 13:32:50.975  7394  7394 I ammodule: load mode vhls_mod,on /system/lib/amplayer/libvhls_mod.so 0
11-29 13:32:50.976  7394  7394 I libvhls_mod: libvhls module init
11-29 13:32:50.976  7394  7394 I ammodule: open module success,
11-29 13:32:50.976  7394  7394 I ammodule:      name:vhls_mod
11-29 13:32:50.976  7394  7394 I ammodule:      libvhls module binding library
11-29 13:32:50.981  7394  7394 I ammodule: load mode dash_mod,on /system/lib/amplayer/libdash_mod.so 0
11-29 13:32:50.981  7394  7394 I libdash_mod: libdash module init
11-29 13:32:50.981  7394  7394 I ammodule: open module success,
11-29 13:32:50.981  7394  7394 I ammodule:      name:dash_mod
11-29 13:32:50.981  7394  7394 I ammodule:      libdash module binding library
11-29 13:32:50.982  7394  7394 I ammodule: load mode curl_mod,on /system/lib/amplayer/libcurl_mod.so 0
11-29 13:32:50.982  7394  7394 I curl-mod: libcurl module init
11-29 13:32:50.982  7394  7394 I curl-mod: curl version : [libcurl/7.50.1-DEV BoringSSL zlib/1.2.8]
11-29 13:32:50.982  7394  7394 I ammodule: open module success,
11-29 13:32:50.982  7394  7394 I ammodule:      name:curl_mod
11-29 13:32:50.982  7394  7394 I ammodule:      libcurl module binding library
11-29 13:32:50.983  7394  7394 I ammodule: load mode prhls_mod,on prhls_mod -2
11-29 13:32:50.983  7394  7394 I ammodule: load mode vm_mod,on vm_mod -2
11-29 13:32:50.984  7394  7394 I ammodule: load mode bluray_mod,on /system/lib/amplayer/libbluray_mod.so 0
11-29 13:32:50.984  7394  7394 I libbluray_mod: libbluray module init
11-29 13:32:50.985  7394  7394 I ammodule: open module success,
11-29 13:32:50.985  7394  7394 I ammodule:      name:libbluray_mod
11-29 13:32:50.985  7394  7394 I ammodule:      libbluray module binding library
11-29 13:32:50.985  7394  7394 I amadec  : android basic init!
11-29 13:32:50.985  7394  7394 I AmlogicPlayer: media.amplayer.cacheenable is not setting,use default false
11-29 13:32:50.985  7394  7394 I AmlogicPlayer: media.amplayer.use-androidhttp is not setting,use default false
11-29 13:32:50.985  7394  7394 V AmlogicPlayerExtractorDemux: pinputdemux->read_probe=0xf5808145
11-29 13:32:50.985  7394  7394 I AmlogicPlayer: get path [decoder ppmgr deinterlace amvideo]
11-29 13:32:50.985  7394  7394 I AmlogicPlayer: list path [ppmgr] pos:-1404772
11-29 13:32:50.985  7394  7394 I AmlogicPlayer: list path [deinterlace] pos:-1404766
11-29 13:32:50.985  7394  7394 I AmlogicPlayer: list path [decoder] pos:-1404780
11-29 13:32:50.985  7394  7394 I AmlogicPlayer: list path [amvideo] pos:-1404754
11-29 13:32:50.985  7394  7394 I AmlogicPlayer: default_map path [default { decoder(0) ppmgr(0) deinterlace(0) amvideo}]11-29 13:32:50.985  7394  7394 I AmlogicPlayer: list path [ppmgr] pos:-1405411
11-29 13:32:50.985  7394  7394 I AmlogicPlayer: list path [deinterlace] pos:-1405402
11-29 13:32:50.985  7394  7394 I AmlogicPlayer: list path [decoder] pos:-1405422
11-29 13:32:50.985  7394  7394 I AmlogicPlayer: list path [amvideo] pos:-1405387
11-29 13:32:50.985  7394  7394 I AmlogicPlayer: prop_list [decoder]  node_list[decoder]
11-29 13:32:50.985  7394  7394 I AmlogicPlayer: prop_list [decoder] is same with node_list[decoder]
11-29 13:32:50.985  7394  7394 I AmlogicPlayer: prop_list [ppmgr]  node_list[ppmgr]
11-29 13:32:50.985  7394  7394 I AmlogicPlayer: prop_list [ppmgr] is same with node_list[ppmgr]
11-29 13:32:50.986  7394  7394 I AmlogicPlayer: prop_list [deinterlace]  node_list[deinterlace]
11-29 13:32:50.986  7394  7394 I AmlogicPlayer: prop_list [deinterlace] is same with node_list[deinterlace]
11-29 13:32:50.986  7394  7394 I AmlogicPlayer: prop_list [amvideo]  node_list[amvideo]
11-29 13:32:50.986  7394  7394 I AmlogicPlayer: prop_list [amvideo] is same with node_list[amvideo]
11-29 13:32:50.986  7394  7394 I AmlogicPlayer: [IsTheSameVfmPathDefault:347]both prop_list and node_list is null
11-29 13:32:50.986  7394  7394 I AmlogicPlayer: prop_list path is same with node_list
11-29 13:32:50.986  7394  7394 V AmlogicMediaFactory: register  AmlogicPlayerFactory err =0
11-29 13:32:50.986  7394  7394 V AmlogicMediaFactory: register  AmSuperPlayerFactory err =0
11-29 13:32:50.986  7394  7394 V AmlogicMediaFactory: register  AmNuPlayerFactory err =0
11-29 13:32:50.998  7394  7394 I AmExtractorSupport: load libstagefright_extrator OK
11-29 13:32:50.998  7394  7394 I AmExtractorSupport: find registerExSniffs OK
11-29 13:32:50.998  7394  7394 I AmExtractorSupport: register amlogic extrator sniffers OK
11-29 13:32:50.998  7394  7394 V AmlogicMediaFactory: register default sniffers
11-29 13:32:51.009  7394  7394 V AmlogicMetadataRetrieverFactory: register  AmlogicMetadataRetrieverFactory err =0
11-29 13:32:51.009  7394  7394 V AmlogicMetadataRetrieverFactory: register  AmSuperMetadataRetrieverFactory err =0
11-29 13:32:51.051  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:51.051  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:51.051  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:51.063  4162  7338 I FASTGX_RC: base qp--:16
11-29 13:32:51.134  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:51.134  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf31beaa0, ...) failed: 7
11-29 13:32:51.135  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf31beaa0 for access, handle: 0xf3a187d0
11-29 13:32:51.147  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:51.219  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:51.219  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:51.219  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:51.231  4162  7338 I FASTGX_RC: base qp - 2:16
11-29 13:32:51.285  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:51.285  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf31beaa0, ...) failed: 7
11-29 13:32:51.285  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf31beaa0 for access, handle: 0xf3a187d0
11-29 13:32:51.298  4162  7338 I FASTGX_RC: base qp--:16
11-29 13:32:51.349  7389  7389 D AndroidRuntime: >>>>>> START com.android.internal.os.ZygoteInit uid 0 <<<<<<
11-29 13:32:51.360  7389  7389 D AndroidRuntime: CheckJNI is OFF
11-29 13:32:51.361  7389  7389 I art     : option[0]=-Xzygote
11-29 13:32:51.361  7389  7389 I art     : option[1]=-Xstacktracefile:/data/anr/traces.txt
11-29 13:32:51.361  7389  7389 I art     : option[2]=exit
11-29 13:32:51.361  7389  7389 I art     : option[3]=vfprintf
11-29 13:32:51.361  7389  7389 I art     : option[4]=sensitiveThread
11-29 13:32:51.361  7389  7389 I art     : option[5]=-verbose:gc
11-29 13:32:51.361  7389  7389 I art     : option[6]=-Xms16m
11-29 13:32:51.361  7389  7389 I art     : option[7]=-Xmx512m
11-29 13:32:51.361  7389  7389 I art     : option[8]=-XX:HeapGrowthLimit=192m
11-29 13:32:51.361  7389  7389 I art     : option[9]=-XX:HeapMinFree=512k
11-29 13:32:51.361  7389  7389 I art     : option[10]=-XX:HeapMaxFree=8m
11-29 13:32:51.361  7389  7389 I art     : option[11]=-XX:HeapTargetUtilization=0.75
11-29 13:32:51.361  7389  7389 I art     : option[12]=-Xusejit:true
11-29 13:32:51.361  7389  7389 I art     : option[13]=-Xjitsaveprofilinginfo
11-29 13:32:51.361  7389  7389 I art     : option[14]=-agentlib:jdwp=transport=dt_android_adb,suspend=n,server=y
11-29 13:32:51.361  7389  7389 I art     : option[15]=-Xlockprofthreshold:500
11-29 13:32:51.361  7389  7389 I art     : option[16]=-Ximage-compiler-option
11-29 13:32:51.361  7389  7389 I art     : option[17]=--runtime-arg
11-29 13:32:51.361  7389  7389 I art     : option[18]=-Ximage-compiler-option
11-29 13:32:51.361  7389  7389 I art     : option[19]=-Xms64m
11-29 13:32:51.361  7389  7389 I art     : option[20]=-Ximage-compiler-option
11-29 13:32:51.361  7389  7389 I art     : option[21]=--runtime-arg
11-29 13:32:51.361  7389  7389 I art     : option[22]=-Ximage-compiler-option
11-29 13:32:51.361  7389  7389 I art     : option[23]=-Xmx64m
11-29 13:32:51.361  7389  7389 I art     : option[24]=-Ximage-compiler-option
11-29 13:32:51.361  7389  7389 I art     : option[25]=--image-classes=/system/etc/preloaded-classes
11-29 13:32:51.361  7389  7389 I art     : option[26]=-Ximage-compiler-option
11-29 13:32:51.361  7389  7389 I art     : option[27]=--compiled-classes=/system/etc/compiled-classes
11-29 13:32:51.361  7389  7389 I art     : option[28]=-Xcompiler-option
11-29 13:32:51.361  7389  7389 I art     : option[29]=--runtime-arg
11-29 13:32:51.361  7389  7389 I art     : option[30]=-Xcompiler-option
11-29 13:32:51.361  7389  7389 I art     : option[31]=-Xms64m
11-29 13:32:51.361  7389  7389 I art     : option[32]=-Xcompiler-option
11-29 13:32:51.361  7389  7389 I art     : option[33]=--runtime-arg
11-29 13:32:51.361  7389  7389 I art     : option[34]=-Xcompiler-option
11-29 13:32:51.361  7389  7389 I art     : option[35]=-Xmx512m
11-29 13:32:51.361  7389  7389 I art     : option[36]=-Ximage-compiler-option
11-29 13:32:51.361  7389  7389 I art     : option[37]=--instruction-set-variant=cortex-a9
11-29 13:32:51.361  7389  7389 I art     : option[38]=-Xcompiler-option
11-29 13:32:51.361  7389  7389 I art     : option[39]=--instruction-set-variant=cortex-a9
11-29 13:32:51.361  7389  7389 I art     : option[40]=-Ximage-compiler-option
11-29 13:32:51.361  7389  7389 I art     : option[41]=--instruction-set-features=default
11-29 13:32:51.361  7389  7389 I art     : option[42]=-Xcompiler-option
11-29 13:32:51.361  7389  7389 I art     : option[43]=--instruction-set-features=default
11-29 13:32:51.361  7389  7389 I art     : option[44]=-Duser.locale=en-GB
11-29 13:32:51.361  7389  7389 I art     : option[45]=--cpu-abilist=armeabi-v7a,armeabi
11-29 13:32:51.361  7389  7389 I art     : option[46]=-Xfingerprint:Amlogic/p21x/p21x:7.1.2/NHG47L/20190311.150521.V0213:userdebug/
11-29 13:32:51.369  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:51.369  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:51.369  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:51.382  4162  7338 I FASTGX_RC: base qp--:16
11-29 13:32:51.437  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:51.437  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf31beaa0, ...) failed: 7
11-29 13:32:51.437  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf31beaa0 for access, handle: 0xf3a187d0
11-29 13:32:51.503  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:51.503  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:51.503  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:51.515  4162  7338 I FASTGX_RC: base qp - 2:16
11-29 13:32:51.586  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:51.586  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf31beaa0, ...) failed: 7
11-29 13:32:51.586  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf31beaa0 for access, handle: 0xf3a187d0
11-29 13:32:51.598  4162  7338 I FASTGX_RC: base qp--:16
11-29 13:32:51.614  7389  7389 D ICU     : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
11-29 13:32:51.653  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:51.654  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:51.654  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:51.665  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:51.669  7389  7389 I Radio-JNI: register_android_hardware_Radio DONE
11-29 13:32:51.674  7389  7389 I SamplingProfilerIntegration: Profiling disabled.
11-29 13:32:51.674  7389  7389 D Zygote  : begin preload
11-29 13:32:51.674  7389  7389 I Zygote  : Installing ICU cache reference pinning...
11-29 13:32:51.674  7389  7389 I Zygote  : Preloading ICU data...
11-29 13:32:51.704  7389  7389 I Zygote  : Preloading classes...
11-29 13:32:51.712  7389  7389 W Zygote  : Class not found for preloading: [Landroid.view.Display$ColorTransform;
11-29 13:32:51.726  7392  7392 I ServiceManager: Waiting for service media.camera.proxy...
11-29 13:32:51.736  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:51.736  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf31beaa0, ...) failed: 7
11-29 13:32:51.736  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf31beaa0 for access, handle: 0xf3a187d0
11-29 13:32:51.747  4162  7338 I FASTGX_RC: base qp - 2:16
11-29 13:32:51.803  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:51.803  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:51.803  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:51.815  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:51.886  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:51.886  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf31beaa0, ...) failed: 7
11-29 13:32:51.886  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf31beaa0 for access, handle: 0xf3a187d0
11-29 13:32:51.899  4162  7338 I FASTGX_RC: base qp--:16
11-29 13:32:51.902  7389  7389 E Typeface: Error mapping font file /system/fonts/DroidSansFallback.ttf
11-29 13:32:51.969  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:51.969  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:51.969  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:51.982  4162  7338 I FASTGX_RC: base qp - 2:16
11-29 13:32:52.036  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:52.036  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf31beaa0, ...) failed: 7
11-29 13:32:52.036  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf31beaa0 for access, handle: 0xf3a187d0
11-29 13:32:52.048  4162  7338 I FASTGX_RC: base qp--:16
11-29 13:32:52.102  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:52.102  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:52.102  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:52.116  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:52.171  7389  7389 I art     : Thread[1,tid=7389,Native,Thread*=0xe9685400,peer=0x12c060d0,"main"] recursive attempt to load library "/system/lib/libmedia_jni.so"
11-29 13:32:52.171  7389  7389 D MtpDeviceJNI: register_android_mtp_MtpDevice
11-29 13:32:52.173  7389  7389 I art     : Thread[1,tid=7389,Native,Thread*=0xe9685400,peer=0x12c060d0,"main"] recursive attempt to load library "/system/lib/libmedia_jni.so"
11-29 13:32:52.174  7389  7389 I art     : Thread[1,tid=7389,Native,Thread*=0xe9685400,peer=0x12c060d0,"main"] recursive attempt to load library "/system/lib/libmedia_jni.so"
11-29 13:32:52.202  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:52.202  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf31beaa0, ...) failed: 7
11-29 13:32:52.202  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf31beaa0 for access, handle: 0xf3a187d0
11-29 13:32:52.206  7389  7389 I AmExtractorSupport: load libstagefright_extrator OK
11-29 13:32:52.206  7389  7389 I AmExtractorSupport: find registerExSniffs OK
11-29 13:32:52.206  7389  7389 I AmExtractorSupport: register amlogic extrator sniffers OK
11-29 13:32:52.214  4162  7338 I FASTGX_RC: base qp - 2:16
11-29 13:32:52.269  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:52.269  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:52.269  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:52.273  7389  7389 W Zygote  : Class not found for preloading: android.view.Display$ColorTransform
11-29 13:32:52.274  7389  7389 W Zygote  : Class not found for preloading: android.view.Display$ColorTransform$1
11-29 13:32:52.282  4162  7338 I FASTGX_RC: base qp--:16
11-29 13:32:52.353  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:52.353  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf31beaa0, ...) failed: 7
11-29 13:32:52.353  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf31beaa0 for access, handle: 0xf3a187d0
11-29 13:32:52.365  4162  7338 I FASTGX_RC: base qp - 2:16
11-29 13:32:52.419  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:52.419  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:52.419  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:52.431  4162  7338 I FASTGX_RC: base qp - 2:16
11-29 13:32:52.461  7389  7389 I System  : Loaded time zone names for "" in 64ms (61ms in ICU)
11-29 13:32:52.498  7389  7389 I System  : Loaded time zone names for "en_US" in 36ms (33ms in ICU)
11-29 13:32:52.502  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:52.502  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf31beaa0, ...) failed: 7
11-29 13:32:52.502  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf31beaa0 for access, handle: 0xf3a187d0
11-29 13:32:52.514  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:52.536  7389  7389 I System  : Loaded time zone names for "en_GB" in 38ms (34ms in ICU)
11-29 13:32:52.590  7389  7389 I Zygote  : ...preloaded 4158 classes in 886ms.
11-29 13:32:52.590  7389  7389 I art     : VMRuntime.preloadDexCaches starting
11-29 13:32:52.597  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:52.597  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:52.597  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:52.609  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:52.688  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:52.688  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf31beaa0, ...) failed: 7
11-29 13:32:52.688  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf31beaa0 for access, handle: 0xf3a187d0
11-29 13:32:52.701  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:52.726  7392  7392 I ServiceManager: Waiting for service media.camera.proxy...
11-29 13:32:52.747  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:52.747  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:52.747  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:52.759  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:52.838  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:52.838  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf31beaa0, ...) failed: 7
11-29 13:32:52.838  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf31beaa0 for access, handle: 0xf3a187d0
11-29 13:32:52.851  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:52.895  7389  7389 I art     : VMRuntime.preloadDexCaches strings total=291125 before=39792 after=39792
11-29 13:32:52.895  7389  7389 I art     : VMRuntime.preloadDexCaches types total=24127 before=8127 after=8155
11-29 13:32:52.895  7389  7389 I art     : VMRuntime.preloadDexCaches fields total=114827 before=40980 after=41197
11-29 13:32:52.895  7389  7389 I art     : VMRuntime.preloadDexCaches methods total=200506 before=83018 after=83584
11-29 13:32:52.895  7389  7389 I art     : VMRuntime.preloadDexCaches finished
11-29 13:32:52.897  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:52.897  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:52.897  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:52.898  7389  7389 I Zygote  : Preloading resources...
11-29 13:32:52.914  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:52.945  7389  7389 W Resources: Preloaded drawable resource #0x108025e (android:drawable/dialog_background_material) that varies with configuration!!
11-29 13:32:52.955  7389  7389 W Resources: Preloaded color resource #0x10600ea (android:color/material_grey_800) that varies with configuration!!
11-29 13:32:52.956  7389  7389 W Resources: Preloaded drawable resource #0x10802cb (android:drawable/floating_popup_background_dark) that varies with configuration!!
11-29 13:32:52.964  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:52.965  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf31beaa0, ...) failed: 7
11-29 13:32:52.965  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf31beaa0 for access, handle: 0xf3a187d0
11-29 13:32:52.977  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:53.030  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:53.031  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:53.031  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:53.042  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:53.123  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:53.123  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf31beaa0, ...) failed: 7
11-29 13:32:53.123  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf31beaa0 for access, handle: 0xf3a187d0
11-29 13:32:53.127  7389  7389 I Zygote  : ...preloaded 114 resources in 229ms.
11-29 13:32:53.135  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:53.141  7389  7389 W Resources: Preloaded color resource #0x1060114 (android:color/background_cache_hint_selector_material_dark) that varies with configuration!!
11-29 13:32:53.142  7389  7389 W Resources: Preloaded color resource #0x1060119 (android:color/btn_default_material_dark) that varies with configuration!!
11-29 13:32:53.145  7389  7389 I Zygote  : ...preloaded 41 resources in 18ms.
11-29 13:32:53.149  7389  7389 D libEGL  : loaded /system/lib/egl/libGLES_mali.so
11-29 13:32:53.207  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:53.207  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:53.207  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:53.220  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:53.235  7389  7389 I Zygote  : Preloading shared libraries...
11-29 13:32:53.268  7389  7389 I Zygote  : Uninstalled ICU cache reference pinning...
11-29 13:32:53.270  7389  7389 I Zygote  : Installed AndroidKeyStoreProvider in 2ms.
11-29 13:32:53.275  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:53.275  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf31beaa0, ...) failed: 7
11-29 13:32:53.275  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf31beaa0 for access, handle: 0xf3a187d0
11-29 13:32:53.287  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:53.306  7389  7389 I Zygote  : Warmed up JCA providers in 36ms.
11-29 13:32:53.306  7389  7389 D Zygote  : end preload
11-29 13:32:53.306  7389  7389 I art     : Starting a blocking GC Explicit
11-29 13:32:53.330  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:53.330  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:53.330  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:53.343  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:53.354  7389  7389 I art     : Explicit concurrent mark sweep GC freed 57339(6MB) AllocSpace objects, 133(2MB) LOS objects, 39% free, 3MB/5MB, paused 352us total 47.882ms
11-29 13:32:53.360  7389  7389 I art     : Starting a blocking GC Explicit
11-29 13:32:53.377  7389  7389 I art     : Explicit concurrent mark sweep GC freed 4832(178KB) AllocSpace objects, 0(0B) LOS objects, 39% free, 3MB/5MB, paused 499us total 17.072ms
11-29 13:32:53.426  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:53.426  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf31beaa0, ...) failed: 7
11-29 13:32:53.426  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf31beaa0 for access, handle: 0xf3a187d0
11-29 13:32:53.438  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:53.496  7389  7461 I art     : Starting a blocking GC HeapTrim
11-29 13:32:53.502  7389  7389 I art     : Starting a blocking GC Background
11-29 13:32:53.503  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:53.503  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:53.503  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:53.521  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:53.571  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:53.571  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf31beaa0, ...) failed: 7
11-29 13:32:53.571  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf31beaa0 for access, handle: 0xf3a187d0
11-29 13:32:53.575  7389  7389 I Zygote  : System server process 7560 has been created
11-29 13:32:53.578  7389  7389 I Zygote  : Accepting command socket connections
11-29 13:32:53.583  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:53.590  7560  7560 I InstallerConnection: connecting...
11-29 13:32:53.591  4160  4160 I         : new connection
11-29 13:32:53.597  7560  7560 I InstallerConnection: disconnecting...
11-29 13:32:53.598  4160  4160 E         : eof
11-29 13:32:53.598  4160  4160 E         : failed to read size
11-29 13:32:53.598  4160  4160 I         : closing connection
11-29 13:32:53.614  7560  7560 I SystemServer: Entered the Android system server!
11-29 13:32:53.630  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:53.630  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:53.630  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:53.642  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:53.670  7560  7560 I SystemServiceManager: Starting com.android.server.pm.Installer
11-29 13:32:53.671  7560  7560 I Installer: Waiting for installd to be ready.
11-29 13:32:53.671  7560  7560 I InstallerConnection: connecting...
11-29 13:32:53.672  4160  4160 I         : new connection
11-29 13:32:53.672  7560  7560 I SystemServiceManager: Starting com.android.server.am.ActivityManagerService$Lifecycle
11-29 13:32:53.695  7560  7560 I ActivityManager: Memory class: 192
11-29 13:32:53.697  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:53.697  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf31beaa0, ...) failed: 7
11-29 13:32:53.697  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf31beaa0 for access, handle: 0xf3a187d0
11-29 13:32:53.698  7560  7579 I ServiceThread: Enabled StrictMode logging for ActivityManager looper.
11-29 13:32:53.702  7560  7580 I ServiceThread: Enabled StrictMode logging for android.ui looper.
11-29 13:32:53.710  4162  7338 I FASTGX_RC: base qp - 2:16
11-29 13:32:53.720  7560  7560 D BatteryStatsImpl: Reading daily items from /data/system/batterystats-daily.xml
11-29 13:32:53.727  7392  7392 I ServiceManager: Waiting for service media.camera.proxy...
11-29 13:32:53.779  7391  7410 W BatteryNotifier: batterystats service unavailable!
11-29 13:32:53.780  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:53.780  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:53.780  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:53.792  4162  7338 I FASTGX_RC: base qp - 2:16
11-29 13:32:53.874  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:53.874  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf31beaa0, ...) failed: 7
11-29 13:32:53.874  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf31beaa0 for access, handle: 0xf3a187d0
11-29 13:32:53.887  4162  7338 I FASTGX_RC: base qp--:16
11-29 13:32:53.956  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:53.956  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:53.956  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:53.969  4162  7338 I FASTGX_RC: base qp - 2:16
11-29 13:32:54.013  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:54.013  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf31beaa0, ...) failed: 7
11-29 13:32:54.013  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf31beaa0 for access, handle: 0xf3a187d0
11-29 13:32:54.018  7560  7560 W ProcessCpuTracker: Skipping unknown process pid 7591
11-29 13:32:54.025  7560  7560 I IntentFirewall: Read new rules (A:0 B:0 S:0)
11-29 13:32:54.027  4162  7338 I FASTGX_RC: base qp - 2:16
11-29 13:32:54.037  7560  7602 I ServiceThread: Enabled StrictMode logging for android.display looper.
11-29 13:32:54.044  7560  7560 D AppOps  : AppOpsService published
11-29 13:32:54.045  7560  7560 I SystemServiceManager: Starting com.android.server.power.PowerManagerService
11-29 13:32:54.047  7560  7604 I ServiceThread: Enabled StrictMode logging for PowerManagerService looper.
11-29 13:32:54.060  7560  7560 I libsuspend: Selected early suspend
11-29 13:32:54.060  7560  7560 I libsuspend: Starting early suspend unblocker thread
11-29 13:32:54.065  7560  7560 I SystemServiceManager: Starting com.android.server.lights.LightsService
11-29 13:32:54.067  7560  7560 I SystemServiceManager: Starting com.android.server.display.DisplayManagerService
11-29 13:32:54.077  7560  7560 I SystemServiceManager: Starting phase 100
11-29 13:32:54.082  7560  7602 I DisplayManagerService: Display device added: DisplayDeviceInfo{"Built-in Screen": uniqueId="local:0", 1920 x 1080, modeId 1, defaultModeId 1, supportedModes [{id=1, width=1920, height=1080, fps=60.000004}], colorMode 0, supportedColorModes [0], HdrCapabilities android.view.Display$HdrCapabilities@a69d6308, density 240, 160.0 x 160.0 dpi, appVsyncOff 1000000, presDeadline 16666666, touch INTERNAL, rotation 0, type BUILT_IN, state UNKNOWN, FLAG_DEFAULT_DISPLAY, FLAG_ROTATES_WITH_CONTENT, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS}
11-29 13:32:54.097  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:54.097  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:54.097  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:54.097  4127  4127 D SurfaceFlinger: Set power mode=2, type=0 flinger=0xf6332000
11-29 13:32:54.098  4127  4127 D SurfaceFlinger: Screen type=0 is already mode=2
11-29 13:32:54.099  7560  7560 I SystemServer: StartPackageManagerService
11-29 13:32:54.099  7560  7602 I DisplayManagerService: Display device changed state: "Built-in Screen", ON
11-29 13:32:54.100  7560  7560 D XGUSERVICE: service:StartPackageManagerService
11-29 13:32:54.109  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:54.181  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:54.181  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf31beaa0, ...) failed: 7
11-29 13:32:54.181  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf31beaa0 for access, handle: 0xf3a187d0
11-29 13:32:54.193  4162  7338 I FASTGX_RC: base qp - 2:16
11-29 13:32:54.256  7560  7560 D SELinuxMMAC: Using policy file /system/etc/security/mac_permissions.xml
11-29 13:32:54.269  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:54.269  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:54.269  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:54.282  4162  7338 I FASTGX_RC: base qp - 2:16
11-29 13:32:54.302  7560  7560 D PackageSettings: Read domain verification for package: com.accurate.live.weather.forecast
11-29 13:32:54.329  7560  7560 D PackageSettings: Read domain verification for package: com.android.vending
11-29 13:32:54.343  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:54.343  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf31beaa0, ...) failed: 7
11-29 13:32:54.343  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf31beaa0 for access, handle: 0xf3a187d0
11-29 13:32:54.356  4162  7338 I FASTGX_RC: base qp - 2:16
11-29 13:32:54.391  7560  7560 D PackageSettings: Read domain verification for package: com.google.android.gms
11-29 13:32:54.397  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:54.397  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:54.397  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:54.409  4162  7338 I FASTGX_RC: base qp - 2:16
11-29 13:32:54.426  7393  7393 V NatController: runCmd(/system/bin/iptables -w -F natctrl_FORWARD) res=0
11-29 13:32:54.451  7393  7393 V NatController: runCmd(/system/bin/ip6tables -w -F natctrl_FORWARD) res=0
11-29 13:32:54.470  7393  7393 V NatController: runCmd(/system/bin/iptables -w -A natctrl_FORWARD -j DROP) res=0
11-29 13:32:54.488  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:54.488  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf31beaa0, ...) failed: 7
11-29 13:32:54.488  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf31beaa0 for access, handle: 0xf3a187d0
11-29 13:32:54.494  7393  7393 V NatController: runCmd(/system/bin/iptables -w -t nat -F natctrl_nat_POSTROUTING) res=0
11-29 13:32:54.500  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:54.530  7393  7393 V NatController: runCmd(/system/bin/ip6tables -w -t raw -F natctrl_raw_PREROUTING) res=0
11-29 13:32:54.551  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:54.551  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:54.551  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:54.556  7393  7393 V NatController: runCmd(/system/bin/iptables -w -F natctrl_tether_counters) res=0
11-29 13:32:54.563  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:54.584  7393  7393 V NatController: runCmd(/system/bin/ip6tables -w -F natctrl_tether_counters) res=0
11-29 13:32:54.603  7560  7560 E art     : DexFile_getDexOptNeeded file '/system/framework/com.google.android.camera2.jar' does not exist
11-29 13:32:54.604  7560  7560 W PackageManager: Library not found: /system/framework/com.google.android.camera2.jar
11-29 13:32:54.605  7393  7393 V NatController: runCmd(/system/bin/iptables -w -X natctrl_tether_counters) res=0
11-29 13:32:54.612  7560  7560 E art     : DexFile_getDexOptNeeded file '/system/framework/org.apache.http.legacy.jar' does not exist
11-29 13:32:54.612  7560  7560 W PackageManager: Library not found: /system/framework/org.apache.http.legacy.jar
11-29 13:32:54.612  7560  7560 E art     : DexFile_getDexOptNeeded file '/system/framework/com.android.nfc_extras.jar' does not exist
11-29 13:32:54.613  7560  7560 W PackageManager: Library not found: /system/framework/com.android.nfc_extras.jar
11-29 13:32:54.616  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:54.616  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf31beaa0, ...) failed: 7
11-29 13:32:54.616  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf31beaa0 for access, handle: 0xf3a187d0
11-29 13:32:54.616  7560  7560 D PackageManager: No files in app dir /vendor/overlay
11-29 13:32:54.621  7560  7560 W PackageManager: Failed to parse /system/framework/arm: Missing base APK in /system/framework/arm
11-29 13:32:54.627  7393  7393 V NatController: runCmd(/system/bin/ip6tables -w -X natctrl_tether_counters) res=0
11-29 13:32:54.628  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:54.652  7393  7393 V NatController: runCmd(/system/bin/iptables -w -N natctrl_tether_counters) res=0
11-29 13:32:54.673  7393  7393 V NatController: runCmd(/system/bin/ip6tables -w -N natctrl_tether_counters) res=0
11-29 13:32:54.685  7560  7560 W PackageManager: Failed to parse /system/framework/oat: Missing base APK in /system/framework/oat
11-29 13:32:54.692  7393  7393 V NatController: runCmd(/system/bin/iptables -w -t mangle -A natctrl_mangle_FORWARD -p tcp --tcp-flags SYN SYN -j TCPMSS --clamp-mss-to-pmtu) res=1
11-29 13:32:54.709  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:54.709  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:54.709  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:54.721  4162  7338 I FASTGX_RC: base qp - 4:16
11-29 13:32:54.766  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:54.766  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf31beaa0, ...) failed: 7
11-29 13:32:54.766  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf31beaa0 for access, handle: 0xf3a187d0
11-29 13:32:54.776  7560  7560 W PackageManager: Permission android.permission.DOWNLOAD_WITHOUT_NOTIFICATION from package com.android.providers.downloads in an unknown group android.permission-group.NETWORK
11-29 13:32:54.778  4162  7338 I FASTGX_RC: base qp - 2:16
11-29 13:32:54.849  4162  7338 E [Gralloc-ERROR]: int gralloc_lock_ycbcr(const gralloc_module_t *, buffer_handle_t, int, int, int, int, int, android_ycbcr *):346 gralloc_lock_ycbcr unexpected internal format 1
11-29 13:32:54.849  4162  7338 W GraphicBufferMapper: lockYCbCr(0xf3a44720, ...) failed: 7
11-29 13:32:54.849  4162  7338 E AmlogicVideoAVCEncoder: extractGrallocDataYCbCr: Unable to lock image buffer 0xf3a44720 for access, handle: 0xf3a187d0
11-29 13:32:54.853  7560  7560 W PackageManager: Package com.google.android.ext.services library android.ext.services already exists; skipping
11-29 13:32:54.863  4162  7338 I FASTGX_RC: base qp - 2:16
11-29 13:32:54.864  7560  7560 W PackageParser: Unknown element under <manifest>: uses-library at /system/priv-app/GoogleFeedback/GoogleFeedback.apk Binary XML file line #33

@rom1v
Copy link
Collaborator

rom1v commented Nov 29, 2019

11-29 13:32:48.992  4385  4426 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.view.InputDevice.getName()' on a null object reference
11-29 13:32:48.992  4385  4426 E AndroidRuntime:        at com.android.internal.policy.NavBarEventListener.onPointerEvent(NavBarEventListener.java:91)

Arf, the code in your system assumes that the InputDevice of an InputEvent to be non-null (while it can be null).

Could you test with this change, please:

diff

diff --git a/server/src/main/java/com/genymobile/scrcpy/Controller.java b/server/src/main/java/com/genymobile/scrcpy/Controller.java
index ce02e33..28b7eaf 100644
--- a/server/src/main/java/com/genymobile/scrcpy/Controller.java
+++ b/server/src/main/java/com/genymobile/scrcpy/Controller.java
@@ -177,7 +177,7 @@ public class Controller {
         }
 
         MotionEvent event = MotionEvent.obtain(lastTouchDown, now, action, pointerCount, pointerProperties,
-                pointerCoords, 0, buttons, 1f, 1f, 0, 0, InputDevice.SOURCE_TOUCHSCREEN, 0);
+                pointerCoords, 0, buttons, 1f, 1f, -1, 0, InputDevice.SOURCE_TOUCHSCREEN, 0);
         return injectEvent(event);
     }
 
@@ -199,7 +199,7 @@ public class Controller {
         coords.setAxisValue(MotionEvent.AXIS_VSCROLL, vScroll);
 
         MotionEvent event = MotionEvent.obtain(lastTouchDown, now, MotionEvent.ACTION_SCROLL, 1, pointerProperties,
-                pointerCoords, 0, 0, 1f, 1f, 0, 0, InputDevice.SOURCE_MOUSE, 0);
+                pointerCoords, 0, 0, 1f, 1f, -1, 0, InputDevice.SOURCE_MOUSE, 0);
         return injectEvent(event);
     }

scrcpy-server
SHA256: 1f617563ec09c5b0da1671f0d3e60f2e7fee8188aa37ae8e3fd1b14ccce227cd

(replace it in your v1.11 release)

@patientx
Copy link
Author

Yes it worked ! I saw that non-null stuff on the net while looking for a solution too , but since I am not a coder didn't know what to do, guess it was that easy.
Thanks for quick response.

Now , there is another problem with this tvbox, I can't see ANY KIND of VIDEO playing from the box on my pc screen, I know about drm and protected stuff but I can at least play youtube or play movies etc from the device memory with the mx player on MY PHONE. Of course netflix is dark there. BUT on the tvbox every video output is dark, menus etc can be seen over the video but video is dark. From every source , youtube, web videos or tv box's satellite tuner, all shows as dark on pc. Is this all about drm or maybe codec stuff ?

rom1v added a commit that referenced this issue Nov 29, 2019
Inject mouse events using id -1 (virtual device) instead of 0 which
does not exist (and causes the InputDevice to be null).

Fixes <#962>
@rom1v
Copy link
Collaborator

rom1v commented Nov 29, 2019

Yes it worked !

Cool, thank you for your report and feedback.

Fixed by 26529d3 on dev.

Now , there is another problem with this tvbox, I can't see ANY KIND of VIDEO playing from the box on my pc screen, I know about drm and protected stuff but I can at least play youtube or play movies etc from the device memory with the mx player on MY PHONE. Of course netflix is dark there. BUT on the tvbox every video output is dark, menus etc can be seen over the video but video is dark. From every source , youtube, web videos or tv box's satellite tuner, all shows as dark on pc. Is this all about drm or maybe codec stuff ?

I guess it's basically when the video is totally rendered by hardware (for DRM or performance reasons).

@rom1v rom1v closed this as completed Nov 29, 2019
@lakshaytalkstomachines
Copy link

Can we render the video on our pc the same way how browsers render DRM content? @rom1v

@kamalx
Copy link

kamalx commented Nov 15, 2020

Thank you @patientx and @rom1v, this thread helped me find leads to resolve my issue of why keyboard and mouse input was not working for me when using scrcpy either over usb or wifi.

MIUI's USB debugging (security) permissions were unchecked (they require me to sign up for an MIUI account to tick that checkbox 🤷🏽 ). Once that was done, keyboard and mouse work perfectly. Your application is amazing! :)

@rom1v
Copy link
Collaborator

rom1v commented Mar 4, 2021

It seems that the fix/workaround causes other problems: #2125

@patientx Could you please try to reproduce your problem with v1.17 + this file: #2125 (comment) ?

MotionEvent.getDeviceId() says:

Gets the id for the device that this event came from. An id of zero indicates that the event didn't come from a physical device and maps to the default keymap. The other numbers are arbitrary and you shouldn't depend on the values.

So the correct value should be 0 I guess.

rom1v added a commit that referenced this issue Mar 14, 2021
Virtual device is only for keyboard sources, not mouse or touchscreen
sources. Here is the value of InputDevice.getDevice(-1).toString():

    Input Device -1: Virtual
      Descriptor: ...
      Generation: 2
      Location: built-in
      Keyboard Type: alphabetic
      Has Vibrator: false
      Has mic: false
      Sources: 0x301 ( keyboard dpad )

InputDevice.getDeviceId() documentation says:

> An id of zero indicates that the event didn't come from a physical
> device and maps to the default keymap.

<https://developer.android.com/reference/android/view/InputEvent#getDeviceId()>

However, injecting events with a device id of 0 causes event.getDevice()
to be null on the client-side.

Commit 26529d3 used -1 as a workaround
to avoid a NPE on a specific Android TV device. But this is a bug in the
device system, which wrongly assumes that input device may not be null.

A similar issue was present in Flutter, but it is now fixed:
 - <flutter/flutter#30665>
 - <flutter/engine#7986>

On the other hand, using an id of -1 for touchscreen events (which is
invalid) causes issues for some apps:
<#2125 (comment)>

Therefore, use a device id of 0.

An alternative could be to find an existing device matching the source,
like "adb shell input" does. See getInputDeviceId():
<https://android.googlesource.com/platform/frameworks/base.git/+/master/cmds/input/src/com/android/commands/input/Input.java>

But it seems better to indicate that the event didn't come from a
physical device, and it would not solve #962 anyway, because an Android
TV has no touchscreen.

Refs #962 <#962>
Fixes #2125 <#2125>
rom1v added a commit that referenced this issue Mar 14, 2021
Virtual device is only for keyboard sources, not mouse or touchscreen
sources. Here is the value of InputDevice.getDevice(-1).toString():

    Input Device -1: Virtual
      Descriptor: ...
      Generation: 2
      Location: built-in
      Keyboard Type: alphabetic
      Has Vibrator: false
      Has mic: false
      Sources: 0x301 ( keyboard dpad )

InputDevice.getDeviceId() documentation says:

> An id of zero indicates that the event didn't come from a physical
> device and maps to the default keymap.

<https://developer.android.com/reference/android/view/InputEvent#getDeviceId()>

However, injecting events with a device id of 0 causes event.getDevice()
to be null on the client-side.

Commit 26529d3 used -1 as a workaround
to avoid a NPE on a specific Android TV device. But this is a bug in the
device system, which wrongly assumes that input device may not be null.

A similar issue was present in Flutter, but it is now fixed:
 - <flutter/flutter#30665>
 - <flutter/engine#7986>

On the other hand, using an id of -1 for touchscreen events (which is
invalid) causes issues for some apps:
<#2125 (comment)>

Therefore, use a device id of 0.

An alternative could be to find an existing device matching the source,
like "adb shell input" does. See getInputDeviceId():
<https://android.googlesource.com/platform/frameworks/base.git/+/master/cmds/input/src/com/android/commands/input/Input.java>

But it seems better to indicate that the event didn't come from a
physical device, and it would not solve #962 anyway, because an Android
TV has no touchscreen.

Refs #962 <#962>
Fixes #2125 <#2125>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants