What's up with CGContext errors?

Having trouble with the game? Report issues and get help here. Read this first!

Moderator: Forum Moderators

Forum rules
Before reporting issues in this section, you must read the following topic:
Post Reply
User avatar
Jamie
Posts: 48
Joined: October 30th, 2011, 5:08 pm

What's up with CGContext errors?

Post by Jamie »

Not a bug but I don't know where else to ask this. (Running BfW 1.10.5 on Intel Mac OS 10.6.8)

I have been working on some old UMC and want to debug. I just tried removing *all* the add-on campaigns (and deleting the cache) thinking I would move only one campaign into the add-ons folder at a time to better help locate problems and then launched wesnoth from Terminal. So with only mainline content loading, I am still getting a raft of CGContext errors. This doesn't hurt anything... the game runs and plays just fine. But if there's a simple way to eliminate them, I would love to know just to keep the list of errors I have to wade through to a minimum. I've spent several hours searching the web and reading Apple's Quartz 2D reference material. I understand this may be a quirk of the Mac port or otherwise something buried deep in C++ code that's not worth chasing down. I'm asking just in case there's some relatively simple configuration tweak I can make to get rid of them.

Examples:
...-iMac.local Wesnoth[6918] <Error>: CGContextSetFont: invalid context 0x0
...-iMac.local Wesnoth[6918] <Error>: CGContextSetFontSize: invalid context 0x0
...-iMac.local Wesnoth[6918] <Error>: CGContextSetTextMatrix: invalid context 0x0
...-iMac.local Wesnoth[6918] <Error>: CGContextClearRect: invalid context 0x0
...-iMac.local Wesnoth[6918] <Error>: CGContextSetRGBFillColor: invalid context 0x0
...-iMac.local Wesnoth[6918] <Error>: CGContextShowGlyphsAtPoint: invalid context 0x0
...-iMac.local Wesnoth[6918] <Error>: CGContextSetFont: invalid context 0x0
etc...
denix
Posts: 5
Joined: April 28th, 2013, 1:36 pm

Re: What's up with CGContext errors?

Post by denix »

I confirm the same problem on a macbook air OSX 10.8.3

Code: Select all

/Applications/Wesnoth.app/Contents/MacOS$ ./Wesnoth 
Battle for Wesnoth v1.11.2
Started on Sun Apr 28 15:32:40 2013


Data directory: /Applications/Wesnoth.app/Contents/Resources/./
User configuration directory: /Users/denix/Library/Application Support/Wesnoth_1.11
User data directory: /Users/denix/Library/Application Support/Wesnoth_1.11
Cache directory: /Users/denix/Library/Application Support/Wesnoth_1.11/cache
Checking video mode: 1440x900x32...
setting mode to 1440x900x32
Apr 28 15:32:46 boblight.local Wesnoth[1389] <Error>: CGContextSetFont: invalid context 0x0
Apr 28 15:32:46 boblight.local Wesnoth[1389] <Error>: CGContextSetFontSize: invalid context 0x0
Apr 28 15:32:46 boblight.local Wesnoth[1389] <Error>: CGContextSetTextMatrix: invalid context 0x0
Apr 28 15:32:46 boblight.local Wesnoth[1389] <Error>: CGContextSaveGState: invalid context 0x0
Apr 28 15:32:46 boblight.local Wesnoth[1389] <Error>: CGContextSetCompositeOperation: invalid context 0x0
Apr 28 15:32:46 boblight.local Wesnoth[1389] <Error>: CGContextFillRects: invalid context 0x0
Apr 28 15:32:46 boblight.local Wesnoth[1389] <Error>: CGContextRestoreGState: invalid context 0x0
Apr 28 15:32:46 boblight.local Wesnoth[1389] <Error>: CGContextSetRGBFillColor: invalid context 0x0
Apr 28 15:32:46 boblight.local Wesnoth[1389] <Error>: CGContextShowGlyphsAtPoint: invalid context 0x0
Apr 28 15:32:46 boblight.local Wesnoth[1389] <Error>: CGContextSetFont: invalid context 0x0
Apr 28 15:32:46 boblight.local Wesnoth[1389] <Error>: CGContextSetFontSize: invalid context 0x0
Apr 28 15:32:46 boblight.local Wesnoth[1389] <Error>: CGContextSetTextMatrix: invalid context 0x0
Apr 28 15:32:46 boblight.local Wesnoth[1389] <Error>: CGContextSaveGState: invalid context 0x0
Apr 28 15:32:46 boblight.local Wesnoth[1389] <Error>: CGContextSetCompositeOperation: invalid context 0x0
Apr 28 15:32:46 boblight.local Wesnoth[1389] <Error>: CGContextFillRects: invalid context 0x0
Apr 28 15:32:46 boblight.local Wesnoth[1389] <Error>: CGContextRestoreGState: invalid context 0x0
Apr 28 15:32:46 boblight.local Wesnoth[1389] <Error>: CGContextSetRGBFillColor: invalid context 0x0
Apr 28 15:32:46 boblight.local Wesnoth[1389] <Error>: CGContextShowGlyphsAtPoint: invalid context 0x0
Apr 28 15:32:46 boblight.local Wesnoth[1389] <Error>: CGContextSetFont: invalid context 0x0
Apr 28 15:32:46 boblight.local Wesnoth[1389] <Error>: CGContextSetFontSize: invalid context 0x0
Apr 28 15:32:46 boblight.local Wesnoth[1389] <Error>: CGContextSetTextMatrix: invalid context 0x0
Apr 28 15:32:46 boblight.local Wesnoth[1389] <Error>: CGContextSaveGState: invalid context 0x0
Apr 28 15:32:46 boblight.local Wesnoth[1389] <Error>: CGContextSetCompositeOperation: invalid context 0x0
Apr 28 15:32:46 boblight.local Wesnoth[1389] <Error>: CGContextFillRects: invalid context 0x0
Apr 28 15:32:46 boblight.local Wesnoth[1389] <Error>: CGContextRestoreGState: invalid context 0x0
Apr 28 15:32:46 boblight.local Wesnoth[1389] <Error>: CGContextSetRGBFillColor: invalid context 0x0
Apr 28 15:32:46 boblight.local Wesnoth[1389] <Error>: CGContextShowGlyphsAtPoint: invalid context 0x0
Apr 28 15:32:52 boblight.local Wesnoth[1389] <Error>: CGContextSetFont: invalid context 0x0
Apr 28 15:32:52 boblight.local Wesnoth[1389] <Error>: CGContextSetFontSize: invalid context 0x0
Apr 28 15:32:52 boblight.local Wesnoth[1389] <Error>: CGContextSetTextMatrix: invalid context 0x0
Apr 28 15:32:52 boblight.local Wesnoth[1389] <Error>: CGContextSaveGState: invalid context 0x0
Apr 28 15:32:52 boblight.local Wesnoth[1389] <Error>: CGContextSetCompositeOperation: invalid context 0x0
Apr 28 15:32:52 boblight.local Wesnoth[1389] <Error>: CGContextFillRects: invalid context 0x0
Apr 28 15:32:52 boblight.local Wesnoth[1389] <Error>: CGContextRestoreGState: invalid context 0x0
Apr 28 15:32:52 boblight.local Wesnoth[1389] <Error>: CGContextSetRGBFillColor: invalid context 0x0
Apr 28 15:32:52 boblight.local Wesnoth[1389] <Error>: CGContextShowGlyphsAtPoint: invalid context 0x0
plus Wesnoth use ALWAYS a lot of CPU. I read around and I could not find a way to stop it :(
denix
Posts: 5
Joined: April 28th, 2013, 1:36 pm

Re: What's up with CGContext errors?

Post by denix »

User avatar
Jamie
Posts: 48
Joined: October 30th, 2011, 5:08 pm

Re: What's up with CGContext errors?

Post by Jamie »

Thanks for your input, denix.
Post Reply