Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15524] iOS: Console displays invalid context errors

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2016-08-03T14:38:28.000+0000
Affected Version/sRelease 3.1.4
Fix Version/sn/a
ComponentsiOS
Labelsqe-3.1.4
ReporterSamuel Dowse
AssigneeChee Kiat Ng
Created2013-10-18T00:39:57.000+0000
Updated2016-08-03T14:40:41.000+0000

Description

Description

During a test on dynamics features I ran into a "critical" error. As part of a messaging application which displays incoming messages on the right and outgoing messages on the left I happened across multiple errors in the console.

Expected Result

Console should just display LEFT or RIGHT depending on the type of message.

Result

Console displayed errors and slowed the application.
[INFO] :   Application started
[INFO] :   TIMOB14233/1.0 (3.2.0.v20131008154043.8f63fa2)
[INFO] :   LEFT
[INFO] :   RIGHT
[INFO] :   LEFT
[INFO] :   Oct 17 16:20:25 SDowseMBP.local TIMOB14233[80831] <Error>: CGContextSetFillColorWithColor: 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.
[INFO] :   Oct 17 16:20:25 SDowseMBP.local TIMOB14233[80831] <Error>: 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.
[INFO] :   Oct 17 16:20:25 SDowseMBP.local TIMOB14233[80831] <Error>: CGContextSaveGState: 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.
[INFO] :   Oct 17 16:20:25 SDowseMBP.local TIMOB14233[80831] <Error>: CGContextSetFlatness: 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.
[INFO] :   Oct 17 16:20:25 SDowseMBP.local TIMOB14233[80831] <Error>: CGContextAddPath: 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.
[INFO] :   Oct 17 16:20:25 SDowseMBP.local TIMOB14233[80831] <Error>: CGContextDrawPath: 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.
[INFO] :   Oct 17 16:20:25 SDowseMBP.local TIMOB14233[80831] <Error>: CGContextRestoreGState: 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.
[INFO] :   Oct 17 16:20:25 SDowseMBP.local TIMOB14233[80831] <Error>: CGContextSaveGState: 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.
[INFO] :   Oct 17 16:20:25 SDowseMBP.local TIMOB14233[80831] <Error>: CGContextSetFlatness: 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.
[INFO] :   Oct 17 16:20:25 SDowseMBP.local TIMOB14233[80831] <Error>: CGContextAddPath: 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.
[INFO] :   Oct 17 16:20:25 SDowseMBP.local TIMOB14233[80831] <Error>: CGContextDrawPath: 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.
[INFO] :   Oct 17 16:20:25 SDowseMBP.local TIMOB14233[80831] <Error>: CGContextRestoreGState: 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.
[INFO] :   Oct 17 16:20:25 SDowseMBP.local TIMOB14233[80831] <Error>: CGContextSetFillColorWithColor: 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.
[INFO] :   Oct 17 16:20:25 SDowseMBP.local TIMOB14233[80831] <Error>: 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.
[INFO] :   Oct 17 16:20:25 SDowseMBP.local TIMOB14233[80831] <Error>: CGContextSetFillColorWithColor: 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.
[INFO] :   Oct 17 16:20:25 SDowseMBP.local TIMOB14233[80831] <Error>: 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.
[INFO] :   Oct 17 16:20:25 SDowseMBP.local TIMOB14233[80831] <Error>: CGContextGetBlendMode: 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.
[INFO] :   Oct 17 16:20:25 SDowseMBP.local TIMOB14233[80831] <Error>: CGContextSetBlendMode: 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.
[INFO] :   Oct 17 16:20:25 SDowseMBP.local TIMOB14233[80831] <Error>: CGContextFillRects: 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.
[INFO] :   Oct 17 16:20:25 SDowseMBP.local TIMOB14233[80831] <Error>: CGContextSetBlendMode: 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.
[INFO] :   Oct 17 16:20:25 SDowseMBP.local TIMOB14233[80831] <Error>: CGContextSetFillColorWithColor: 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.
[INFO] :   Oct 17 16:20:25 SDowseMBP.local TIMOB14233[80831] <Error>: 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.
[INFO] :   Oct 17 16:20:25 SDowseMBP.local TIMOB14233[80831] <Error>: CGContextGetBlendMode: 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.
[INFO] :   Oct 17 16:20:25 SDowseMBP.local TIMOB14233[80831] <Error>: CGContextSetBlendMode: 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.
[INFO] :   Oct 17 16:20:25 SDowseMBP.local TIMOB14233[80831] <Error>: CGContextFillRects: 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.
[INFO] :   Oct 17 16:20:25 SDowseMBP.local TIMOB14233[80831] <Error>: CGContextSetBlendMode: 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.
[INFO] :   Oct 17 16:20:25 SDowseMBP.local TIMOB14233[80831] <Error>: CGContextSetFillColorWithColor: 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.
[INFO] :   Oct 17 16:20:25 SDowseMBP.local TIMOB14233[80831] <Error>: 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.
[INFO] :   Oct 17 16:20:25 SDowseMBP.local TIMOB14233[80831] <Error>: CGContextGetBlendMode: 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.
[INFO] :   Oct 17 16:20:25 SDowseMBP.local TIMOB14233[80831] <Error>: CGContextSetBlendMode: 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.
[INFO] :   Oct 17 16:20:25 SDowseMBP.local TIMOB14233[80831] <Error>: CGContextFillRects: 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.
[INFO] :   Oct 17 16:20:25 SDowseMBP.local TIMOB14233[80831] <Error>: CGContextSetBlendMode: 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.
[INFO] :   RIGHT

