Crash in ATIRadeonX2000GLDriver/IKImageFlowView - any workaround?
Crash in ATIRadeonX2000GLDriver/IKImageFlowView - any workaround?
- Subject: Crash in ATIRadeonX2000GLDriver/IKImageFlowView - any workaround?
- From: "email@hidden" <email@hidden>
- Date: Thu, 16 Jul 2009 20:47:52 +0200
Hello,
I hope it's OK to discuss an undocumented class on the list.
You can set the background color of the IKImageFlowView in ImageKit
with either -(void)setBackgroundColor: or
-(void)_setBackgroundColorRed:green:blue:alpha:. This works fine on
most machines, but will inevitably cause a crash on systems with the
ATIRadeonX2000GLDriver. I have verified this on a number of machines
(>10). A crash log is pasted below - they all look the same. It seems
the crash occurs in IKImageFlowCell's drawRect:inRect:fromRect...
method. (Using the default black background works fine). I have tried
setting the color with:
NSColor *color = [NSColor colorWithDeviceRed:0.839f green:0.866f
blue:0.898f alpha:1.0f];
[super setBackgroundColor:color];
as well as:
[super _setBackgroundColorWithRed:0.839 green:0.866 blue:0.898 alpha:1.0];
Both methods result in a EXC_BAD_ACCESS in the ATIRadeonX2000GLDriver
when drawing the image flow cell. I don't know if this is a bug in the
driver or in Image Kit, but hope there might be someone on the list
with some insights into this who can tell me if it is possible to
avoid this crash somehow.
Thanks in advance.
Process: myApp [379]
Path: /Users/User/Downloads/myApp.app/Contents/MacOS/myApp
Identifier: com.my.app
Version: ???
Code Type: X86 (Native)
Parent Process: launchd [68]
Date/Time: 2009-06-29 10:25:11.278 +0200
OS Version: Mac OS X 10.5.7 (9J61)
Report Version: 6
Anonymous UUID: 728B0885-C3EB-47D1-BCF4-0E72ACE68FA8
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000
Crashed Thread: 0
Thread 0 Crashed:
0 ...pple.ATIRadeonX2000GLDriver 0x0c410224 gldAllocVertexBuffer + 13252
1 ...pple.ATIRadeonX2000GLDriver 0x0c42a17b gldInitDispatch + 76315
2 ...pple.ATIRadeonX2000GLDriver 0x0c42ae40 gldInitDispatch + 79584
3 ...pple.ATIRadeonX2000GLDriver 0x0c42afa4 gldInitDispatch + 79940
4 ...pple.ATIRadeonX2000GLDriver 0x0c432ccb gldGetQueryInfo + 14107
5 ...pple.ATIRadeonX2000GLDriver 0x0c41747b gldUpdateDispatch + 2875
6 GLEngine 0x0c260998 glBegin_Exec + 296
7 com.apple.imageKit 0x971d3cfa -[IKImageFlowCell
drawImage:inRect:fromRect:alpha:fog:premultiplied:gradient:interpolate:shader:]
+ 1010
8 com.apple.imageKit 0x971d464f -[IKImageFlowCell
drawImage:inRect:forAA:reflection:alpha:fog:baseline:] + 1842
9 com.apple.imageKit 0x971d4c8d -[IKImageFlowCell
drawPlaceHolder:inRect:reflection:] + 675
10 com.apple.imageKit 0x971d542b -[IKImageFlowCell draw] + 1658
11 com.apple.imageKit 0x971dcc6f -[IKImageFlowView
drawVisibleCells:] + 822
12 com.apple.imageKit 0x971db74f -[IKImageFlowView
drawWithCurrentRendererInRect:] + 188
13 com.apple.imageKit 0x971dc070 -[IKImageFlowView drawRect:] + 491
14 com.apple.AppKit 0x958c622c -[NSView _drawRect:clip:] + 3853
15 com.apple.AppKit 0x958c4d23 -[NSView
_recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1050
16 com.apple.AppKit 0x958c50ba -[NSView
_recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1969
17 com.apple.AppKit 0x958c3679 -[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
+ 759
18 com.apple.AppKit 0x958c44d3 -[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
+ 4433
19 com.apple.AppKit 0x958c44d3 -[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
+ 4433
20 com.apple.AppKit 0x958c2fbb -[NSThemeFrame
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
+ 306
21 com.apple.AppKit 0x958bfadf -[NSView
_displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] +
3090
22 com.apple.AppKit 0x958004b3 -[NSView displayIfNeeded] + 933
23 com.apple.AppKit 0x95800061 -[NSWindow displayIfNeeded] + 189
24 com.apple.AppKit 0x957ffe84 _handleWindowNeedsDisplay + 436
25 com.apple.CoreFoundation 0x94ea7942 __CFRunLoopDoObservers + 466
26 com.apple.CoreFoundation 0x94ea8c9c CFRunLoopRunSpecific + 844
27 com.apple.CoreFoundation 0x94ea9c78 CFRunLoopRunInMode + 88
28 com.apple.HIToolbox 0x9274328c RunCurrentEventLoopInMode + 283
29 com.apple.HIToolbox 0x927430a5 ReceiveNextEventCommon + 374
30 com.apple.HIToolbox 0x92742f19
BlockUntilNextEventMatchingListInMode + 106
31 com.apple.AppKit 0x957fdd0d _DPSNextEvent + 657
32 com.apple.AppKit 0x957fd5c0 -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:] + 128
33 com.apple.AppKit 0x957f65fb -[NSApplication run] + 795
34 com.apple.AppKit 0x957c3834 NSApplicationMain + 574
35 myApp 0x000028f2 start + 54
Thread 1:
0 libSystem.B.dylib 0x94f7246e __semwait_signal + 10
1 libSystem.B.dylib 0x94f9cdcd pthread_cond_wait$UNIX2003 + 73
2 libGLProgrammability.dylib 0x93f0bb32 glvmDoWork + 162
3 libSystem.B.dylib 0x94f9c155 _pthread_start + 321
4 libSystem.B.dylib 0x94f9c012 thread_start + 34
Thread 2:
0 com.apple.imageKit 0x97124bea
-[IKImageCellDatasourceProxy proxySize] + 0
1 com.apple.imageKit 0x970f7113 -[IKImageWrapper _size] + 1466
2 com.apple.imageKit 0x970f3c72 -[IKImageWrapper size] + 160
3 com.apple.imageKit 0x970fb0a2 -[IKMipmapImage
originalImageSize] + 144
4 com.apple.imageKit 0x970fce84 -[IKMipmapImage
bestMipmapIndexToValidateForSize:] + 39
5 com.apple.imageKit 0x971d0b8d -[IKImageFlowView(tasks)
startImportVisibleCells] + 1045
6 com.apple.imageKit 0x971cd167 -[IKTaskManager taskLoop] + 2037
7 com.apple.Foundation 0x96881e0d -[NSThread main] + 45
8 com.apple.Foundation 0x968819b4 __NSThread__main__ + 308
9 libSystem.B.dylib 0x94f9c155 _pthread_start + 321
10 libSystem.B.dylib 0x94f9c012 thread_start + 34
Thread 3:
0 libSystem.B.dylib 0x94f7246e __semwait_signal + 10
1 libSystem.B.dylib 0x94f9cdcd pthread_cond_wait$UNIX2003 + 73
2 com.apple.ColorSync 0x92bfd45c
pthreadSemaphoreWait(t_pthreadSemaphore*) + 42
3 com.apple.ColorSync 0x92c0fd8e CMMConvTask(void*) + 54
4 libSystem.B.dylib 0x94f9c155 _pthread_start + 321
5 libSystem.B.dylib 0x94f9c012 thread_start + 34
Thread 4:
0 libSystem.B.dylib 0x94f6b286 mach_msg_trap + 10
1 libSystem.B.dylib 0x94f72a7c mach_msg + 72
2 com.apple.CoreFoundation 0x94ea904e CFRunLoopRunSpecific + 1790
3 com.apple.CoreFoundation 0x94ea9c78 CFRunLoopRunInMode + 88
4 com.apple.Foundation 0x968e5530
+[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] +
320
5 com.apple.Foundation 0x96881e0d -[NSThread main] + 45
6 com.apple.Foundation 0x968819b4 __NSThread__main__ + 308
7 libSystem.B.dylib 0x94f9c155 _pthread_start + 321
8 libSystem.B.dylib 0x94f9c012 thread_start + 34
Thread 5:
0 libSystem.B.dylib 0x94f6b286 mach_msg_trap + 10
1 libSystem.B.dylib 0x94f72a7c mach_msg + 72
2 com.apple.CoreFoundation 0x94ea904e CFRunLoopRunSpecific + 1790
3 com.apple.CoreFoundation 0x94ea9c78 CFRunLoopRunInMode + 88
4 com.apple.CFNetwork 0x953de298
CFURLCacheWorkerThread(void*) + 388
5 libSystem.B.dylib 0x94f9c155 _pthread_start + 321
6 libSystem.B.dylib 0x94f9c012 thread_start + 34
Thread 6:
0 libSystem.B.dylib 0x94fba6fa select$DARWIN_EXTSN + 10
1 libSystem.B.dylib 0x94f9c155 _pthread_start + 321
2 libSystem.B.dylib 0x94f9c012 thread_start + 34
Thread 7:
0 libSystem.B.dylib 0x94f7246e __semwait_signal + 10
1 libSystem.B.dylib 0x94f9cdcd pthread_cond_wait$UNIX2003 + 73
2 com.apple.QuartzCore 0x92d8aa09 fe_fragment_thread + 54
3 libSystem.B.dylib 0x94f9c155 _pthread_start + 321
4 libSystem.B.dylib 0x94f9c012 thread_start + 34
Thread 0 crashed with X86 Thread State (32-bit):
eax: 0xbfffd4b8 ebx: 0x0c41021a ecx: 0xbfffd4b8 edx: 0x0000001e
edi: 0x0f5e87ec esi: 0x00000000 ebp: 0xbfffd428 esp: 0xbfffd410
ss: 0x0000001f efl: 0x00010202 eip: 0x0c410224 cs: 0x00000017
ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037
cr2: 0x00000000
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden