Bug #1868
opengtk4: client crash at citydlg mouse right click
0%
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
Updated by Marko Lindqvist 5 days ago
Which client are you using? (gtk4/qt/gtk3.22/sdl2)
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
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.
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.
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.
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
- File 0055-gtk4-x-Fix-sentried-unit-crash-on-right-click-on-cit.patch 0055-gtk4-x-Fix-sentried-unit-crash-on-right-click-on-cit.patch added
- File 0038-gtk4-Fix-sentried-unit-crash-on-right-click-on-city-.patch 0038-gtk4-Fix-sentried-unit-crash-on-right-click-on-city-.patch added
- Category set to gtk4-client
- Status changed from New to In Review
- Assignee set to Marko Lindqvist
- Target version set to 3.2.3
This will be very hard to fix correctly (see FIXME comments in the patch), but this patch should at least stop it from crashing.
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.
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
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.
Updated by Andrea Maria Marconi 5 days ago
Or there is a way I can use those files you posted?
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.
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).