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

Fix ConsoleInput for Linux users with try/catch. #1803

Merged
merged 3 commits into from
May 30, 2024

Conversation

nerun
Copy link
Contributor

@nerun nerun commented May 30, 2024

Fix a rare Input/Output bug in Console Input Handler for Linux users, as discussed in Discord:

Error:
System.IO.IOException: Input/output error
   at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirError)
   at Interop.CheckIo(Int64 result, String path, Boolean isDirError)
   at System.IO.StdInReader.ReadKey()
   at System.IO.StdInReader.ReadLineCore(Boolean consumeKeys)
   at System.IO.StdInReader.ReadLine()
   at System.IO.SyncTextReader.ReadLine()
   at System.Console.ReadLine()
   at Server.ConsoleInputHandler.ProcessConsoleInput() in ...ModernUO/Projects/Server/Console/ConsoleInputHandler.cs:line 156
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_1(Object state)
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
This exception is fatal, press return to exit

Thank you @kamronbatman !!!

@kamronbatman kamronbatman merged commit e85c56e into modernuo:main May 30, 2024
12 of 13 checks passed
@nerun nerun deleted the console branch May 30, 2024 21:05
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

Successfully merging this pull request may close these issues.

None yet

2 participants