Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by svenanders

This may belong to the Ejecta forum, but anyways...

In the latest dev preview of Xcode, I get this message

CGContextSetFillColorWithColor 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.
[etc...]


when using ig.image like this (in the run:function() part of the code):

var bgimg = new ig.Image( 'media/bg/background.png' );
bgimg.draw( 0,0 );

Have never had any problems with this in the past.

1 decade ago by dominic

Can't reproduce it in DP5. Isn't there a file name and line number in the error message? Where do you see this?

Ejecta doesn&039;t use #CGContextSetFillColorWithColor anywhere directly, but maybe it's called from some other CG function.

Btw.: you shouldn&039;t create a new ig.Image instance each frame (i.e. inside the run/update/draw functions). Create it once in #init or use the pre-loader.

1 decade ago by svenanders

Ok, I'll be sure to take better notes if I see again! I did initially search for CGContextSetFillColorWithColor in the source, but couldn't find it either.

It may just be that I called new ig.Image in the run function. I can see how that can create problems, so thanks for the heads up... :)

I moved it into the preloader and there are no problems. However, I couldn't reproduce it either by moving it back into the run function again, so it could just be a fluke or a random bug in Xcode.
Page 1 of 1
« first « previous next › last »