Bug 403323 - [Wayland] Image area is missing when opening and using OpenGL rendering (works with Software rendering)
Summary: [Wayland] Image area is missing when opening and using OpenGL rendering (work...
Status: RESOLVED FIXED
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: 19.04.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords: wayland
: 418880 428387 433214 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-01-17 18:02 UTC by Matej Mrenica
Modified: 2021-03-04 18:38 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In: 20.12.3


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matej Mrenica 2019-01-17 18:02:29 UTC
STEPS TO REPRODUCE
1. Open an image from dolphin

OBSERVED RESULT
https://imgur.com/a/GRRjJZR

EXPECTED RESULT
Image shown normally

KDE Frameworks Version: 5.54
Qt Version: 5.12

ADDITIONAL INFORMATION
Resizing the window fixes this, opening the bottom panel (showing other images) also fixes this
Comment 1 Patrick Silva 2019-01-21 15:05:16 UTC
I can confirm when opengl animations are enabled in gwenview settings.

Operating System: Arch Linux 
KDE Plasma Version: 5.14.90
KDE Frameworks Version: 5.54.0
Qt Version: 5.12.0
Comment 2 Nate Graham 2019-01-21 18:20:27 UTC
mthw0, are you using OpenGL animations, or the software renderer?
Comment 3 Matej Mrenica 2019-01-21 20:17:42 UTC
(In reply to Nate Graham from comment #2)
> mthw0, are you using OpenGL animations, or the software renderer?

I don't know. How can I find out?
Comment 4 Nate Graham 2019-01-21 20:32:07 UTC
Open Gwenview > Settings > Configure Gwenview > Image View > Animations
Comment 5 Matej Mrenica 2019-01-21 20:39:48 UTC
(In reply to Nate Graham from comment #4)
> Open Gwenview > Settings > Configure Gwenview > Image View > Animations

It looks like I do use OpenGL.
Comment 6 Nate Graham 2019-01-21 20:40:38 UTC
And it works with Software Rendering?
Comment 7 Matej Mrenica 2019-01-21 20:44:20 UTC
(In reply to Nate Graham from comment #6)
> And it works with Software Rendering?

Yes it does.
Comment 8 Nate Graham 2019-01-21 21:00:02 UTC
Thanks for the information!
Comment 9 Patrick Silva 2020-03-15 19:12:58 UTC
*** Bug 418880 has been marked as a duplicate of this bug. ***
Comment 10 Bug Janitor Service 2021-02-04 17:47:13 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/gwenview/-/merge_requests/37
Comment 11 Nate Graham 2021-02-05 20:55:07 UTC
Git commit 7ed543b53a9fb6d11ef95e439425ed71f952e66b by Nate Graham, on behalf of Madhav Kanbur.
Committed on 05/02/2021 at 20:55.
Pushed by ngraham into branch 'release/20.12'.

Switch from QGLWidget to QOpenGLWidget

* QGLWidget has been deprecated => Nuke it and don't link Qt5::OpenGL

* Switch to the better, newer QOpenGLWidget (introduced in Qt 5.4)

* Fixes the OpenGL Renderer not working
Related: bug 410083, bug 420672
FIXED-IN: 20.12.3

Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com>

M  +1    -1    CMakeLists.txt
M  +0    -1    lib/CMakeLists.txt
M  +5    -10   lib/documentview/documentviewcontainer.cpp

https://invent.kde.org/graphics/gwenview/commit/7ed543b53a9fb6d11ef95e439425ed71f952e66b
Comment 12 Madhav Kanbur 2021-02-11 18:11:17 UTC
*** Bug 428387 has been marked as a duplicate of this bug. ***
Comment 13 Vlad Zahorodnii 2021-02-19 10:17:32 UTC
*** Bug 433214 has been marked as a duplicate of this bug. ***
Comment 14 geisserml 2021-03-04 18:38:53 UTC
Yes, it's fixed now, thanks!