Code::Blocks

User forums => Using Code::Blocks => Topic started by: gd_on on January 07, 2020, 01:07:53 pm

Title: Debug Assert in last svn
Post by: gd_on 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
Title: Re: Debug Assert in last svn
Post by: gd_on on January 07, 2020, 06:20:58 pm
Some more informations : SVN 11931 is OK, SVN 11938 has the problem.
Title: Re: Debug Assert in last svn
Post by: 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.
Title: Re: Debug Assert in last svn
Post by: stahta01 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.
Title: Re: Debug Assert in last svn
Post by: sodev 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 ;).
Title: Re: Debug Assert in last svn
Post by: Miguel Gimenez 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.
Title: Re: Debug Assert in last svn
Post by: Miguel Gimenez on January 09, 2020, 01:31:09 pm
Ticket created:

https://sourceforge.net/p/codeblocks/tickets/910/ (https://sourceforge.net/p/codeblocks/tickets/910/)
Title: Re: Debug Assert in last svn
Post by: gd_on on January 09, 2020, 04:35:47 pm
Patch tested, and for me it works. Thanks.