User forums > Help
Changing editor colors: assert "IsOk()" failed in Blue(): invalid colour
fenugrec:
Hi,
running 20.03 (packaged by my distro, arch linux).
Editor colors were weird so went into Settings-Editor-Syntax highlighting. See screenshot : the "active line" never gets highlighted with the shown yellow color.
If I press the 'D' button to reset the background color, I get an assertion failure in wxColour::Blue() , then Green(), then Red() !
Backtrace:
--- Code: ---
ASSERT INFO:
./src/gtk/colour.cpp(207): assert "IsOk()" failed in Blue(): invalid colour
BACKTRACE:
[1] wxColour::Blue() const
[2] wxScintilla::SetCaretLineBackground(wxColour const&)
[3] EditorColourSet::Apply(wxString, cbStyledTextCtrl*, bool, bool)
[4] wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)
[5] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)
...
--- End code ---
I tried deleting .config/codeblocks/default.conf ; same problem.
Sounded a bit like this old thread http://forums.codeblocks.org/index.php?topic=22607.0
but the proposed fix there isn't applicable, there's no
--- Code: ---null="true"
--- End code ---
property anywhere.
Ideas ?
oBFusCATed:
I think, I've fixed this in trunk/master. Could you try a night build?
fenugrec:
Thanks for the fast reply. I just compiled from svn 12293 : same bug. (Didn't try a nightly, it's more convenient to compile from trunk)
Tried compiling with debugging symbols but -O2 was still being passed to gcc so it was mostly useless. Didn't mess around trying to override C/CXXflags...
For the record, these are the wxgtk versions currently installed
local/wxgtk-common 3.0.5.1-2
local/wxgtk2 3.0.5.1-2
local/wxgtk3 3.0.5.1-2
oBFusCATed:
Please the info from the about dialog.
fenugrec:
It's identical to what I posted with 20.03 :
--- Code: ---ASSERT INFO:
./src/gtk/colour.cpp(207): assert "IsOk()" failed in Blue(): invalid colour
BACKTRACE:
[1] wxColour::Blue() const
[2] wxScintilla::SetCaretLineBackground(wxColour const&)
[3] EditorColourSet::Apply(wxString, cbStyledTextCtrl*, bool, bool)
[4] wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)
[5] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)
[6] wxEvtHandler::TryHereOnly(wxEvent&)
[7] wxEvtHandler::ProcessEventLocally(wxEvent&)
[8] wxEvtHandler::ProcessEvent(wxEvent&)
[9] wxWindowBase::TryAfter(wxEvent&)
[10] wxWindowBase::TryAfter(wxEvent&)
[11] wxWindowBase::TryAfter(wxEvent&)
[12] wxEvtHandler::SafelyProcessEvent(wxEvent&)
[13] g_closure_invoke
[14] g_signal_emit_valist
[15] g_signal_emit
[16] g_closure_invoke
[17] g_signal_emit_valist
[18] g_signal_emit
[19] g_closure_invoke
[20] g_signal_emit_valist
[21] g_signal_emit
[22] gtk_propagate_event
[23] gtk_main_do_event
[24] g_main_context_dispatch
[25] g_main_loop_run
[26] gtk_main
[27] wxGUIEventLoop::DoRun()
[28] wxEventLoopBase::Run()
[29] wxDialog::ShowModal()
[30] wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)
[31] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)
[32] wxEvtHandler::TryHereOnly(wxEvent&)
[33] wxEvtHandler::DoTryChain(wxEvent&)
[34] wxEvtHandler::ProcessEvent(wxEvent&)
[35] wxWindowBase::TryAfter(wxEvent&)
[36] wxEvtHandler::SafelyProcessEvent(wxEvent&)
[37] wxMenuBase::SendEvent(int, int)
[38] g_closure_invoke
[39] g_signal_emit_valist
[40] g_signal_emit
[41] gtk_widget_activate
[42] gtk_menu_shell_activate_item
[43] g_closure_invoke
[44] g_signal_emit_valist
[45] g_signal_emit
[46] gtk_propagate_event
[47] gtk_main_do_event
[48] g_main_context_dispatch
[49] g_main_loop_run
[50] gtk_main
[51] wxGUIEventLoop::DoRun()
[52] wxEventLoopBase::Run()
[53] wxAppConsoleBase::MainLoop()
[54] wxEntry(int&, wchar_t**)
[55] __libc_start_main
--- End code ---
Navigation
[0] Message Index
[#] Next page
Go to full version