-
-
Notifications
You must be signed in to change notification settings - Fork 968
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
Joining server via shortcut causes freeze #7007
Comments
Confirmed, seems to be some sort of deadlock Could be Windows specific? (There were 18 threads in the following backtrace, but I've removed all that had no references to OTTD source)
|
Deadlock happens in my debian VM too. Here's what happens on windows: |
Ok main threads aquires _draw_mutex in video driver mainloop at win32_v.cpp:1275 and as it's later blocked by newgrf-scan thread it can't release it for newgrf-scan thread. Not checked but I think same happens at sdl_v.cpp:758 with the same effect later. All is related to the different path taken in AfterNewGRFScan::OnNewGRFsScanned() when network connection string is not empty. |
Using the
-n
parameter to join a server; OpenTTD will freeze forever at the main menu while scanning for NewGRFs.This is on Windows, OpenTTD v1.8.0 and happens on every computer I've tested it on.
Just make a shortcut of OpenTTD and set the target to something like "-n <ip here>" and launch the shortcut.
Joining the same server via the in-game multiplayer menu works just fine.
The text was updated successfully, but these errors were encountered: