rescomputer / res-ios

Res is real computer speech, talk with an AI that listens and can hold a conversation with you.
https://res.computer
38 stars 1 forks source link

🚫 Broken constraints in textbox for custom prompt #20

Open ricburton opened 5 months ago

ricburton commented 5 months ago

When you tap to edit the prompt you get these errors

Logging Error: Failed to initialize logging system. Log messages may be missing. If this issue persists, try setting IDEPreferLogStreaming=YES in the active scheme actions environment variables.
Unable to simultaneously satisfy constraints.
    Probably at least one of the constraints in the following list is one you don't want. 
    Try this: 
        (1) look at each constraint and try to figure out which you don't expect; 
        (2) find the code that added the unwanted constraint or constraints and fix it. 
    (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
(
    "<NSAutoresizingMaskLayoutConstraint:0x30013c9b0 h=--& v=--& _UIToolbarContentView:0x10542a7d0.width == 0   (active)>",
    "<NSLayoutConstraint:0x3001fc9b0 H:|-(0)-[_UIButtonBarStackView:0x10542ab80]   (active, names: '|':_UIToolbarContentView:0x10542a7d0 )>",
    "<NSLayoutConstraint:0x3001fca00 H:[_UIButtonBarStackView:0x10542ab80]-(0)-|   (active, names: '|':_UIToolbarContentView:0x10542a7d0 )>",
    "<NSLayoutConstraint:0x300102e90 'TB_Leading_Leading' H:|-(16)-[_UIModernBarButton:0x101227660'Done']   (active, names: '|':_UIButtonBarButton:0x101227260 )>",
    "<NSLayoutConstraint:0x300102e40 'TB_Trailing_Trailing' H:[_UIModernBarButton:0x101227660'Done']-(16)-|   (active, names: '|':_UIButtonBarButton:0x101227260 )>",
    "<NSLayoutConstraint:0x300102670 'UISV-canvas-connection' UILayoutGuide:0x301bb4e00'UIViewLayoutMarginsGuide'.leading == _UIButtonBarButton:0x101227260.leading   (active)>",
    "<NSLayoutConstraint:0x300102580 'UISV-canvas-connection' UILayoutGuide:0x301bb4e00'UIViewLayoutMarginsGuide'.trailing == UIView:0x101272460.trailing   (active)>",
    "<NSLayoutConstraint:0x300102940 'UISV-spacing' H:[_UIButtonBarButton:0x101227260]-(0)-[UIView:0x101272460]   (active)>",
    "<NSLayoutConstraint:0x3001fc8c0 'UIView-leftMargin-guide-constraint' H:|-(0)-[UILayoutGuide:0x301bb4e00'UIViewLayoutMarginsGuide'](LTR)   (active, names: '|':_UIButtonBarStackView:0x10542ab80 )>",
    "<NSLayoutConstraint:0x3001fc960 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x301bb4e00'UIViewLayoutMarginsGuide']-(0)-|(LTR)   (active, names: '|':_UIButtonBarStackView:0x10542ab80 )>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x300102e40 'TB_Trailing_Trailing' H:[_UIModernBarButton:0x101227660'Done']-(16)-|   (active, names: '|':_UIButtonBarButton:0x101227260 )>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.
<0x101306580> Gesture: System gesture gate timed out.
Unable to simultaneously satisfy constraints.
    Probably at least one of the constraints in the following list is one you don't want. 
    Try this: 
        (1) look at each constraint and try to figure out which you don't expect; 
        (2) find the code that added the unwanted constraint or constraints and fix it. 
    (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
(
    "<NSAutoresizingMaskLayoutConstraint:0x3001013b0 h=--& v=--& _UIToolbarContentView:0x100823530.width == 0   (active)>",
    "<NSLayoutConstraint:0x300108be0 H:|-(0)-[_UIButtonBarStackView:0x1008238e0]   (active, names: '|':_UIToolbarContentView:0x100823530 )>",
    "<NSLayoutConstraint:0x300108fa0 H:[_UIButtonBarStackView:0x1008238e0]-(0)-|   (active, names: '|':_UIToolbarContentView:0x100823530 )>",
    "<NSLayoutConstraint:0x300110f00 'TB_Leading_Leading' H:|-(16)-[_UIModernBarButton:0x101215260'Done']   (active, names: '|':_UIButtonBarButton:0x101288a80 )>",
    "<NSLayoutConstraint:0x300110b40 'TB_Trailing_Trailing' H:[_UIModernBarButton:0x101215260'Done']-(16)-|   (active, names: '|':_UIButtonBarButton:0x101288a80 )>",
    "<NSLayoutConstraint:0x300111090 'UISV-canvas-connection' UILayoutGuide:0x301ba8b60'UIViewLayoutMarginsGuide'.leading == _UIButtonBarButton:0x101288a80.leading   (active)>",
    "<NSLayoutConstraint:0x3001110e0 'UISV-canvas-connection' UILayoutGuide:0x301ba8b60'UIViewLayoutMarginsGuide'.trailing == UIView:0x10126c160.trailing   (active)>",
    "<NSLayoutConstraint:0x300111db0 'UISV-spacing' H:[_UIButtonBarButton:0x101288a80]-(0)-[UIView:0x10126c160]   (active)>",
    "<NSLayoutConstraint:0x300108730 'UIView-leftMargin-guide-constraint' H:|-(0)-[UILayoutGuide:0x301ba8b60'UIViewLayoutMarginsGuide'](LTR)   (active, names: '|':_UIButtonBarStackView:0x1008238e0 )>",
    "<NSLayoutConstraint:0x300108f50 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x301ba8b60'UIViewLayoutMarginsGuide']-(0)-|(LTR)   (active, names: '|':_UIButtonBarStackView:0x1008238e0 )>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x300110b40 'TB_Trailing_Trailing' H:[_UIModernBarButton:0x101215260'Done']-(16)-|   (active, names: '|':_UIButtonBarButton:0x101288a80 )>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.
stevesarmiento commented 5 months ago

I think this is happening after adding the custom textbox to the modal.

looking into it, I get the same error on local builds.