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
Add-ons server inaccessible with MSVC build #6171
Comments
Running in debug mode doesn't have the crash on second connection attempt so maybe there's a race condition or something happening. Stack trace:
Upon attempting to connect to the add-ons server the exception seems to be thrown when showing the little dialogue that would normally show download progress. wesnoth/src/addon/manager_ui.cpp Lines 73 to 91 in e49b5c7
Line 79 in e49b5c7
Lines 692 to 701 in e49b5c7
At that point I just get the exception |
Does it happen with the Steam or SourceForge versions, since those are compiled in a different way (assuming you're compiling with VS yourself)? |
I just retried using 1.15.18 win64 downloaded from SourceForge. Strange, seems to work just fine. I'll try a full recompile, it was working fine previously... (Yeah, self-compiled in VS2019.) As an aside, I confirmed #4508 still happens with the official build (it's using SDL 2.0.12) so that one definitely isn't me doing something wrong/different. |
Hmm, no difference. The relevant differences I'm seeing in the Libraries report is that I'm using boost 1.77 over 1.74, openssl 1.1.1l over 1.1.1i and SDL 2.0.16 over 2.0.12. boost 1.77 has been around since August, I'm pretty sure Add-ons were working before that but maybe it really is just a case of something I'm doing differently. Closing as 'not an issue' (from project's point of view). |
The official Windows builds don't use VS, they're cross-compiled from Linux, so that's a big difference (even though in a perfect world they'd be entirely similar). |
Yes, I'm aware of that - or at least that they aren't built from MSVC. |
Something you could try if you're feeling adventurous would be to see if wesnoth can be built with clang instead, and if that works see if the same bug still occurs. |
Thanks for the suggestion. I decided to leave it for now as I got stuck on boost dependencies - it requires boost generated by clang rather than msvc in which case I wonder if I'm better off trying again with boost 1.74 instead, since |
Alright. Are you able to check if this happens on Windows 10 as well? If it's just Windows 7 then I'd be fine with this staying closed, but if it also happens on Windows 10 it'd be good to keep it open given that building with VS is the primary way Windows devs are expected to build Wesnoth. |
I don't have a build environment on Win10 (only have it in the first place on slow laptops because, well, MS still has a monopoly on pre-built machines) so again I just copied my Win7-built binaries to a Win10 machine. The issue happens there as well, but I as mentioned above, I can't tell if it's an issue specific to the compiler (eg if it was compiled with MSVC on Win10 would it still be a problem?), with boost, or something else entirely. |
@Vultraz I saw you mention that you're already using VS2022 - can you advise if you have any issues accessing the Add-ons server with your builds? If not, it suggests an issue with my boost set-up or something else specific to my Windows 7 environment. |
Rebuilt with boost 1.78 and SDL 2.0.18 and can access add-ons server again. Odd. |
I forgot about this issue. Out of curiosity I retested this on both VS2019 on Windows 7 and VS2022 on Windows 10. For whatever reason I've since forgotten, I still choose to compile 1.16 branch via regular VS project, but I adopted the cmake+vcpkg builds for master. The Leaving this closed because it only occurs in my non-standard VS project build. |
Game and System Information
Self-compiled 1.15.18+dev (9c2ad49) and 1.17.0+dev (e49b5c7) on Windows 7.
Describe the bug
Attempting to access the add-ons server results in a 'Remote host disconnected' error message. Logs report:
Attempting to access the add-ons server a second time results in a crash...
In contrast, there are no issues with logging in to the MP server. Accessing the add-ons server is fine on 1.14.17 release on Windows 7. No such issues on Linux.
To Reproduce
Expected behaviour
List of add-ons for the running Wesnoth version is downloaded and then displayed.
Additional context
https://forums.wesnoth.org/viewtopic.php?t=54955 may be related as it has the same symptoms but the exception message is different. Like the reporter there, accessing the web page from Internet Explorer is fine.
The text was updated successfully, but these errors were encountered: