Project

General

Profile

Actions

Bug #1865

open

Qt: Segmentation fault; Storms have no player.

Added by John Robertson 2 days ago. Updated about 9 hours ago.

Status:
In Review
Priority:
Normal
Category:
Qt-client
Target version:
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

fc-T0142-Y00820-manual.sav (4.85 MB) fc-T0142-Y00820-manual.sav John Robertson, 01/05/2026 12:17 PM
clipboard-202601050320-pf1vi.png (651 KB) clipboard-202601050320-pf1vi.png John Robertson, 01/05/2026 12:20 PM
1865.patch (987 Bytes) 1865.patch John Robertson, 01/05/2026 12:23 PM
0056-Qt-Fix-flagless-unit-crash-on-action-selection-dialo.patch (1.89 KB) 0056-Qt-Fix-flagless-unit-crash-on-action-selection-dialo.patch Marko Lindqvist, 01/07/2026 01:22 AM

Related issues 1 (1 open0 closed)

Related to Bug #1867: gtk: Action selection dialog crash with flagless unitNew01/05/2026

Actions
Actions #1

Updated by John Robertson 2 days ago

Actions #2

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

Actions #3

Updated by Marko Lindqvist 2 days ago

  • Related to Bug #1867: gtk: Action selection dialog crash with flagless unit added
Actions #4

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

Actions #5

Updated by Marko Lindqvist about 9 hours ago

Even flagless targets should give the same basic message, just without the owner information.

My proposal for the fix attached.

Actions

Also available in: Atom PDF