Skip to content

Layer backed subnode in ASCellNode causes memory related crash #621

Open
@njdehoog

Description

@njdehoog

For some reason defining a subnode of ASCellNode as being layer backed causes my app to sometimes crash when the view controller displaying those nodes is deallocated.

I'm including a sample project to demonstrate the issue:
Sample.zip

In order to reproduce the crash, you need to repeatedly present and dismiss the child view controller. At some point you will encounter some kind of memory issue, which sometimes includes the following error being logged to the console:

malloc: *** error for object 0x104710240: pointer being freed was not allocated

As far as I can tell, setting isLayerBacked to false in the BadgeNode prevents this crash. I have no idea why.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions