Skip to content

Instantly share code, notes, and snippets.

@shinypb
Created May 22, 2012 04:06
Show Gist options
  • Select an option

  • Save shinypb/2766485 to your computer and use it in GitHub Desktop.

Select an option

Save shinypb/2766485 to your computer and use it in GitHub Desktop.
Caused by this code:
NSImage *translucentImage = [[NSImage alloc] initWithSize:[imageRep size]];
NSRect rect = NSMakeRect(0, 0, [image size].width, [image size].height);
[translucentImage lockFocus];
Running on the main thread. WTF.
#0 0x00007fff910a2a4f in CGSFillDRAM8by1 ()
#1 0x00007fff91105fb6 in argb32_mark_constshape ()
#2 0x00007fff911059c3 in argb32_mark ()
#3 0x00007fff9919c100 in ripl_BltShape ()
#4 0x00007fff991993af in ripc_Render ()
#5 0x00007fff99195c86 in ripc_DrawRects ()
#6 0x00007fff91101c9f in CGContextFillRects ()
#7 0x00007fff91101a55 in CGContextClearRect ()
#8 0x00007fff8cf3bf94 in +[NSCGImageSnapshotRep _lockFocusForCreatingSnapshot:withRect:context:hints:flipped:] ()
#9 0x00007fff8cf3bb6a in +[NSCGImageSnapshotRep lockFocusForCreatingSnapshotWithRect:context:hints:flipped:] ()
#10 0x00007fff8cf3b6f7 in -[NSImage _lockFocusOnRepresentation:rect:context:hints:flipped:] ()
#11 0x00007fff8cf3b490 in __-[NSImage lockFocusWithRect:context:hints:flipped:]_block_invoke_1 ()
#12 0x00007fff8ceb1799 in -[NSImage _usingBestRepresentationForRect:context:hints:body:] ()
#13 0x00007fff8cf3b411 in -[NSImage lockFocusWithRect:context:hints:flipped:] ()
#14 0x00007fff8cf3b34f in -[NSImage lockFocusFlipped:] ()
#15 0x0000000100006334 in -[DDPasteboard initWithPasteboard:fromSender:] (self=<value temporarily unavailable, due to optimizations>, _cmd=<value temporarily unavailable, due to optimizations>, pasteboard=<value temporarily unavailable, due to optimizations>, sender=<value temporarily unavailable, due to optimizations>) at /Users/markc/Dropbox/Code/DragonDrop/DragonDrop/DDPasteboard.m:238
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment