NSLog hangs on long strings when iOS app launched by UIAutomation

Originator:mpatey
Number:rdar://18765797 Date Originated:24-Oct-2014
Status:Open Resolved:
Product:Instruments Product Version:XCode 6.1
Classification: Reproducible:100%
 
Summary:
When an iOS 8 app is launched by instruments UIAutomation (XCode 6) calls to NSLog in the iOS app with sufficiently long strings do not return. More specifically I have seen this occur from a background thread while attempting to log a string of length circa 15,000 characters. Note that the log message makes it to the console, but the call to NSLog blocks forever. Additionally, other threads that call NSLog after this occurs will print the message to the console then hang, regardless of string length.

Steps to Reproduce:
write a test app that logs a string of length 15,000 characters.
Launch via Instruments UIAutomation.

Expected Results:
Proper behavior would be the thread continuing on it's merry way after calling NSLog

Actual Results:
Thread that called NSLog will hang, attaching a debugger will show the thread's callstack in the innards of NSLog. The string that was passed to NSLog does, however, get printed to the Console

Comments

I have the same problem

Has anyone submitted this to bugreport.apple.com?

By James.MacDonald at Dec. 4, 2015, 3:51 p.m. (reply...)

I got the same problem

I got the same problem! Hope this issue can be fixed asap. :) Thanks for this information!

By ChloeChen727 at Feb. 4, 2015, 6:43 a.m. (reply...)

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!