path / FastImageCache

iOS library for quickly displaying images while scrolling
MIT License
8.11k stars 935 forks source link

Fix for EXC_BAD_ACCESS from issue #161 #162

Closed Montana closed 2 years ago

Montana commented 2 years ago

Hey Pathies,

Right after I posted my issue I was able to figure out the solution/problem at hand was. I spent a couple hours tracking an EXC_BAD_ACCESS and found NSZombies and other environment variables didn't want to tell me much after probing them.

For me, it was a NSLog statement with format specifiers but no args passed:

NSLog(@"Some silly log message %@-%@");

Fixed by:

NSLog(@"Some silly log message %@-%@", someObj1, someObj2);

I also noticed I was actually passing this as an object to 'notify' (registered it as a listener) but it had already died once and the notification was sent basically to null and hence I'd get the EXC_BAD_ACCESS.