Recent

Author Topic: crash db navigator with LCL Scaling and low res  (Read 670 times)

calm_sea

  • New Member
  • *
  • Posts: 49
crash db navigator with LCL Scaling and low res
« on: December 12, 2024, 03:27:42 pm »
Hi to everyone. I have application crash. The crash does not occur if LCL Scaling (Hi-DPI), but I have to enable it. The crash occurs if I move with the mouse to the dbnavigator, even without clicking. Occurs only at resolution below 1920 1080

calm_sea

  • New Member
  • *
  • Posts: 49
Re: crash db navigator with LCL Scaling and low res
« Reply #1 on: December 12, 2024, 03:49:31 pm »
solved using panel and align al client

wp

  • Hero Member
  • *****
  • Posts: 12521
Re: crash db navigator with LCL Scaling and low res
« Reply #2 on: December 12, 2024, 04:38:53 pm »
Hi to everyone. I have application crash. The crash does not occur if LCL Scaling (Hi-DPI), but I have to enable it. The crash occurs if I move with the mouse to the dbnavigator, even without clicking. Occurs only at resolution below 1920 1080
Just to check: What is your operating system? In case of Linux: which widgetset (gtk2, qt, qt5, qt6)? Which Lazarus/FPC version? What is the monitor resolution in pixels per inch?

calm_sea

  • New Member
  • *
  • Posts: 49
Re: crash db navigator with LCL Scaling and low res
« Reply #3 on: December 12, 2024, 04:47:41 pm »
I didn't solve it. It had been a allucination. OS windows 11. On full hd screens everything is OK. On lower resolution screens, or lowering the full hd crash resolution when I move the muose on the dbnavigator

calm_sea

  • New Member
  • *
  • Posts: 49
Re: crash db navigator with LCL Scaling and low res
« Reply #4 on: December 12, 2024, 04:48:47 pm »
LAZARUS 3.6

wp

  • Hero Member
  • *****
  • Posts: 12521
Re: crash db navigator with LCL Scaling and low res
« Reply #5 on: December 12, 2024, 05:34:28 pm »
On full hd screens everything is OK. On lower resolution screens, or lowering the full hd [...]
This does not an answer my question. You are mentioning LCLScaling, and the screen's pixel-per-inch density is an important parameter for it. In Windows, right-click on the desktop, select "Display settings". In the block "Scaling and Layout" (or similar...), what is shown in the field "Scaling (changes the size of text, apps and other elements)"? If you see "100%" here, you do not need LCLScaling at all. On the other hand, if I know your pixels-per-inch I can run experiments on my own and check whether the DBNavigator has a scaling issue. Or better: Create a small demo application showing the issue and upload it here.

calm_sea

  • New Member
  • *
  • Posts: 49
Re: crash db navigator with LCL Scaling and low res
« Reply #6 on: December 12, 2024, 06:01:45 pm »
I, at home, have two PCs that I use with 1920 x 1080 and 125% and I have made an application that works perfectly. At school on many different PCs, all of which have 1366 x 768 resolution and 100% , the application crashes on the db navigator. If , in the PC I have at home to develop ,I lower the resolution to 1366 x 768 and 100% the application crashes on my PC as well

calm_sea

  • New Member
  • *
  • Posts: 49
Re: crash db navigator with LCL Scaling and low res
« Reply #7 on: December 12, 2024, 06:06:47 pm »
Another thing. sometimes, before crashing, I have an error   list index out of bound I use Firebird Embedded latest version

calm_sea

  • New Member
  • *
  • Posts: 49
Re: crash db navigator with LCL Scaling and low res
« Reply #8 on: December 12, 2024, 08:45:56 pm »
I moved the management of the table from a pagecontrol of the main form to a dedicated form and the problem disappeared

wp

  • Hero Member
  • *****
  • Posts: 12521
Re: crash db navigator with LCL Scaling and low res
« Reply #9 on: December 12, 2024, 11:07:46 pm »
Just made a simple application with a TBufDataset, TDataSource and TDBNavigator on Windows at 100% and 1024x768, and I did not see a crash when I moved with the mouse over the DBNavigator. Please try to create and upload a small project which demonstrates the error.

calm_sea

  • New Member
  • *
  • Posts: 49
Re: crash db navigator with LCL Scaling and low res
« Reply #10 on: December 13, 2024, 01:45:38 pm »
Now I have many dbnavigators and none had problems. Just one what I had error in a tabpage in the main form. I suspect that the problem was connected with from the fact that I do development and testing on fullhd pc at 125% and that problem arose on other pc with the exe at 1440x900 at 100% . Now I don't have any problems, so if I do a project it definitely works.

 

TinyPortal © 2005-2018