Menu

#1053 Assert "isOpaque" failed in GetAsString() with some GTK themes

Undefined
invalid
nobody
None
Bug_Report
2021-03-17
2021-01-01
orzun
No
  • Versions: Arch Linux / Gnome 3.38.2 / Materia 20200916 / CodeBlocks 20.03 rev 11997 / wxgtk 3.0.5.1
  • Steps to reproduce:
    1. Change the Gtk theme to Materia then open CodeBlocks:
      image
    2. Change the log font size from Settings -> Environment -> View -> Feature Size :
      feature
  • Expected behavior:
    It happens to some Gtk themes but is OK with the default (Adwaita). So I guess the culprit might be some alpha color channel in those gtk.css. Other wxgtk apps (guayadeque or pedit) had this problem, too. The easiest way to solve this is changing theme, but it'd be better that could be solved by your side. At least, the assertion dialog should be ignored next time.

Assertion and backtrace:

ASSERT INFO:
./src/common/colourcmn.cpp(228): assert "isOpaque" failed in GetAsString(): alpha is lost in HTML syntax

BACKTRACE:
[1] wxColourBase::GetAsString(long) const
[2] wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)
[3] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)
[4] wxEvtHandler::TryHereOnly(wxEvent&)
[5] wxEvtHandler::DoTryChain(wxEvent&)
[6] wxEvtHandler::ProcessEvent(wxEvent&)
[7] wxWindowBase::TryAfter(wxEvent&)
[8] wxEvtHandler::SafelyProcessEvent(wxEvent&)
[9] wxMenuBase::SendEvent(int, int)
[10] g_closure_invoke
[11] g_signal_emit_valist
[12] g_signal_emit
[13] gtk_widget_activate
[14] gtk_menu_shell_activate_item
[15] g_signal_emit_valist
[16] g_signal_emit
[17] gtk_main_do_event
[18] g_main_context_dispatch
[19] g_main_loop_run
[20] gtk_main
[21] wxGUIEventLoop::DoRun()
[22] wxEventLoopBase::Run()
[23] wxAppConsoleBase::MainLoop()
[24] wxEntry(int&, wchar_t**)
[25] __libc_start_main

Discussion

  • Morten MacFly

    Morten MacFly - 2021-01-01

    I think this should be reported upstream to the wxWidgets team. I doubt the error is on our side. Will you do so?

     
    • orzun

      orzun - 2021-01-01

      I'd like to if it's the upstream issue.

       

      Last edit: orzun 2021-01-01
    • orzun

      orzun - 2021-01-02

      According to upstream, it should be fixed if the commit backports to wxWidget 3.0.5.

       
  • Teodor Petrov

    Teodor Petrov - 2021-03-17
    • status: open --> invalid
     
  • Teodor Petrov

    Teodor Petrov - 2021-03-17

    This is something that should be done by the Arch Linux people.

     

Log in to post a comment.