Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
purkylin opened this issue Feb 7, 2015 · 7 comments
Closed

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

purkylin opened this issue Feb 7, 2015 · 7 comments

Comments

@purkylin
Copy link

purkylin commented Feb 7, 2015

Environment: Ipad3, ios7

: CGContextSetStrokeColorWithColor: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.

@hugocroch
Copy link

I have the same message on iOS 7 on a iPhone 5c. But it is probably the same result on any device.

@gerardp
Copy link

gerardp commented Mar 3, 2015

+1
I have the same error!

@HeshamMegid
Copy link
Owner

I'm aware of this but I haven't found a fix yet. Pull requests would be appreciated.

@foxluqi
Copy link

foxluqi commented Mar 4, 2015

2015-03-04 11 08 58

I added symbol break of 'CGPostError' and dumped above log. Hope it help.
I think the issue is only happened in iOS7.

@foxluqi
Copy link

foxluqi commented Mar 4, 2015

And I traced the error from below statement
titleLayer.string = [self attributedTitleAtIndex:idx];
And set NSForegroundColorAttributeName attribute string causes CG error.

HeshamMegid added a commit that referenced this issue Mar 11, 2015
@HeshamMegid
Copy link
Owner

This should be fixed in d8e6e4a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants