Actions
Bug #1865
openQt: Segmentation fault; Storms have no player.
Start date:
01/05/2026
Due date:
% Done:
0%
Estimated time:
Description
On a lark, I had a Spy attack a Storm.
Insta-BOOM, evidently, Storms do not belong to a player.
Thus calls operating on `unit_owner(target_unit)` cause a segmentation fault.
Applying the patch, shows the 'Choose Your Strategy' dialog.
Files
Updated by Marko Lindqvist 2 days ago
- Target version set to 3.3.0
Loading that savegame gives also some errors not related to the bug in this ticket -> Opened #1866
Updated by Marko Lindqvist 2 days ago
- Related to Bug #1867: gtk: Action selection dialog crash with flagless unit added
Updated by Marko Lindqvist 2 days ago
- Subject changed from Segmentation fault; Storms have no player. to Qt: Segmentation fault; Storms have no player.
gtk-clients (at least gtk4) have the similar bug -> #1867
Updated by Marko Lindqvist about 9 hours ago
- File 0056-Qt-Fix-flagless-unit-crash-on-action-selection-dialo.patch 0056-Qt-Fix-flagless-unit-crash-on-action-selection-dialo.patch added
- Status changed from New to In Review
- Assignee set to Marko Lindqvist
Even flagless targets should give the same basic message, just without the owner information.
My proposal for the fix attached.
Actions