Project

General

Profile

Actions

Bug #1868

open

gtk4: client crash at citydlg mouse right click

Added by Andrea Maria Marconi 5 days ago. Updated 2 days ago.

Status:
In Review
Priority:
Normal
Category:
gtk4-client
Target version:
Start date:
01/05/2026
Due date:
% Done:

0%

Estimated time:

Description

Whenever I right click with the mouse on a unit icon in the town window the client freezes and crashes immediately after.
I'm running freeciv 3.2.1-4 on Arch linux.
If you need me to provide other information or do a test just ask. Unfortunately I'm not able to understand what's wrong.
Thanks for any help in this.


Files


Related issues 1 (1 open0 closed)

Blocks Tasks #1845: Release 3.2.3NewMarko Lindqvist12/27/2025

Actions
Actions #1

Updated by Marko Lindqvist 5 days ago

Which client are you using? (gtk4/qt/gtk3.22/sdl2)

Actions #2

Updated by Andrea Maria Marconi 5 days ago

gtk 4. In the help it says:
This is Freeciv version 3.2.1, gui-gtk-4.0 client.
Built against gtk 4.20.3, using 4.20.3
Built against glib 2.86.2, using 2.86.3

Actions #3

Updated by Marko Lindqvist 5 days ago

Unfortunately I'm unable to reproduce the crash. I tried also on a Manjaro VM (closest thing I have to Arch), to no avail.

Actions #4

Updated by Andrea Maria Marconi 5 days ago

How can I help you in understanding what is the problem?
Will a saved game possibly help you in this? or there is any debug mode I can activate and make the crash happen so that you can get some sort of crash report?
In my version happens any time I right click to activate a fortified or a sentinel unit inside a town or a transport ship.
Please tell me if I can be of any help.

Actions #5

Updated by Marko Lindqvist 5 days ago

Now that you said "fortified or sentried" I managed to reproduce. Just needed to sentry the unit first.

Actions #6

Updated by Andrea Maria Marconi 5 days ago

Sorry for not being precise, but great that you came to reproduce it so you can probably solve it.

Updated by Marko Lindqvist 5 days ago

This will be very hard to fix correctly (see FIXME comments in the patch), but this patch should at least stop it from crashing.

Actions #8

Updated by Marko Lindqvist 5 days ago

Somehow other clients seem to get away with having similar code to what gtk4-client had. Not sure how.

Actions #9

Updated by Marko Lindqvist 5 days ago

  • Subject changed from client crash at mouse right click to gtk4: client crash at citydlg mouse right click
Actions #10

Updated by Marko Lindqvist 5 days ago

Actions #11

Updated by Andrea Maria Marconi 5 days ago

My thanks and congratulations to you for solving an annoying issue. If I understood correctly will be solved in the release 3.2.3.

Actions #12

Updated by Andrea Maria Marconi 5 days ago

Or there is a way I can use those files you posted?

Actions #13

Updated by Marko Lindqvist 4 days ago

Andrea Maria Marconi wrote in #note-11:

If I understood correctly will be solved in the release 3.2.3.

That's the goal. Currently patch is in review and testing, not yet merged to the source code repository.

You can use the source code patch (only) if you build freeciv from source yourself.

Actions #14

Updated by Francisco Schwarz 2 days ago

Had the same bug on my Win11 system as well. A.e. have the same bug. I also run Freeciv 3.2.1 gtk4 client downloaded from sourceforge. (just for confirmation).

Actions

Also available in: Atom PDF