Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Assertion in JumpTracker
Miguel Gimenez:
I have just used C::B (current trunk) on Mint 18 and get an assertion when closing C::B. It only asserts with the release, not the debug version, so I have a limited backtrace.
--- Code: ---../src/generic/listctrl.cpp (3386)
assert "litem >= 0 && (size_t)litem < GetItemCount() failed in SetItemState(): invalid list ctrl item index in SetItem
--- End code ---
Backtrace
--- Code: ---1 wxGenericListCtrl::SetItemState(long, long, long)
2 JumpTrackerView::SetJumpTrackerViewIndex(int)
3 JumpTracker::SetJumpTrackerViewIndex(int)
4 JumpTracker::JumpDataAdd(wxString const&, long, long)
5 JumpTracker::OnEditorActivated(CodeBlocksEvent&)
--- End code ---
stahta01:
What wxWidgets version? I will see if the problems happens under Win10 MSys2 UCRT64.
Tim S.
Miguel Gimenez:
wxWidgets 3.0.2 32 bits
GTK+ 2.24.30
christo:
Hi Miguel Gimenez, I have seen such a crash earlier. https://github.com/josephch/codeblocks/commit/5be7d91c955a481a48abe545a86342e9b30f8ed7 should help with this as list item's index should be always less than item count.
Pecan:
--- Quote from: christo on October 21, 2025, 07:44:53 pm ---Hi Miguel Gimenez, I have seen such a crash earlier. https://github.com/josephch/codeblocks/commit/5be7d91c955a481a48abe545a86342e9b30f8ed7 should help with this as list item's index should be always less than item count.
--- End quote ---
I'll make the change and test awhile.
Thanks
Navigation
[0] Message Index
[#] Next page
Go to full version