Skip to content

EXC_BAD_ACCESS switching from 4.0.0 to 4.1.0+ #64

Description

@thomasneuteboom

I get a bad access exception by switching the version from 4.0.0 to 4.1.0 (or higher):

Internal.swift
line 155: switch (first, anchors.first, second, anchors.second) {

Full error:
Thread 1: EXC_BAD_ACCESS (code=1, address=0x600100000000)

By calling horizontalAnchors in a custom UIView.

//...
private let containerView: UIView

override init(frame: CGRect) {
    
    //...
    super.init(frame: frame)

    self.addSubview(self.containerView)

    self.containerView.horizontalAnchors == self.horizontalAnchors // Runtime error here.
}
//...

I've tried searching for any associated zombie objects, but couldn't find any.

Everything is working fine prior to version 4.1.

Did something significant change between the versions that I am not aware of? Or am I looking over something trivial?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions