Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: christo on August 16, 2026, 07:34:05 am

Title: Assertion on closing codeblocks due to wxWidgets 3.3
Post by: christo on August 16, 2026, 07:34:05 am
There is a regression in wxWidgets causing assertion window on closing codeblocks if the project tree is expanded and is big.

Code
../src/generic/treectlg.cpp(1539): assert "IsVisible(item)" failed in GetNextVisible(): this item itself should be visible

I've reported it to wxWidgets project and fix is identified. https://github.com/wxWidgets/wxWidgets/issues/26839

Title: Re: Assertion on closing codeblocks due to wxWidgets 3.3
Post by: Miguel Gimenez on August 17, 2026, 02:28:37 pm
There is a similar issue, see wxTreeCtrl::GetFirstVisibleItem() returns invisible item on MSW if the tree is hidden (https://github.com/wxWidgets/wxWidgets/issues/25829). I added an item visibility check to avoid an assertion when the project tree was hidden on project loading.