Game crash with exception when trying to launch

Bug #1781755 reported by Rafal Mielniczuk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Won't Fix
Undecided
Unassigned

Bug Description

OS: Arch Linux

Game crashes with the following message:

$ widelands
This is Widelands Version build-19 (Release)
Set home directory: /home/ck/.widelands
There's no configuration file, using default values.
Adding directory: /usr/share/widelands
selected language: (system language)
using locale en_GB.UTF-8

Caught exception (of type 'St12out_of_range') in outermost handler!
The exception said: basic_string::substr: __pos (which is 8) > this->size() (which is 7)

This should not happen. Please file a bug report on version build-19(Release).
and remember to specify your operating system.

backtrace:
(gdb) bt
#0 __cxxabiv1::__cxa_throw (obj=obj@entry=0x555555ef5d30, tinfo=0x7ffff5fd3038 <typeinfo for std::out_of_range>,
    dest=0x7ffff5cfc200 <std::out_of_range::~out_of_range()>) at /build/gcc/src/gcc/libstdc++-v3/libsupc++/eh_throw.cc:80
#1 0x00007ffff5ce259e in std::__throw_out_of_range_fmt (__fmt=<optimized out>) from /usr/lib/libstdc++.so.6
#2 0x0000555555776a0d in ?? ()
#3 0x000055555577beee in WLApplication::WLApplication(int, char const* const*) ()
#4 0x000055555577c330 in WLApplication::get(int, char const**) ()
#5 0x000055555575bf3c in main ()

Am I mising some files, is this Arch Linux packaging problem?

Tags: crash
Revision history for this message
GunChleoc (gunchleoc) wrote :

Do you know which files are missing?

It would be good to have a better error message here in any case.

tags: added: crash
Changed in widelands:
milestone: none → build21-rc1
Revision history for this message
kaputtnik (franku) wrote :

Don't know if this is related:

For me it is not possible anymore to compile build19 on archlinux. It fails with:

[ 8%] Building CXX object src/ui_fsmenu/CMakeFiles/ui_fsmenu.dir/options.cc.o
In file included from /home/kaputtnik/widelands-repo/build19/src/ui_fsmenu/options.cc:36:
/home/kaputtnik/widelands-repo/build19/src/graphic/text/bidi.h:43:36: Fehler: »UnicodeString« bezeichnet keinen Typ
 std::string icustring2string(const UnicodeString& convertme);

So i wonder how the archlinux package was build. The last build was done on 2018-05-31.

Rafal, i recommend using the AUR: https://aur.archlinux.org/packages/widelands-bzr/

Revision history for this message
kaputtnik (franku) wrote :

Found the bug 1760581 related to my previous post. We should apply the fix also to build 19. Don't know how though.

Revision history for this message
Rafal Mielniczuk (kruk87) wrote :

Thanks kaputtnik, I will give it a try.

BTW, Sorry the stacktrace was wrong in my first message, it's failing on some substring out of bound

#0 __cxxabiv1::__cxa_throw (obj=obj@entry=0x555555ef5d30, tinfo=0x7ffff5fd3038 <typeinfo for std::out_of_range>,
    dest=0x7ffff5cfc200 <std::out_of_range::~out_of_range()>) at /build/gcc/src/gcc/libstdc++-v3/libsupc++/eh_throw.cc:80
#1 0x00007ffff5ce259e in std::__throw_out_of_range_fmt (__fmt=<optimized out>) from /usr/lib/libstdc++.so.6
#2 0x0000555555776a0d in ?? ()
#3 0x000055555577beee in WLApplication::WLApplication(int, char const* const*) ()
#4 0x000055555577c330 in WLApplication::get(int, char const**) ()
#5 0x000055555575bf3c in main ()

description: updated
Revision history for this message
kaputtnik (franku) wrote :

I have installed widelands now from the official repository, but i can't confirm this bug for archliunx. widelands starts and i can also start a new game.

Rafal, can you check the dependencies?

$ > pacman -Qi widelands
Name : widelands
Version : 19-12
Description : A realtime strategy game with emphasis on economy and transport
Architecture : x86_64
URL : http://widelands.org/
Licenses : GPL
Groups : None
Provides : None
Depends On : sdl2_mixer sdl2_image sdl2_net sdl2_ttf sdl2_gfx lua51 glew python2 boost-libs
Optional Deps : None
Required By : None
Optional For : None
Conflicts With : None
Replaces : widelands-data
Installed Size : 241.67 MiB
Packager : Evangelos Foutras <email address hidden>
Build Date : Thu May 31 04:00:44 2018
Install Date : Wed Jul 18 08:16:37 2018
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature

Revision history for this message
Rafal Mielniczuk (kruk87) wrote :

OK it works now for me as well, after I removed ~/.widelands dir.

Seems I had the game installed before with previous version and the directories were not compatible.

Not sure which version back then that was, I did not kept copy of the dir....

I can see the oldest version available on
https://archive.archlinux.org/packages/w/widelands/

is widelands-18-6-x86_64.pkg.tar.xz. I am not able to install it, since it depends on widelands-data pkg which is not available there.

Thanks

Revision history for this message
GunChleoc (gunchleoc) wrote :
Changed in widelands:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.