Bug 494627 - Parent window fades out and re-appears according to window placement mode first time Properties window opened with Qt 6.8.0
Summary: Parent window fades out and re-appears according to window placement mode fir...
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: Properties dialog (other bugs)
Version First Reported In: 6.9.0
Platform: Neon Linux
: HI normal
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords: qt6, regression
: 495403 495423 496623 497244 497248 497659 499385 501349 502362 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-10-13 01:18 UTC by Victor Ryzhykh
Modified: 2025-04-07 19:58 UTC (History)
26 users (show)

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


Attachments
Context menu (175.49 KB, image/jpeg)
2024-10-13 01:18 UTC, Victor Ryzhykh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Victor Ryzhykh 2024-10-13 01:18:01 UTC
Created attachment 174755 [details]
Context menu

Restarting the Dolphin window.

After updating qt6 to version 6.8.0, changes appeared in the operation of Dolphin.
If after launching Dolphin, you open the Properties of any folder in the context menu, the Dolphin window will restart.
This is especially noticeable if Dolphin is running in full screen.
Re-selecting a folder property in the context menu now works without restarting the Dolphin window.
If you close Dolphin and then open it again, this behavior of the folder properties context menu will repeat.


Operating System: ROSA Fresh Desktop 2023.1
KDE Plasma Version: 6.2.0
KDE Frameworks Version: 6.7.0
Qt Version: 6.8.0
Kernel Version: 6.11.3-generic-4rosa2023.1-x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-7700K CPU @ 4.20GHz
Memory: 31.2 ГиБ of RAM
Graphics Processor: NVIDIA GeForce RTX 3050/PCIe/SSE2
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: B250M-D3H
Comment 1 Mahbod Karamoozian 2024-10-19 18:38:08 UTC
can reproduce it in 
GPU: NVIDIA GTX 1650
CPU: Intel Core i3 10100F
RAM: 16GB
Motherboard: ASUS H510M-K
OS: Arch Linux
Kernel: 6.11.3 mainline
Plasma 6.2.1
Qt 6.8
Graphical Session: X11
Comment 2 Victor Ryzhykh 2024-11-04 19:15:21 UTC
The behavior is quite strange.
If you open the properties of system folders located in the root partition in the Dolphin context menu, the opening of the folder properties window occurs smoothly.
The Dolphin window does not restart when actions are performed in the root partition.
If you open the properties of folders in the user's home directory in the Dolphin context menu, then the first time you open the folder properties window, Dolphin will restart.
The same behavior of the Dolphin window occurs when opening the properties of the /tmp folder.
The Dolphin window restarts with the /tmp folder, although when opening the properties window of the rest of the folders in the root / partition, the behavior is correct.
This behavior is on free and proprietary Nvidia drivers.

Operating System: ROSA Fresh Desktop 13
KDE Plasma Version: 6.2.2
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0
Kernel Version: 6.11.6-generic-4rosa13-x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-7700K CPU @ 4.20GHz
Memory: 31.2 ГиБ of RAM
Graphics Processor: NVIDIA GeForce RTX 3050/PCIe/SSE2
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: B250M-D3H
Comment 3 Victor Ryzhykh 2024-11-05 09:56:18 UTC
Same behavior on OpenMandriva.

Operating System: OpenMandriva Cooker
KDE Plasma Version: 6.2.2
KDE Frameworks Version: 6.7.0
Qt Version: 6.8.0
Kernel Version: 6.11.5-desktop-1omv2490 (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i7-7700K CPU @ 4.20GHz
Memory: 7.8 ГиБ of RAM
Graphics Processor: llvmpipe
Manufacturer: QEMU
Product Name: Standard PC (Q35 + ICH9, 2009)
System Version: pc-q35-9.1
Comment 4 Victor Ryzhykh 2024-11-07 01:30:24 UTC
After removing the kdenetwork-filesharing package, the behavior is normalized.
After a new installation of kdenetwork-filesharing, when opening the folder properties in the context menu, the Dolphin window restarts again.
When I do all these actions with Dolphin in the console, I get this output.


$ dolphin 
qrc:/org.kde.filesharing.samba/qml/ACLPage.qml:23:5: QML OverlaySheet: Binding loop detected for property "implicitHeight":
file:///usr/lib64/qt6/qml/org/kde/kirigami/templates/OverlaySheet.qml:132:5
qrc:/org.kde.filesharing.samba/qml/ACLPage.qml:23:5: QML OverlaySheet: Binding loop detected for property "implicitHeight":
file:///usr/lib64/qt6/qml/org/kde/kirigami/templates/OverlaySheet.qml:132:5
qrc:/org.kde.filesharing.samba/qml/ACLPage.qml:23:5: QML OverlaySheet: Binding loop detected for property "implicitHeight":
file:///usr/lib64/qt6/qml/org/kde/kirigami/templates/OverlaySheet.qml:132:5
qrc:/org.kde.filesharing.samba/qml/ACLPage.qml:23:5: QML OverlaySheet: Binding loop detected for property "implicitHeight":
file:///usr/lib64/qt6/qml/org/kde/kirigami/templates/OverlaySheet.qml:132:5
qrc:/org.kde.filesharing.samba/qml/ACLPage.qml:23:5: QML OverlaySheet: Binding loop detected for property "implicitHeight":
file:///usr/lib64/qt6/qml/org/kde/kirigami/templates/OverlaySheet.qml:132:5
qrc:/org.kde.filesharing.samba/qml/ACLPage.qml:23:5: QML OverlaySheet: Binding loop detected for property "implicitHeight":
file:///usr/lib64/qt6/qml/org/kde/kirigami/templates/OverlaySheet.qml:132:5
Comment 5 Victor Ryzhykh 2024-11-07 02:05:28 UTC
Installed the kdenetwork-filesharing package in KDE Neon.
After this, Dolphin's behavior also changed when opening folder properties in Dolphin's context menu.
The main Dolphin window is restarted.
Comment 6 S. Christian Collins 2024-12-20 00:15:36 UTC
Sometimes when this happens for me, the Dolphin window reappears on a different screen than it was before. Also, any window settings I had activated (window pinned on top, inverted colors, etc.) are lost.
Comment 7 S. Christian Collins 2024-12-20 00:19:48 UTC
*** Bug 497659 has been marked as a duplicate of this bug. ***
Comment 8 S. Christian Collins 2024-12-20 00:21:54 UTC
*** Bug 495423 has been marked as a duplicate of this bug. ***
Comment 9 S. Christian Collins 2024-12-20 00:22:35 UTC
*** Bug 495403 has been marked as a duplicate of this bug. ***
Comment 10 Nate Graham 2024-12-20 18:25:17 UTC
Can't reproduce with the properties window opened from Okular, but I can with Dolphin. Seems Dolphin-specific; moving there.
Comment 11 Grósz Dániel 2024-12-20 23:54:03 UTC
(In reply to Nate Graham from comment #10)
> Can't reproduce with the properties window opened from Okular, but I can
> with Dolphin. Seems Dolphin-specific; moving there.

It does seem like this is not quite specific to Dolphin: it also happens when opening the properties of a folder in the Places sidebar in a file dialog, as I mentioned in Bug 497684 (while with a folder in the main area of a file dialog it results in an outright crash, reported in that bug report).

I'm not sure where in Okular you opened a properties window; these bugs only happen with folders, not regular files in my experience, and also Okular's File/Properties opens the PDF (or other file type) specific properties anyway, different from the general properties window.
Comment 12 Nate Graham 2025-01-02 19:29:02 UTC
You're right, it does happen there too.
Comment 13 Grósz Dániel 2025-01-03 00:40:00 UTC
OTOH it doesn't happen in Krusader or Konqueror.
Comment 14 Méven 2025-01-13 17:44:18 UTC
Seems like a redundant of https://bugs.kde.org/show_bug.cgi?id=497248
Comment 15 Nate Graham 2025-01-14 16:48:27 UTC
*** Bug 497248 has been marked as a duplicate of this bug. ***
Comment 16 Nate Graham 2025-01-14 16:48:30 UTC
*** Bug 496623 has been marked as a duplicate of this bug. ***
Comment 17 Nate Graham 2025-01-14 16:48:33 UTC
*** Bug 497244 has been marked as a duplicate of this bug. ***
Comment 18 John Kizer 2025-02-11 15:54:38 UTC
*** Bug 499385 has been marked as a duplicate of this bug. ***
Comment 19 kaminata 2025-02-15 09:48:49 UTC
I can confirm the problem:

Operating System: Arch Linux 
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.2
Kernel Version: 6.13.1-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 32 × Intel® Core™ i9-14900KF
Memory: 62.6 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 4090/PCIe/SSE2
Manufacturer: ASUS
Dolphin: 24.12.1
Comment 20 Fernando M. Muniz 2025-02-15 10:22:35 UTC
I no longer experience the issue of Dolphin restarting when clicking on "Properties" of folder under "Places" now that I've update to Plasma 6.3.

Operating System: Arch Linux 
KDE Plasma Version: 6.3.0
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.2
Kernel Version: 6.13.2-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 8 × 11th Gen Intel® Core™ i5-11300H @ 3.10GHz
Memory: 8.1 GB of RAM
Graphics Processor 1: NVIDIA GeForce GTX 1650
Graphics Processor 2: Intel® Iris® Xe Graphics
Manufacturer: LENOVO
Product Name: 82MG
System Version: IdeaPad Gaming 3 15IHU6
Comment 21 Christian (Fuchs) 2025-02-15 11:42:28 UTC
(In reply to Fernando M. Muniz from comment #20)
> I no longer experience the issue of Dolphin restarting when clicking on
> "Properties" of folder under "Places" now that I've update to Plasma 6.3.

Still present in 6.3, and removing kdenetwork-filesharing still workarounds it, so I would have been surprised if a plasma update would have fixed it.
Comment 22 Akseli Lahtinen 2025-02-19 12:48:28 UTC
Can now repro this after building `kdenetwork-filesharing`

Operating System: Fedora Linux 41
KDE Plasma Version: 6.3.80
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2
Kernel Version: 6.12.13-200.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 15.5 GiB of RAM
Graphics Processor: AMD Radeon RX 6600
Comment 23 Akseli Lahtinen 2025-02-19 13:13:43 UTC
After going this through with GDB, it seems that the dolphin main window closes when this bit of code is being iterated in `kpropertiesdialog.cpp`

```cpp

    const auto jsonPlugins = KPluginMetaData::findPlugins(QStringLiteral("kf6/propertiesdialog"), filter);
    for (const auto &jsonMetadata : jsonPlugins) {
        if (auto plugin = KPluginFactory::instantiatePlugin<KPropertiesDialogPlugin>(jsonMetadata, q).plugin) {
            insertPlugin(plugin);
        }
    }
```

The exact part being:
```
(auto plugin = KPluginFactory::instantiatePlugin<KPropertiesDialogPlugin>(jsonMetadata, q).plugin)
```
Comment 24 Akseli Lahtinen 2025-02-19 13:42:44 UTC
After some more investigation, only `sambausershareplugin` causes this issue. Other plugins work fine.
Comment 25 Harald Sitter 2025-02-19 14:20:40 UTC
You'll probably want to set a breakpoint on QWidgetPrivate::hide_helper
Comment 26 Akseli Lahtinen 2025-02-19 15:09:54 UTC
Thanks to Harald we found out that this can be fixed with `export QT_WIDGETS_RHI=1` env var.

However we probably should add this to Dolphin itself.
Comment 27 Bug Janitor Service 2025-02-20 09:52:30 UTC
A possibly relevant merge request was started @ https://invent.kde.org/system/dolphin/-/merge_requests/911
Comment 28 Mehmet 2025-02-20 19:16:42 UTC
When I set QT_WIDGETS_RHI=1 in /etc/environment I get very weird behavior in plasma wayland session. dekstop right click menus doesnt show fully until you mouse over it then the contents display correctly. Also right clicking to any window to bring up the window options menu or Alt+F3 shrotcut displays a sort of invisible menu. 

https://imgur.com/a/akAPpzE
Comment 29 Méven 2025-02-21 10:15:22 UTC
(In reply to Mehmet from comment #28)
> When I set QT_WIDGETS_RHI=1 in /etc/environment I get very weird behavior in
> plasma wayland session. dekstop right click menus doesnt show fully until
> you mouse over it then the contents display correctly. Also right clicking
> to any window to bring up the window options menu or Alt+F3 shrotcut
> displays a sort of invisible menu. 
> 
This isn't meant as to be applied at the session level in `/etc/environment`.
It will even worsen perf.

But only for dolphin (and potentially other mixed QtWidget QtQuick applications):

QT_WIDGETS_RHI=1 dolphin

> However we probably should add this to Dolphin itself.

As it was implied.
Comment 30 Akseli Lahtinen 2025-02-22 01:23:15 UTC
(In reply to Mehmet from comment #28)
> When I set QT_WIDGETS_RHI=1 in /etc/environment I get very weird behavior in
> plasma wayland session. dekstop right click menus doesnt show fully until
> you mouse over it then the contents display correctly. Also right clicking
> to any window to bring up the window options menu or Alt+F3 shrotcut
> displays a sort of invisible menu. 
> 
> https://imgur.com/a/akAPpzE

Please don't use it as your environment variable. I should have clarified it was for testing only to see what fixes the bug and what doesn't, not an actual solution.

There is work underway to fix this bug.
Comment 31 Greeniac 2025-02-22 04:00:44 UTC
Doesn't happen to me currently. Not sure if it happend before 6.3, i have never noticed this happening.

Operating System: Arch Linux 
KDE Plasma Version: 6.3.1
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.13.3-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-7600K CPU @ 3.80GHz
Memory: 23.4 GiB of RAM
Graphics Processor: AMD Radeon Pro 580X
Manufacturer: Apple Inc.
Product Name: iMac18,3
System Version: 1.0
Comment 32 Bug Janitor Service 2025-02-24 11:06:00 UTC
A possibly relevant merge request was started @ https://invent.kde.org/network/kdenetwork-filesharing/-/merge_requests/63
Comment 33 Akseli Lahtinen 2025-02-24 13:46:14 UTC
Git commit ace9a6511252f7e61297d1052824c41c2b789f50 by Akseli Lahtinen.
Committed on 24/02/2025 at 13:46.
Pushed by akselmo into branch 'master'.

If parent is mainWindow and rasterSurface, use Software rendering

When opening a properties dialog, or any dialog that uses
QtQuick (`QQuickView`), Dolphin will restart since it uses raster surface,
and QtQuick expects GPU accelerated surface.

During plugin construction, check if the parent window is using RasterSurface.
If so, set the QQuickWindow API to Software.

This fixes the restarting of Dolphin when opening properties, for example.

M  +18   -1    samba/filepropertiesplugin/sambausershareplugin.cpp

https://invent.kde.org/network/kdenetwork-filesharing/-/commit/ace9a6511252f7e61297d1052824c41c2b789f50
Comment 34 John Kizer 2025-03-26 18:02:28 UTC
*** Bug 501349 has been marked as a duplicate of this bug. ***
Comment 35 Nate Graham 2025-04-04 14:40:46 UTC
*** Bug 502362 has been marked as a duplicate of this bug. ***
Comment 36 kaminata 2025-04-04 23:41:48 UTC
Hello,
When the fix should lend to end users?
Comment 37 TraceyC 2025-04-07 17:59:00 UTC
The commit that fixed this has the tags 
v25.03.80 v25.03.90

This fix will be present in Dolphin 25.03
Comment 38 kaminata 2025-04-07 19:58:35 UTC
(In reply to TraceyC from comment #37)
> The commit that fixed this has the tags 
> v25.03.80 v25.03.90
> 
> This fix will be present in Dolphin 25.03

Thank you TraceyC!