Xcode showing "beach ball" when logging a very long string trough NSLog

Originator:sophposh
Number:rdar://11972490 Date Originated:27-Jul-2012 12:41 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 4.4 / 4.5 DP 3
Classification:Crash/Hang/Data Loss Reproducible:always
 
Summary:

When logging a very long string trough NSLog Xcode completely freezes for a few minutes (aka beach balling). The debugged app runs without issues during that time but especially when you are debugging something its pretty annoying to wait a few minutes before Xcode becomes usable again.

Steps to Reproduce:

I attached a example project. Just hit "Run&Build". As soon as the app launches try to do something in Xcode and the beach ball will be shown. 

Expected Results:

No hang. Or at least not a hang which take several minutes.

Actual Results:

Xcode hangs for more then 2 minutes on my iMac i7

Regression:

The way we do the logging is the same for at least 6 month, so far (with Xcode 4.3 and smaller) I never had this issue, but it maybe the API results (which I log in this case) have not hit a certain threshold. I can't test this anymore since I upgraded to Xcode 4.4 and have no 4.3 available anymore.

I had this issue on Lion 10.7.4 with Xcode 4.4 and 4.5 DP 3. I also had a friend confirm it under Mountain Lion with Xcode 4.4. 

Notes:

I also attached the log which is shown when Xcode is killed during the hang. Everytime I did this Xcode was in the same method "icu::RegexMatcher::MatchChunkAt(int, signed char, UErrorCode&)" so maybe there is an issue with the Regex-Parsing in long strings.

Comments

Same

When will it be fixed?

By dheeraj.goswami at Aug. 7, 2012, 7:06 p.m. (reply...)

Xcode 4.5 DP4 Fix

It looks to me like this issue has been addressed as of Xcode 4.5 DP4. Can anyone else corroborate?

Same issues

I have the same issues, xcode 4.4 on lion

By frenkelor at Aug. 5, 2012, 8:04 a.m. (reply...)

Same issue

This is a very bad bug, I hope they fix this soon :(

By phoganuci at Aug. 1, 2012, 6:34 p.m. (reply...)

I have the same issue

Came across this issue using RestKit in trace level debug mode. Filed rdar://12005047

Same.

Yup. Pretty bad bug, can't believe this got past them.

Same issues here

I have the same issues, all previous versions of xcode were fine, 4.4 hangs too often.

Link to my example project: http://cl.ly/1p392P0E1H0X


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!