What's up with CGContext errors?
Moderator: Forum Moderators
Forum rules
Before reporting issues in this section, you must read the following topic:
Before reporting issues in this section, you must read the following topic:
What's up with CGContext errors?
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...
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...
Re: What's up with CGContext errors?
I confirm the same problem on a macbook air OSX 10.8.3
plus Wesnoth use ALWAYS a lot of CPU. I read around and I could not find a way to stop it
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
Re: What's up with CGContext errors?
Ok, solved the high cpu use:
http://forums.wesnoth.org/viewtopic.php?f=4&t=38746
http://forums.wesnoth.org/viewtopic.php?f=4&t=38746
Re: What's up with CGContext errors?
Thanks for your input, denix.