Game crashes when starting campaign or local game | Resolved

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
Kryastorm
Posts: 3
Joined: November 21st, 2023, 4:58 pm

Game crashes when starting campaign or local game | Resolved

Post by Kryastorm »

Hello, I am dealing with a problem in launching any type of game on Wesnoth, as in whenever I start any type of game whether it's a campaign or local game the moment the game finishes loading resources (to be clear when the screen goes black and starts loading stuff after pressing "Play Now" when on the campaign menu or "I'm Ready" in a local game) the game crashes to desktop. This was my first time downloading the game through Steam, and for good measure I also downloaded the game from itch.io to test if it was a Steam problem, also game version is 1.1.6.10. Unfortunately also the logs inside the Documents/My Games/Wesnoth1.16/logs folder usually contain very bare and non useful information such as:

Code: Select all

Battle for Wesnoth v1.16.10 x86_64
Started on Tue Nov 21 17:40:56 2023

Automatically found a possible data directory at D:\SteamLibrary\steamapps\common\wesnoth

Data directory:               D:\SteamLibrary\steamapps\common\wesnoth
User configuration directory: C:\Users\USER\Documents\My Games\Wesnoth1.16
User data directory:          C:\Users\USER\Documents\My Games\Wesnoth1.16
Cache directory:              C:\Users\USER\Documents\My Games\Wesnoth1.16\cache

Setting mode to 1920x1080
Checking lua scripts... ok
The full report copy and pasted from the game menu is:

The Battle for Wesnoth version 1.16.10 x86_64
Running on Microsoft Windows 10 22H2 (10.0.19045) x86_64
Distribution channel: Steam

Game paths
==========

Data dir: D:\SteamLibrary\steamapps\common\wesnoth
User config dir: C:\Users\USER\Documents\My Games\Wesnoth1.16
User data dir: C:\Users\USER\Documents\My Games\Wesnoth1.16
Saves dir: C:\Users\USER\Documents\My Games\Wesnoth1.16\saves
Add-ons dir: C:\Users\USER\Documents\My Games\Wesnoth1.16\data\add-ons
Cache dir: C:\Users\USER\Documents\My Games\Wesnoth1.16\cache

Libraries
=========

Boost: 1.81
Lua: 5.4.2
OpenSSL/libcrypto: 3.0.0h-dev (runtime 3.0.0h-dev)
Cairo: 1.17.8 (runtime 1.17.8 )
Pango: 1.50.11 (runtime 1.50.11)
SDL: 2.26.3 (runtime 2.26.3)
SDL_image: 2.6.3 (runtime 2.6.3)
SDL_mixer: 2.6.3 (runtime 2.6.3)

Features
========

Lua console completion: yes
Win32 notifications back end: yes

Current video settings
======================

SDL video drivers: [windows] offscreen dummy
Window size: 1920x1080
Screen refresh rate: 59
Screen dots per inch: 96,000000x96,000000
Screen dpi scale factor: 1,000000x1,000000

Current audio settings
======================

SDL audio drivers: [wasapi] directsound winmm
Number of channels: 2
Output rate: 44100 Hz
Sample format: signed 16 bit little-endian
Sample size: 4096 bytes

Installed add-ons
=================

No add-ons installed.


I already tried various solutions such as restarting my computer, changing the game location (as re-installing the game inside the C: folder where Windows and Steam are located instead of an external drive) and re-installing the game itself.
Last edited by Kryastorm on November 21st, 2023, 10:22 pm, edited 1 time in total.
User avatar
Pentarctagon
Project Manager
Posts: 5567
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: Game crashes when starting campaign or local game

Post by Pentarctagon »

That's really weird. The only thing I can think to try then would be to go into the logging options in the advanced preferences, turn them all to debug, and then trigger the crash. The log file will be huge, but maybe it'll give an idea of around where it's happening at least.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
Kryastorm
Posts: 3
Joined: November 21st, 2023, 4:58 pm

Re: Game crashes when starting campaign or local game

Post by Kryastorm »

Alright thank you, will sift through the file and post any possible update
Kryastorm
Posts: 3
Joined: November 21st, 2023, 4:58 pm

Re: Game crashes when starting campaign or local game

Post by Kryastorm »

Ok for some reason after switching every logging option to debug and starting a new game the match actually starts now, I have no idea how to and in what case the crashing could've occured since I wasn't able to re-create it, even after waiting for a couple hours after trying it, with a computer shutdown in between, so I guess the issue is resolved.
User avatar
Pentarctagon
Project Manager
Posts: 5567
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: Game crashes when starting campaign or local game | Resolved

Post by Pentarctagon »

The weird thing too is that this isn't the first time someone has reporting that Wesnoth is crashing, and then somehow enabling debug logging once fixes it permanently.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
Post Reply