You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
When you call -[UITextView setText:] with certain combinations of Arabic/Indic characters it crashes.
(lldb) bt
thread 22108400: Swift 2.0b4: Allow if let and guard let to assign to self in failable value type initializers #1: tid = 0x20ef2, 0x3641c704 UIFoundation-[NSATSLineFragment saveWithGlyphOrigin:] + 3476, queue = 'com.apple.main-thread, stop reason = EXC_BAD_ACCESS (code=1, address=0x3f18953c) frame #0: 0x3641c704 UIFoundation-[NSATSLineFragment saveWithGlyphOrigin:] + 3476
frame 22108400: Swift 2.0b4: Allow if let and guard let to assign to self in failable value type initializers #1: 0x364130a6 UIFoundation-[NSATSTypesetter _layoutLineFragmentStartingWithGlyphAtIndex:characterIndex:atPoint:renderingContext:] + 4170 frame #2: 0x364139b2 UIFoundation-[NSATSTypesetter layoutParagraphAtPoint:] + 158
frame 22108354: Swift 2.0b4: Curried initializer syntax #3: 0x3645fe00 UIFoundation-[NSTypesetter _layoutGlyphsInLayoutManager:startingAtGlyphIndex:maxNumberOfLineFragments:maxCharacterIndex:nextGlyphIndex:nextCharacterIndex:] + 3564 frame #4: 0x36460d4c UIFoundation-[NSTypesetter layoutCharactersInRange:forLayoutManager:maximumNumberOfLineFragments:] + 212
frame 22108118: Apple Music: No Love Icon On CarPlay #5: 0x36414310 UIFoundation-[NSATSTypesetter layoutCharactersInRange:forLayoutManager:maximumNumberOfLineFragments:] + 540 frame #6: 0x36402c02 UIFoundation-[NSLayoutManager(NSPrivate) _fillLayoutHoleForCharacterRange:desiredNumberOfLines:isSoft:] + 1138
frame 22107493: Xocde 7, can't run playground. Unable to create target for stub executable. unable to find executable for #7: 0x36408416 UIFoundation_NSFastFillAllLayoutHolesForGlyphRange + 1214 frame #8: 0x364069aa UIFoundation-[NSLayoutManager(NSPrivate) _rectArrayForRange:withinSelectionRange:rangeIsCharRange:singleRectOnly:fullLineRectsOnly:inTextContainer:rectCount:rangeWithinContainer:glyphsDrawOutsideLines:rectArray:rectArrayCapacity:] + 650
frame 22107374: Xcode should mark debugging messages originating from the main thread #9: 0x36408aa4 UIFoundation-[NSLayoutManager(NSPrivate) _rectArrayForRange:withinSelectionRange:rangeIsCharRange:singleRectOnly:fullLineRectsOnly:inTextContainer:rectCount:rangeWithinContainer:glyphsDrawOutsideLines:] + 84 frame #10: 0x36435858 UIFoundation-[NSLayoutManager rectArrayForCharacterRange:withinSelectedCharacterRange:inTextContainer:rectCount:] + 60
frame 22106545: automaticallyAdjustsScrollViewInsets doesn't change insets on iOS 9 #11: 0x313cd078 UIKit-[_UITextContainerView updateInsertionPointStateAndRestartTimer:] + 244 frame #12: 0x3640c35a UIFoundation-[NSLayoutManager(NSPrivate) _invalidateLayoutForExtendedCharacterRange:isSoft:invalidateUsage:] + 1966
frame 22105831: Application windows move erratically with two monitors #13: 0x3640c3ce UIFoundation-[NSLayoutManager(NSPrivate) _invalidateLayoutForExtendedCharacterRange:isSoft:] + 30 frame #14: 0x364325b2 UIFoundation-[NSLayoutManager textStorage:edited:range:changeInLength:invalidatedRange:] + 210
frame 22104678: Xcode7-beta4 (7A165t): libtool does not support -ios_version_min link editor flag #15: 0x36432758 UIFoundation-[NSLayoutManager processEditingForTextStorage:edited:range:changeInLength:invalidatedRange:] + 52 frame #16: 0x3645378a UIFoundation-[NSTextStorage _notifyEdited:range:changeInLength:invalidatedRange:] + 122
frame 22103812: TestFlight does not support yet apps with watchOS 2 #17: 0x3645331e UIFoundation-[NSTextStorage processEditing] + 422 frame #18: 0x36452f0c UIFoundation-[NSTextStorage endEditing] + 80
frame 22102418: El Capitan Terminal password autofill suggestion #19: 0x313cf05c UIKit-[UITextView setAttributedText:] + 252 frame #20: 0x313cef4a UIKit-[UITextView setText:] + 134
Steps to Reproduce:
I haven't pinpointed the exact combination, but I've reduced it to a 935 character string that crashes always. Run the included sample project
Expected Results:
Actual Results:
Version:
7.0.3
Notes:
Configuration:
Crashes on iPad, iPhone and simulator
Description
Summary:
When you call -[UITextView setText:] with certain combinations of Arabic/Indic characters it crashes.
(lldb) bt
if let
andguard let
to assign toself
in failable value type initializers #1: tid = 0x20ef2, 0x3641c704 UIFoundation-[NSATSLineFragment saveWithGlyphOrigin:] + 3476, queue = 'com.apple.main-thread, stop reason = EXC_BAD_ACCESS (code=1, address=0x3f18953c) frame #0: 0x3641c704 UIFoundation
-[NSATSLineFragment saveWithGlyphOrigin:] + 3476frame 22108400: Swift 2.0b4: Allow
if let
andguard let
to assign toself
in failable value type initializers #1: 0x364130a6 UIFoundation-[NSATSTypesetter _layoutLineFragmentStartingWithGlyphAtIndex:characterIndex:atPoint:renderingContext:] + 4170 frame #2: 0x364139b2 UIFoundation
-[NSATSTypesetter layoutParagraphAtPoint:] + 158frame 22108354: Swift 2.0b4: Curried initializer syntax #3: 0x3645fe00 UIFoundation
-[NSTypesetter _layoutGlyphsInLayoutManager:startingAtGlyphIndex:maxNumberOfLineFragments:maxCharacterIndex:nextGlyphIndex:nextCharacterIndex:] + 3564 frame #4: 0x36460d4c UIFoundation
-[NSTypesetter layoutCharactersInRange:forLayoutManager:maximumNumberOfLineFragments:] + 212frame 22108118: Apple Music: No Love Icon On CarPlay #5: 0x36414310 UIFoundation
-[NSATSTypesetter layoutCharactersInRange:forLayoutManager:maximumNumberOfLineFragments:] + 540 frame #6: 0x36402c02 UIFoundation
-[NSLayoutManager(NSPrivate) _fillLayoutHoleForCharacterRange:desiredNumberOfLines:isSoft:] + 1138frame 22107493: Xocde 7, can't run playground. Unable to create target for stub executable. unable to find executable for #7: 0x36408416 UIFoundation
_NSFastFillAllLayoutHolesForGlyphRange + 1214 frame #8: 0x364069aa UIFoundation
-[NSLayoutManager(NSPrivate) _rectArrayForRange:withinSelectionRange:rangeIsCharRange:singleRectOnly:fullLineRectsOnly:inTextContainer:rectCount:rangeWithinContainer:glyphsDrawOutsideLines:rectArray:rectArrayCapacity:] + 650frame 22107374: Xcode should mark debugging messages originating from the main thread #9: 0x36408aa4 UIFoundation
-[NSLayoutManager(NSPrivate) _rectArrayForRange:withinSelectionRange:rangeIsCharRange:singleRectOnly:fullLineRectsOnly:inTextContainer:rectCount:rangeWithinContainer:glyphsDrawOutsideLines:] + 84 frame #10: 0x36435858 UIFoundation
-[NSLayoutManager rectArrayForCharacterRange:withinSelectedCharacterRange:inTextContainer:rectCount:] + 60frame 22106545: automaticallyAdjustsScrollViewInsets doesn't change insets on iOS 9 #11: 0x313cd078 UIKit
-[_UITextContainerView updateInsertionPointStateAndRestartTimer:] + 244 frame #12: 0x3640c35a UIFoundation
-[NSLayoutManager(NSPrivate) _invalidateLayoutForExtendedCharacterRange:isSoft:invalidateUsage:] + 1966frame 22105831: Application windows move erratically with two monitors #13: 0x3640c3ce UIFoundation
-[NSLayoutManager(NSPrivate) _invalidateLayoutForExtendedCharacterRange:isSoft:] + 30 frame #14: 0x364325b2 UIFoundation
-[NSLayoutManager textStorage:edited:range:changeInLength:invalidatedRange:] + 210frame 22104678: Xcode7-beta4 (7A165t): libtool does not support -ios_version_min link editor flag #15: 0x36432758 UIFoundation
-[NSLayoutManager processEditingForTextStorage:edited:range:changeInLength:invalidatedRange:] + 52 frame #16: 0x3645378a UIFoundation
-[NSTextStorage _notifyEdited:range:changeInLength:invalidatedRange:] + 122frame 22103812: TestFlight does not support yet apps with watchOS 2 #17: 0x3645331e UIFoundation
-[NSTextStorage processEditing] + 422 frame #18: 0x36452f0c UIFoundation
-[NSTextStorage endEditing] + 80frame 22102418: El Capitan Terminal password autofill suggestion #19: 0x313cf05c UIKit
-[UITextView setAttributedText:] + 252 frame #20: 0x313cef4a UIKit
-[UITextView setText:] + 134Steps to Reproduce:
I haven't pinpointed the exact combination, but I've reduced it to a 935 character string that crashes always. Run the included sample project
Expected Results:
Actual Results:
Version:
7.0.3
Notes:
Configuration:
Crashes on iPad, iPhone and simulator
Attachments:
https://cloudup.com/c9P9Mw4qTdm
Product Version: 7.0.3
Created: 2013-11-13T16:31:17.372386
Originated: 2013-11-13T17:24:00
Open Radar Link: http://www.openradar.me/15459068
The text was updated successfully, but these errors were encountered: