View Issue Details

IDProjectCategoryView StatusLast Update
0008721Dwarf FortressTechnical -- Generalpublic2018-07-25 07:15
Reporterlethosor Assigned Tolethosor  
PriorityhighSeverityblockReproducibilitysometimes
Status confirmedResolutionopen 
PlatformMacOSOS X 
Summary0008721: Dialog boxes can fail to display properly, leaving an undismissable "white box" (sometimes) and freezing DF
DescriptionAt least, this is suggested by the message logged to the console when the dialog is displayed:
"NSAlert is being used from a background thread, which is not safe. This is probably going to crash sometimes. Break on _NSAlertWarnUnsafeBackgroundThreadUsage to debug. This will be logged only once. This may break in the future."
Additional InformationThis is the cause of the behavior noted in several bug reports, like 0005859 and 0008720.
TagsNo tags attached.

Relationships

related to 0007456 resolveduser1294 Crash shortly after unpausing 
related to 0006369 resolveduser6 When entering town, crashes every time 
related to 0005859 new Crashes when save is loaded and unpaused for about 10 seconds 
related to 0008720 resolvedlethosor After installing graphics, game freezes upon selecting world gen. 
related to 0003090 resolveduser6 White box appears above all windows, pinwheel of death, DF locks up 
related to 0006915 resolvedToady One Crash when starting adventurer in retired fortress 

Activities

lethosor

2018-07-25 07:13

manager   ~0038628

Last edited: 2018-07-25 07:14

Still occurs in 0.44.12, on macOS 10.13, but with a slightly different error:
2018-07-25 09:15:38.075 dwarfort.exe[98638:20165146] NSRunAlertPanel may only be invoked from the main thread. Behavior on other threads is undefined. (
        0   AppKit                              0x00007fff41460dcd NSRunAlertPanel + 420
        1   dwarfort.exe                        0x00000001011e3a26 dwarfort.exe + 18758182
)

No white box comes up at all - DF just freezes.

Add Note

Note

Issue History

Date Modified Username Field Change
2015-01-10 13:16 lethosor New Issue
2015-01-10 13:16 lethosor Status new => assigned
2015-01-10 13:16 lethosor Assigned To => lethosor
2015-01-10 13:18 lethosor Relationship added related to 0007456
2015-01-10 13:18 lethosor Relationship added related to 0006369
2015-01-10 13:18 lethosor Relationship added related to 0005859
2015-01-10 13:18 lethosor Relationship added related to 0008720
2015-01-10 13:20 lethosor Relationship added related to 0003090
2015-01-10 13:20 lethosor Relationship added related to 0006915
2015-01-10 13:20 lethosor Status assigned => confirmed
2015-01-10 13:20 lethosor Status confirmed => acknowledged
2018-07-25 07:13 lethosor Note Added: 0038628
2018-07-25 07:13 lethosor Status acknowledged => confirmed
2018-07-25 07:14 lethosor Note Edited: 0038628
2018-07-25 07:15 lethosor Summary NSAlert dialog boxes created in other threads can fail to display properly, leaving an undismissable "white box" => Dialog boxes can fail to display properly, leaving an undismissable "white box" (sometimes) and freezing DF