Skip to content

Constraints crash #148

Open
Open
@wojciech-kulik

Description

@wojciech-kulik

First of all, thank you for this nice library, I really like it!

From time to time I get this crash from my app:

Unable to activate constraint with anchors <NSLayoutXAxisAnchor:0x600000fc80c0 "NSLayoutGuide:0x6000023b40e0.trailing"> and <NSLayoutXAxisAnchor:0x600000fc9a80 "NSLayoutGuide:0x6000023b42a0.trailing"> because they have no common ancestor. Does the constraint or its anchors reference items in different view hierarchies? That's illegal.

Fatal Exception: NSGenericException
0  CoreFoundation                 0x105194 (Missing UUID 1643f3d9704937e4b844c0c0a42bde3b)
1  libobjc.A.dylib                0x18e04 (Missing UUID 3d936842590331adb1ae1de4f4b448a6)
2  CoreAutoLayout                 0x2c980 (Missing UUID 84856816715234d88ea3097c2ad163f9)
3  CoreAutoLayout                 0x2cb30 (Missing UUID 84856816715234d88ea3097c2ad163f9)
4  ShortcutRecorder               0xae5c -[SRRecorderControl updateActiveConstraints] + 698 (SRRecorderControl.m:698)
5  ShortcutRecorder               0xa71c __49-[SRRecorderControl endRecordingWithObjectValue:]_block_invoke_2 + 636 (SRRecorderControl.m:636)
6  libsystem_trace.dylib          0x7b90 (Missing UUID 42ebf115c7113f7a95f73be2f0bf0890)
7  ShortcutRecorder               0xa544 -[SRRecorderControl endRecordingWithObjectValue:] + 636 (SRRecorderControl.m:636)
8  libsystem_trace.dylib          0x7b90 (Missing UUID 42ebf115c7113f7a95f73be2f0bf0890)
9  ShortcutRecorder               0xa3b8 -[SRRecorderControl endRecording] + 609 (SRRecorderControl.m:609)
10 ShortcutRecorder               0xdea8 -[SRRecorderControl abortEditing] + 1313 (SRRecorderControl.m:1313)
11 AppKit                         0x102a20 (Missing UUID 07bc3607552a3eb9a9414911c589dbc5)
12 ShortcutRecorder               0x858c -[SRRecorderControl dealloc] + 138 (SRRecorderControl.m:138)
13 libobjc.A.dylib                0xe2b4 (Missing UUID 3d936842590331adb1ae1de4f4b448a6)
14 libobjc.A.dylib                0xab34 (Missing UUID 3d936842590331adb1ae1de4f4b448a6)
15 CoreFoundation                 0x422c4 (Missing UUID 1643f3d9704937e4b844c0c0a42bde3b)
16 Foundation                     0x3534c (Missing UUID 59ff845a05b23b64ae066ef1d6aee83e)
17 AppKit                         0x32014 (Missing UUID 07bc3607552a3eb9a9414911c589dbc5)
18 AppKit                         0x36fc (Missing UUID 07bc3607552a3eb9a9414911c589dbc5)

My app is targeting macOS 11.0 and I'm using ShortcutRecorder 3.3.0. The last noticed crash was on macOS 12.5.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions