Author Topic: Debug Assert in last svn  (Read 3196 times)

Offline gd_on

  • Lives here!
  • ****
  • Posts: 796
Debug Assert in last svn
« on: January 07, 2020, 01:07:53 pm »
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 (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline gd_on

  • Lives here!
  • ****
  • Posts: 796
Re: Debug Assert in last svn
« Reply #1 on: January 07, 2020, 06:20:58 pm »
Some more informations : SVN 11931 is OK, SVN 11938 has the problem.
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline sodev

  • Regular
  • ***
  • Posts: 497
Re: Debug Assert in last svn
« Reply #2 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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Debug Assert in last svn
« Reply #3 on: January 07, 2020, 09:44:22 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++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline sodev

  • Regular
  • ***
  • Posts: 497
Re: Debug Assert in last svn
« Reply #4 on: January 07, 2020, 10:28:53 pm »
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 ;).

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Re: Debug Assert in last svn
« Reply #5 on: January 08, 2020, 10:17:17 am »
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.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Re: Debug Assert in last svn
« Reply #6 on: January 09, 2020, 01:31:09 pm »

Offline gd_on

  • Lives here!
  • ****
  • Posts: 796
Re: Debug Assert in last svn
« Reply #7 on: January 09, 2020, 04:35:47 pm »
Patch tested, and for me it works. Thanks.
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).