Skip to content

Showing subtitle panel triggers constraint errors #5027

@low-batt

Description

@low-batt

System and IINA version:

  • macOS 13.6.3
  • IINA develop at af17f11

Expected behavior:
IINA does not trigger constraint errors.

Actual behavior:
Showing the subtitle panel triggers constraint errors.

When the panel is opened the Xcode console shows the following errors:

Xcode console:
Unable to simultaneously satisfy constraints:
(
    "<NSLayoutConstraint:0x138f00ff0 H:[NSView:0x10e3d3400]-(0)-|   (active, names: '|':IINA.FlippedView:0x10e3d3900 )>",
    "<NSLayoutConstraint:0x138f00fa0 H:|-(0)-[NSView:0x10e3d3400]   (active, names: '|':IINA.FlippedView:0x10e3d3900 )>",
    "<NSLayoutConstraint:0x10d4fe6f0 H:|-(32)-[NSSlider:0x1143fab00]   (active, names: '|':NSView:0x10e3d3400 )>",
    "<NSLayoutConstraint:0x10d4ffaf0 H:[NSTextField:0x1153ab480]-(32)-|   (active, names: '|':NSView:0x10e3d3400 )>",
    "<NSLayoutConstraint:0x138f00b40 H:[IINA.FlippedView:0x10e3d3900]-(0)-|   (active, names: '|':NSClipView:0x1143f5400 )>",
    "<NSLayoutConstraint:0x138f00af0 H:|-(0)-[IINA.FlippedView:0x10e3d3900]   (active, names: '|':NSClipView:0x1143f5400 )>",
    "<NSLayoutConstraint:0x10d4faaf0 NSSlider:0x1143fab00.width == 240   (active)>",
    "<NSLayoutConstraint:0x10d4ffcd0 H:[NSSlider:0x1143fab00]-(8)-[NSTextField:0x1153ab800]   (active)>",
    "<NSLayoutConstraint:0x10d4fcdf0 NSTextField:0x1153ab800.width >= 50   (active)>",
    "<NSLayoutConstraint:0x10d4ffaa0 H:[NSTextField:0x1153ab800]-(0)-[NSTextField:0x1153ab480]   (active)>",
    "<NSAutoresizingMaskLayoutConstraint:0x138f14820 h=-&- v=-&- NSClipView:0x1143f5400.minX == 0   (active, names: '|':NSScrollView:0x10e46f400 )>",
    "<NSAutoresizingMaskLayoutConstraint:0x138f147d0 h=-&- v=-&- H:[NSClipView:0x1143f5400]-(15)-|   (active, names: '|':NSScrollView:0x10e46f400 )>",
    "<NSLayoutConstraint:0x138f00a50 H:[NSScrollView:0x10e46f400]-(0)-|   (active, names: '|':NSView:0x10e3d3b80 )>",
    "<NSLayoutConstraint:0x138f00a00 H:|-(0)-[NSScrollView:0x10e46f400]   (active, names: '|':NSView:0x10e3d3b80 )>",
    "<NSAutoresizingMaskLayoutConstraint:0x138f14460 h=-&- v=-&- NSView:0x10e3d3b80.minX == 0   (active, names: '|':NSTabView:0x114399600 )>",
    "<NSAutoresizingMaskLayoutConstraint:0x138f14410 h=-&- v=-&- H:[NSView:0x10e3d3b80]-(0)-|   (active, names: '|':NSTabView:0x114399600 )>",
    "<NSLayoutConstraint:0x10d47bc50 NSVisualEffectView:0x114383a00.width == 360   (active)>",
    "<NSLayoutConstraint:0x10d4df660 H:|-(0)-[IINA.QuickSettingView:0x10e3c6700]   (active, names: '|':NSVisualEffectView:0x114383a00 )>",
    "<NSLayoutConstraint:0x10d438130 H:[IINA.QuickSettingView:0x10e3c6700]-(0)-|   (active, names: '|':NSVisualEffectView:0x114383a00 )>",
    "<NSLayoutConstraint:0x138f00320 NSTabView:0x114399600.trailing == NSView:0x10e36e280.trailing   (active)>",
    "<NSLayoutConstraint:0x138f002d0 NSTabView:0x114399600.leading == NSView:0x10e36e280.leading   (active)>",
    "<NSLayoutConstraint:0x138f00460 H:[NSView:0x10e36e280]-(0)-|   (active, names: '|':IINA.QuickSettingView:0x10e3c6700 )>",
    "<NSLayoutConstraint:0x138f00410 H:|-(0)-[NSView:0x10e36e280]   (active, names: '|':IINA.QuickSettingView:0x10e3c6700 )>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x10d4fcdf0 NSTextField:0x1153ab800.width >= 50   (active)>

Set the NSUserDefault NSConstraintBasedLayoutVisualizeMutuallyExclusiveConstraints to YES to have -[NSWindow visualizeConstraints:] automatically called when this happens.  And/or, set a symbolic breakpoint on LAYOUT_CONSTRAINTS_NOT_SATISFIABLE to catch this in the debugger.

Steps to reproduce:

  • Start IINA running under Xcode

  • Click on Show Subtitles Panel under the Subtitles menu

  • Look for the errors in the Xcode console

  • MPV does not have this problem.

How often does this happen?
Every time.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions