Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
112.08k stars 10.72k forks source link

Corrupted Surface on Xiaomi Android TV devices (mibox, mitv stick) #2158

Open stari4ek opened 3 years ago

stari4ek commented 3 years ago

Environment

Describe the bug Fails to grab video surface as part of all other UI. The rest of UI works well. Screenshot-20210301230326-740x463 Comparing to nvidia shield: Screenshot-20210301231246-740x463

All other Android TV devices I have nearby work well (adt-3, chromecast, nvidia shield)

Log from mibox3

 021-03-01 22:58:42.969 7155-7155/? I/AVUtils: createInstance(32bit) : _ZN7android19createExtendedUtilsEv
2021-03-01 22:58:42.983 7155-7155/? I/AVUtils: createInstance(32bit) : _ZN7android19createExtendedUtilsEv
2021-03-01 22:58:42.983 7155-7155/? I/AVUtils: Opened libavenhancements.so
2021-03-01 22:58:42.983 7155-7155/? I/AVUtils: symbol _ZN7android19createExtendedUtilsEv found:  (null)
2021-03-01 22:58:42.983 7155-7155/? I/AVUtils: CREATE function success
2021-03-01 22:58:42.983 7155-7155/? I/AVUtils: Opened libavenhancements.so
2021-03-01 22:58:42.983 7155-7155/? I/AVUtils: symbol _ZN7android19createExtendedUtilsEv found:  (null)
2021-03-01 22:58:42.983 7155-7155/? I/AVUtils: CREATE function success
2021-03-01 22:58:42.984 7155-7155/? I/AVUtils: createInstance(32bit) : _ZN7android19createExtendedUtilsEv
2021-03-01 22:58:42.984 7155-7155/? I/AVUtils: symbol _ZN7android19createExtendedUtilsEv found:  (null)
2021-03-01 22:58:42.984 7155-7155/? I/AVUtils: CREATE function success
2021-03-01 22:58:42.984 7155-7155/? D/AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
2021-03-01 22:58:43.214 7155-7155/? W/app_process: Using default instruction set features for ARM CPU variant (cortex-a9) using conservative defaults

2021-03-01 22:58:43.284 7155-7155/? D/AndroidRuntime: Calling main entry com.genymobile.scrcpy.Server
2021-03-01 22:58:43.287 7155-7155/? I/scrcpy: Device: Xiaomi MIBOX3 (Android 9)
2021-03-01 22:58:43.324 7155-7155/? I/app_process: Thread[1,tid=7155,Native,Thread*=0xe6eb5000,peer=0x12c01f18,"main"] recursive attempt to load library "/system/lib/libmedia_jni.so"
2021-03-01 22:58:43.324 7155-7155/? D/MtpDeviceJNI: register_android_mtp_MtpDevice
2021-03-01 22:58:43.325 7155-7155/? I/app_process: Thread[1,tid=7155,Native,Thread*=0xe6eb5000,peer=0x12c01f18,"main"] recursive attempt to load library "/system/lib/libmedia_jni.so"
2021-03-01 22:58:43.325 7155-7155/? I/app_process: Thread[1,tid=7155,Native,Thread*=0xe6eb5000,peer=0x12c01f18,"main"] recursive attempt to load library "/system/lib/libmedia_jni.so"
2021-03-01 22:58:43.340 7155-7170/? I/OMXClient: IOmx service obtained
2021-03-01 22:58:43.341 3145-3193/? I/OMXMaster: makeComponentInstance(OMX.amlogic.video.encoder.avc) in omx@1.0-service process
2021-03-01 22:58:43.341 3145-3193/? D/OmxComponentManagerImpl: support frame mode
2021-03-01 22:58:43.341 3145-3193/? D/OmxComponentManagerImpl: getEntryByName_2_num=0, componentName:OMX.amlogic.video.encoder.avc
2021-03-01 22:58:43.341 3145-3193/? I/AmlogicVideoAVCEncoder: ion_open sucess
2021-03-01 22:58:43.341 3145-3193/? E/secmem_tz: [Secure_NegotiateVersion:479] Secure_NegotiateVersion 2 2 2 2 2 2
2021-03-01 22:58:43.341 3145-3193/? E/secmem_tz: [Secure_NegotiateVersion:488] Negotiated secmem version = 2
2021-03-01 22:58:43.342 3145-3193/? W/OmxLogConf: Can not read property media.omx.log_levels, using 0
2021-03-01 22:58:43.342 3145-3193/? D/OmxComponentManagerImpl: IncreaseEntryNumByName pEntry->mNum=0, pEntry->mMaxNum:3,componentName:OMX.amlogic.video.encoder.avc
2021-03-01 22:58:43.342 3145-3193/? I/omx_core: OMX_getHandle_num=1
2021-03-01 22:58:43.342 3145-3193/? D/OmxComponent: mApkName=media.codec
2021-03-01 22:58:43.351 7155-7170/? I/AmAVUtils: AmAVUtils::getComponentRole isEncoder :1 mime:video/avc 
2021-03-01 22:58:43.351 7155-7170/? V/AVUtils: AVUtils::getComponentRole
2021-03-01 22:58:43.353 3145-3193/? D/OmxComponent: getExtensionIndex 1123 name="OMX.google.android.index.enableAndroidNativeBuffers"
2021-03-01 22:58:43.353 3145-3193/? E/OMXNodeInstance: setParameter(0xf3783ba8:amlogic.encoder.avc, OMX.google.android.index.enableAndroidNativeBuffers(0x7f000000): Output:1 en=0) ERROR: UnsupportedIndex(0x8000101a)
2021-03-01 22:58:43.353 3145-3193/? D/OmxComponent: getExtensionIndex 1123 name="OMX.google.android.index.allocateNativeHandle"
2021-03-01 22:58:43.353 3145-3193/? E/OMXNodeInstance: setParameter(0xf3783ba8:amlogic.encoder.avc, OMX.google.android.index.allocateNativeHandle(0x7f00000a): Output:1 en=0) ERROR: UnsupportedIndex(0x8000101a)
2021-03-01 22:58:43.353 3145-3193/? D/OmxComponent: getExtensionIndex 1123 name="OMX.google.android.index.storeANWBufferInMetadata"
2021-03-01 22:58:43.353 3145-3193/? D/OmxComponent: getExtensionIndex 1123 name="OMX.google.android.index.storeMetaDataInBuffers"
2021-03-01 22:58:43.353 3145-3193/? E/OmxVideoEncoder: setParameter: StoreMetadataInBuffersParams.nPortIndex not input port!
2021-03-01 22:58:43.353 3145-3193/? E/OMXNodeInstance: setParameter(0xf3783ba8:amlogic.encoder.avc, OMX.google.android.index.storeMetaDataInBuffers(0x7f000002): Output:1 en=0 type=1) ERROR: BadPortIndex(0x8000101b)
2021-03-01 22:58:43.354 3145-3193/? D/OmxComponent: getExtensionIndex 1123 name="OMX.google.android.index.describeColorFormat"
2021-03-01 22:58:43.354 3145-3193/? D/OmxComponent: getExtensionIndex 1123 name="OMX.google.android.index.storeMetaDataInBuffers"
2021-03-01 22:58:43.354 3145-3193/? D/OmxComponent: getExtensionIndex 1123 name="OMX.google.android.index.storeANWBufferInMetadata"
2021-03-01 22:58:43.354 3145-3193/? D/OmxComponent: getExtensionIndex 1123 name="OMX.google.android.index.prepareForAdaptivePlayback"
2021-03-01 22:58:43.354 3145-3193/? D/OmxComponent: getExtensionIndex 1123 name="OMX.google.android.index.configureVideoTunnelMode"
2021-03-01 22:58:43.354 3145-3193/? D/OmxComponent: getExtensionIndex 1123 name="OMX.google.android.index.useAndroidNativeBuffer2"
2021-03-01 22:58:43.354 3145-3193/? D/OmxComponent: getExtensionIndex 1123 name="OMX.google.android.index.useAndroidNativeBuffer"
2021-03-01 22:58:43.354 3145-3193/? D/OmxComponent: getExtensionIndex 1123 name="OMX.google.android.index.enableAndroidNativeBuffers"
2021-03-01 22:58:43.354 3145-3193/? D/OmxComponent: getExtensionIndex 1123 name="OMX.google.android.index.allocateNativeHandle"
2021-03-01 22:58:43.354 3145-3193/? D/OmxComponent: getExtensionIndex 1123 name="OMX.google.android.index.getAndroidNativeBufferUsage"
2021-03-01 22:58:43.355 3145-3193/? D/OmxComponent: getExtensionIndex 1123 name="OMX.google.android.index.describeColorFormat"
2021-03-01 22:58:43.356 3145-3193/? D/OmxComponent: getExtensionIndex 1123 name="OMX.google.android.index.describeColorFormat"
2021-03-01 22:58:43.358 3145-3191/? D/OmxComponent: getExtensionIndex 1123 name="OMX.google.android.index.describeColorFormat"
2021-03-01 22:58:43.358 3145-3191/? E/OMXNodeInstance: getParameter(0xf3783ba8:amlogic.encoder.avc, ??(0x7f000007)) ERROR: UnsupportedSetting(0x80001019)
2021-03-01 22:58:43.359 7155-7170/? W/OMXUtils: do not know color format 0x7f000789 = 2130708361
2021-03-01 22:58:43.362 7155-7170/? I/ACodec: setupAVCEncoderParameters with [profile: Baseline] [level: Level4]
2021-03-01 22:58:43.362 3145-3193/? D/OmxComponent: getExtensionIndex 1123 name="OMX.google.android.index.describeColorAspects"
2021-03-01 22:58:43.363 3145-3193/? D/OmxComponent: setConfig 1116
2021-03-01 22:58:43.363 3145-3193/? E/OMXNodeInstance: setConfig(0xf3783ba8:amlogic.encoder.avc, ??(0x7f00000c)) ERROR: UnsupportedIndex(0x8000101a)
2021-03-01 22:58:43.363 7155-7170/? W/ACodec: [OMX.amlogic.video.encoder.avc] setting color aspects failed even though codec advertises support
2021-03-01 22:58:43.363 7155-7170/? I/ACodec: [OMX.amlogic.video.encoder.avc] cannot encode color aspects. Ignoring.
2021-03-01 22:58:43.364 3145-3193/? D/OmxComponent: getExtensionIndex 1123 name="OMX.google.android.index.describeHDRStaticInfo"
2021-03-01 22:58:43.364 3145-3193/? D/OmxComponent: setConfig 1116
2021-03-01 22:58:43.364 3145-3193/? E/OMXNodeInstance: setConfig(0xf3783ba8:amlogic.encoder.avc, ??(0x7f000009)) ERROR: UnsupportedIndex(0x8000101a)
2021-03-01 22:58:43.364 7155-7170/? W/ACodec: [OMX.amlogic.video.encoder.avc] setting HDRStaticInfo failed even though codec advertises support
2021-03-01 22:58:43.364 7155-7170/? I/ACodec: [OMX.amlogic.video.encoder.avc] cannot encode HDR static metadata. Ignoring.
2021-03-01 22:58:43.364 7155-7170/? I/ACodec: setupVideoEncoder succeeded
2021-03-01 22:58:43.364 7155-7170/? I/AmAVUtils: AmAVUtils::isAudioExtendFormat input = video/avc
2021-03-01 22:58:43.365 3145-3193/? D/OmxComponent: getExtensionIndex 1123 name="OMX.google.android.index.describeColorFormat"
2021-03-01 22:58:43.365 3145-3193/? E/OMXNodeInstance: getParameter(0xf3783ba8:amlogic.encoder.avc, ??(0x7f000007)) ERROR: UnsupportedSetting(0x80001019)
2021-03-01 22:58:43.366 7155-7170/? W/OMXUtils: do not know color format 0x7f000789 = 2130708361
2021-03-01 22:58:43.366 3145-3191/? E/OMXNodeInstance: getConfig(0xf3783ba8:amlogic.encoder.avc, ??(0x7f00000c)) ERROR: UnsupportedIndex(0x8000101a)
2021-03-01 22:58:43.367 7155-7170/? W/ACodec: [OMX.amlogic.video.encoder.avc] getting color aspects failed even though codec advertises support
2021-03-01 22:58:43.367 3145-3145/? E/OMXNodeInstance: getConfig(0xf3783ba8:amlogic.encoder.avc, ConfigLatency(0x6f800005)) ERROR: UnsupportedIndex(0x8000101a)
2021-03-01 22:58:43.367 3145-3145/? E/OMXNodeInstance: getConfig(0xf3783ba8:amlogic.encoder.avc, ConfigAndroidVendorExtension(0x6f100004)) ERROR: UnsupportedIndex(0x8000101a)
2021-03-01 22:58:43.368 3145-3193/? E/OMXNodeInstance: getConfig(0xf3783ba8:amlogic.encoder.avc, ConfigAndroidIntraRefresh(0x6f60000a)) ERROR: UnsupportedIndex(0x8000101a)
2021-03-01 22:58:43.368 3145-3145/? E/OMXNodeInstance: getParameter(0xf3783ba8:amlogic.encoder.avc, ParamVideoIntraRefresh(0x6000006)) ERROR: UnsupportedIndex(0x8000101a)
2021-03-01 22:58:43.373 3145-3145/? D/OmxComponent: setConfig 1116
2021-03-01 22:58:43.373 3145-3145/? E/OMXNodeInstance: setConfig(0xf3783ba8:amlogic.encoder.avc, ??(0x7f00000c)) ERROR: UnsupportedIndex(0x8000101a)
2021-03-01 22:58:43.374 7155-7170/? W/ACodec: [OMX.amlogic.video.encoder.avc] setting color aspects failed even though codec advertises support
2021-03-01 22:58:43.374 3145-3193/? E/OMXNodeInstance: getConfig(0xf3783ba8:amlogic.encoder.avc, ??(0x7f00000c)) ERROR: UnsupportedIndex(0x8000101a)
2021-03-01 22:58:43.374 3145-3145/? E/OMXNodeInstance: getConfig(0xf3783ba8:amlogic.encoder.avc, ??(0x7f00000c)) ERROR: UnsupportedIndex(0x8000101a)
2021-03-01 22:58:43.375 7155-7170/? W/ACodec: [OMX.amlogic.video.encoder.avc] getting color aspects failed even though codec advertises support
2021-03-01 22:58:43.375 3145-3145/? D/OmxComponent: getExtensionIndex 1123 name="OMX.google.android.index.storeANWBufferInMetadata"
2021-03-01 22:58:43.375 3145-3145/? D/OmxComponent: getExtensionIndex 1123 name="OMX.google.android.index.storeMetaDataInBuffers"
2021-03-01 22:58:43.375 3145-3145/? E/OMXNodeInstance: getParameter(0xf3783ba8:amlogic.encoder.avc, ParamConsumerUsageBits(0x6f800004)) ERROR: UnsupportedIndex(0x8000101a)
2021-03-01 22:58:43.375 3145-3145/? D/GraphicBufferSource: setting dataspace: 0x103, acquired=0
2021-03-01 22:58:43.376 3145-3145/? E/OMXNodeInstance: getParameter(0xf3783ba8:amlogic.encoder.avc, ParamConsumerUsageBits(0x6f800004)) ERROR: UnsupportedIndex(0x8000101a)
2021-03-01 22:58:43.377 3145-3193/? D/GraphicBufferSource: requesting color aspects (R:2(Limited), P:4(BT601_6_525), M:3(BT601_6), T:3(SMPTE170M))
2021-03-01 22:58:43.379 7155-7155/? D/OpenGLRenderer: Skia GL Pipeline
2021-03-01 22:58:43.387 3021-3021/? W/Binder:3021_5: type=1400 audit(0.0:139): avc: denied { call } for scontext=u:r:surfaceflinger:s0 tcontext=u:r:mediacodec:s0 tclass=binder permissive=0
2021-03-01 22:58:43.412 3145-7172/? I/OmxComponent: OMX_CommandStateSet 740 Cmd 0 nParam1 0x2
2021-03-01 22:58:43.412 3145-7172/? I/OmxComponent: STATE_SET:   OMX_StateLoaded => OMX_StateIdle : OMX.amlogic.video.encoder.avc
2021-03-01 22:58:43.412 3145-7172/? I/OmxComponent: STATE_TRANS: OMX_StateLoaded => OMX_StateIdle : OMX.amlogic.video.encoder.avc
2021-03-01 22:58:43.412 3007-3186/? I/[Gralloc]: framebuffer hal alread move to hwcomposer
2021-03-01 22:58:43.415 2996-2996/? W/AshmemAllocator: ashmem_create_region(440640) returning hidl_memory(0xecb16170, 440640)
2021-03-01 22:58:43.454 3145-7172/? I/OmxComponent: STATE_TRANS: OMX_StateLoaded => OMX_StateIdle : OMX.amlogic.video.encoder.avc
2021-03-01 22:58:43.454 2996-2996/? W/AshmemAllocator: ashmem_create_region(440640) returning hidl_memory(0xecb16170, 440640)
2021-03-01 22:58:43.455 3145-7172/? I/OmxComponent: STATE_TRANS: OMX_StateLoaded => OMX_StateIdle : OMX.amlogic.video.encoder.avc
2021-03-01 22:58:43.461 2996-2996/? W/AshmemAllocator: ashmem_create_region(1048576) returning hidl_memory(0xecb16170, 1048576)
2021-03-01 22:58:43.465 2996-2996/? W/AshmemAllocator: ashmem_create_region(1048576) returning hidl_memory(0xecb16170, 1048576)
2021-03-01 22:58:43.465 3145-7172/? I/OmxComponent: STATE_TRANS: OMX_StateLoaded => OMX_StateIdle : OMX.amlogic.video.encoder.avc
2021-03-01 22:58:43.466 3007-3186/? I/[Gralloc]: framebuffer hal alread move to hwcomposer
2021-03-01 22:58:43.467 3145-7172/? I/OmxComponent: STATE_TRANS: OMX_StateLoaded => OMX_StateIdle : OMX.amlogic.video.encoder.avc
2021-03-01 22:58:43.467 3145-7172/? I/OmxComponent: STATE_DONE:  OMX_StateLoaded => OMX_StateIdle : OMX.amlogic.video.encoder.avc
2021-03-01 22:58:43.469 3145-7172/? I/OmxComponent: OMX_CommandStateSet 740 Cmd 0 nParam1 0x3
2021-03-01 22:58:43.469 3145-7172/? I/OmxComponent: STATE_SET:   OMX_StateIdle => OMX_StateExecuting : OMX.amlogic.video.encoder.avc
2021-03-01 22:58:43.469 3145-7172/? D/AmlogicVideoAVCEncoder: mVideoColorFormat :0x7f000789, mVideoFrameRate: 60
2021-03-01 22:58:43.469 3145-7172/? D/AmlogicVideoAVCEncoder: mStoreMetaDataInBuffers:1
2021-03-01 22:58:43.469 3145-7172/? D/AmlogicVideoAVCEncoder: mVideoBitRate :8000000
2021-03-01 22:58:43.469 3145-7172/? D/AmlogicVideoAVCEncoder: Video frame height is not standard:408
2021-03-01 22:58:43.469 3145-7172/? I/OmxVideoEncoder: getParameter:432 OMX_IndexAmlogicVideoExtendCropScale
2021-03-01 22:58:43.469 3145-7172/? I/AmlogicVideoAVCEncoder: get Parameter:bEnableScaling:0 param_extended->ui16ScaledWidth:0 Height:0,Flag:0, enableCroping:0, Left:0, right:0, top:0, bottom:0
2021-03-01 22:58:43.472 3145-7172/? I/GXFASTENCLIB: EB block width:720, height:408 mb_width:45, mb_height:26, block_width_num:21, block_height_num:12, block_width_n:15, block_height_n:9, block_width:3, block_height:3
2021-03-01 22:58:43.474 3145-7172/? D/AMLVENC: AML_HWEncInitialize success, handle: 0xf37955e0, fd:34
2021-03-01 22:58:43.486 3145-7172/? I/OmxComponent: STATE_TRANS: OMX_StateIdle => OMX_StateExecuting : OMX.amlogic.video.encoder.avc
2021-03-01 22:58:43.486 3145-7172/? I/OmxComponent: STATE_DONE:  OMX_StateIdle => OMX_StateExecuting : OMX.amlogic.video.encoder.avc
2021-03-01 22:58:43.486 3145-7172/? D/GraphicBufferSource: got buffer with new dataSpace #103
2021-03-01 22:58:43.486 3145-7173/? D/OmxComponent: getExtensionIndex 1123 name="OMX.google.android.index.describeColorAspects"
2021-03-01 22:58:43.486 3145-7173/? E/OMXNodeInstance: getConfig(0xf3783ba8:amlogic.encoder.avc, ??(0x7f00000c)) ERROR: UnsupportedIndex(0x8000101a)
2021-03-01 22:58:43.487 3145-7174/? V/OMX_WorkerPeer: vendor/amlogic/common/omx/omx_framework/WorkerPeer.cpp:runWorkerStatic:152 --------------------
2021-03-01 22:58:43.487 3145-7174/? V/OMX_WorkerPeer: vendor/amlogic/common/omx/omx_framework/WorkerPeer.cpp:runWorker:158 --------------------
2021-03-01 22:58:43.487 3145-7173/? D/OmxComponent: setConfig 1116
2021-03-01 22:58:43.487 3145-7173/? E/OMXNodeInstance: setConfig(0xf3783ba8:amlogic.encoder.avc, ??(0x7f00000c)) ERROR: UnsupportedIndex(0x8000101a)
2021-03-01 22:58:43.487 7155-7170/? D/ACodec: dataspace changed to 0x10c40000 (R:2(Limited), P:4(BT601_6_525), M:3(BT601_6), T:3(SMPTE170M)) (R:2(Limited), S:4(BT601_525), T:3(SMPTE_170M))
2021-03-01 22:58:43.491 3145-7174/? D/AmlogicVideoAVCEncoder: Use MetaDataMode, mInHeader.OmxHeader->nFilledLen:8 (expected 12, 8 or 16)handle: 0xf37955e0
2021-03-01 22:58:43.491 3145-7174/? D/AmlogicVideoAVCEncoder: Use MetaDataMode, mode is 2, handle: 0xf37955e0
2021-03-01 22:58:43.507 3145-7174/? I/FASTGX_RC: base qp - 4:30, bu_cnt:0
2021-03-01 22:58:43.597 3145-7174/? I/FASTGX_RC: base qp - 4:26, bu_cnt:0
2021-03-01 22:58:43.697 3145-7174/? I/FASTGX_RC: base qp - 4:22, bu_cnt:0
2021-03-01 22:58:43.799 3145-7174/? I/FASTGX_RC: base qp - 4:18, bu_cnt:0
2021-03-01 22:58:43.899 3145-7174/? I/FASTGX_RC: base qp - 4:16, bu_cnt:0
2021-03-01 22:58:43.998 3145-7174/? I/FASTGX_RC: base qp - 4:16, bu_cnt:0
2021-03-01 22:58:44.104 3145-7174/? I/FASTGX_RC: base qp - 4:16, bu_cnt:0
2021-03-01 22:58:44.111 7164-7164/? I/AVUtils: createInstance(32bit) : _ZN7android19createExtendedUtilsEv
2021-03-01 22:58:44.121 7164-7164/? I/AVUtils: createInstance(32bit) : _ZN7android19createExtendedUtilsEv
2021-03-01 22:58:44.122 7164-7164/? I/AVUtils: Opened libavenhancements.so
2021-03-01 22:58:44.122 7164-7164/? I/AVUtils: symbol _ZN7android19createExtendedUtilsEv found:  (null)
2021-03-01 22:58:44.122 7164-7164/? I/AVUtils: CREATE function success
2021-03-01 22:58:44.122 7164-7164/? I/AVUtils: Opened libavenhancements.so
2021-03-01 22:58:44.122 7164-7164/? I/AVUtils: symbol _ZN7android19createExtendedUtilsEv found:  (null)
2021-03-01 22:58:44.122 7164-7164/? I/AVUtils: CREATE function success
2021-03-01 22:58:44.122 7164-7164/? I/AVUtils: createInstance(32bit) : _ZN7android19createExtendedUtilsEv
2021-03-01 22:58:44.122 7164-7164/? I/AVUtils: symbol _ZN7android19createExtendedUtilsEv found:  (null)
2021-03-01 22:58:44.122 7164-7164/? I/AVUtils: CREATE function success
2021-03-01 22:58:44.123 7164-7164/? D/AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
2021-03-01 22:58:44.201 3145-7174/? I/FASTGX_RC: base qp - 4:16, bu_cnt:0
2021-03-01 22:58:44.302 3145-7174/? I/FASTGX_RC: base qp - 4:16, bu_cnt:0
2021-03-01 22:58:44.379 7164-7164/? W/app_process: Using default instruction set features for ARM CPU variant (cortex-a9) using conservative defaults
2021-03-01 22:58:44.403 3145-7174/? I/FASTGX_RC: base qp - 4:16, bu_cnt:0
2021-03-01 22:58:44.460 7164-7164/? D/AndroidRuntime: Calling main entry com.genymobile.scrcpy.CleanUp
2021-03-01 22:58:44.501 3145-7174/? I/FASTGX_RC: base qp - 4:16, bu_cnt:0
2021-03-01 22:58:44.715 5627-5627/by.stari4ek.tvirl.debug D/EventLogger: loading [eventTime=903.35, mediaPos=480.64, window=0, period=0, false]
2021-03-01 22:58:45.005 3008-3180/? E/MesonHwc: mi version
2021-03-01 22:58:45.526 3008-3180/? E/MesonHwc: mi version
2021-03-01 22:58:46.045 3008-3180/? E/MesonHwc: mi version
2021-03-01 22:58:46.566 3008-3180/? E/MesonHwc: mi version
2021-03-01 22:58:46.629 3772-5360/? E/memtrack: Couldn't load memtrack module
2021-03-01 22:58:46.630 3772-5360/? W/android.os.Debug: failed to get memory consumption info: -1
2021-03-01 22:58:46.858 3689-7184/? E/memtrack: Couldn't load memtrack module
2021-03-01 22:58:46.858 3689-7184/? W/android.os.Debug: failed to get memory consumption info: -1
2021-03-01 22:58:47.085 3008-3180/? E/MesonHwc: mi version
2021-03-01 22:58:47.605 3008-3180/? E/MesonHwc: mi version
2021-03-01 22:58:48.125 3008-3180/? E/MesonHwc: mi version
2021-03-01 22:58:48.646 3008-3180/? E/MesonHwc: mi version
2021-03-01 22:58:49.165 3008-3180/? E/MesonHwc: mi version
2021-03-01 22:58:49.685 3008-3180/? E/MesonHwc: mi version
2021-03-01 22:58:49.906 3803-3813/? I/niss:interacto: Background concurrent copying GC freed 38732(1457KB) AllocSpace objects, 8(416KB) LOS objects, 49% free, 2MB/4MB, paused 146us total 105.225ms
2021-03-01 22:58:50.072 3772-7186/? E/memtrack: Couldn't load memtrack module
2021-03-01 22:58:50.072 3772-7186/? W/android.os.Debug: failed to get memory consumption info: -1
2021-03-01 22:58:50.205 3008-3180/? E/MesonHwc: mi version
2021-03-01 22:58:50.726 3008-3180/? E/MesonHwc: mi version
2021-03-01 22:58:51.246 3008-3180/? E/MesonHwc: mi version
2021-03-01 22:58:51.766 3008-3180/? E/MesonHwc: mi version
2021-03-01 22:58:52.288 3008-3180/? E/MesonHwc: mi version
2021-03-01 22:58:52.808 3008-3180/? E/MesonHwc: mi version
2021-03-01 22:58:52.833 5627-5627/by.stari4ek.tvirl.debug D/EventLogger: loading [eventTime=911.47, mediaPos=488.75, window=0, period=0, true]
2021-03-01 22:58:53.343 3008-3180/? E/MesonHwc: mi version
2021-03-01 22:58:53.866 3008-3180/? E/MesonHwc: mi version
2021-03-01 22:58:54.386 3008-3180/? E/MesonHwc: mi version
2021-03-01 22:58:54.440 5627-5627/by.stari4ek.tvirl.debug D/EventLogger: loading [eventTime=913.08, mediaPos=490.36, window=0, period=0, false]
2021-03-01 22:58:54.906 3008-3180/? E/MesonHwc: mi version
2021-03-01 22:58:55.220 3689-3689/? D/BoundBrokerSvc: onBind: Intent { act=com.google.android.gms.auth.account.workaccount.START cmp=com.google.android.gms/.chimera.PersistentApiService }
2021-03-01 22:58:55.220 3689-3689/? D/BoundBrokerSvc: Loading bound service for intent: Intent { act=com.google.android.gms.auth.account.workaccount.START cmp=com.google.android.gms/.chimera.PersistentApiService }
2021-03-01 22:58:55.237 3772-3772/? D/BoundBrokerSvc: onBind: Intent { act=com.google.android.gms.checkin.START pkg=com.google.android.gms }
2021-03-01 22:58:55.237 3772-3772/? D/BoundBrokerSvc: Loading bound service for intent: Intent { act=com.google.android.gms.checkin.START pkg=com.google.android.gms }
2021-03-01 22:58:55.321 3689-6106/? W/Conscrypt: Could not set socket write timeout: java.net.SocketException: Socket closed
2021-03-01 22:58:55.321 3689-6106/? W/Conscrypt:     at com.google.android.gms.org.conscrypt.Platform.setSocketWriteTimeout(:com.google.android.gms@210214088@21.02.14 (080306-352619232):2)
2021-03-01 22:58:55.321 3689-6106/? W/Conscrypt:     at com.google.android.gms.org.conscrypt.ConscryptFileDescriptorSocket.setSoWriteTimeout(:com.google.android.gms@210214088@21.02.14 (080306-352619232):0)
2021-03-01 22:58:55.367 3689-6106/? W/Conscrypt: Could not set socket write timeout: java.net.SocketException: Socket closed
2021-03-01 22:58:55.368 3689-6106/? W/Conscrypt:     at com.google.android.gms.org.conscrypt.Platform.setSocketWriteTimeout(:com.google.android.gms@210214088@21.02.14 (080306-352619232):2)
2021-03-01 22:58:55.368 3689-6106/? W/Conscrypt:     at com.google.android.gms.org.conscrypt.ConscryptFileDescriptorSocket.setSoWriteTimeout(:com.google.android.gms@210214088@21.02.14 (080306-352619232):0)
2021-03-01 22:58:55.425 3008-3180/? E/MesonHwc: mi version
2021-03-01 22:58:55.469 3803-7187/? I/assistant: [INFO:assistant_manager_native.cc(158)] Setting Assistant access tokens.
2021-03-01 22:58:55.945 3008-3180/? E/MesonHwc: mi version
2021-03-01 22:58:56.465 3008-3180/? E/MesonHwc: mi version
2021-03-01 22:58:56.985 3008-3180/? E/MesonHwc: mi version
    CastV2.Transport.Ping.In=12
    CastV2.Transport.Pong.Out=12
2021-03-01 22:58:57.505 3008-3180/? E/MesonHwc: mi version
2021-03-01 22:58:58.025 4638-7191/? E/memtrack: Couldn't load memtrack module
rom1v commented 3 years ago

What is the result with screenrecord?

adb shell screenrecord /sdcard/file.mp4
adb pull /sdcard/file.mp4
stari4ek commented 3 years ago

same as scrcpy - "corrupted" for video surface part. But standard UI opened on top of it looks valid.

Attached: https://user-images.githubusercontent.com/327778/109560310-c7ecfd80-7aec-11eb-9d93-be51fffff799.mp4

rom1v commented 3 years ago

OK, then this is a bug on the device.