Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0008721Dwarf FortressTechnical -- Generalpublic2015-01-10 13:162018-07-25 07:15
lethosor 
lethosor 
highblocksometimes
confirmedopen 
MacOS X
 
 
0008721: Dialog boxes can fail to display properly, leaving an undismissable "white box" (sometimes) and freezing DF
At 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."
This is the cause of the behavior noted in several bug reports, like 0005859 and 0008720.
No tags attached.
related to 0007456resolved Knight Otu Crash shortly after unpausing 
related to 0006369resolved Footkerchief When entering town, crashes every time 
related to 0005859new  Crashes when save is loaded and unpaused for about 10 seconds 
related to 0008720resolved lethosor After installing graphics, game freezes upon selecting world gen. 
related to 0003090resolved Footkerchief White box appears above all windows, pinwheel of death, DF locks up 
related to 0006915resolved Toady One Crash when starting adventurer in retired fortress 
Issue History
2015-01-10 13:16lethosorNew Issue
2015-01-10 13:16lethosorStatusnew => assigned
2015-01-10 13:16lethosorAssigned To => lethosor
2015-01-10 13:18lethosorRelationship addedrelated to 0007456
2015-01-10 13:18lethosorRelationship addedrelated to 0006369
2015-01-10 13:18lethosorRelationship addedrelated to 0005859
2015-01-10 13:18lethosorRelationship addedrelated to 0008720
2015-01-10 13:20lethosorRelationship addedrelated to 0003090
2015-01-10 13:20lethosorRelationship addedrelated to 0006915
2015-01-10 13:20lethosorStatusassigned => confirmed
2015-01-10 13:20lethosorStatusconfirmed => acknowledged
2018-07-25 07:13lethosorNote Added: 0038628
2018-07-25 07:13lethosorStatusacknowledged => confirmed
2018-07-25 07:14lethosorNote Edited: 0038628bug_revision_view_page.php?bugnote_id=0038628#r15710
2018-07-25 07:15lethosorSummaryNSAlert 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

Notes
(0038628)
lethosor   
2018-07-25 07:13   
(edited on: 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.