I am working on the master branch and a recent pod update caused my app to start instant crashing at a new main thread assert in the dealloc method of ASTextKitComponents, which I noticed was added recently in the commit here
After struggling to find what was causing it for ages, I eventually worked out that it simply seemed to be caused by having an ASEditableTextNode as a child of an ASCellNode in an ASCollectionNode. To confirm this I managed to retro-fit an example Texture project which I created a few weeks ago to demonstrate another issue. I have attached this here:
TextureGifMemoryBug ASEditableTextNode Crash.zip
The project was originally created to demonstrate a memory issue using gifs. As such when you run the project you'll see an ASCollectionNode with a lot of gifs. To demonstrate the crash issue discussed above, all you have to do is go into the GifCellNode class and unblock the line of code at the top of layoutSpecThatFits: that says:
return [ASWrapperLayoutSpec wrapperWithLayoutElement:self.editableTextNode];
This will switch the cells to instead use a simple ASEditableTextNode created in the init method, and as you will see will instantly crash the app on the assert added in the commit noted above.
@maicki maybe you can help?
I am working on the master branch and a recent
pod updatecaused my app to start instant crashing at a new main thread assert in the dealloc method ofASTextKitComponents, which I noticed was added recently in the commit hereAfter struggling to find what was causing it for ages, I eventually worked out that it simply seemed to be caused by having an
ASEditableTextNodeas a child of anASCellNodein anASCollectionNode. To confirm this I managed to retro-fit an example Texture project which I created a few weeks ago to demonstrate another issue. I have attached this here:TextureGifMemoryBug ASEditableTextNode Crash.zip
The project was originally created to demonstrate a memory issue using gifs. As such when you run the project you'll see an
ASCollectionNodewith a lot of gifs. To demonstrate the crash issue discussed above, all you have to do is go into theGifCellNodeclass and unblock the line of code at the top oflayoutSpecThatFits:that says:This will switch the cells to instead use a simple
ASEditableTextNodecreated in theinitmethod, and as you will see will instantly crash the app on the assert added in the commit noted above.@maicki maybe you can help?