Bug #1708
closed"Segmentation fault: 11" when viewing nations screen, OS X
0%
Description
version 3.2.1, gui-gtk-3.22 client, installed using homebrew on 15.1.1 (24B91)
The attached save file will always segfault when opening the Nations window.
Reliably, some number of turns in (20-80?) the client will crash unprompted first. It can be restarted, and the savefile reloaded, but then opening the Nations window will crash it every time. This happens for every game I play. This was also an issue in 3.2.0, but not in the previous version I had installed, which I don't recall the version of, but will have been recent.
Files
Updated by Marko Lindqvist 12 days ago
- Target version set to 3.2.2
1: in government_name_translation() [../../src/common/government.c::145]: assertion '((void *)0) != pgovern' failed.
When asserts are not set to fatal, the nations report shows government of R.I.P. nations as "(null)"
Updated by Marko Lindqvist 12 days ago
- File 0016-Fix-crash-on-nations-dialog-for-R.I.P.-player-govern.patch 0016-Fix-crash-on-nations-dialog-for-R.I.P.-player-govern.patch added
- Category set to client-common
- Status changed from New to In Progress
- Assignee set to Marko Lindqvist
Here's a fix that I made first, and which seems to work, but I now think that we actually want a bit different fix to go in.
Updated by Marko Lindqvist 12 days ago
- File 0017-Fix-crash-on-nations-dialog-for-dead-player-governme.patch 0017-Fix-crash-on-nations-dialog-for-dead-player-governme.patch added
- File 0010-Fix-crash-on-nations-dialog-for-dead-player-governme.patch 0010-Fix-crash-on-nations-dialog-for-dead-player-governme.patch added
- Status changed from In Progress to In Review
The better fix.
Updated by Dean Brown 12 days ago
Interesting - when I try loading that saved game into the gtk-3.22 client which I built on my Mac from the 3.2.1 released tarball, it appears to load it OK but the Start button never gets enabled so I can't even start the game. So I also can't test the patch. My build is using MacPorts packages, not Homebrew packages, might make a difference.
Updated by Marko Lindqvist 11 days ago
Dean Brown wrote in #note-4:
the Start button never gets enabled so I can't even start the game.
As this is not your own savegame, there's no player attached to a user named 'dean' (or what ever your username is). You need to /take a player (the easiest way is to right-click on a player name to open the context menu)