Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: damian_reloaded on April 28, 2018, 02:57:38 pm

Title: ../src/gtk/colour.cpp(207): assert "IsOk()" failed in (): invalid colour
Post by: damian_reloaded on April 28, 2018, 02:57:38 pm
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>
To this:
Code
		<HIGHLIGHT_CARET_LINE_COLOUR>
<colour r="24" g="24" b="24" />
</HIGHLIGHT_CARET_LINE_COLOUR>

And the error goes away.
Title: Re: ../src/gtk/colour.cpp(207): assert "IsOk()" failed in (): invalid colour
Post by: oBFusCATed on April 28, 2018, 03:49:45 pm
What version are you using? What OS?
Title: Re: ../src/gtk/colour.cpp(207): assert "IsOk()" failed in (): invalid colour
Post by: damian_reloaded on April 28, 2018, 04:01:13 pm
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.
Title: Re: ../src/gtk/colour.cpp(207): assert "IsOk()" failed in (): invalid colour
Post by: oBFusCATed on April 28, 2018, 05:58:54 pm
Should be fixed in rev 11377.
Please test if this is really true and thanks for reporting.