Author Topic: ../src/gtk/colour.cpp(207): assert "IsOk()" failed in (): invalid colour  (Read 3323 times)

Offline damian_reloaded

  • Single posting newcomer
  • *
  • Posts: 9
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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
What version are you using? What OS?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline damian_reloaded

  • Single posting newcomer
  • *
  • Posts: 9
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.
« Last Edit: April 28, 2018, 04:06:18 pm by damian_reloaded »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Should be fixed in rev 11377.
Please test if this is really true and thanks for reporting.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]