ScrcpyNet icon indicating copy to clipboard operation
ScrcpyNet copied to clipboard

System.IO.IOException: 'Unable to read data from the transport connection:

Open unofficialdev opened this issue 3 years ago • 6 comments
trafficstars

System.IO.IOException: 'Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond..'

Image 1

unofficialdev avatar Dec 20 '21 08:12 unofficialdev

This might be expected behavior, because when starting scrcpy it takes a few moments to establish the connection. The catch (IOExpection ex) line should ignore that exception, but for some reason your debugger still catches it. Could you try this again with the default Visual Studio debugger exception settings, or with no debugger at all.

devenv_2022_01_04_21_19_574

Fusion86 avatar Jan 04 '22 20:01 Fusion86

@unofficialdev I saw that you replied to this issue, but then deleted your comments? Are you still having issues?

Fusion86 avatar Jan 16 '22 17:01 Fusion86

after retrying many times i succeeded, but still can't catch that problem, i think you fixed it, so ignore

unofficialdev avatar Jan 17 '22 01:01 unofficialdev

@unofficialdev Tôi thấy rằng bạn đã trả lời về vấn đề này, nhưng sau đó đã xóa nhận xét của bạn? Bạn vẫn gặp sự cố?

after a few days of stable operation, today I got the application exit error "exception code: 0xc0000374" again. The program '[16396] ScrcpyNet.Sample.Wpf.exe' has exited with code 3221226356 (0xc0000374). This error occurs after receiving the first image frame. no error message, don't know where the error occurred. but i got this error code so many times. google search brought me to a keyword "STATUS_HEAP_CORRUPTION" (Heap corruption is typically caused by unmanaged code). Can you investigate this further? i guess there was a bug somewhere in the VideoStreamDecoder or a bug with the Ffmpeg.AutoGen library. Because after remove the video thread, this error doesn't appear

unofficialdev avatar Jan 22 '22 16:01 unofficialdev

@Fusion86 please check

unofficialdev avatar Jan 26 '22 07:01 unofficialdev

Yeah I saw your reply, unfortunately I currently don't have the time to work on this.

Fusion86 avatar Jan 26 '22 18:01 Fusion86