Abort on Custom Maps

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
vghetto
Posts: 755
Joined: November 2nd, 2019, 5:12 pm

Abort on Custom Maps

Post by vghetto »

Hi,

The attached map will cause wesnoth 1.14.11 to abort if it's left in the editor/maps folder.
This map uses some terrain codes specific to the SP campaign "Wild Frontiers".

To reproduce, place file in editor/maps, then select Multiplayer -> Local Game -> Custom Maps.
The game exits right away with the following:

Code: Select all

Battle for Wesnoth v1.14.11
Started on Sat May  9 12:23:54 2020

MESA-LOADER: failed to retrieve device information

Data directory:               /home/USER/local/games/wesnoth/1.14/share/wesnoth
User configuration directory: /home/USER/.config/wesnoth/1.14
User data directory:          /home/USER/.local/share/wesnoth/1.14
Cache directory:              /home/USER/.cache/wesnoth

Setting mode to 1024x768
Checking lua scripts... ok
20200509 12:24:00 error config: map could not be loaded: Unknown tile in map: (Yw) 'Yw'
20200509 12:24:00 error config: map could not be loaded: Unknown tile in map: (Yw) 'Yw'
wesnoth-1.14: /usr/include/boost/dynamic_bitset/dynamic_bitset.hpp:644: boost::dynamic_bitset<Block, Allocator>::~dynamic_bitset() [with Block = long unsigned int; Allocator = std::allocator<long unsigned int>]: Assertion `m_check_invariants()' failed.
Aborted
Is this a known error?
Attachments
replay.map
(31.6 KiB) Downloaded 254 times
User avatar
Ravana
Forum Moderator
Posts: 2949
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: Abort on Custom Maps

Post by Ravana »

What would you expect to happen?
vghetto
Posts: 755
Joined: November 2nd, 2019, 5:12 pm

Re: Abort on Custom Maps

Post by vghetto »

I don't know, maybe to handle it gracefully and not abort, or to not list the map. You tell me.
User avatar
Ravana
Forum Moderator
Posts: 2949
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: Abort on Custom Maps

Post by Ravana »

I tried it out with 1.15.2, custom maps looked ok - empty, but when opening random maps got crash with

Code: Select all

Exception code=0xc0000005 flags=0x0 at 0x00000000008703A9. Access violation - attempting to read data at address 0x0000000000000000
1.14 does fail asserts, but that does not seem to break anything.
vghetto
Posts: 755
Joined: November 2nd, 2019, 5:12 pm

Re: Abort on Custom Maps

Post by vghetto »

For clarification, I didn't get a listing of the maps. It just quit suddenly as soon as I selected the Custom Maps drop down menu. (I did have another map in the folder which was the recently uploaded map by nop)
At most it should have shown a dialog similar to the 'Failed to load scenario' dialog and drop you back to the main screen of the game and not the desktop.

Should I open an issue about this on github or do you want to open it concerning the 1.15 version error?
User avatar
Ravana
Forum Moderator
Posts: 2949
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: Abort on Custom Maps

Post by Ravana »

You can open.
vghetto
Posts: 755
Joined: November 2nd, 2019, 5:12 pm

Re: Abort on Custom Maps

Post by vghetto »

@Pentarctagon
I'll compile and test on the 1.14.11+dev version tomorrow. Thank you.
I'll leave it to compile overnight. I have a slow computer.
Post Reply