codelite icon indicating copy to clipboard operation
codelite copied to clipboard

[Bug]: Pressing OK/Apply in Settings window results in assertion

Open UffeJakobsen opened this issue 2 years ago • 5 comments

What happened?

Pressing OK or Apply buttons in Settings window results in assertion

ASSERT INFO: /usr/src/debug/wxwidgets/wxWidgets-3.2.2.1/src/common/event.cpp(1930): assert "nNew != dynamicEvents.size()" failed in SearchDynamicEventTable().

BACKTRACE: [1] wxEvtHandler::SearchDynamicEventTable(wxEvent&) [2] wxEvtHandler::TryHereOnly(wxEvent&) [3] wxEvtHandler::ProcessEventLocally(wxEvent&) [4] wxEvtHandler::ProcessEvent(wxEvent&) [5] EventNotifier::ProcessEvent(wxEvent&) [6] wxEvtHandler::ProcessPendingEvents() [7] wxApp::DoIdle() [8] g_main_context_dispatch [9] g_main_loop_run [10] gtk_main [11] wxGUIEventLoop::DoRun() [12] wxEventLoopBase::Run() [13] wxAppConsoleBase::MainLoop() [14] wxEntry(int&, wchar_t**) [15] main [16] __libc_start_main [17] _start

Seen on latest CL from master branch (on archlinux)

image

Version

Self compiled

Operating system

Linux

Steps to reproduce

No response

Relevant log output

No response

UffeJakobsen avatar Jun 20 '23 21:06 UffeJakobsen

Follow up:

Did another build on another archlinux - and here the problem does not seem to occur...

Will need to investigate some more...

UffeJakobsen avatar Jun 21 '23 10:06 UffeJakobsen

I done clean builds with latest master on both systems (both are archlinux's fully updated and fairly identical) One system is ok - the other asserts when pressing OK/Apply in preferences dialog... hmm ...still investigating...

UffeJakobsen avatar Jun 22 '23 15:06 UffeJakobsen

this means that on one box you have built wx with assertions enabled, and on the other without it. You can check this: Ctrl-Alt-Middle mouse and see the wx info

eranif avatar Jun 22 '23 15:06 eranif

It must be something else - WX is not built locally - both are using the same stock wx from the archlinux distribution wxwidgets-common 3.2.2.1-1 wxwidgets-gtk3 3.2.2.1-1

From the message box - identical on both systems

wxWidgets Library (wxGTK port) Version 3.2.2 (Unicode: wchar_t, debug level: 1), compiled at Feb 13 2023 15:34:44

Runtime version of toolkit used is 3.24. Compile-time GTK+ version is 3.24.36.

Copyright (c) 1992-2023 wxWidgets team

UffeJakobsen avatar Jun 22 '23 15:06 UffeJakobsen

Now I managed to recreate the assertion on both systems - here is the steps:

  1. Do a Debug build of codelite (with -DCMAKE_BUILD_TYPE=Debug)

  2. Delete the config/settings dir (~/.codelite-dbg) in order to let codelite generate new settings.

  3. start codelite

  4. Open "Preferences" dialog through menu "Settings | Preferences"

  5. Press Ok in "Preferences" dialog - assertion now appears

UffeJakobsen avatar Jun 23 '23 10:06 UffeJakobsen