AdvancedCollectionView icon indicating copy to clipboard operation
AdvancedCollectionView copied to clipboard

Crash in [AAPLLoadingProgress doneWithNewState:error:update:]

Open mixtly87 opened this issue 9 years ago • 3 comments

I'm often getting crash in [AAPLLoadingProgress doneWithNewState:error:update:]_block_invoke + 8

I can't reproduce it myself but I see it on crash analytics tool. Is anyone affected by same issue?

mixtly87 avatar Feb 14 '16 10:02 mixtly87

I am having an issue with this method as well, specifically with the 'completion method called more than once' assertion. I have been banging my head against a wall with this for a day now.

inPhilly avatar Jun 22 '16 23:06 inPhilly

@mixtly87 did you happen to come up with a solution to your issue? I see that you posted this way back in February.

inPhilly avatar Jun 22 '16 23:06 inPhilly

This is more than a year late. I just ran into this problem where the app hit EXC_BAD_ACCESS. Seems that the updateWithContent is being called successively due to a race condition in my code.

To prevent this, I now check to see if the AAPLLoadingProgress's isCanceled is true. If it is, then I don't proceed with he AAPLLoadingProgress's updateWithContent call.

Seems to work OK even I could simulate the race condition.

Hope it helps.

yumcious avatar Dec 26 '17 10:12 yumcious