Version 1.14 crashes when entering Preferences menu or multiplayer server

Having trouble with the game? Report issues and get help here. Read this first!

Moderator: Forum Moderators

Forum rules
Before reporting issues in this section, you must read the following topic:
Post Reply
Skelett
Posts: 1
Joined: May 6th, 2018, 1:17 pm

Version 1.14 crashes when entering Preferences menu or multiplayer server

Post by Skelett »

Hello together,

I recently installed version 1.14 on my Windows 10 machine, but the program keeps crashing (not showing any error message, the window just closes) whenever I try to open the "preferences" menu or entering a multiplayer server.

Looking into the log-files returned the following output:
Battle for Wesnoth v1.14.0
Started on Sun May 06 16:27:59 2018

Automatically found a possible data directory at C:\Users\USER\AppData\Local\Battle for Wesnoth 1.14.0

Data directory: C:\Users\USER\AppData\Local\Battle for Wesnoth 1.14.0
User configuration directory: C:\Users\USER\Documents\My Games\Wesnoth1.14
User data directory: C:\Users\USER\Documents\My Games\Wesnoth1.14
Cache directory: C:\Users\USER\Documents\My Games\Wesnoth1.14\cache

Setting mode to 1600x837
Checking lua scripts... ok
Caught general 'St8bad_cast' exception:
std::bad_cast
System-Screenshot.PNG
System-Screenshot.PNG (5.62 KiB) Viewed 2998 times
Any ideas?

Many thanks in advance and kind regards
User avatar
Pentarctagon
Project Manager
Posts: 5561
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: Version 1.14 crashes when entering Preferences menu or multiplayer server

Post by Pentarctagon »

This is a problem that others have reported as well. Unfortunately, the error logged is very generic and not too helpful, so the cause of it is not yet known.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
daankappa
Posts: 2
Joined: May 6th, 2018, 5:48 pm

Re: Version 1.14 crashes when entering Preferences menu or multiplayer server

Post by daankappa »

I'm facing the same issue that's described in this post with 1.14 with the same log file content. using w10 pro with the latest updates.

If there's any other information I can supply to help let me know.

I was also wondering if you can maybe work around this for now by manually editing the config files. Now I'm a new player so I'm not sure what settings are in the preferences screen, but it seems that not every setting is in my preferences file in the user data folder. If someone could supply a config file with all settings that would be helpful. Again I don't know if there are any useful settings, for now I'm just playing with the game muted via windows and it seems fine.
User avatar
Iris
Site Administrator
Posts: 6798
Joined: November 14th, 2006, 5:54 pm
Location: Chile
Contact:

Re: Version 1.14 crashes when entering Preferences menu or multiplayer server

Post by Iris »

Could everyone experiencing this issue try replacing your wesnoth.exe file with the one from here?

https://files.wesnoth.org/wesnoth-try-fix.exe

For Steam users: go into Game Properties → Local Files → Browse Local Files, which will open an explorer window on the game dir. Drop the .exe above and rename it wesnoth.exe to overwrite the previous one. If you later need to revert this, use the Properties → Local Files → Verify Integrity of Game Files option.

Non-Steam users: go into the game install path (probably C:\Program Files (x86)\Battle for Wesnoth 1.14 or so and do the same as above, except you probably will want to rename the old wesnoth.exe instead of fully replacing it.

(Relevant commit for the more tech-oriented people. The binary above is 1.14.0 with this single patch applied on top.)
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm.
daankappa
Posts: 2
Joined: May 6th, 2018, 5:48 pm

Re: Version 1.14 crashes when entering Preferences menu or multiplayer server

Post by daankappa »

This exe fixed the problem for me. I can now open the preferences and multiplayer window and it seems to work fine.

Thanks for the quick fix!

Edit: here's the log contents, clearly showing the debug line that you placed in the linked commit.

Code: Select all

Battle for Wesnoth v1.14.0
Started on Mon May 07 13:03:36 2018

Automatically found a possible data directory at D:\Program Files\Steam\steamapps\common\wesnoth

Data directory:               D:\Program Files\Steam\steamapps\common\wesnoth
User configuration directory: D:\Libraries\Documents\My Games\Wesnoth1.14
User data directory:          D:\Libraries\Documents\My Games\Wesnoth1.14
Cache directory:              D:\Libraries\Documents\My Games\Wesnoth1.14\cache

Setting mode to 1920x1080
Checking lua scripts... ok
20180507 13:03:42 error general: locale set-up for icompare() is broken, falling back to std::string::compare()
Post Reply