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

[StreamReceiver]. WS closed unexpectedly after a while #290

Open
alexyutmp opened this issue Nov 30, 2023 · 1 comment
Open

[StreamReceiver]. WS closed unexpectedly after a while #290

alexyutmp opened this issue Nov 30, 2023 · 1 comment

Comments

@alexyutmp
Copy link

ws-scrcpy v0.8.0
Ubuntu 22 server

  1. Connect to any device
  2. Do some operation, I do scroll forward and backward continuously
  3. "[StreamReceiver]. WS closed" shows in console, steam stopped
  4. Refresh can make it work again.
  • I tested on OPPO A55S and Redmi 3S with variety codec, and all reproducible
@alexyutmp
Copy link
Author

11-30 08:59:07.702 1060 23737 D MtkOmxVencV4L2: v4l2_set_dma_in_memory fd 62, bytesused 921600, data_offset 0
11-30 08:59:07.702 800 800 W BufferQueueDump: [VDS-scrcpy SINK] [addBuffer] slot(1) acquired, seems to be abnormal, just update ...
11-30 08:59:07.735 1060 23737 D MtkOmxVencV4L2: v4l2_set_dma_in_memory fd 56, bytesused 921600, data_offset 0
11-30 08:59:07.735 800 800 W BufferQueueDump: [VDS-scrcpy SINK] [addBuffer] slot(0) acquired, seems to be abnormal, just update ...
11-30 08:59:07.770 1060 23737 D MtkOmxVencV4L2: v4l2_set_dma_in_memory fd 58, bytesused 921600, data_offset 0
11-30 08:59:07.770 800 800 W BufferQueueDump: [VDS-scrcpy SINK] [addBuffer] slot(1) acquired, seems to be abnormal, just update ...
11-30 08:59:07.786 1060 23737 D MtkOmxVencV4L2: v4l2_set_dma_in_memory fd 58, bytesused 921600, data_offset 0
11-30 08:59:07.786 800 800 W BufferQueueDump: [VDS-scrcpy SINK] [addBuffer] slot(0) acquired, seems to be abnormal, just update ...
11-30 08:59:07.853 1060 23737 D MtkOmxVencV4L2: v4l2_set_dma_in_memory fd 57, bytesused 921600, data_offset 0
11-30 08:59:07.853 800 800 W BufferQueueDump: [VDS-scrcpy SINK] [addBuffer] slot(1) acquired, seems to be abnormal, just update ...
11-30 08:59:07.920 1060 23737 D MtkOmxVencV4L2: v4l2_set_dma_in_memory fd 62, bytesused 921600, data_offset 0
11-30 08:59:07.921 800 800 W BufferQueueDump: [VDS-scrcpy SINK] [addBuffer] slot(0) acquired, seems to be abnormal, just update ...
11-30 08:59:07.937 1060 23737 D MtkOmxVencV4L2: v4l2_set_dma_in_memory fd 62, bytesused 921600, data_offset 0
11-30 08:59:07.937 800 800 W BufferQueueDump: [VDS-scrcpy SINK] [addBuffer] slot(1) acquired, seems to be abnormal, just update ...
11-30 08:59:07.953 1060 23737 D MtkOmxVencV4L2: v4l2_set_dma_in_memory fd 62, bytesused 921600, data_offset 0
11-30 08:59:07.953 800 800 W BufferQueueDump: [VDS-scrcpy SINK] [addBuffer] slot(0) acquired, seems to be abnormal, just update ...
11-30 08:59:08.003 1060 23737 D MtkOmxVencV4L2: v4l2_set_dma_in_memory fd 58, bytesused 921600, data_offset 0
11-30 08:59:08.003 800 800 W BufferQueueDump: [VDS-scrcpy SINK] [addBuffer] slot(1) acquired, seems to be abnormal, just update ...
11-30 08:59:08.104 1060 23737 D MtkOmxVencV4L2: v4l2_set_dma_in_memory fd 57, bytesused 921600, data_offset 0
11-30 08:59:08.109 1060 23737 D MtkOmxVencV4L2: v4l2_set_dma_in_memory fd 63, bytesused 921600, data_offset 0
11-30 08:59:08.109 800 800 W BufferQueueDump: [VDS-scrcpy SINK] [addBuffer] slot(0) acquired, seems to be abnormal, just update ...
11-30 08:59:08.210 1060 23737 D MtkOmxVencV4L2: v4l2_set_dma_in_memory fd 13, bytesused 921600, data_offset 0
11-30 08:59:08.242 1060 23737 D MtkOmxVencV4L2: v4l2_set_dma_in_memory fd 57, bytesused 921600, data_offset 0
11-30 08:59:08.242 800 800 W BufferQueueDump: [VDS-scrcpy SINK] [addBuffer] slot(1) acquired, seems to be abnormal, just update ...
11-30 08:59:08.253 1060 23737 D MtkOmxVencV4L2: v4l2_set_dma_in_memory fd 58, bytesused 921600, data_offset 0
11-30 08:59:08.253 800 800 W BufferQueueDump: [VDS-scrcpy SINK] [addBuffer] slot(0) acquired, seems to be abnormal, just update ...
11-30 08:59:08.354 1060 23737 D MtkOmxVencV4L2: v4l2_set_dma_in_memory fd 13, bytesused 921600, data_offset 0
11-30 08:59:08.413 1060 23736 D MtkOmxVenc: [0xe7e64f40] # Got general command (OMX_CommandStateSet) (2)
11-30 08:59:08.413 5632 23735 D ACodec : [OMX.MTK.VIDEO.ENCODER.AVC] Now Executing->Idle
11-30 08:59:08.413 1060 23738 D MtkOmxVencV4L2: [0xe7e64f40] NOTIFY: FrameCount=539/539/539/539 BsCount=552/551/540/540 mEncodeFlags 0x3
11-30 08:59:08.413 1060 23738 D MtkOmxVencV4L2: [0xe7e64f40] NOTIFY: FrameCount=539/539/539/539 BsCount=552/551/540/540 mEncodeFlags 0x3
11-30 08:59:08.413 1060 23736 D MtkOmxVencV4L2: [0xe7e64f40] @@ Send Stop Command
11-30 08:59:08.413 1060 23736 D MtkOmxVencV4L2: [0xe7e64f40] + waitFlushDone wait mFlushDoneCondLock
11-30 08:59:08.413 1060 23736 D MtkOmxVencV4L2: [0xe7e64f40] + waitFlushDone mEncodeFlags 3 mEncoderInitCompleteFlag 1 mIsComponentAlive 1
11-30 08:59:08.414 1060 23738 D MtkOmxVencV4L2: [0xe7e64f40] AVC DqTime=704 ms, FrameCount=539/539/539/539 BsCount=552/552/541/541, bs ts=85434840 (85434840293), BS: VA=0xE3994000, len=0, offset=0x00000000, flags=0x00000011 Key(0) Eos(1) Corrupted(0)
11-30 08:59:08.414 1060 23738 D MtkOmxVencV4L2: [0xe7e64f40] NOTIFY: FrameCount=539/539/539/539 BsCount=552/552/541/541 mEncodeFlags 0x3
11-30 08:59:08.414 1060 23738 D MtkOmxVencV4L2: [0xe7e64f40] STREAM OFF 2
11-30 08:59:08.415 1060 23738 D MtkOmxVencV4L2: [0xe7e64f40] STREAM OFF 1
11-30 08:59:08.415 1060 23738 D MtkOmxVencV4L2: [0xe7e64f40] AFTER REQUEUE: FrameCount=539/539/539/539 BsCount=552/552/552/552
11-30 08:59:08.415 1060 23738 D MtkOmxVencV4L2: [0xe7e64f40] + notifyFlushDone wait mFlushDoneCondLock
11-30 08:59:08.415 1060 23738 D MtkOmxVencV4L2: [0xe7e64f40] mEncodeFlags 3
11-30 08:59:08.415 1060 23738 D MtkOmxVencV4L2: [0xe7e64f40] mEncodeFlags 5
11-30 08:59:08.415 1060 23738 D MtkOmxVencV4L2: [0xe7e64f40] - notifyFlushDone UNLOCK mFlushDoneCondLock
11-30 08:59:08.415 1060 23738 D MtkOmxVencV4L2: [0xe7e64f40] MtkOmxVencDequeThread terminated pVenc=0xE7E64F40 hint 4
11-30 08:59:08.415 1060 23736 D MtkOmxVencV4L2: [0xe7e64f40] - waitFlushDone mEncodeFlags 5 mEncoderInitCompleteFlag 1 mIsComponentAlive 1
11-30 08:59:08.415 1060 23736 D MtkOmxVencV4L2: [0xe7e64f40] STREAM OFF 1
11-30 08:59:08.415 1060 23736 D MtkOmxVencV4L2: [0xe7e64f40] STREAM OFF 2
11-30 08:59:08.415 1060 23736 D MtkOmxVencV4L2: [0xe7e64f40] STREAM OFF 3
11-30 08:59:08.416 1095 1164 I VPUD : wait event thread exit
11-30 08:59:08.418 1060 23737 D MtkOmxVencV4L2: [0xe7e64f40] MtkOmxVencEncodeThread terminated pVenc=0xE7E64F40 hint 4
11-30 08:59:08.418 1060 23736 D MtkOmxVenc: [0xe7e64f40] # Got general command (OMX_CommandStateSet) (1)
11-30 08:59:08.427 5632 23735 D ACodec : [OMX.MTK.VIDEO.ENCODER.AVC] Now Idle->Loaded
11-30 08:59:08.427 5632 23735 D ACodec : [OMX.MTK.VIDEO.ENCODER.AVC] Now Loaded
11-30 08:59:08.427 1060 3524 I BufferQueueConsumer: GraphicBufferSource disconnect()
11-30 08:59:08.428 1060 21765 I BufferQueueProducer: GraphicBufferSource disconnect(): api=1
11-30 08:59:08.428 1060 23736 D MtkOmxVenc: [0xe7e64f40] MtkOmxVencThread terminated
11-30 08:59:08.428 800 800 I BufferQueueConsumer: VDS: scrcpy disconnect()
11-30 08:59:08.428 800 800 I BufferQueueProducer: VDS: scrcpy disconnect(): api=1
11-30 08:59:08.429 800 800 I BufferQueue: VDS-scrcpy SINK onDestructor()
11-30 08:59:08.429 800 800 I BufferQueue: VDS-scrcpy SCRATCH onDestructor()
11-30 08:59:08.429 800 800 I mtkpower_client: PowerHal_Wrap_EnableMultiDisplayMode, enable:0 fps:60 CurMultiDisplayMode:40
11-30 08:59:08.429 5632 23735 D ACodec : Now uninitialized
11-30 08:59:08.429 764 808 I libPowerHal: [perfLockRel] hdl:1417, idx:1
11-30 08:59:08.429 764 808 I libPowerHal: [PD] scn:1 hdl:1417 hint:40 comm:[email protected] pid:764
11-30 08:59:08.429 764 808 I libPowerHal: MTKPOWER_HINT_MULTI_DISPLAY_WITH_GPU_FPS_60: cpu_ctrl set cpu freq: -1 -1 -1 1762400
11-30 08:59:08.432 5632 23734 D OplusACodec: ~OplusACodec [127]:
11-30 08:59:08.451 5488 5497 D IHansComunication: HANS sendMessageToKernel: threadId = 485941558464, netLinkSetup = 1, type = FROZEN_TRANS, targetUid = 10111, pkgCmd = PKG_CMD_MAX
11-30 08:59:09.979 21014 21242 D UIAutomatorStub: URI: /jsonrpc/0, Method: POST, params, {NanoHttpd.QUERY_STRING=null}, files: {postData={"jsonrpc": "2.0", "id": "ede870976bc4b4bcf5dd3029b03033a1", "method": "dumpWindowHierarchy", "params": [false, null]}}
11-30 08:59:09.984 21014 21242 W QueryController: Could not detect idle state.
11-30 08:59:09.985 21014 21242 W QueryController: Could not detect idle state.
11-30 08:59:10.098 21014 21242 I AccessibilityNodeInfoDumper: Skipping invisible child: android.view.accessibility.AccessibilityNodeInfo@b0b8a; boundsInParent: Rect(0, 0 - 0, 0); boundsInSc11-30 08:59:08.003 1060 23737 D MtkOmxVencV4L2: v4l2_set_dma_in_memory fd 58, bytesused 921600, data_offset 0 [57/1849]11-30 08:59:08.003 800 800 W BufferQueueDump: [VDS-scrcpy SINK] [addBuffer] slot(1) acquired, seems to be abnormal, just update ...
11-30 08:59:08.104 1060 23737 D MtkOmxVencV4L2: v4l2_set_dma_in_memory fd 57, bytesused 921600, data_offset 0 11-30 08:59:08.109 1060 23737 D MtkOmxVencV4L2: v4l2_set_dma_in_memory fd 63, bytesused 921600, data_offset 0 11-30 08:59:08.109 800 800 W BufferQueueDump: [VDS-scrcpy SINK] [addBuffer] slot(0) acquired, seems to be abnormal, just update ... 11-30 08:59:08.210 1060 23737 D MtkOmxVencV4L2: v4l2_set_dma_in_memory fd 13, bytesused 921600, data_offset 0 11-30 08:59:08.242 1060 23737 D MtkOmxVencV4L2: v4l2_set_dma_in_memory fd 57, bytesused 921600, data_offset 0
11-30 08:59:08.242 800 800 W BufferQueueDump: [VDS-scrcpy SINK] [addBuffer] slot(1) acquired, seems to be abnormal, just update ... 11-30 08:59:08.253 1060 23737 D MtkOmxVencV4L2: v4l2_set_dma_in_memory fd 58, bytesused 921600, data_offset 0 11-30 08:59:08.253 800 800 W BufferQueueDump: [VDS-scrcpy SINK] [addBuffer] slot(0) acquired, seems to be abnormal, just update ... 11-30 08:59:08.354 1060 23737 D MtkOmxVencV4L2: v4l2_set_dma_in_memory fd 13, bytesused 921600, data_offset 0 11-30 08:59:08.413 1060 23736 D MtkOmxVenc: [0xe7e64f40] # Got general command (OMX_CommandStateSet) (2)
11-30 08:59:08.413 5632 23735 D ACodec : [OMX.MTK.VIDEO.ENCODER.AVC] Now Executing->Idle 11-30 08:59:08.413 1060 23738 D MtkOmxVencV4L2: [0xe7e64f40] NOTIFY: FrameCount=539/539/539/539 BsCount=552/551/540/540 mEncodeFlags 0x3 11-30 08:59:08.413 1060 23738 D MtkOmxVencV4L2: [0xe7e64f40] NOTIFY: FrameCount=539/539/539/539 BsCount=552/551/540/540 mEncodeFlags 0x3 11-30 08:59:08.413 1060 23736 D MtkOmxVencV4L2: [0xe7e64f40] @@ Send Stop Command 11-30 08:59:08.413 1060 23736 D MtkOmxVencV4L2: [0xe7e64f40] + waitFlushDone wait mFlushDoneCondLock
11-30 08:59:08.413 1060 23736 D MtkOmxVencV4L2: [0xe7e64f40] + waitFlushDone mEncodeFlags 3 mEncoderInitCompleteFlag 1 mIsComponentAlive 1 11-30 08:59:08.414 1060 23738 D MtkOmxVencV4L2: [0xe7e64f40] AVC DqTime=704 ms, FrameCount=539/539/539/539 BsCount=552/552/541/541, bs ts=85434840 (85434840293), BS: VA=0xE3994000, len=0, offset=0x00000000, flags=0x00000011 Key(0) Eos(1) Corrupted(0) 11-30 08:59:08.414 1060 23738 D MtkOmxVencV4L2: [0xe7e64f40] NOTIFY: FrameCount=539/539/539/539 BsCount=552/552/541/541 mEncodeFlags 0x3 11-30 08:59:08.414 1060 23738 D MtkOmxVencV4L2: [0xe7e64f40] STREAM OFF 2
11-30 08:59:08.415 1060 23738 D MtkOmxVencV4L2: [0xe7e64f40] STREAM OFF 1 11-30 08:59:08.415 1060 23738 D MtkOmxVencV4L2: [0xe7e64f40] AFTER REQUEUE: FrameCount=539/539/539/539 BsCount=552/552/552/552 11-30 08:59:08.415 1060 23738 D MtkOmxVencV4L2: [0xe7e64f40] + notifyFlushDone wait mFlushDoneCondLock 11-30 08:59:08.415 1060 23738 D MtkOmxVencV4L2: [0xe7e64f40] mEncodeFlags 3 11-30 08:59:08.415 1060 23738 D MtkOmxVencV4L2: [0xe7e64f40] mEncodeFlags 5
11-30 08:59:08.415 1060 23738 D MtkOmxVencV4L2: [0xe7e64f40] - notifyFlushDone UNLOCK mFlushDoneCondLock 11-30 08:59:08.415 1060 23738 D MtkOmxVencV4L2: [0xe7e64f40] MtkOmxVencDequeThread terminated pVenc=0xE7E64F40 hint 4 11-30 08:59:08.415 1060 23736 D MtkOmxVencV4L2: [0xe7e64f40] - waitFlushDone mEncodeFlags 5 mEncoderInitCompleteFlag 1 mIsComponentAlive 1 11-30 08:59:08.415 1060 23736 D MtkOmxVencV4L2: [0xe7e64f40] STREAM OFF 1 11-30 08:59:08.415 1060 23736 D MtkOmxVencV4L2: [0xe7e64f40] STREAM OFF 2
11-30 08:59:08.415 1060 23736 D MtkOmxVencV4L2: [0xe7e64f40] STREAM OFF 3 11-30 08:59:08.416 1095 1164 I VPUD : wait event thread exit 11-30 08:59:08.418 1060 23737 D MtkOmxVencV4L2: [0xe7e64f40] MtkOmxVencEncodeThread terminated pVenc=0xE7E64F40 hint 4 11-30 08:59:08.418 1060 23736 D MtkOmxVenc: [0xe7e64f40] # Got general command (OMX_CommandStateSet) (1) 11-30 08:59:08.427 5632 23735 D ACodec : [OMX.MTK.VIDEO.ENCODER.AVC] Now Idle->Loaded
11-30 08:59:08.427 5632 23735 D ACodec : [OMX.MTK.VIDEO.ENCODER.AVC] Now Loaded 11-30 08:59:08.427 1060 3524 I BufferQueueConsumer: GraphicBufferSource disconnect() 11-30 08:59:08.428 1060 21765 I BufferQueueProducer: GraphicBufferSource disconnect(): api=1 11-30 08:59:08.428 1060 23736 D MtkOmxVenc: [0xe7e64f40] MtkOmxVencThread terminated 11-30 08:59:08.428 800 800 I BufferQueueConsumer: VDS: scrcpy disconnect()
11-30 08:59:08.428 800 800 I BufferQueueProducer: VDS: scrcpy disconnect(): api=1 11-30 08:59:08.429 800 800 I BufferQueue: VDS-scrcpy SINK onDestructor() 11-30 08:59:08.429 800 800 I BufferQueue: VDS-scrcpy SCRATCH onDestructor() 11-30 08:59:08.429 800 800 I mtkpower_client: PowerHal_Wrap_EnableMultiDisplayMode, enable:0 fps:60 CurMultiDisplayMode:40 11-30 08:59:08.429 5632 23735 D ACodec : Now uninitialized
11-30 08:59:08.429 764 808 I libPowerHal: [perfLockRel] hdl:1417, idx:1 11-30 08:59:08.429 764 808 I libPowerHal: [PD] scn:1 hdl:1417 hint:40 comm:[email protected] pid:764 11-30 08:59:08.429 764 808 I libPowerHal: MTKPOWER_HINT_MULTI_DISPLAY_WITH_GPU_FPS_60: cpu_ctrl set cpu freq: -1 -1 -1 1762400 11-30 08:59:08.432 5632 23734 D OplusACodec: ~OplusACodec [127]: 11-30 08:59:08.451 5488 5497 D IHansComunication: HANS sendMessageToKernel: threadId = 485941558464, netLinkSetup = 1, type = FROZEN_TRANS, targetUid = 10111, pkgCmd = PKG_CMD_MAX
11-30 08:59:09.979 21014 21242 D UIAutomatorStub: URI: /jsonrpc/0, Method: POST, params, {NanoHttpd.QUERY_STRING=null}, files: {postData={"jsonrpc": "2.0", "id": "ede870976bc4b4bcf5dd3029b03033a1", "method": "dumpWindowHierarchy", "params": [false, null]}} 11-30 08:59:09.984 21014 21242 W QueryController: Could not detect idle state. 11-30 08:59:09.985 21014 21242 W QueryController: Could not detect idle state.

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

1 participant