Closed pjrobertson closed 12 years ago
Happened again whilst I was searching the catalog :(
Application Specific Information:
objc_msgSend() selector name: objectIconModified:
[snip]
Thread 6 Crashed:: Dispatch queue: com.apple.root.high-priority
0 libobjc.A.dylib 0x00007fff91ffa250 objc_msgSend + 16
1 com.apple.CoreFoundation 0x00007fff933fe47a _CFXNotificationPost + 2554
2 com.apple.Foundation 0x00007fff91c82846 -[NSNotificationCenter postNotificationName:object:userInfo:] + 64
3 com.blacktree.QSCore 0x00000001000e1d9c -[QSFileSystemObjectHandler previewIcon:] + 891
4 libdispatch.dylib 0x00007fff94439f01 _dispatch_call_block_and_release + 15
5 libdispatch.dylib 0x00007fff944360b6 _dispatch_client_callout + 8
6 libdispatch.dylib 0x00007fff944371fa _dispatch_worker_thread2 + 304
7 libsystem_c.dylib 0x00007fff965facab _pthread_wqthread + 404
8 libsystem_c.dylib 0x00007fff965e5171 start_wqthread + 13
Looks like a notification tried to call -objectIconModified:
on a deallocated object...
Don't the objects unregister frim that notification when they are deallocated?
Don't the objects unregister frim that notification when they are deallocated?
Just checked the code, and no - they don't.
I guess adding [[NSNotificationCenter defaultCenter] removeObserver:self];
to the QSObject dealloc
method should fix it :)
Probably in QSResultController
too. Proxy objects could also potentially be affected, if they somehow get released before the cache expires, but since they inherit from QSObject
, we shouldn't need to address them specifically.
Just got this crash. Wasn't really doing much (browsing files), but it seems to be related to icon loading