Bug #1868
open
gtk4: client crash at citydlg mouse right click
Added by Andrea Maria Marconi 6 days ago.
Updated 2 days ago.
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 open — 0 closed)
Which client are you using? (gtk4/qt/gtk3.22/sdl2)
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
Unfortunately I'm unable to reproduce the crash. I tried also on a Manjaro VM (closest thing I have to Arch), to no avail.
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.
Now that you said "fortified or sentried" I managed to reproduce. Just needed to sentry the unit first.
Sorry for not being precise, but great that you came to reproduce it so you can probably solve it.
This will be very hard to fix correctly (see FIXME comments in the patch), but this patch should at least stop it from crashing.
Somehow other clients seem to get away with having similar code to what gtk4-client had. Not sure how.
- Subject changed from client crash at mouse right click to gtk4: client crash at citydlg mouse right click
My thanks and congratulations to you for solving an annoying issue. If I understood correctly will be solved in the release 3.2.3.
Or there is a way I can use those files you posted?
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.
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).
Also available in: Atom
PDF