ckteebe / CustomBadge

CustomBadge is an Objective-C based component to create customized Badges for any given View.
http://saschapaulus.de/opensource
MIT License
397 stars 132 forks source link

<Error>: CGContextSetStrokeColorWithColor: invalid context 0x0 #1

Open mamcx opened 12 years ago

mamcx commented 12 years ago

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