Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: AndrewCot on July 16, 2022, 01:01:50 pm

Title: C::B and wxWidgets 3.2.0 debug window "jumping" query
Post by: AndrewCot on July 16, 2022, 01:01:50 pm
I do not know if this is something I have caused in my local C::B build with wxWidgets 3.2.0 or it's a wx3.2 issue and as such if someone has time who has built C::B with wxWidgets 3.2.0 on Windows could you let me know if you do or do not get the same jumping dialog issue I have when you do the following quick test I would greatly appreciate it:


NOTE: Do not click on anything else while doing the test as it may case the test to pass (aka the dialog will not jump).Did the Watches dialog move when you opened the Breakpoints dialog in the last step above?


The same test with the C::B nightly SVN 12829 does not have any issues.
Title: Re: C::B and wxWidgets 3.2.0 debug window "jumping" query
Post by: AndrewCot on July 19, 2022, 01:20:41 pm
If you are using wxWidgets 3.1.5 or 3.1.6 then you will not have the issue.If you are using wxWidgets 3.1.7 or 3.2.0 then you will have the issue
Title: Re: C::B and wxWidgets 3.2.0 debug window "jumping" query
Post by: Miguel Gimenez on July 19, 2022, 01:51:30 pm
The third step is not needed to reproduce. the issue. In fact, anytime you reopen any debug window it opens displaced to the right and down.

Looks like a problem with AUI.
Title: Re: C::B and wxWidgets 3.2.0 debug window "jumping" query
Post by: AndrewCot on July 19, 2022, 01:52:45 pm
I took a punt and copied the wxWidget 3.1.7 src\aui\floatpane.cpp over the 3.1.6 file and rebuilt wxWidget 3.1.6 and updated the wx*.dll files in the C::B devel31 directory without re-building C::B. The issue occured.
 
I then went back to the original wxWidget 3.1.6 src\aui\floatpane.cpp file and and rebuilt wxWidget 3.1.6 and updated the wx*.dll files in the C::B devel31 directory without re-building C::B. The issue did not occur.
 

The change is due to https://github.com/wxWidgets/wxWidgets/pull/22458 (https://github.com/wxWidgets/wxWidgets/pull/22458)
 
What do we do about this?
Title: Re: C::B and wxWidgets 3.2.0 debug window "jumping" query
Post by: AndrewCot on July 19, 2022, 01:58:39 pm
Reported in https://github.com/wxWidgets/wxWidgets/issues/22533
Title: Re: C::B and wxWidgets 3.2.0 debug window "jumping" query
Post by: AndrewCot on July 19, 2022, 02:08:10 pm
You can use the 3.1.6 src\aui\floatpane.cpp file in 3.1.7 or 3.2.0 as there are no other changes, apart from the change that is causing the problem in 3.1.7 (3.2.0 is the same file as 3.1.7).
Title: Re: C::B and wxWidgets 3.2.0 debug window "jumping" query
Post by: ollydbg on July 19, 2022, 04:15:31 pm
It looks like someone is preparing a fix: AUI floatpane drifting on Windows fixed by valid-ptr Pull Request #22651 wxWidgets/wxWidgets (https://github.com/wxWidgets/wxWidgets/pull/22651)

Title: Re: C::B and wxWidgets 3.2.0 debug window "jumping" query
Post by: AndrewCot on July 27, 2022, 12:18:56 am
Fix was merged yesterday:https://github.com/wxWidgets/wxWidgets/pull/22651