Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > Some Cocoa apps crash when updating the window

Some Cocoa apps crash when updating the window
Thread Tools
tigas
Forum Regular
Join Date: Jan 2004
Status: Offline
Reply With Quote
Jan 19, 2006, 03:28 AM
 
I've been having a problem with some Cocoa apps, namely Renamer4Mac and PathFinder. The Crash Report is always very similar, mentioning AppKit /NSImage or NSView, and then into CoreGraphics where it crashes either with semaphore or memcopy.

These programs work correctly if I login with another account. I've already cleaned all the preferences I deemed safe to touch and all caches, but it's not enough.

Does anybody have an idea of what's happening? When I tried Onyx the main window just became transparent, it was there but I couldn't see it.
     
smeger
Mac Elite
Join Date: Sep 2000
Location: Tempe, AZ
Status: Offline
Reply With Quote
Jan 19, 2006, 04:03 AM
 
Post the section of the crash log that includes the "thread crashed".
Geekspiff - generating spiffdiddlee software since before you began paying attention.
     
tigas  (op)
Forum Regular
Join Date: Jan 2004
Status: Offline
Reply With Quote
Jan 19, 2006, 06:11 AM
 
One kind of crash is

Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_INVALID_ADDRESS (0x0001) at 0x0dc34230

Thread 0 Crashed:
0 <<00000000>> 0xffff87f4 __memcpy + 84 (cpu_capabilities.h:189)
1 com.apple.CoreGraphics 0x903dcf98 CGBlt_copyBytes + 4012
2 com.apple.CoreGraphics 0x903d37a4 ARGB32_image + 616
3 libRIP.A.dylib 0x94672388 ripd_Mark + 324
4 libRIP.A.dylib 0x94674d14 ripl_BltImage + 908
5 libRIP.A.dylib 0x94674788 ripc_RenderImage + 256
6 libRIP.A.dylib 0x9467318c ripc_DrawImage + 3532
7 com.apple.CoreGraphics 0x903d0100 CGContextDelegateDrawImage + 76
8 com.apple.CoreGraphics 0x903d0068 CGContextDrawImage + 340
9 com.apple.AppKit 0x936d5990 -[NSCGImageRep _drawFromRect:toRect:operation:alpha:compositing:f lipped:ignoreContext:] + 752
10 com.apple.AppKit 0x936d4a84 -[NSImage _composite:delta:fromRect:toPoint:] + 1164
11 com.apple.AppKit 0x936d45e4 -[NSImage compositeToPoint:fromRect:operation:] + 64
12 com.apple.AppKit 0x936d458c -[NSImage compositeToPoint:operation:] + 168
13 com.apple.AppKit 0x9376c89c -[NSViewRectCache restore] + 552
14 com.apple.AppKit 0x9376bb74 -[NSTextView drawInsertionPointInRect:color:turnedOn:] + 604
15 com.apple.AppKit 0x9375d46c -[NSTextView(NSPrivate) _blinkCaret:] + 584
16 com.apple.AppKit 0x9375f218 _blinkCaretTimerAction + 60
17 com.apple.CoreFoundation 0x90770aec __CFRunLoopDoTimer + 184
18 com.apple.CoreFoundation 0x9075d464 __CFRunLoopRun + 1680
19 com.apple.CoreFoundation 0x9075ca18 CFRunLoopRunSpecific + 268
20 com.apple.HIToolbox 0x9318e1e0 RunCurrentEventLoopInMode + 264
21 com.apple.HIToolbox 0x9318d874 ReceiveNextEventCommon + 380
22 com.apple.HIToolbox 0x9318d6e0 BlockUntilNextEventMatchingListInMode + 96
23 com.apple.AppKit 0x9368c104 _DPSNextEvent + 384
24 com.apple.AppKit 0x9368bdc8 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 116
25 com.apple.AppKit 0x9368830c -[NSApplication run] + 472
26 com.apple.AppKit 0x93778e68 NSApplicationMain + 452
27 com.power4mac.renamer4mac 0x00007d18 _start + 392 (crt.c:267)
28 dyld 0x8fe01048 _dyld_start + 60

the other kind is more like this:

Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000008

(...)

Thread 4 Crashed:
0 com.apple.CoreGraphics 0x903c3ec8 CGAccessSessionRewind + 12
1 com.apple.CoreGraphics 0x903c40dc CGAccessSessionRelease + 28
2 com.apple.CoreGraphics 0x903d4d88 CGSImageDataUnlock + 40
3 libRIP.A.dylib 0x94673198 ripc_DrawImage + 3544
4 com.apple.CoreGraphics 0x903d0100 CGContextDelegateDrawImage + 76
5 com.apple.CoreGraphics 0x903d0068 CGContextDrawImage + 340
6 com.apple.AppKit 0x936d5990 -[NSCGImageRep _drawFromRect:toRect:operation:alpha:compositing:f lipped:ignoreContext:] + 752
7 com.apple.AppKit 0x936d4a84 -[NSImage _composite:delta:fromRect:toPoint:] + 1164
8 com.apple.AppKit 0x936d45e4 -[NSImage compositeToPoint:fromRect:operation:] + 64
9 com.apple.AppKit 0x936d458c -[NSImage compositeToPoint:operation:] + 168
10 com.apple.AppKit 0x9376c89c -[NSViewRectCache restore] + 552
11 com.apple.AppKit 0x9376bb74 -[NSTextView drawInsertionPointInRect:color:turnedOn:] + 604
12 com.apple.AppKit 0x9375d46c -[NSTextView(NSPrivate) _blinkCaret:] + 584
13 com.apple.AppKit 0x9374f518 -[NSTextView(NSSharing) updateInsertionPointStateAndRestartTimer:] + 616
14 com.apple.AppKit 0x93751c30 -[NSTextView(NSSharing) setSelectedRanges:affinity:stillSelecting:] + 1648
15 com.apple.AppKit 0x93757f50 syncTextWithTextView + 692
16 com.apple.AppKit 0x936a967c -[NSActionCell setObjectValue:] + 348
17 com.apple.AppKit 0x936a9294 -[NSCell setStringValue:] + 120
18 com.apple.AppKit 0x936bce88 -[NSActionCell stringValue] + 100
19 com.power4mac.renamer4mac 0x00010d40 -[InsertOverwriteRenamer newNameFor:atIndex:] + 260 (crt.c:355)
20 com.power4mac.renamer4mac 0x0000b8e0 -[AppController updateNewNameThread:] + 792 (crt.c:355)
21 com.apple.Foundation 0x928e66d4 forkThreadForFunction + 108
22 libSystem.B.dylib 0x9002b200 _pthread_body + 96

Thanks for any assistance, these have me stumped.
     
smeger
Mac Elite
Join Date: Sep 2000
Location: Tempe, AZ
Status: Offline
Reply With Quote
Jan 19, 2006, 07:24 AM
 
Have you tried to hack the image used to draw the blinking caret in a text field? Have you set your machine to use a scaled display? Have you hacked your machine to use Quartz Extreme to the Extreme Max?
Geekspiff - generating spiffdiddlee software since before you began paying attention.
     
tigas  (op)
Forum Regular
Join Date: Jan 2004
Status: Offline
Reply With Quote
Jan 19, 2006, 05:13 PM
 
Originally Posted by smeger
Have you tried to hack the image used to draw the blinking caret in a text field? Have you set your machine to use a scaled display? Have you hacked your machine to use Quartz Extreme to the Extreme Max?
No, and I don't think I have ever known how to do it. What files control those things? I believe something broke when I updated to 10.4.4.

I'm running a Pismo with an ATi Rage Pro Mobility, I don't have Quartz Extreme.

[edit (big)]

