Game crashes on launch (MacOS)

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
CubeInTheDark
Posts: 5
Joined: February 22nd, 2021, 3:22 am

Game crashes on launch (MacOS)

Post by CubeInTheDark »

If i click into Wesnoth it crashes three to four seconds in before I hit main menu, this started yesterday before adding any updates to the game or my computer. Redownloading Wesnoth both from the official website and from steam.

version 1.14.15 is the one that doesn't work, which i need to do multiplayer

version 1.15.10 does work, but i can't access multiplayer with it so it isn't useful to me

been playing wesnoth for a couple months, didn't have any problems

MacOS Big Sur Version 11.2.2
MacBook Pro
Processor 2.7 GB 2133

I'm not really tech savvy. Any help is appreciated, thank you.
User avatar
Pentarctagon
Project Manager
Posts: 5526
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: Game crashes on launch (MacOS)

Post by Pentarctagon »

Would you be able to provide the game logs when it crashes?
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
CubeInTheDark
Posts: 5
Joined: February 22nd, 2021, 3:22 am

Re: Game crashes on launch (MacOS)

Post by CubeInTheDark »

Data directory: /Applications/The Battle for Wesnoth.app/Contents/Resources
User configuration directory: /Users/USER/Library/Containers/org.wesnoth.Wesnoth/Data/Library/Application Support/Wesnoth_1.14
User data directory: /Users/USER/Library/Containers/org.wesnoth.Wesnoth/Data/Library/Application Support/Wesnoth_1.14
Cache directory: /Users/USER/Library/Containers/org.wesnoth.Wesnoth/Data/Library/Application Support/Wesnoth_1.14/cache

Setting mode to 814x795
Checking lua scripts... ok
WML exception:
User message: Failed to show a dialog, which doesn't fit on the screen.
Dev message: /Users/Shared/wesnoth_1.14/src/gui/widgets/window.cpp:957 in function 'layout' found the following problem: Failed to size window; wanted size 818,465 available size 814,795 screen size 814,795.
logout
Saving session...
...saving history...truncating history files...
...completed.
Deleting expired sessions...none found.

[Process completed]
User avatar
Pentarctagon
Project Manager
Posts: 5526
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: Game crashes on launch (MacOS)

Post by Pentarctagon »

It looks like the issue is the game is trying to create a window that's larger than your screen. Did this start happening after a system update or a Wesnoth update, or after you started using a different monitor?
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
CubeInTheDark
Posts: 5
Joined: February 22nd, 2021, 3:22 am

Re: Game crashes on launch (MacOS)

Post by CubeInTheDark »

No, the problem started before any sort of update.
User avatar
Pentarctagon
Project Manager
Posts: 5526
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: Game crashes on launch (MacOS)

Post by Pentarctagon »

I'm not sure what the problem would be then, to be honest. If the version of Wesnoth didn't change and there wasn't a macOS update and you're using the same monitor as before, there's nothing I can think of that would cause this issue.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
mattsc
Inactive Developer
Posts: 1217
Joined: October 13th, 2010, 6:14 pm

Re: Game crashes on launch (MacOS)

Post by mattsc »

One thing to try, given the error message, might be to start Wesnoth from the command line in full screen mode. For some reason Wesnoth seems to remember a window size for you that appears too small to open one of the dialogs.

Repeat the same two steps you used to get the log, with a minor change (the -f option when starting the game):

Code: Select all

cd /Applications/The\ Battle\ for\ Wesnoth.app/Contents/MacOS/
./The\ Battle\ for\ Wesnoth -f
CubeInTheDark
Posts: 5
Joined: February 22nd, 2021, 3:22 am

Re: Game crashes on launch (MacOS)

Post by CubeInTheDark »

Can you clarify this more? Am I supposed to edit the log?
mattsc
Inactive Developer
Posts: 1217
Joined: October 13th, 2010, 6:14 pm

Re: Game crashes on launch (MacOS)

Post by mattsc »

No, no editing. Just open a terminal (e.g. from Applications -> Utilities -> Terminal) and then enter those two commands.

I thought that's what you had done to get the log in the first place. Apologies if I misunderstood.
CubeInTheDark
Posts: 5
Joined: February 22nd, 2021, 3:22 am

Re: Game crashes on launch (MacOS)

Post by CubeInTheDark »

Oh, alright now I understand. It opened without a problem and now seems to open normally if left on fullscreen mode. I'm still not sure why windowed mode caused this problem but I am very grateful for your help. Thank you very much.
mattsc
Inactive Developer
Posts: 1217
Joined: October 13th, 2010, 6:14 pm

Re: Game crashes on launch (MacOS)

Post by mattsc »

No worries, I'm glad to hear that that worked. There are a whole bunch of reasons why this might have happened, and it's probably impossible to figure out after the fact.

You may now also be able to leave fullscreen mode, resize the window, and then use it in windowed mode again (as long as it's not too small).
Post Reply