ckteebe/CustomBadge — Issue #1: <Error>: CGContextSetStrokeColorWithColor: invalid context 0x0
Author: mamcx
Created: 2012-01-14 18:46:48+00:00
State: open

When the badge is draw a lot of error at diferents methods that say "invalid context 0x0" happend:

: CGContextSaveGState: invalid context 0x0
Jan 14 13:44:26 ??[1765] : CGContextSetAlpha: invalid context 0x0
Jan 14 13:44:26 ??[1765] : CGContextBeginTransparencyLayerWithRect: invalid context 0x0
Jan 14 13:44:26 ??[1765] : CGContextSaveGState: invalid context 0x0
Jan 14 13:44:26 ??[1765] : CGContextSetFillColorWithColor: invalid context 0x0
Jan 14 13:44:26 ??[1765] : CGContextMoveToPoint: invalid context 0x0
Jan 14 13:44:26 ??[1765] : CGContextAddArc: invalid context 0x0
Jan 14 13:44:26 ??[1765] : CGContextAddArc: invalid context 0x0
Jan 14 13:44:26 ??[1765] : CGContextAddArc: invalid context 0x0
Jan 14 13:44:26 ??[1765] : CGContextAddArc: invalid context 0x0
Jan 14 13:44:26 ??[1765] : CGContextClosePath: invalid context 0x0
Jan 14 13:44:26 ??[1765] : CGContextDrawPath: invalid context 0x0
Jan 14 13:44:26 ??[1765] : CGContextRestoreGState: invalid context 0x0
Jan 14 13:44:26 ??[1765] : CGContextSaveGState: invalid context 0x0
Jan 14 13:44:26 ??[1765] : CGContextSetStrokeColorWithColor: invalid context 0x0
Jan 14 13:44:26 ??[1765] : CGContextSetLineWidth: invalid context 0x0
Jan 14 13:44:26 ??[1765] : CGContextMoveToPoint: invalid context 0x0
Jan 14 13:44:26 ??[1765] : CGContextAddArc: invalid context 0x0
Jan 14 13:44:26 ??[1765] : CGContextAddArc: invalid context 0x0
Jan 14 13:44:26 ??[1765] : CGContextAddArc: invalid context 0x0
Jan 14 13:44:26 ??[1765] : CGContextAddArc: invalid context 0x0
Jan 14 13:44:26 ??[1765] : CGContextClosePath: invalid context 0x0
Jan 14 13:44:26 ??[1765] : CGContextDrawPath: invalid context 0x0
Jan 14 13:44:26 ??[1765] : CGContextRestoreGState: invalid context 0x0
Jan 14 13:44:26 ??[1765] : CGContextEndTransparencyLayer: invalid context 0x0

Some info at http://stackoverflow.com/questions/3571053/cgcontext-cgbitmapcontextcreateimage-errors-how-to-fix