Bug 411902

Summary: Interface icons become very large and unusable
Product: [Applications] digikam Reporter: Geoff King <gsking1>
Component: Usability-ThemesAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: major CC: caulier.gilles, kgh5, metzpinguin, phreichmuth, styleling
Priority: NOR    
Version: 6.3.0   
Target Milestone: ---   
Platform: macOS (DMG)   
OS: macOS   
Latest Commit: Version Fixed In: 6.4.0
Sentry Crash Report:
Attachments: upscaled window

Description Geoff King 2019-09-14 02:00:03 UTC
The interface icons become very large and only the upper left corner of the screen is visible after entering the Image Editor.  It also happens occasionally with other clicks, but I can trigger it by going into image editor.


STEPS TO REPRODUCE
1. Select an image
2. click the Image Editor button
3. 

OBSERVED RESULT
The image editor opens, but is unusable because it is magnified and only the top left corner of the screen is visible. Also happens with Light Table.

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 10.14.6
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2019-09-14 05:32:33 UTC
Can you take a screenshot or maybe even a screencast? At the moment I have no idea what the cause of the problem is.

Maik
Comment 2 caulier.gilles 2019-09-14 05:37:29 UTC
Also give us which icon theme you use from setup dialog, and which color theme is selected from main menu.

Note that i just ported all DK 6.4.0 bundles to KF5 framework 5.61 which include breeze theme. Perhaps this update will fix your problem. This will be available in next PKG 6.4.0 pre-release. Compiling is under way and file will be ready to download in one hour at usual place :

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

Gilles Caulier
Comment 3 caulier.gilles 2019-09-14 05:46:47 UTC
Maik,

just for info, the Qt version used to compule digiKam under MacOS is an old one, not the 5.12.5 LTS (Appimage) or 5.13.1 (MXE):

https://invent.kde.org/kde/digikam/blob/master/project/bundles/macports/01-build-macports.sh#L251

It's possible to use a more recent version of Qt as Macports provide 5.12.x for ex, but this will reduce again the compatibility at run-time with older MacOS version. It's explained in Qt platform page that MacOS API are used in some parts and compatibility is not well supported with older version. It's a know problem, so i would to progress slowly with Qt version here.

Gilles
Comment 4 caulier.gilles 2019-09-14 05:53:15 UTC
For info, my MacOS/Qt compatibility sheet :

https://invent.kde.org/kde/digikam/blob/master/project/bundles/macports/config.sh#L28

Gilles
Comment 5 Geoff King 2019-09-14 12:46:30 UTC
Created attachment 122651 [details]
upscaled window
Comment 6 Geoff King 2019-09-14 12:52:17 UTC
Attachment added showing the issue. 
Color Theme: Breeze Dark
Theme: FusionGray

It is as if the entire window is scaled larger, both icons and image. 

digikam version 6.3.0
CPU cores: 8
Eigen: 3.3.7
Exiv2: 0.27.2
Exiv2 can write to Jp2: Yes
Exiv2 can write to Jpeg: Yes
Exiv2 can write to Pgf: Yes
Exiv2 can write to Png: Yes
Exiv2 can write to Tiff: Yes
Exiv2 supports XMP metadata: Yes
ImageMagick codecs: 6.9.9
KF5: 5.59.0
LensFun: 0.3.2-0
LibCImg: 130
LibJPEG: 90
LibJasper: 2.0.14
LibLCMS: 2090
LibLqr support: No
LibPGF: 7.19.03
LibPNG: 1.6.37
LibRaw: 0.19.5
LibTIFF: 4.0.10
Marble: 0.27.20
Parallelized demosaicing: No
Qt: 5.11.3
Qt Webkit support: Yes
VKontakte support: No
AkonadiContact support: No
Baloo support: No
Calendar support: Yes
DBus support: No
Database backend: QSQLITE
HTML Gallery support: Yes
LibAVCodec: 58.54.100
LibAVFormat: 58.29.100
LibAVUtil: 56.31.100
LibGphoto2: 2.5.23
LibOpenCV: 3.4.7
LibQtAV: 1.13.0
Media player support: Yes
Panorama support: Yes
Comment 7 Geoff King 2019-09-14 14:00:22 UTC
Still present in 6.4-git (Build date: Sep 14 2019 (target: debugfull))
The scale is about double in both directions for the window. Mouse clicks are in the correct, unscaled places, but the graphical elements are enlarged and scaled to a different part of the window.

