Bug 488654

Summary: The Cube presentation can only be used once
Product: [Plasma] kdeplasma-addons Reporter: sulfinu
Component: CubeAssignee: Plasma Bugs List <plasma-bugs>
Status: CLOSED FIXED    
Severity: normal CC: asturm, grothesk, kde, nate, paul.brown, putr4.s, vlad.zahorodnii
Priority: HI Keywords: regression
Version: 6.1.0   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=486839
Latest Commit: Version Fixed In: 6.1.1
Sentry Crash Report:

Description sulfinu 2024-06-18 09:19:23 UTC
STEPS TO REPRODUCE
1. Launch the Cube presentation of windows.
2. Exit the presentation.
3. Try to relaunch the Cube effect, to no effect. 
The file ~/.local/share/sddm/wayland-session.log is appended the following message:
"QuickSceneEffect.source is empty. Did you forget to call setSource()?"

SOFTWARE/OS VERSIONS
KDE Plasma Version: 6.0.90
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1
Kernel Version: 6.9.4-gentoo (64-bit)
Graphics Platform: Wayland
Graphics Processor: AMD Radeon Graphics
Comment 1 Andreas Sturmlechner 2024-06-19 07:28:41 UTC
Please update to Plasma 6.1.0 and re-test.
Comment 2 Thomas Braun 2024-06-19 14:00:41 UTC
Same here on: 

Operating System: EndeavourOS 
KDE Plasma Version: 6.1.0
KDE Frameworks Version: 6.3.0
Qt Version: 6.8.0
Kernel Version: 6.9.5-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × 13th Gen Intel® Core™ i5-1335U
Memory: 15.3 GiB of RAM
Graphics Processor: Mesa Intel® Graphics
Manufacturer: LENOVO
Product Name: 83A2
System Version: Lenovo V17 G4 IRU
Comment 3 Thomas Braun 2024-06-19 17:22:41 UTC
I forgot to mention that .local/share/sddm/wayland-session.log is always empty. 
Where can I find a log that is filled by the Cube?
Comment 4 Thomas Braun 2024-06-19 17:37:11 UTC
These messages seem to be related to calling the Cube: 

17:32:30.092 UTC user@1000.service This plugin does not support raise()
17:32:30.105 UTC user@1000.service kwin_scene_opengl: 0x1: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
17:32:30.107 UTC user@1000.service kwin_scene_opengl: 0x1: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
17:32:30.110 UTC user@1000.service kwin_scene_opengl: 0x1: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
17:33:11.668 UTC user@1000.service This plugin does not support raise()
17:33:11.681 UTC user@1000.service kwin_scene_opengl: 0x1: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
17:33:11.683 UTC user@1000.service kwin_scene_opengl: 0x1: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
17:33:11.685 UTC user@1000.service kwin_scene_opengl: 0x1: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
17:33:13.700 UTC user@1000.service This plugin does not support raise()
17:33:13.713 UTC user@1000.service kwin_scene_opengl: 0x1: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
17:33:13.715 UTC user@1000.service kwin_scene_opengl: 0x1: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
17:33:13.717 UTC user@1000.service kwin_scene_opengl: 0x1: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
17:33:13.723 UTC user@1000.service kwin_scene_opengl: 0x1: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
Comment 5 Thomas Braun 2024-06-19 17:49:50 UTC
Triggering the Cube with Meta-C key leads to the same messages as in the initial posting. 

