Author Topic: Assert failure /src/common/wincmn.cpp(1517)  (Read 3569 times)

Offline Quiss

  • Multiple posting newcomer
  • *
  • Posts: 76
Assert failure /src/common/wincmn.cpp(1517)
« on: March 14, 2018, 12:43:07 pm »
Windows 10 - 1709, Tdm-gcc-5.1.0, wxWidgets 3.0.3
Codeblocks svn 11317

This happens (not every single time but less than 10 I think) when:
- select Settings->Editor
- Just hit Ok. (even if you do not change anything)



"../../src/common/wincmn.cpp(1517): assert "Assert failure" failed in RemoveEventHandler(): where has the event handler gone?"

This is the callstack after hitting Yes:
Code
#0 0x76372cc3	KERNELBASE!DebugBreak() (C:\WINDOWS\System32\KernelBase.dll:??)
#1 0x6a600ede wxWindowBase::RemoveEventHandler(wxEvtHandler*) () (F:\cb\codeblocks_sf\src\devel30\wxmsw30u_gcc_custom.dll:??)
#2 0x6b02e468 wxWindowBase::GetBackgroundColour() const::__FUNCTION__() (F:\cb\codeblocks_sf\src\devel30\wxmsw30u_gcc_custom.dll:??)
#3 0x6b02c970 wxNumValidatorBase::sm_eventTable() (F:\cb\codeblocks_sf\src\devel30\wxmsw30u_gcc_custom.dll:??)
#4 0x6b02d5ec wxNumValidatorBase::sm_eventTable() (F:\cb\codeblocks_sf\src\devel30\wxmsw30u_gcc_custom.dll:??)
#5 0x3 ?? () (??:??)
#6 0x192ce84 ?? () (??:??)
#7 0x6402442f wxBinderEvtHandler::~wxBinderEvtHandler(this=0x11cde7d0, __in_chrg=<optimized out>) (F:/cb/codeblocks_sf/src/plugins/contrib/keybinder/keybinder.h:554)
#8 0x63fd4584 wxKeyBinder::DetachAll(this=0x11993030) (F:\cb\codeblocks_sf\src\plugins\contrib\keybinder\keybinder.cpp:1374)
#9 0x6401fe1d wxKeyBinder::~wxKeyBinder(this=0x11993030, __in_chrg=<optimized out>) (F:/cb/codeblocks_sf/src/plugins/contrib/keybinder/keybinder.h:743)
#10 0x64020943 wxKeyProfile::~wxKeyProfile(this=0x11993030, __in_chrg=<optimized out>) (F:/cb/codeblocks_sf/src/plugins/contrib/keybinder/keybinder.h:963)
#11 0x640208ff wxKeyProfile::~wxKeyProfile(this=0x11993030, __in_chrg=<optimized out>) (F:/cb/codeblocks_sf/src/plugins/contrib/keybinder/keybinder.h:963)
#12 0x6402395a wxKeyProfileArray::Cleanup(this=0x119c97f0) (F:/cb/codeblocks_sf/src/plugins/contrib/keybinder/keybinder.h:1097)
#13 0x640239b9 wxKeyProfileArray::DeepCopy(this=0x119c97f0, p=...) (F:/cb/codeblocks_sf/src/plugins/contrib/keybinder/keybinder.h:1071)
#14 0x64023e21 wxKeyProfileArray::operator=(this=0x119c97f0, tocopy=...) (F:/cb/codeblocks_sf/src/plugins/contrib/keybinder/keybinder.h:1078)
#15 0x63fc4cef cbKeyBinder::OnKeyConfigDialogDone(this=0xf1194e8, dlg=0x93cd7b0) (F:\cb\codeblocks_sf\src\plugins\contrib\keybinder\cbkeybinder.cpp:548)
#16 0x63fc9c9b MyDialog::OnApply(this=0x93cd7b0) (F:\cb\codeblocks_sf\src\plugins\contrib\keybinder\cbkeybinder.cpp:1053)
#17 0x448d33 EditorConfigurationDlg::EndModal(this=0x192f1c4, retCode=5100) (F:\cb\codeblocks_sf\src\src\editorconfigurationdlg.cpp:1168)
#18 0x6a4ea49e wxDialogBase::AcceptAndClose() () (F:\cb\codeblocks_sf\src\devel30\wxmsw30u_gcc_custom.dll:??)
#19 0x24 ?? () (??:??)
#20 0x775b0142 ??() (C:\WINDOWS\System32\shell32.dll:??)
#21 0x6a0832a2 wxAppConsoleBase::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&) (F:\cb\codeblocks_sf\src\devel30\wxmsw30u_gcc_custom.dll:??)
#22 0x192e290 ?? () (??:??)

I define LOGGING in Keybinder project, this is a ss of assert:


Should I create a new ticket? These are related (same?) I think: https://sourceforge.net/p/codeblocks/tickets/591/ and https://sourceforge.net/p/codeblocks/tickets/310/

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Assert failure /src/common/wincmn.cpp(1517)
« Reply #1 on: March 14, 2018, 01:44:47 pm »
Nope, just post your info in one of the other two tickets.
(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!]