Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EXC_BAD_ACCESS switching from 4.0.0 to 4.1.0+ #64

Open
thomasneuteboom opened this issue Oct 9, 2018 · 4 comments
Open

EXC_BAD_ACCESS switching from 4.0.0 to 4.1.0+ #64

thomasneuteboom opened this issue Oct 9, 2018 · 4 comments

Comments

@thomasneuteboom
Copy link

thomasneuteboom commented Oct 9, 2018

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?

@ZevEisenberg
Copy link
Collaborator

Which version of Swift are you using?

@thomasneuteboom
Copy link
Author

Hi @ZevEisenberg, thanks for responding! We are using Swift 3.2.

@iBolom
Copy link

iBolom commented May 15, 2019

@ZevEisenberg Same problem with Swift 4.2, Xcode 10.1.

@ZevEisenberg
Copy link
Collaborator

Can anyone who is still seeing this (👋 @iBolom) please post a sample project that reproduces this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants