FROM : Corbin Dunn
DATE : Thu Jul 03 19:40:29 2008
On Jul 3, 2008, at 5:10 AM, Abernathy, Joshua wrote:
> None of the AppKit is thread-safe. Check out
> -performSelectorOnMainThread.
While generally true, this isn't the case. The heart beat thread is
run by appkit.
Micha: what does thread 1's bt look like?
corbin
>
>
> -----Original Message-----
> From: cocoa-dev-bounces+jabernathy=burrislogistics.<email_removed>
> [mailto:cocoa-dev-bounces
> +jabernathy=burrislogistics.<email_removed>
> ] On Behalf Of Micha Fuhrmann
> Sent: Thursday, July 03, 2008 3:30 AM
> To: Cocoa-Dev List
> Subject: NSProgressIndicator thread safe?
>
> Hi everyone,
>
> one of my user has its MBP crashing on me, I just can't figure what
> the problem is, here's the crashed thread:
>
> Thread 5 Crashed:
> 0 com.apple.CoreFoundation 0x964dd0eb CFArrayAppendValue +
> 43
> 1 com.apple.AppKit 0x94be0819 -[NSView
> _focusInto:withClip:] + 1826
> 2 com.apple.AppKit 0x94bdfc47 -[NSView
> _gatherFocusStateInto:upTo:withContext:] + 155
> 3 com.apple.AppKit 0x94bdfbf5 -[NSView
> _gatherFocusStateInto:upTo:withContext:] + 73
> 4 com.apple.AppKit 0x94bdfbf5 -[NSView
> _gatherFocusStateInto:upTo:withContext:] + 73
> 5 com.apple.AppKit 0x94bdfbf5 -[NSView
> _gatherFocusStateInto:upTo:withContext:] + 73
> 6 com.apple.AppKit 0x94bdfbf5 -[NSView
> _gatherFocusStateInto:upTo:withContext:] + 73
> 7 com.apple.AppKit 0x94bdf9f3 -[NSView
> _focusFromView:withContext:] + 366
> 8 com.apple.AppKit 0x94bdf40c -[NSView
> lockFocusIfCanDraw] + 778
> 9 com.apple.AppKit 0x94bdf009 -[NSView lockFocus] +
> 42
> 10 com.apple.AppKit 0x94ca55fd -[NSUIHeartBeat
> lockFocusForView:inRect:needsTranslation:] + 1464
> 11 com.apple.AppKit 0x94b8334a -[NSProgressIndicator
>
> heartBeat:] + 2304
> 12 com.apple.AppKit 0x94b827bc -[NSUIHeartBeat
> _heartBeatThread:] + 1597
> 13 com.apple.Foundation 0x928baf1d -[NSThread main] + 45
> 14 com.apple.Foundation 0x928baac4 __NSThread__main__ +
> 308
> 15 libSystem.B.dylib 0x93b496f5 _pthread_start + 321
> 16 libSystem.B.dylib 0x93b495b2 thread_start + 34
>
> Is it because NSProgressIndicator isn't thread safe?
>
> Micha
DATE : Thu Jul 03 19:40:29 2008
On Jul 3, 2008, at 5:10 AM, Abernathy, Joshua wrote:
> None of the AppKit is thread-safe. Check out
> -performSelectorOnMainThread.
While generally true, this isn't the case. The heart beat thread is
run by appkit.
Micha: what does thread 1's bt look like?
corbin
>
>
> -----Original Message-----
> From: cocoa-dev-bounces+jabernathy=burrislogistics.<email_removed>
> [mailto:cocoa-dev-bounces
> +jabernathy=burrislogistics.<email_removed>
> ] On Behalf Of Micha Fuhrmann
> Sent: Thursday, July 03, 2008 3:30 AM
> To: Cocoa-Dev List
> Subject: NSProgressIndicator thread safe?
>
> Hi everyone,
>
> one of my user has its MBP crashing on me, I just can't figure what
> the problem is, here's the crashed thread:
>
> Thread 5 Crashed:
> 0 com.apple.CoreFoundation 0x964dd0eb CFArrayAppendValue +
> 43
> 1 com.apple.AppKit 0x94be0819 -[NSView
> _focusInto:withClip:] + 1826
> 2 com.apple.AppKit 0x94bdfc47 -[NSView
> _gatherFocusStateInto:upTo:withContext:] + 155
> 3 com.apple.AppKit 0x94bdfbf5 -[NSView
> _gatherFocusStateInto:upTo:withContext:] + 73
> 4 com.apple.AppKit 0x94bdfbf5 -[NSView
> _gatherFocusStateInto:upTo:withContext:] + 73
> 5 com.apple.AppKit 0x94bdfbf5 -[NSView
> _gatherFocusStateInto:upTo:withContext:] + 73
> 6 com.apple.AppKit 0x94bdfbf5 -[NSView
> _gatherFocusStateInto:upTo:withContext:] + 73
> 7 com.apple.AppKit 0x94bdf9f3 -[NSView
> _focusFromView:withContext:] + 366
> 8 com.apple.AppKit 0x94bdf40c -[NSView
> lockFocusIfCanDraw] + 778
> 9 com.apple.AppKit 0x94bdf009 -[NSView lockFocus] +
> 42
> 10 com.apple.AppKit 0x94ca55fd -[NSUIHeartBeat
> lockFocusForView:inRect:needsTranslation:] + 1464
> 11 com.apple.AppKit 0x94b8334a -[NSProgressIndicator
>
> heartBeat:] + 2304
> 12 com.apple.AppKit 0x94b827bc -[NSUIHeartBeat
> _heartBeatThread:] + 1597
> 13 com.apple.Foundation 0x928baf1d -[NSThread main] + 45
> 14 com.apple.Foundation 0x928baac4 __NSThread__main__ +
> 308
> 15 libSystem.B.dylib 0x93b496f5 _pthread_start + 321
> 16 libSystem.B.dylib 0x93b495b2 thread_start + 34
>
> Is it because NSProgressIndicator isn't thread safe?
>
> Micha
| Related mails | Author | Date |
|---|---|---|
| Micha Fuhrmann | Jul 3, 09:29 | |
| Abernathy, Joshua | Jul 3, 14:10 | |
| Corbin Dunn | Jul 3, 19:40 |






Cocoa mail archive

