Bug #1793
closed
Null government causing crash
Added by David Fernandez 14 days ago.
Updated 1 day ago.
Description
I'm using my personal ruleset for v3.2:
https://raw.githubusercontent.com/dftec-es/civ2civ3_earth/master/3.2/civ2civ3_earth-3.2.mpdl
The error log is:
in government_name_translation() [government.c::145]: assertion '((void *)0) != pgovern' failed.
I attach a savegame that crashes when I load it with QT client.
It might be related to the fact that I lost contact with the Romans, but there is an open diplomatic dialog with them, that I have not closed for some turns.
GTK loads the savegame, but the nations tab shows that Romans have government "null".
If I move the egyptian trireme (in the mediterranean sea) to a tile adjacent to the roman city, to gain contact with them again, and then I try to open a diplomatic dialog with the Romans, then the client crashes with the same error.
Files
Related issues
2 (2 open — 0 closed)
I forgot to say that I'm playing on freeciv v3.2.1+ (as it was some days ago).
I just pulled and compiled the latest changes until today, and now the qt client behave the same as gtk: it loads the savegame, but it crashes when I contact with the romans and open a diplomatic dialog.
Here's a fix for the server to resend government info of the other player when connection is re-established.
For S3_2 we should also make some kind of client side fix/workaround for cases where it's connected to an older server without this server fix, but that might happen in a separate ticket.
The patch seems to fix it, thank you.
It was an error that I used to see often in my test games, and with the patch I have not seen it again.
Marko Lindqvist wrote in #note-2:
For S3_2 we should also make some kind of client side fix/workaround for cases where it's connected to an older server without this server fix, but that might happen in a separate ticket.
-> #1811
- Related to Bug #1811: S3_2 client crash with server < 3.2.2 due to NULL government added
- Status changed from In Review to Closed
Also available in: Atom
PDF