Crashes and / or errors running Lazarus IDE in docked mode on Ubuntu 23
- Lazarus/FPC Version: 2.2.7
- Operating System: Ubuntu 23
- CPU / Bitness: Xeon E5 64bit
What happens
On Ubuntu 23, when launching Lazarus IDE in docked mode (i.e. everything in a single window) the IDE typically appears as a very small window in the top left of the screen. If you make it larger it may report an error relating to window size coordinates being very large or possibly even crash. If the resize happens without reporting any errors or crashing, then most of the docked windows will have weird sizes. For example, the source editor will not have any scrollbars and its window seems to be significantly taller than the space available for it in the docked area. If you scroll the cursor downwards it disappears below the bottom of the docked window and the code does not scroll, instead of staying at the bottom of the screen and the code scrolling upwards. Resizing the Lazarus window is significantly slower than usual.
Here is an example of the error that may occur when resizing the window to a usable size: "Position range overflow in AnchorDockSplitter2.SendMoveSizeMessages: Left=262, Top=40163." The values will vary. If this dialog appears and is acknowledged, it will likely appear again on any further interaction with the window.
If the resize does not cause an error, then attempting to undock any windows has a random success rate. If a window does undock, it is impossible to re-dock it back where it was; it tends to get merged with some other window.
Prior to reporting this issue I have had other people test it for me and they reported exactly the same behaviour. It has also been tested with the latest code and the problem remains. Lazarus has been recompiled to ensure it wasn't some kind of shared library version issue.
What did you expect
IDE should appear in docked mode in a reasonable size and with all windows behaving normally. If I recall correctly it usually remembers its size and location from the last time it was loaded; it definitely does not do this now and then the symptoms already mentioned follow.
Steps to reproduce
On Ubuntu 23; Launch Lazarus with it configured for docked mode (by commenting out --disabledocking from lazarus.cfg). Window will appear small, top left of display Try and resize the window to a usable size. An error may be reported, or it may crash, and the resizing will be slow. Navigate around the source code if still working; the source window will not scroll in the way you would expect Other docked windows will likely not behave correctly either.