Autolayout(?) question


John Brownie
 

Running Xcode 9.4.1 on macOS 10.4.2, when I click on a combo box in a window, in the debugger I get an exception:
[General] The window has been marked as needing another Display Window pass, but it has already had 3 Display Window passes. Future marking as needing Display Window might be ignored.
Nothing appears to be complaining about ambiguous constraints, and searching for that message produced no hits.

Anybody have a clue what to look at?

Thanks,
John
--
John Brownie
Mussau-Emira language, New Ireland Province, Papua New Guinea
Kouvola, Finland


John Brownie
 

Nobody? Here's the backtrace, if it helps:

    0   AppKit                              0x00007fff29b3657e -[NSWindow(NSDisplayCycle) _postWindowNeedsDisplayUnlessPostingDisabled] + 1964
    1   AppKit                              0x00007fff29bc65b1 -[NSWindow _enablePosting] + 302
    2   AppKit                              0x00007fff29bbf1f1 -[NSView _oldDisplayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 2598
    3   AppKit                              0x00007fff29bbe569 -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 253
    4   AppKit                              0x00007fff29bbb152 -[NSView displayIfNeeded] + 1300
    5   AppKit                              0x00007fff29bb7ee8 -[NSWindow displayIfNeeded] + 283
    6   AppKit                              0x00007fff29bb7d27 __NSWindowGetDisplayCycleObserverForDisplay_block_invoke + 722
    7   AppKit                              0x00007fff29bb2e2a NSDisplayCycleObserverInvoke + 170
    8   AppKit                              0x00007fff29bb299f NSDisplayCycleFlush + 1073
    9   QuartzCore                          0x00007fff3751153b _ZN2CA11Transaction19run_commit_handlersE18CATransactionPhase + 49
    10  QuartzCore                          0x00007fff37510f02 _ZN2CA11Transaction6commitEv + 186
    11  AppKit                              0x00007fff29bb2305 __65+[CATransaction(NSCATransaction) NS_setFlushesWithDisplayRefresh]_block_invoke + 274
    12  CoreFoundation                      0x00007fff2c5bb9cd __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
    13  CoreFoundation                      0x00007fff2c5bb902 __CFRunLoopDoObservers + 452
    14  CoreFoundation                      0x00007fff2c55d429 __CFRunLoopRun + 1166
    15  CoreFoundation                      0x00007fff2c55cd48 CFRunLoopRunSpecific + 463
    16  HIToolbox                           0x00007fff2b7f3ab5 RunCurrentEventLoopInMode + 293
    17  HIToolbox                           0x00007fff2b7f36f4 ReceiveNextEventCommon + 371
    18  HIToolbox                           0x00007fff2b7f3568 _BlockUntilNextEventMatchingListInModeWithFilter + 64
    19  AppKit                              0x00007fff29aae363 _DPSNextEvent + 997
    20  AppKit                              0x00007fff29aad102 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1362
    21  AppKit                              0x00007fff2a043eae -[NSComboBoxCell filterEvents:] + 2747
    22  AppKit                              0x00007fff2a044d48 -[NSComboBoxCell popUp:] + 558
    23  AppKit                              0x00007fff29da760b -[NSApplication(NSResponder) sendAction:to:from:] + 312
    24  AppKit                              0x00007fff29e128b6 -[NSControl sendAction:to:] + 86
    25  AppKit                              0x00007fff29e127e8 __26-[NSCell _sendActionFrom:]_block_invoke + 136
    26  AppKit                              0x00007fff29e126ea -[NSCell _sendActionFrom:] + 178
    27  AppKit                              0x00007fff29e3f755 -[NSButtonCell _sendActionFrom:] + 97
    28  AppKit                              0x00007fff29e91412 __48-[NSCell trackMouse:inRect:ofView:untilMouseUp:]_block_invoke + 82
    29  AppKit                              0x00007fff29e10b7d -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 1231
    30  AppKit                              0x00007fff29e3f4a9 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 698
    31  AppKit                              0x00007fff2a0430bf -[NSComboBoxCell trackMouse:inRect:ofView:untilMouseUp:] + 532
    32  AppKit                              0x00007fff2a04101c -[NSComboBox mouseDown:] + 345
    33  AppKit                              0x00007fff29ce91eb -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 5668
    34  AppKit                              0x00007fff29c1d223 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 2319
    35  AppKit                              0x00007fff29c1c6c9 -[NSWindow(NSEventRouting) sendEvent:] + 481
    36  AppKit                              0x00007fff29ab9954 -[NSApplication(NSEvent) sendEvent:] + 336
    37  AppKit                              0x00007fff29aa719d -[NSApplication run] + 755
    38  AppKit                              0x00007fff29a968a3 NSApplicationMain + 780
    39  Ukelele                             0x00000001001f3310 main + 48
    40  libdyld.dylib                       0x00007fff5979eed9 start + 1
    41  ???                                 0x0000000000000003 0x0 + 3


John Brownie
 

I should add that it's a window in my app, not in Xcode. Running outside the debugger, it appears to be fine, but the exception stops me being able to check on some other issues related to the window's functionality.

John


Gary L. Wade
 

It could only be an issue while using the debugger; is there a reason for not using a more modern Xcode?  Regardless, you should definitely file a bug report, including a sysdiagnose, your log from the LLDB console, and possibly a screen recording of it happening. If you’ve got a small enough app that can reproduce it, include that as well. There’s also some graphics debugging tools you could use to dirty views in different colors that might be useful.

On Dec 13, 2018, at 8:00 AM, John Brownie <john_brownie@...> wrote:

I should add that it's a window in my app, not in Xcode. Running outside the debugger, it appears to be fine, but the exception stops me being able to check on some other issues related to the window's functionality.

John


John Brownie
 

I will file a bug. The reason for using Xcode 9 is that there's a library that depends on the GNU stdc++ library, and the effort to bring that into Xcode 10 is too much to bother at this point.

I haven't used the graphics debugging tools much, but they don't seem to help. I can't get at the ones under Rendering, as they are all disabled.

John

Gary L. Wade wrote on 13/12/18 22:32:

It could only be an issue while using the debugger; is there a reason for not using a more modern Xcode?  Regardless, you should definitely file a bug report, including a sysdiagnose, your log from the LLDB console, and possibly a screen recording of it happening. If you’ve got a small enough app that can reproduce it, include that as well. There’s also some graphics debugging tools you could use to dirty views in different colors that might be useful.

On Dec 13, 2018, at 8:00 AM, John Brownie <john_brownie@...> wrote:

I should add that it's a window in my app, not in Xcode. Running outside the debugger, it appears to be fine, but the exception stops me being able to check on some other issues related to the window's functionality.

John

--
John Brownie
Mussau-Emira language, New Ireland Province, Papua New Guinea
Kouvola, Finland