IOS error - CGContextRestoreGState: invalid context 0x0

I have a phonegap application that always worked fine, now I get the following message in the log, does anyone know what it could be?

CGContextRestoreGState: invalid context 0x0. This is a serious mistake. This application or the library it uses uses an invalid context and thereby contributes to a general deterioration in the stability and reliability of the system. This notice is a courtesy: fix this problem. This will be a fatal mistake in the upcoming update.

Thank you very much!

+6
source share
2 answers

These messages appear when you (double) click a text field. Sometimes there are times when similar messages can appear, but it seems that they come from internal components, such as a webview or text field, so I mostly ignore them (I check if my code can cause problems first, and if it's not the source errors - I ignore these messages).

Also here are helpful answers.

0
source

use NSZombie to find the error and track what is going wrong.

-1
source

Source: https://habr.com/ru/post/954583/


All Articles