Re: Xcode 7.2 deadlocks freqently
Re: Xcode 7.2 deadlocks freqently
- Subject: Re: Xcode 7.2 deadlocks freqently
- From: Sean McBride <email@hidden>
- Date: Wed, 02 Mar 2016 14:53:18 -0500
- Organization: Rogue Research Inc.
On Wed, 2 Mar 2016 10:36:36 -0800, Jens Alfke said:
>> I filed <rdar://24933368> but there's nothing to go on except a sysdiagnose.
>
>“sample Xcode 5” will show you the backtrace of the blocked UI thread,
>which can often be useful for getting an idea where the problem lies —
>e.g. is the deadlock in AppKit, or talking to a system agent process, or
>syntax analysis, or…
I've just attached that to the radar too. It's a bit big for the list, and will probably get munged by email but here's the first part. Looks like font and drawing stuff:
Call graph:
3809 Thread_630825: Main Thread DispatchQueue_<multiple>
+ 3809 start (in libdyld.dylib) + 1 [0x7fff8de135ad]
+ 3809 ??? (in Xcode) load address 0x109fe1000 + 0x139b [0x109fe239b]
+ 3809 NSApplicationMain (in AppKit) + 1176 [0x7fff9db86520]
+ 3809 -[NSApplication run] (in AppKit) + 682 [0x7fff9dc03fc8]
+ 3809 -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in DVTKit) + 396 [0x10a815bf2]
+ 3809 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] (in AppKit) + 454 [0x7fff9dfda943]
+ 3809 _DPSNextEvent (in AppKit) + 1067 [0x7fff9dc0e0ee]
+ 3809 _BlockUntilNextEventMatchingListInModeWithFilter (in HIToolbox) + 71 [0x7fff9497e5af]
+ 3809 ReceiveNextEventCommon (in HIToolbox) + 432 [0x7fff9497e76f]
+ 3809 RunCurrentEventLoopInMode (in HIToolbox) + 235 [0x7fff9497e935]
+ 3809 CFRunLoopRunSpecific (in CoreFoundation) + 296 [0x7fff98014338]
+ 3809 __CFRunLoopRun (in CoreFoundation) + 1178 [0x7fff98014a3a]
+ 3809 __CFRunLoopDoObservers (in CoreFoundation) + 391 [0x7fff98022da7]
+ 3809 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ (in CoreFoundation) + 23 [0x7fff98022e37]
+ 3809 CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) (in QuartzCore) + 71 [0x7fff9c0e6917]
+ 3809 CA::Transaction::commit() (in QuartzCore) + 508 [0x7fff9c0d7a24]
+ 3809 CA::Context::commit_transaction(CA::Transaction*) (in QuartzCore) + 277 [0x7fff9c0d7cf1]
+ 2932 CA::Layer::layout_and_display_if_needed(CA::Transaction*) (in QuartzCore) + 35 [0x7fff9c0d878d]
+ ! 2930 CA::Layer::display_if_needed(CA::Transaction*) (in QuartzCore) + 603 [0x7fff9c0d910d]
+ ! : 2615 -[_NSTextViewBackingLayer display] (in AppKit) + 87 [0x7fff9ded00ae]
+ ! : | 2611 -[_NSViewBackingLayer display] (in AppKit) + 818 [0x7fff9dbe17bd]
+ ! : | + 2608 _NSBackingLayerDisplay (in AppKit) + 641 [0x7fff9dbe407c]
+ ! : | + ! 2603 CA::Layer::display_() (in QuartzCore) + 1565 [0x7fff9c0dad31]
+ ! : | + ! : 2603 ___ZN2CA5Layer8display_Ev_block_invoke (in QuartzCore) + 59 [0x7fff9c0e70cd]
+ ! : | + ! : 2600 CABackingStoreUpdate_ (in QuartzCore) + 3494 [0x7fff9c0e7e79]
+ ! : | + ! : | 2599 -[NSTextView drawLayer:inContext:] (in AppKit) + 179 [0x7fff9ded016a]
+ ! : | + ! : | + 2599 -[NSView(NSLayerKitGlue) drawLayer:inContext:] (in AppKit) + 108 [0x7fff9dc70ed5]
+ ! : | + ! : | + 2591 -[NSView(NSLayerKitGlue) _drawViewBackingLayer:inContext:drawingHandler:] (in AppKit) + 2403 [0x7fff9dc71843]
+ ! : | + ! : | + ! 2591 __46-[NSView(NSLayerKitGlue) drawLayer:inContext:]_block_invoke (in AppKit) + 242 [0x7fff9dc71b98]
+ ! : | + ! : | + ! 2557 -[NSView(NSInternal) _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:] (in AppKit) + 1331 [0x7fff9dc721fe]
+ ! : | + ! : | + ! : 2557 -[DVTCompletingTextView drawRect:] (in DVTKit) + 114 [0x10a736fc7]
+ ! : | + ! : | + ! : 2274 -[NSTextView drawRect:] (in AppKit) + 2710 [0x7fff9dcb710d]
+ ! : | + ! : | + ! : | 2274 -[DVTLayoutManager drawBackgroundForGlyphRange:atPoint:] (in DVTKit) + 160 [0x10a73826e]
+ ! : | + ! : | + ! : | 2269 -[NSLayoutManager(NSPrivate) _drawBackgroundForGlyphRange:atPoint:] (in UIFoundation) + 641 [0x7fff96c2630b]
+ ! : | + ! : | + ! : | + 1861 _NSFastFillAllLayoutHolesForGlyphRange (in UIFoundation) + 1856 [0x7fff96c20b3b]
+ ! : | + ! : | + ! : | + ! 1860 -[NSLayoutManager(NSPrivate) _recalculateUsageForTextContainerAtIndex:] (in UIFoundation) + 2722 [0x7fff96c1b9a9]
+ ! : | + ! : | + ! : | + ! : 1847 -[NSLayoutManager(NSPrivate) _resizeTextViewForTextContainer:] (in UIFoundation) + 1073 [0x7fff96c1bf1e]
+ ! : | + ! : | + ! : | + ! : | 1845 -[NSTextView setConstrainedFrameSize:] (in AppKit) + 639 [0x7fff9dc9458f]
+ ! : | + ! : | + ! : | + ! : | + 1845 -[NSTextView setFrameSize:] (in AppKit) + 104 [0x7fff9dc9621c]
+ ! : | + ! : | + ! : | + ! : | + 1845 -[NSTextView(NSPrivate) _setFrameSize:forceScroll:] (in AppKit) + 724 [0x7fff9dc96544]
+ ! : | + ! : | + ! : | + ! : | + 1821 -[NSView setFrameSize:] (in AppKit) + 2199 [0x7fff9dbde6bb]
+ ! : | + ! : | + ! : | + ! : | + ! 1818 -[NSView _postFrameChangeNotification] (in AppKit) + 196 [0x7fff9dbdecca]
+ ! : | + ! : | + ! : | + ! : | + ! : 1817 -[NSClipView _reflectDocumentViewFrameChange] (in AppKit) + 128 [0x7fff9dc9abc1]
+ ! : | + ! : | + ! : | + ! : | + ! : | 1767 -[NSClipView _scrollTo:animateScroll:flashScrollerKnobs:] (in AppKit) + 1961 [0x7fff9dc9b540]
+ ! : | + ! : | + ! : | + ! : | + ! : | + 1759 -[NSScrollView reflectScrolledClipView:] (in AppKit) + 1030 [0x7fff9dc840f5]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! 1759 -[NSScrollView _tileWithoutRecursing] (in AppKit) + 51 [0x7fff9dc7fa9f]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! 1759 -[DVTScrollView tile] (in DVTKit) + 50 [0x10a80b271]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! 1243 -[NSScrollView tile] (in AppKit) + 2761 [0x7fff9dc805f1]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : 1227 -[NSScrollView _applyContentAreaLayout:] (in AppKit) + 1058 [0x7fff9dc81b5e]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | 1225 -[NSScrollView _setContentViewFrame:] (in AppKit) + 633 [0x7fff9dc822cf]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + 1222 -[NSView setFrame:] (in AppKit) + 476 [0x7fff9dbdd619]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! 1218 -[NSClipView setFrameSize:] (in AppKit) + 390 [0x7fff9dc828b0]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : 1053 -[NSView setFrameSize:] (in AppKit) + 1755 [0x7fff9dbde4ff]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | 1052 -[NSView resizeSubviewsWithOldSize:] (in AppKit) + 318 [0x7fff9dc42b4d]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + 1038 -[NSView resizeWithOldSuperviewSize:] (in AppKit) + 409 [0x7fff9dc4408d]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! 1038 -[NSView setFrame:] (in AppKit) + 476 [0x7fff9dbdd619]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! 1037 -[NSTextView setFrameSize:] (in AppKit) + 104 [0x7fff9dc9621c]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : 963 -[NSTextView(NSPrivate) _setFrameSize:forceScroll:] (in AppKit) + 1134 [0x7fff9dc966de]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | 961 -[DVTFoldingLayoutManager boundingRectForGlyphRange:inTextContainer:] (in DVTKit) + 136 [0x10a88701d]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + 961 -[NSLayoutManager boundingRectForGlyphRange:inTextContainer:] (in UIFoundation) + 60 [0x7fff96b3cf24]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + 961 -[NSLayoutManager(NSPrivate) _boundingRectForGlyphRange:inTextContainer:fast:fullLineRectsOnly:] (in UIFoundation) + 187 [0x7fff96c214b2]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + 961 -[NSLayoutManager(NSPrivate) _rectArrayForRange:withinSelectionRange:rangeIsCharRange:singleRectOnly:fullLineRectsOnly:inTextContainer:rectCount:rangeWithinContainer:glyphsDrawOutsideLines:] (in UIFoundation) + 99 [0x7fff96c213f0]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + 764 -[NSLayoutManager(NSPrivate) _rectArrayForRange:withinSelectionRange:rangeIsCharRange:singleRectOnly:fullLineRectsOnly:inTextContainer:rectCount:rangeWithinContainer:glyphsDrawOutsideLines:rectArray:rectArrayCapacity:] (in UIFoundation) + 9969 [0x7fff96c20397]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! 764 -[NSLayoutManager(NSPrivate) _invalidateDisplayIfNeeded] (in UIFoundation) + 72 [0x7fff96c1bab5]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! 762 -[DVTLayoutManager invalidateDisplayForCharacterRange:] (in DVTKit) + 790 [0x10a70525c]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : 762 -[NSLayoutManager invalidateDisplayForCharacterRange:] (in UIFoundation) + 458 [0x7fff96b38ab2]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : 754 -[NSLayoutManager _primitiveInvalidateDisplayForGlyphRange:] (in UIFoundation) + 5080 [0x7fff96b37f78]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | 754 -[NSTextContainer textContainerOrigin] (in UIFoundation) + 67 [0x7fff96b60c31]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | 752 -[NSTextView textContainerOrigin] (in AppKit) + 269 [0x7fff9dc96049]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + 752 -[NSLayoutManager usedRectForTextContainer:] (in UIFoundation) + 122 [0x7fff96b3ae43]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + 752 -[NSLayoutManager(NSPrivate) _validatedStoredUsageForTextContainerAtIndex:] (in UIFoundation) + 82 [0x7fff96c1ba19]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + 732 -[NSLayoutManager(NSPrivate) _recalculateUsageForTextContainerAtIndex:] (in UIFoundation) + 2722 [0x7fff96c1b9a9]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! 592 -[NSLayoutManager(NSPrivate) _resizeTextViewForTextContainer:] (in UIFoundation) + 7165 [0x7fff96c1d6ea]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : 442 -[NSTextView(NSPrivate) _scrollRangeToVisible:forceCenter:] (in AppKit) + 334 [0x7fff9de4ec46]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | 442 _NSFastFillAllLayoutHolesForGlyphRange (in UIFoundation) + 1479 [0x7fff96c209c2]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | 340 -[NSLayoutManager(NSPrivate) _fillLayoutHoleForCharacterRange:desiredNumberOfLines:isSoft:] (in UIFoundation) + 1158 [0x7fff96c17004]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + 338 -[NSATSTypesetter layoutCharactersInRange:forLayoutManager:maximumNumberOfLineFragments:] (in UIFoundation) + 983 [0x7fff96c4e959]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! 337 -[NSTypesetter layoutCharactersInRange:forLayoutManager:maximumNumberOfLineFragments:] (in UIFoundation) + 245 [0x7fff96b9b9ed]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : 320 -[NSTypesetter _layoutGlyphsInLayoutManager:startingAtGlyphIndex:maxNumberOfLineFragments:maxCharacterIndex:nextGlyphIndex:nextCharacterIndex:] (in UIFoundation) + 4189 [0x7fff96b9a328]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | 304 -[NSATSTypesetter layoutParagraphAtPoint:] (in UIFoundation) + 167 [0x7fff96c4db04]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + 207 -[NSATSTypesetter _layoutLineFragmentStartingWithGlyphAtIndex:characterIndex:atPoint:renderingContext:] (in UIFoundation) + 3418 [0x7fff96c4bb5c]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! 144 -[NSATSLineFragment layoutForStartingGlyphAtIndex:characterIndex:minPosition:maxPosition:lineFragmentRect:] (in UIFoundation) + 92 [0x7fff96c55e49]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : 111 -[NSATSTypesetter _ctTypesetter] (in UIFoundation) + 322 [0x7fff96c4ab24]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | 91 -[NSATSGlyphStorage createCTTypesetter] (in UIFoundation) + 723 [0x7fff96c513fb]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + 91 CTRunCreateMutableRunsWithStorageAndOptions (in CoreText) + 191 [0x7fff9c8a5f58]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + 89 TRunEncoder::Encode(_CTGlyphStorage*, CFRange, unsigned int, __CFDictionary const*) (in CoreText) + 85 [0x7fff9c8a5fbd]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! 83 TAttributes::TAttributes(__CFDictionary const*) (in CoreText) + 526 [0x7fff9c8a64f2]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : 61 std::__1::__function::__func<TAttributes::HandleLigatureAttribute(void const*, TAttributes::AttributeHandlerContext*)::$_0, std::__1::allocator<TAttributes::HandleLigatureAttribute(void const*, TAttributes::AttributeHandlerContext*)::$_0>, void (TAttributes&)>::operator()(TAttributes&) (in CoreText) + 1196 [0x7fff9c93d2ac]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | 44 CTFontCreateCopyWithAttributes (in CoreText) + 95 [0x7fff9c8c5eca]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + 30 CTFontCreateWithFontDescriptor (in CoreText) + 124 [0x7fff9c89f83c]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! 27 TFont::TFont(__CTFontDescriptor const*, double, CGAffineTransform const*, __CTFontDescriptor const*) (in CoreText) + 302 [0x7fff9c89faf4]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : 22 TFont::SetExtras(__CTFontDescriptor const*) (in CoreText) + 187 [0x7fff9c89ffc7]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | 15 TFont::SetExtras(__CTFontDescriptor const*)::$_3::operator()(__CTFontDescriptor const*) const (in CoreText) + 507 [0x7fff9c921277]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + 11 TFontFeatures::CopyNonDefaultSettings(TBaseFont const&, __CFArray const*) (in CoreText) + 75 [0x7fff9c8c1547]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! 3 TFontFeatures::CopyNonDefault(TBaseFont const&, __CFArray const*) const (in CoreText) + 1558 [0x7fff9c8c38a2]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : 2 TFontFeatures::GetFeatureSelector(TFeatureSetting const&, bool&) const (in CoreText) + 92 [0x7fff9c8c3c8c]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | 1 TFontFeatures::GetFeatureType(__CFNumber const*) const (in CoreText) + 226 [0x7fff9c8c3dc0]
+ ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + 1 CFRetain (in CoreFoundation) + 27 [0x7fff97fabc2b]
Cheers,
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden