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

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

Open
unofficialdev opened this issue Dec 20, 2021 · 6 comments

Comments

@unofficialdev
Copy link

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

@Fusion86
Copy link
Owner

Fusion86 commented Jan 4, 2022

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
Copy link
Owner

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

@unofficialdev
Copy link
Author

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

@unofficialdev
Copy link
Author

unofficialdev commented Jan 22, 2022

@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
Copy link
Author

@Fusion86 please check

@Fusion86
Copy link
Owner

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

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

2 participants