2014-01-05 2 views
0

Я работаю над этим проектом на прошлой неделе, и все отлично работает в симуляторе. Как раз этим вечером, когда я пошел, чтобы запустить его, я получил весь этот плот новых ошибок, и единственный код, который я добавил с момента последней плавной сборки/моделирования, был следующим, чтобы добавить словарь из файла, который я только что создал.Нагрузка ошибок CGContext без видимых причин

Я определенно находится в крутой части кривой обучения Objective-C и Xcode, и эти ошибки не звонят вообще, потому что я не использовал какой-либо код, который они ссылаются в моем проекте, если они каким-то образом не связаны с кодом, который создается за кулисами во время разработки пользовательского интерфейса в раскадровке. Заранее спасибо за помощь!

Вот код, который я использовал, чтобы добавить свой словарь:

- (void)calculate 
    { 
     // Retrieve the dictionary containing the chart 
     NSString *path = [[NSBundle mainBundle] pathForResource:@"chart" ofType:@"plist"]; 
     NSDictionary *chart = [NSDictionary dictionaryWithContentsOfFile: path]; 


    } 

А вот журнал ошибок:

Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <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. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <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. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <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. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <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. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <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. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <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. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <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. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <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. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <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. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <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. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <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. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <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. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <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. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <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. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <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. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <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. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <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. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <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. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <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. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <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. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <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. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <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. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <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. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <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. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <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. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <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. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <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. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <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. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <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. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <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. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <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. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <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. 
+1

Загрузка словаря из plist и ошибок 'CGContext' не связаны, если вы не используете словарь, а затем рисуете что-то. – neilco

+0

Да, я ничего не делаю с помощью каких-либо функций рисования, поэтому он должен быть несвязан, что я и предполагал в первую очередь. Судя по более позднему ответу здесь и другим, связанным с этим форумом, мне может просто нужно жить с ними на данный момент ... Спасибо за ваш ответ. –

ответ

0

Это известная ошибка в iOS7 ... просто пусть это быть таким ... Если я прав, это не будет появляться каждый раз. В настоящее время нет обходного пути. попробуйте обновиться до 7.0.3. для получения дополнительной информации this question. Вы можете найти множество таких вопросов на StackOverflow. Не волнуйтесь .. продолжайте работать. Сообщите мне, если вы все еще недовольны моим ответом. .. :) Я знаю, что его нелегко переварить, но вам нужно ... :(

+1

О, человек. Это так неудовлетворительно.:/OK Я получаю ошибки прямо сейчас, но пока я покажу им слайд. Приложение, над которым я работаю, будет сделанный на следующей неделе или около того, стучите по дереву. Пока я не вижу 7.0.3, так что я предполагаю, что он сейчас в бета-версии. Спасибо за вашу помощь! –

Смежные вопросы