News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Debug Assert in last svn

Started by gd_on, January 07, 2020, 01:07:53 PM

Previous topic - Next topic

gd_on

When clicking on Settings / Environment, I obtain a debug Assert.
Even if I choose "Don't show this dialog again", it appears when C::B is restarted.
Clicking on Continue, seems to be OK.
I see this in svn 11949, but it's apparently not new (I have not been able to find when it began, sorry).

gd_on
Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

gd_on

Some more informations : SVN 11931 is OK, SVN 11938 has the problem.
Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

sodev

This is caused by the loghacker plugin that got enabled by 11935, removing the rows constraint like the assert suggests should fix it.

stahta01

Quote from: sodev on January 07, 2020, 08:52:10 PM
This is caused by the loghacker plugin that got enabled by 11935, removing the rows constraint like the assert suggests should fix it.

To confirm the loghacker plugin as the cause, I would disable loghacker plugin and see if the problem goes away.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

sodev

I leave this excercise for the interested audience ;D. In the given range of revisions this is the only commit that introduces GUI code and loghacker is the only element using a wxFlexGridSizer which it initializes as 2x2 grid but adds 6 elements ;).

Miguel Gimenez

Taking apart the obvious error in wxFlexGridSizer constructor, there is another issue in the post build steps of loghacker_wx31.cbp: the output directory must be devel31, not devel.

The attached patch fixes both issues.

Miguel Gimenez


gd_on

Patch tested, and for me it works. Thanks.
Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).