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

Offline gd_on

  • Lives here!
  • ****
  • Posts: 547
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 10, svn C::B (last version or almost!), WxWidgets 3.1.3, Compilers 8.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\MinGW64) or 32 bits (sjlj, posix in C:\MinGW32).

Offline gd_on

  • Lives here!
  • ****
  • Posts: 547
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 10, svn C::B (last version or almost!), WxWidgets 3.1.3, Compilers 8.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\MinGW64) or 32 bits (sjlj, posix in C:\MinGW32).

Offline sodev

  • Regular
  • ***
  • Posts: 362
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: 6797
    • 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 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline sodev

  • Regular
  • ***
  • Posts: 362
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

  • Regular
  • ***
  • Posts: 413
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

  • Regular
  • ***
  • Posts: 413
Re: Debug Assert in last svn
« Reply #6 on: January 09, 2020, 01:31:09 pm »

Offline gd_on

  • Lives here!
  • ****
  • Posts: 547
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 10, svn C::B (last version or almost!), WxWidgets 3.1.3, Compilers 8.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\MinGW64) or 32 bits (sjlj, posix in C:\MinGW32).