TumblrArchive / TMCache

Fast parallel object cache for iOS and OS X.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

crash in NSKeyedUnarchiver unarchiveObjectWithFile

tjcsr opened this issue · comments

commented

image

image

same problem. after awake from background, memory cache has been cleared, it use disk cache, and stop at this line, this will block the waiting thread.This just happened in my latest version of App, I' m now trying to find out what i changed in last two versions.

normal:
thread1(wait) --> readFromDisk in thread2 --> init a model, return model --> thread1(continue)
block:
thread1(wait) --> readFromDisk in thread2--> init a model, in init method, use TMCache read another value --> thread2(wait) --> thread2(locked)