17:40:10.119 UTC user@1000.service QuickSceneEffect.source is empty. Did you forget to call setSource()?
17:40:10.835 UTC user@1000.service QuickSceneEffect.source is empty. Did you forget to call setSource()?
17:43:28.306 UTC user@1000.service QuickSceneEffect.source is empty. Did you forget to call setSource()?
17:43:29.186 UTC user@1000.service QuickSceneEffect.source is empty. Did you forget to call setSource()?
17:43:29.640 UTC user@1000.service QuickSceneEffect.source is empty. Did you forget to call setSource()?
17:43:30.074 UTC user@1000.service QuickSceneEffect.source is empty. Did you forget to call setSource()?
17:43:30.956 UTC user@1000.service QuickSceneEffect.source is empty. Did you forget to call setSource()?
17:43:31.683 UTC user@1000.service QuickSceneEffect.source is empty. Did you forget to call setSource()?
17:43:32.070 UTC user@1000.service QuickSceneEffect.source is empty. Did you forget to call setSource()?
17:43:32.481 UTC user@1000.service QuickSceneEffect.source is empty. Did you forget to call setSource()?
17:43:33.024 UTC user@1000.service QuickSceneEffect.source is empty. Did you forget to call setSource()?
17:43:33.492 UTC user@1000.service QuickSceneEffect.source is empty. Did you forget to call setSource()?
17:43:33.943 UTC user@1000.service QuickSceneEffect.source is empty. Did you forget to call setSource()?
Comment 6 Nate Graham 2024-06-19 18:53:59 UTC
I can reproduce this. It's caused by https://invent.kde.org/plasma/kdeplasma-addons/-/commit/8ac1a311519deefd8991a2673d03ab30a7dd1233.

Someone reported the issue during the beta (Bug 486839) and it got fixed with https://invent.kde.org/plasma/kwin/-/commit/84633badc74ca2502bfd33bc4566667eb4bb57ca, which at the time did work for me. But now I can reproduce that it's broken again.
Comment 7 sulfinu 2024-06-20 05:21:44 UTC
(In reply to Andreas Sturmlechner from comment #1)
> Please update to Plasma 6.1.0 and re-test.

Did that, the Cube effect behaves the same (i.e. yields "QuickSceneEffect.source is empty. Did you forget to call setSource()?"). The only noticeable improvement is that the "Beta" watermark disappeared from the lower-right corner of my wallpaper.
Comment 8 Thomas Braun 2024-06-20 06:24:36 UTC
I did revert my system to 

Operating System: EndeavourOS 
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1
Kernel Version: 6.9.5-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 12 × 13th Gen Intel® Core™ i5-1335U
Memory: 15.3 GiB of RAM
Graphics Processor: Mesa Intel® Graphics


Here I can evoke the Cube but can't toggle back to the Desktop with Meta-C.
Comment 9 Bug Janitor Service 2024-06-21 08:06:23 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kdeplasma-addons/-/merge_requests/599
Comment 10 David Edmundson 2024-06-21 09:18:27 UTC
Git commit dfe6fe5e7da7e430c564c274a27f3e814874eb01 by David Edmundson.
Committed on 21/06/2024 at 09:18.
Pushed by davidedmundson into branch 'master'.

effects/cube: reference main delegate

M  +3    -2    kwin/effects/cube/package/contents/ui/main.qml

https://invent.kde.org/plasma/kdeplasma-addons/-/commit/dfe6fe5e7da7e430c564c274a27f3e814874eb01
Comment 11 Nate Graham 2024-06-22 00:33:36 UTC
Git commit 90429d44f0957a65faa50b5cce23ddf9f359075f by Nate Graham.
Committed on 22/06/2024 at 00:33.
Pushed by ngraham into branch 'Plasma/6.1'.

effects/cube: reference main delegate


(cherry picked from commit dfe6fe5e7da7e430c564c274a27f3e814874eb01)

59713d9c effects/cube: reference main delegate
85e97367 Apply 1 suggestion(s) to 1 file(s)

Co-authored-by: David Edmundson <kde@davidedmundson.co.uk>

M  +3    -2    kwin/effects/cube/package/contents/ui/main.qml

https://invent.kde.org/plasma/kdeplasma-addons/-/commit/90429d44f0957a65faa50b5cce23ddf9f359075f
Comment 12 David Edmundson 2024-06-24 10:06:51 UTC
*** Bug 489025 has been marked as a duplicate of this bug. ***
Comment 13 sulfinu 2024-07-05 07:05:58 UTC
I confirm that this has been resolved.