ScrcpyNet
ScrcpyNet copied to clipboard
System.IO.IOException: 'Unable to read data from the transport connection:
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..'

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.

@unofficialdev I saw that you replied to this issue, but then deleted your comments? Are you still having issues?
after retrying many times i succeeded, but still can't catch that problem, i think you fixed it, so ignore
@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
@Fusion86 please check
Yeah I saw your reply, unfortunately I currently don't have the time to work on this.