Only Image Editor and Light Table appear to be affected. 

I am now also noticing an issue with the Open GL Image Viewer.  Upon trying to exit that I get a black screen on the desktop, full-screen.
Comment 8 caulier.gilles 2019-09-14 14:11:12 UTC
Left mouse click somewhere over the tool bar buttons, and select another icon size from pop-up menu. This problem still reproducible ?

Gilles Caulier
Comment 9 Maik Qualmann 2019-09-14 15:51:08 UTC
For me, it looks like the window content is zoomed. Status bar and right sidebar have also disappeared. The Mac provides options for zooming in the Settings menu under user help. Could you please check if you have activated a zoom with a keyboard shortcut?

Maik
Comment 10 caulier.gilles 2019-09-14 16:27:55 UTC
Maik, 

It's fully reproducible here : https://imgur.com/mCbnuLu

The dysfunction appear since i updated MacOS to last Mojave 10.14.6. I do it one day ago, and i'm sure to check digiKam when i package 6.3.0 6 days ago.

I don't see an option to zoom application contents under MacOS. Also why all DK windows are affected expected album GUI, plugins, setup dialog ?

Gilles
Comment 11 caulier.gilles 2019-09-14 16:33:55 UTC
I suspect that some maindows open as children than album GUI use one wrong properties. QDialog based view work as expected, as BQM, and Import Tool.

Affected view : Image Editor, Light Table, Tag Manager. Showfoto main view is also affected by this dysfunction.

Gilles
Comment 12 Maik Qualmann 2019-09-14 21:29:25 UTC
Do I understand it correctly that BQM and Import windows are OK?

Maik
Comment 13 caulier.gilles 2019-09-15 04:58:24 UTC
yes exactly... Strange no ?

I suspect a bug in Qt 5.11 under MacOS. The LTS version is 5.12. i will try to recompile DK with this version with Macports to see if problem is reproducible.

Gilles
Comment 14 caulier.gilles 2019-09-16 04:04:19 UTC
Git commit a83d952fb87edf590506d8175421fa3d6caba64e by Gilles Caulier.
Committed on 16/09/2019 at 04:00.
Pushed by cgilles into branch 'master'.

Under MacOS, use now Qt 5.12 LTS instead 5.11 which has a bug with Hdpi support
Note: Due to Qt requirements to compile, the minimal MacOS version supported is 10.12 (Sierra)

M  +2    -1    NEWS
M  +11   -6    project/bundles/macports/01-build-macports.sh
M  +2    -2    project/bundles/macports/config.sh

https://invent.kde.org/kde/digikam/commit/a83d952fb87edf590506d8175421fa3d6caba64e
Comment 15 Maik Qualmann 2019-10-13 06:02:01 UTC
*** Bug 412893 has been marked as a duplicate of this bug. ***
Comment 16 Maik Qualmann 2019-10-13 19:13:50 UTC
*** Bug 412917 has been marked as a duplicate of this bug. ***
Comment 17 00pippo 2019-10-13 19:35:22 UTC
(In reply to Maik Qualmann from comment #1)
> Can you take a screenshot or maybe even a screencast? At the moment I have
> no idea what the cause of the problem is.
> 
> Maik

I would have to install 6.3.0 again and downgrade again afterwards. Right now I have not the time for this. Give me a few days.
Comment 18 00pippo 2019-10-13 19:36:48 UTC
(In reply to Maik Qualmann from comment #12)
> Do I understand it correctly that BQM and Import windows are OK?
> 
> Maik

All other windows are ok (without knowing what BWM is). In the editor the whole right border with the toolbar tabs is missing not there.
Comment 19 Maik Qualmann 2019-10-13 19:42:23 UTC
This bug is for reference only, that the error has already been reported and fixed. We already have several confirmations that the current pre-release fixes this bug.

Maik
Comment 20 caulier.gilles 2019-10-31 05:04:25 UTC
*** Bug 413656 has been marked as a duplicate of this bug. ***