Qt Client crashes when using "Investigate city" diplomat/spy option AND when using "Contribute to Wonder" caravan option.
Do you have a savegame from which to (reliably) reproduce this? My attempt to reproduce failed - there might be something specific needed in the target city for the crash to occur.
Reply To cazfi
Do you have a savegame from which to (reliably) reproduce this? My attempt to reproduce failed - there might be something specific needed in the target city for the crash to occur.
All I did was download the latest qt client from the website. Just start as any civilization under the civ2civ3 rules. Use the diplomat you get to investigate the city of any civilization near you, and the client will crash everytime.
I'm on a Windows 10 if that counts.
Tested with 3.0.0, not on Windows, and Spy "Investigate City"worked OK, and Caravan "Help Build Wonder" worked OK.
I heard that someone had also "Establish Embassy" crashing on Windows 10. Qt-client, freeciv-3.0.0. Could be related to Russian locale.
Though nobody has seen this in linux, I wonder if valgrind would detect anything if one would run Qt-client in it with Russian locale.
Still no progress with this. The valgrind runs I've done have found one problem specific to a "long translation" (Russian translation overflowing the buffer), but that was completely unrelated to to any diplomat actions.
Can you attach your client settings file (freeciv-client-rc-3.0) in case this only happens with specific settings?
Reply To (Anonymous)
Null actor_unit? https://github.com/freeciv/freeciv/blob/master/client/packhand.c#L5026-L5032
Thanks. Sounds feasible at least in that actions mentioned do consume their actor. In any case it's a bug that the client trusts unit id it has received from the server to map to an unit it knows.
As this is a crash that people are known to actually encounter, would very much want it fixed in 3.0.2 release. Does anyone have a moment to work on this?
Reply To (Anonymous)
I'm on a Windows 10 if that counts.
I now tested on Windows 11, with a current snapshot build of freeciv-3.0, and saw no such problems. That was with the 64bit (win64) build.
Reply To (Anonymous)
I'm on a Windows 10 if that counts.
I now tested on Windows 11, with a current snapshot build of freeciv-3.0, and saw no such problems. That was with the 64bit (win64) build.
Dropping release target as there seems to be no way forward with this at the moment. Please let us know if someone can reproduce this, or sees this at least once.
Noticed this last week when trying to do both actions in one game.
How to reproduce Diplomat/spy bug: 1. Play any game on the Freeciv Qt Client. 2. Build or start with a diplomat. 3. Send diplomat to any AI city and when the dialog box comes up, select the "Investigate City" option. 4. Client will attempt to open enemy city up, and then immediately crash.
How to reproduce Caravan bug: 1. Play any game on the Freeciv Qt Client. 2. Build a caravan. 3. Build a wonder in any city. 4. Move the caravan to the wonder building city and when the dialog box comes up, select the "Contribute to production" option. 5. Game will immediately crash afterwards.
I have tested both functions in the GTK+ client and they work on there completely fine, it seems to be just the Qt client that has this problem. I cannot confirm if the SDL client has the same option. This problem also exists in the new beta Qt client, as I have tested it there also.
I ran the game on Windows 10, latest update as of 19-07-2021.