Bug 479455 - Move digiKam from the primary Full HD monitor to the secondary 4K monitor, the window is broken.
Summary: Move digiKam from the primary Full HD monitor to the secondary 4K monitor, th...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Usability-Ergonomy (show other bugs)
Version: 8.2.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-01-06 08:26 UTC by anegro
Modified: 2024-01-07 20:06 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 8.3.0
Sentry Crash Report:


Attachments
The browser and the image thumbnails are shrinked to a small portion of a white background. Also appears some strange squares on the white surface. (98.38 KB, image/jpeg)
2024-01-06 08:26 UTC, anegro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description anegro 2024-01-06 08:26:46 UTC
Created attachment 164701 [details]
The browser and the image thumbnails are shrinked to a small portion of a white background. Also  appears some strange squares on the white surface.

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Open digikam. It opens in the primary FullHD monitor.
2. Drag digikam window with mouse   to the secondary 4K monitor
or
3.  Tried to move with keyboard shortcut (Windows button+arrow) repeated more times caused Blue Screen

OBSERVED RESULT
digikam window is shrinked  inside a bigger white  window on the secondary monitor. when I switch to full size window, the appearance reamains the same. When I drag back the window to the first FullHD monitor, the appearance is ok again.

EXPECTED RESULT
Moving digikam to another monitor with different resolution, have to mantain the original window resolution, and switching to the whole monitor cover the entire screen with no white, empty surface.

SOFTWARE/OS VERSIONS
Windows: 10

Qt Version: 6.6.0

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2024-01-06 08:44:01 UTC
We made many changes in bug 477795 so that the changed device pixel ratio is passed on to the required components. Although your screenshot looks strange, please test the latest digiKam-8.3.0 pre-version from here:

https://files.kde.org/digikam/

Maik
Comment 2 anegro 2024-01-06 12:51:03 UTC
I tried the suggeste 8.3 version but the result is the same
Comment 3 Maik Qualmann 2024-01-06 14:10:25 UTC
It will be a problem with your graphics hardware/drivers. If you have the opportunity to update the driver, please do so.

I tested it again here today, with an Intel Mini PC (Windows 11) with Intel Graphics and 2x HDMI output. A TV screen with 4k resolution and 200% scaling and an HD screen with 100% scaling. I can drag digiKam between the two screens without any problems and it adjusts without any problems.

You can test one more thing, please remove the OpenGL32.dll in the C:\Program Files\digiKam\ directory to see if there is a change.

Maik
Comment 4 anegro 2024-01-06 21:39:52 UTC
Tried to remove that dll and installed the latest nvidia driver and no change, the same problem...
Comment 5 anegro 2024-01-06 22:00:29 UTC
I also changed  my 4K monitor to be the primary and digikam opens directly on that screen but it looks in the same way. Whwn I move on the another (now secondary) FullHD monitor, it's ok again.
Comment 6 Maik Qualmann 2024-01-06 22:29:09 UTC
I think we can't solve this problem. We will have to wait and see how things develop with new Qt6 versions.

Maik
Comment 7 Maik Qualmann 2024-01-07 09:30:59 UTC
Git commit 581acb950c8e10a607571853694141a3bd40cdbe by Maik Qualmann.
Committed on 07/01/2024 at 10:26.
Pushed by mqualmann into branch 'master'.

add digiKam setting to force use of software OpenGL rendering
Related: bug 476092, bug 468980, bug 472918, bug 446511, bug 446729

M  +5    -4    core/app/main/main.cpp
M  +15   -0    core/showfoto/main/main.cpp
M  +2    -0    core/utilities/setup/misc/systemsettings.cpp
M  +1    -0    core/utilities/setup/misc/systemsettings.h
M  +5    -0    core/utilities/setup/misc/systemsettingswidget.cpp

https://invent.kde.org/graphics/digikam/-/commit/581acb950c8e10a607571853694141a3bd40cdbe
Comment 8 Maik Qualmann 2024-01-07 16:49:10 UTC
A new digiKam-8.3.0 pre-version is available. In the digiKam settings under Miscellaneous-> System, activate the option to force software OpenGL. Restart digiKam and test whether the problem still occurs in the 4K screen.

https://files.kde.org/digikam/

Maik
Comment 9 anegro 2024-01-07 19:17:12 UTC
With the previous pre-version I made some settings in Compatibility mode, at "Change High DPI settiings" section. At "High DPI scaling override" checked the "System" option. Now it works as expected.
Comment 10 Maik Qualmann 2024-01-07 19:41:15 UTC
Can you please try with the current version without the compatible mode options set. And only use the digiKam option to force software OpenGL?

Maik
Comment 11 anegro 2024-01-07 19:58:11 UTC
Installed the new version and  digikam window behave normal when switch between the two monitors, but the menu titles are compressed on the 4K monitor. Not visible all words, both in top  main menu and in the right side menu. When enable at   "High DPI scaling override" section the "System" option  the menus are ok again.
Comment 12 Maik Qualmann 2024-01-07 20:03:36 UTC
Ok, I've already noticed the menu items, this is a KF6 component. We'll keep an eye on it, I'll close the bug now.

Maik