Project

General

Profile

Actions

Bug #1793

open

Null government causing crash

Added by David Fernandez 12 days ago. Updated 11 days ago.

Status:
In Review
Priority:
Normal
Category:
Server
Target version:
Start date:
12/01/2025
Due date:
% Done:

0%

Estimated time:

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 1 (1 open0 closed)

Blocks Tasks #1700: Release 3.2.2NewMarko Lindqvist10/11/2025

Actions
Actions #1

Updated by David Fernandez 12 days ago

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.

Actions #2

Updated by Marko Lindqvist 11 days ago

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.

Actions #3

Updated by Marko Lindqvist 11 days ago

Actions #4

Updated by David Fernandez 11 days ago

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.

Actions

Also available in: Atom PDF