Skip to content

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

Description

@mamcx

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions