Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 718116 - games-strategy/widelands-0.20: segfault when loading any map
Summary: games-strategy/widelands-0.20: segfault when loading any map
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-19 07:14 UTC by Manuel Mommertz
Modified: 2021-06-03 16:25 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Log of widelands (widelands.log,5.30 KB, text/x-log)
2020-04-19 07:14 UTC, Manuel Mommertz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Manuel Mommertz 2020-04-19 07:14:39 UTC
Created attachment 633652 [details]
Log of widelands

Hey there,

first, to prevent "undefined reference to symbol 'glDrawBuffer'" I have to add "-DOpenGL_GL_PREFERENCE=LEGACY" to mycmakeargs in ebuild.

After that, the game builds and installs fine. But when trying to load any map, the game segfaults (see attached log).

Any Idea why this happens and how I can actually play the game?
Comment 1 Jonas Stein gentoo-dev 2020-04-19 14:35:51 UTC
Please join IRC #gentoo-games to find out more.
Please paste emerge info

Did you try 0.20-r1 (note the r1)
Do you see the same bug in games-strategy/widelands-9999?
Comment 2 Manuel Mommertz 2020-04-23 19:32:13 UTC
widelands-9999 works.

I tried git bisect, but it always says:
Some good revs are not ancestors of the bad rev.
git bisect cannot work properly in this case.
Maybe you mistook good and bad revs?

However I did it by hand and find commit 04eed12abdbb13d90e6ba37831acc88e9b6ac79f to be the first working one. The lua-scripts are making the difference.

This does work also:

git checkout 1a00367e4e6dbe4ab771276aac6fde11be577f1 # the commit before
git checkout 04eed12abdbb13d90e6ba37831acc88e9b6ac79f -- data/tribes/workers/barbarians/*/init.lua

But according to https://github.com/widelands/widelands/pull/3779 there should be no change that fixes a crash. I have no idea why widelands crashes for me without the changes to the init.lua files.
Comment 3 Porcupine of the Moon 2020-04-25 23:24:15 UTC
I can confirm this segmentation fault bug for games-strategy/widelands-0.20-r1 on amd64/17.1/dekstop profile with VIDEO_CARDS="intel".
games-strategy/widelands-9999 works without issues.
Comment 4 Larry the Git Cow gentoo-dev 2021-06-03 16:25:42 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8fb6aa58c65e3faf26d14cc0e4564adfb20ab3d

commit b8fb6aa58c65e3faf26d14cc0e4564adfb20ab3d
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2021-06-03 14:15:08 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2021-06-03 16:17:51 +0000

    games-strategy/widelands: add 0.21
    
    - add python3_{9,10}
    - enable minor tests
    - let trivial website tools be built
    - removed upstreamed patches
    - use upstream provided .desktop
    - update LICENSE for the various assets
    
    Closes: https://bugs.gentoo.org/718116
    Closes: https://bugs.gentoo.org/736268
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 games-strategy/widelands/Manifest              |  1 +
 games-strategy/widelands/widelands-0.21.ebuild | 58 ++++++++++++++++++++++++++
 2 files changed, 59 insertions(+)