I didn't know what to check, but googling for quartz extreme 2d Tiger eventually got me to a page in xlr8yourmac that described the old hack to enable QE in PCI Macs. So, after having found the long path to Configuration.plist of the CoreGraphics framework, I discovered that I had QE2D enabled, even though Quartz2DExtremeMinimumVRAM was 64MB but I have 8MB!!! I'm sure i didn't touch this, I'm not in the habit of toying with system files (now user files, that's another ballgame)

But this is what happened:

Animations behind window or menu panes pop through the menus, etc. I don't understand this, I haven't touched this file!

the .plist dump now is as follows
Code:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>AllowDisplayModesNotMarkedSafeSubstitutions</key> <true/> <key>EnableAbortOnError</key> <false/> <key>EnableErrorLogging</key> <true/> <key>EnableVMPurging</key> <true/> <key>ForceSessionDrawsVirtualFramebuffer</key> <false/> <key>GLCompositorConfiguration</key> <dict> <key>GLCompositorMinimumDisplayDepth</key> <integer>16</integer> <key>GLCompositorMinimumVRAM</key> <integer>16</integer> <key>GLCompositorRequiredClasses</key> <array> <string>IOAGPDevice</string> </array> <key>GLCompositorUseOnPortable</key> <false/> <key>tileHeight</key> <integer>256</integer> <key>tileWidth</key> <integer>256</integer> </dict> <key>Quartz2DExtremeConfiguration</key> <dict> <key>Quartz2DExtremeEnabled</key> <false/> <key>Quartz2DExtremeMinimumDRAM</key> <integer>512</integer> <key>Quartz2DExtremeMinimumVRAM</key> <integer>64</integer> <key>Quartz2DExtremeVendorDisabled</key> <array/> </dict> <key>SessionUsesVirtualFramebuffer</key> <true/> </dict> </plist>
Did I miss a setting that I should have corrected? What would be the correct preferences for disabling QE and QEGL completely?
( Last edited by tigas; Jan 19, 2006 at 10:12 PM. Reason: New data)
     
tigas  (op)
Forum Regular
Join Date: Jan 2004
Status: Offline
Reply With Quote
Jan 20, 2006, 12:32 AM
 
hang on, the other account crashed too; could have found out about that a bit sooner, would've saved me much mucking around with my preferences.

But really there must be something wrong with Quartz or other image components, because when I move dialogs around the highlighted button's text and sometimes the highlighted button itself keep disappearing from the dialog pane, showing the white below.
     
tigas  (op)
Forum Regular
Join Date: Jan 2004
Status: Offline
Reply With Quote
Jan 20, 2006, 07:35 PM
 
Now it's the Dock that crashes: no longer Cocoa, it's systemwide.

Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000010

Thread 0 Crashed:
0 com.apple.HIToolbox 0x932e9e38 AutoScrollMenu(OpaqueControlRef*, Point, unsigned char*) + 292
1 com.apple.HIToolbox 0x932e9c98 AutoScrollTimer(__EventLoopTimer*, void*) + 52
2 com.apple.CoreFoundation 0x90770aec __CFRunLoopDoTimer + 184
3 com.apple.CoreFoundation 0x9075d464 __CFRunLoopRun + 1680
4 com.apple.CoreFoundation 0x9075ca18 CFRunLoopRunSpecific + 268
5 com.apple.CoreFoundation 0x9076be78 CFRunLoopRun + 52
6 com.apple.dock 0x00002b10 0x1000 + 6928
7 com.apple.dock 0x00002590 0x1000 + 5520
8 com.apple.dock 0x000349b0 0x1000 + 211376

Thread 1:
0 libSystem.B.dylib 0x9005b918 clock_sleep_trap + 8
1 com.apple.dock 0x00007e40 0x1000 + 28224
2 libSystem.B.dylib 0x9002b200 _pthread_body + 96

Thread 2:
0 libSystem.B.dylib 0x9001f20c select + 12
1 com.apple.CoreFoundation 0x9076f9a8 __CFSocketManager + 472
2 libSystem.B.dylib 0x9002b200 _pthread_body + 96

Thread 0 crashed with PPC Thread State 64:
srr0: 0x00000000932e9e38 srr1: 0x000000000000f030 vrsave: 0x0000000000000000
cr: 0x24028242 xer: 0x0000000000000005 lr: 0x00000000932e9e2c ctr: 0x000000009074ef54
r0: 0x00000000932e9e2c r1: 0x00000000bffff410 r2: 0x00000000ffffffff r3: 0x0000000000000000
r4: 0x00000000bffff470 r5: 0x00000000bffff2f0 r6: 0x0000000000000000 r7: 0x000000000035c0e0
r8: 0x000000005e4e3e2c r9: 0x0000000000000000 r10: 0x0000000000000012 r11: 0x00000000a1b1c1d3
r12: 0x000000009074ef54 r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x0000000000000001
r16: 0x0000000000000000 r17: 0x0000000000000000 r18: 0x0000000000004a03 r19: 0x0000000000000000
r20: 0x000000000376f628 r21: 0x0000000035576e23 r22: 0x00000000bffff5a0 r23: 0x0000000000000000
r24: 0x0000000000344030 r25: 0x00000000bffff480 r26: 0x0000000000000000 r27: 0x0000000000000000
r28: 0x0000000000000000 r29: 0x00000000bffff470 r30: 0x000000000000822e r31: 0x00000000932e9d1c


I've just reinstalled Quicktime (downgrade to 7.0.1) and I'm about to reinstall 10.4.4 Combo. Failing that, I'm stuck. I've tried everything I know, and I'm a bit miffed that nobody apart from smeger could help me in this forum. But that's OK, maybe I was expecting too much.
     
smeger
Mac Elite
Join Date: Sep 2000
Location: Tempe, AZ
Status: Offline
Reply With Quote
Jan 21, 2006, 02:28 AM
 
I think you need to do an archive and install. You seem to have a pretty screwed up OS.

As a general rule, if the problems persist on a brand new account after a reboot, you've got big issues.
Geekspiff - generating spiffdiddlee software since before you began paying attention.
     
tigas  (op)
Forum Regular
Join Date: Jan 2004
Status: Offline
Reply With Quote
Jan 22, 2006, 05:23 PM
 
Originally Posted by smeger
I think you need to do an archive and install. You seem to have a pretty screwed up OS.

As a general rule, if the problems persist on a brand new account after a reboot, you've got big issues.
Thanks. I suspected as much. Console.log has lines and lines of kCGErrorIllegalArgument:CGSetWindowAlpha (and other CG operations) : Invalid Window. For example, that Dock.app crash above came out as "kCGetc: CGSetWindowBounds: NULL Window". It seems CoreGraphics is just losing track of windows after they go into the backing store.
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 08:36 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,