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

ASImageNodeTintColorModificationBlock causes crash #1884

Open
CR34L opened this issue Jul 17, 2020 · 1 comment
Open

ASImageNodeTintColorModificationBlock causes crash #1884

CR34L opened this issue Jul 17, 2020 · 1 comment

Comments

@CR34L
Copy link

CR34L commented Jul 17, 2020

After upgrading from 2.x to 3.0 following issue encounters when applying ASImageNodeTintColorModificationBlock:

 convenience init(withTitle title: String, titleImage: UIImage?, badge: UIImage?) {
        self.init();
        iconNode.image = titleImage.withRenderingMode(.alwaysTemplate);
        iconNode.imageModificationBlock = ASImageNodeTintColorModificationBlock(.white); // app crashes
        iconNode.style.preferredSize = CGSize(width: 44, height: 44);
    }

Debugger output:
#0 0x0000000101116a88 in thunk for @escaping @callee_guaranteed (@guaranteed UIImage, @unowned ASPrimitiveTraitCollection) -> (@owned UIImage?) ()
#1 0x0000000102d5dfc4 in +[ASImageNode createContentsForkey:drawParameters:isCancelled:] ()

App crashed with EXC_BAD_ACCESS (code=1, address=0x30)

Any suggestions? Tried to put the block into mainthread but without success. It doesnt seems to be a threading issue.

@kervonryan
Copy link

@CR34L Ever got this fixed?

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