• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSColor Deadlock bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSColor Deadlock bug?


  • Subject: NSColor Deadlock bug?
  • From: "J. Nicholas Jitkoff" <email@hidden>
  • Date: Fri, 6 Feb 2004 18:28:48 -0800
  • Resent-date: Fri, 6 Feb 2004 20:56:48 -0800
  • Resent-from: "J. Nicholas Jitkoff" <email@hidden>
  • Resent-message-id: <email@hidden>
  • Resent-to: email@hidden

I have been tracking a bug that makes my app hang for the last few weeks.
It it appears that many different types of drawing will cause deadlock if they happen at the same time as another thread is looking up a theme color.

In my experience, the first thread always looks the same, hanging on +controlShadowColor, the second varies, sometimes it is image rendering, sometimes window drawing.

Does anyone have any suggestions on how to deal with this? It only happens periodically, but is really annoying.

Thanks,
Nicholas


thread 1

405 -[NSTableView drawRect:]
405 -[NSTableView drawRow:clipRect:]
405 -[NSImageCell drawWithFrame:inView:]
405 +[NSColor controlShadowColor]
405 -[NSDynamicSystemColor initWithSelector:]
405 -[NSDynamicSystemColor recacheColor]
405 -[NSColor blendedColorWithFraction:ofColor:]
405 -[NSCatalogColor colorUsingColorSpaceName:device:]
405 -[NSColorList colorWithKey:]
405 -[NSColorList _loadColors]
405 -[NSColorList _parseArchivedList:]
405 -[NSColorList _decodeWithoutNameWithCoder:newStyle:]
405 -[NSUnarchiver decodeValuesOfObjCTypes:]
405 _decodeValueOfObjCType
405 _decodeObject_old
405 -[NSColor initWithCoder:]
405 +[NSCatalogColor newWithCoder:zone:]
405 +[NSColor colorWithCatalogName:colorName:]
405 +[NSColor selectedMenuItemColor]
405 -[NSDynamicSystemColor initWithSelector:]
405 -[NSDynamicSystemColor recacheColor]
405 GetThemePattern
405 _NSAppKitImgLock
405 -[NSRecursiveLock lock]
405 _pthread_cond_wait
405 semaphore_wait_signal_trap
405 semaphore_wait_signal_trap


thread 2

405 -[NSImage representations]
405 -[NSImage _expand]
405 -[NSImage _expandRep:]
405 -[NSImage lockFocus]
405 -[NSCachedImageRep _initWithSize:depth:separate:alpha:allowDeep:]
405 _NXAllocateImageCache
405 -[NSView lockFocus]
405 -[NSImageCacheView lockFocusIfCanDraw]
405 -[NSWindow _threadContext]
405 _NSAppKitLock
405 -[NSRecursiveLock lock]
405 _pthread_cond_wait
405 semaphore_wait_signal_trap
405 semaphore_wait_signal_trap
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: NSColor Deadlock bug?
      • From: Ali Ozer <email@hidden>
    • Re: NSColor Deadlock bug?
      • From: "J. Nicholas Jitkoff" <email@hidden>
    • Re: NSColor Deadlock bug?
      • From: String <email@hidden>
    • Re: NSColor Deadlock bug?
      • From: John Randolph <email@hidden>
  • Prev by Date: Re: Question about Outline View code in Documentation
  • Next by Date: Can't set image in NSImageView
  • Previous by thread: Re: Question about Outline View code in Documentation
  • Next by thread: Re: NSColor Deadlock bug?
  • Index(es):
    • Date
    • Thread