Attachments

FileDateSize
Resources.zip2014-03-04T01:36:16.000+00002148434

Comments

  1. Guile 2014-02-06

    I'm not sure you take care of the message. Even if it is a common log, with a "Info" level, the text is explicit {quote} 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. {quote} I think you should consider this message seriously and make Titanium stable for LTR as nobody knows what Apple will do with in a future iOS release... Just imagine that iOS8 change this notice into a fatal error? You have the opportunity to prevent a potential crash, just consider this message as serious and change priority to a higher level than "low" Thank you
  2. Ingo Muschenetz 2014-02-06

    [~sdowse] and others, I see references here: http://stackoverflow.com/questions/19599266/invalid-context-0x0-under-ios-7-0-and-system-degradation But a number of people report that if you reset the content and settings of the simulator, it goes away. Can you try that?
  3. Wilson Luu 2014-03-04

  4. Wilson Luu 2014-03-04

    Attaching the sample code that was used for testing. *Setup:* 1. After downloading and unzipping attachment, replace the default Titanium app with this Resources content 2. Install onto device 3. Go to Messages 4. Start typing messages in the text field
  5. Mark Mokryn 2014-03-08

    +1 on this issue. Not sure how resetting the content and settings is relevant: I started to see this issue **after** I reset the simulator earlier today.
  6. Ingo Muschenetz 2014-03-14

    Can't reproduce at all ATM, so deferring until we get a better test case.
  7. Paras Mishra 2014-07-03

    I am not able to reproduce the issue, used the attached application using the following environment Environment used: Tested on: Device : iPhone 5s , iOS version : 7.1.1 SDK: 3.3.0.v20140625133319 CLI version : 3.3.0-rc4 OS : MAC OSX 10.9.2 Alloy: 1.4.0-rc3 ACS: 1.0.14 npm:1.3.2 LiveView: 1.0.4 Appcelerator Studio, build: 3.3.0.201406271159 titanium-code-processor: 1.1.1 XCode : 5.1.1
  8. Hans Knöchel 2016-08-03

    Closing this issue as "Cannot Reproduce" for now, since we have been unable to see that issue appear over the last 2 years. I am pretty sure it was an issue in the iOS logs that have been fixed internally. If anyone still sees this issue - especially linked with an error - please let us know. Thanks!

JSON Source