Messages: Calling cachedImageData from thread other than main thread

Originator:dieter.komendera
Number:rdar://21138280 Date Originated:28-May-2015 11:30 AM
Status:Open Resolved:
Product:OS X Product Version:Mac OS X 10.10.3 (14D136)
Classification:Performance Reproducible:Always
 
Summary:

Switching between message threads which contain images print a lot of those warnings to the system log

28/05/15 11:00:19,254 Messages[408]: [Warning] Calling cachedImageData from thread other than main thread.
(
	0   IMRenderingFoundation               0x00007fff912bd31b -[IMPerson(IMRenderingUtilities) cachedImageData] + 99
	1   IMRenderingFoundation               0x00007fff912bb827 -[Presentity customPicture] + 92
	2   IMRenderingFoundation               0x00007fff912bb1d3 -[IMHandle(IMRenderingUtilities) monogramWithDiameter:style:blocking:] + 539
	3   IMRenderingFoundation               0x00007fff912c7f12 -[TranscriptImageResourceProtocol requestResourceData:fromURL:] + 9964
	4   IMRenderingFoundation               0x00007fff912c572b -[TranscriptImageResourceProtocol startLoading] + 140
	5   CFNetwork                           0x00007fff8e33cd94 ___ZN19URLConnectionLoader27_private_ScheduleOriginLoadEPK12NSURLRequestPK20_CFCachedURLResponse_block_invoke_2 + 61
	6   CFNetwork                           0x00007fff8e33cd2b ___ZNK19URLConnectionLoader25withExistingProtocolAsyncEU13block_pointerFvP11URLProtocolE_block_invoke + 25
	7   CFNetwork                           0x00007fff8e33ccec _ZN19RunloopBlockContext13_invoke_blockEPKvPv + 72
	8   CoreFoundation                      0x00007fff9ba7a664 CFArrayApplyFunction + 68
	9   CFNetwork                           0x00007fff8e33cbad _ZN19RunloopBlockContext7performEv + 133
	10  CFNetwork                           0x00007fff8e33c998 _ZN17MultiplexerSource7performEv + 282
	11  CFNetwork                           0x00007fff8e33c7ba _ZN17MultiplexerSource8_performEPv + 72
	12  CoreFoundation                      0x00007fff9baaea01 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
	13  CoreFoundation                      0x00007fff9baa0b8d __CFRunLoopDoSources0 + 269
	14  CoreFoundation                      0x00007fff9baa01bf __CFRunLoopRun + 927
	15  CoreFoundation                      0x00007fff9ba9fbd8 CFRunLoopRunSpecific + 296
	16  CFNetwork                           0x00007fff8e32f220 +[NSURLConnection(Loader) _resourceLoadLoop:] + 434
	17  Foundation                          0x00007fff8c5c0dc2 __NSThread__main__ + 1345
	18  libsystem_pthread.dylib             0x00007fff99b5c268 _pthread_body + 131
	19  libsystem_pthread.dylib             0x00007fff99b5c1e5 _pthread_body + 0
	20  libsystem_pthread.dylib             0x00007fff99b5a41d thread_start + 13
)


Steps to Reproduce:
Open Messages.app and switch between threads which contain images

Expected Results:
No warning printed to the system log

Actual Results:
Warning printed

Regression:
n/a

Notes:
n/a

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!