User forums > Using Code::Blocks

../src/gtk/colour.cpp(207): assert "IsOk()" failed in (): invalid colour

(1/1)

damian_reloaded:
If anyone is getting this error after upgrading, it's because inside the file default.conf (~/.config/codeblocks on linux) contains a "color" tag with a property "null".
You should change it from this:

--- Code: --- <HIGHLIGHT_CARET_LINE_COLOUR>
<colour r="24" g="24" b="24" null="true" />
</HIGHLIGHT_CARET_LINE_COLOUR>
--- End code ---
To this:

--- Code: --- <HIGHLIGHT_CARET_LINE_COLOUR>
<colour r="24" g="24" b="24" />
</HIGHLIGHT_CARET_LINE_COLOUR>
--- End code ---

And the error goes away.

oBFusCATed:
What version are you using? What OS?

damian_reloaded:
Debian 9
Codeblocks svn Build rev 11374
SDK Version 1.36.0
Scintilla 3.7.5

I experienced this error either downloading binary packages as well as compiling from sources.
This was upgrading from the version that's available from apt (16 something I guess). The property null="true" doesn't cause errors in the old version.
I've seen this error happening before on windows too. I now realize it was related to me tweaking the c++ syntax highlighting to my liking.

oBFusCATed:
Should be fixed in rev 11377.
Please test if this is really true and thanks for reporting.

Navigation

[0] Message Index

Go to full version