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

Crash upon accessing anything from Lumos.getAllClasses() #4

Closed
reenboog opened this issue Aug 13, 2018 · 4 comments
Closed

Crash upon accessing anything from Lumos.getAllClasses() #4

reenboog opened this issue Aug 13, 2018 · 4 comments

Comments

@reenboog
Copy link

Doing something like this:

let classes =  Lumos.getAllClasses().filter { b in
      return true
}
        
print(classes[0].description())

crashes with:

[ description] sent to deallocated instance 0x123195e58

The filtered array wasn't empty, sure thing. Xcode 9.4.1.

@sushinoya
Copy link
Owner

Hmm thats odd, where are you calling the method from?

@reenboog
Copy link
Author

Just straight in didFinishLaunchingWithOptions.

@sushinoya
Copy link
Owner

sushinoya commented Aug 13, 2018

Might be a runloop issue, try:

DispatchQueue.main.async {
    let classes =  Lumos.getAllClasses().filter { b in
        return true
    }
    print(classes[0].description())
}

@sushinoya
Copy link
Owner

@reenboog Do let me know in the next two days if that does not fix your 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

2 participants