Bug 478401 - Location Bar disappears and side panel shrinks after restart
Summary: Location Bar disappears and side panel shrinks after restart
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 24.01.80
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2023-12-11 15:32 UTC by VesperLlama
Modified: 2024-01-08 12:23 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Before (154.97 KB, image/png)
2023-12-11 15:32 UTC, VesperLlama
Details
After dolphin restart (94.58 KB, image/png)
2023-12-11 15:33 UTC, VesperLlama
Details

Note You need to log in before you can comment on or make changes to this bug.
Description VesperLlama 2023-12-11 15:32:46 UTC
Created attachment 164090 [details]
Before

SUMMARY
When dolphin is restarted, the location bar disappears and the side panel shrinks to the smallest size. This only happens when scaling is set to 125%. Other scaling settings don't cause the issue.

The location bar has to be removed and then re-added using the toolbar settings to make it appear but it disappears again after dolphin is restarted.


STEPS TO REPRODUCE
1. Set display scaling to 125%.
2. Open Dolphin.

OBSERVED RESULT
The location bar doesn't appear and the side panel is shrunk to smallest size.

EXPECTED RESULT
The location bar and side panel should be same as it was before restarting.

SOFTWARE/OS VERSIONS
Distro: Arch Linux
KDE Plasma Version: 5.90.0 / 6.0 Beta 1
KDE Frameworks Version: 5.246.0
Qt Version: 6.6.1

ADDITIONAL INFORMATION
I tried deleting dolphinrc file in .config but the issue was still present.
Comment 1 VesperLlama 2023-12-11 15:33:17 UTC
Created attachment 164091 [details]
After dolphin restart
Comment 2 Akseli Lahtinen 2023-12-14 12:58:35 UTC
Can't reproduce on Wayland with newest Dolphin build: 24.01.80

Are you on X11 or Wayland?

Operating System: Fedora Linux 39
KDE Plasma Version: 5.90.90
KDE Frameworks Version: 5.247.0
Qt Version: 6.6.0
Kernel Version: 6.6.4-200.fc39.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 3 VesperLlama 2023-12-14 14:52:16 UTC
I am on Wayland. I tested on X11 and the issue is there too. 125% scaling causes the issue on X11 too and other scaling settings were fine. I am on Qt 6.6.1, could it be an issue in this Qt version?

I also tried running Dolphin from the terminal and it showed the following 
> ❯ dolphin
> Adding a KHamburgerMenu directly to a QMenu. This will look odd. Use addToMenu() instead.
> Adding a KHamburgerMenu directly to a QMenu. This will look odd. Use addToMenu() instead.
> The cached device pixel ratio value was stale on window expose.  Please file a QTBUG which explains how to reproduce.

This was not displayed when scaling was at 100% but >100% scale showed this. But only 125% scaling causes this issue so it might not be related.

Is there any way to get more verbose logs?
Comment 4 Akseli Lahtinen 2023-12-14 15:58:52 UTC
It's possible it is Qt related bug, I will ask around about this as well. 

You can get more info with this command:

export QT_LOGGING_RULES="*.debug=true;qt.*=false;org.kde.plasma.pulseaudio=false"
Comment 5 VesperLlama 2023-12-14 18:50:37 UTC
> export
> QT_LOGGING_RULES="*.debug=true;qt.*=false;org.kde.plasma.pulseaudio=false"
I don't see any errors or any line referring to the location bar or side panel.
Comment 6 VesperLlama 2023-12-23 13:36:09 UTC
I have updated to 24.01.85 with 6 Beta 2 and Qt 6.7.0beta1. Now the location bar doesn't disappear. But the panel issue has increased. Now all Dolphin panels (Places, Information, Folders and Terminal) open up at their smallest size every time I open Dolphin even if I close them. (This is also happening in Konsole)

I had set "Show on Startup" setting to the location of my home folder. But after setting "Show on Startup" setting to "Folders, tabs and window state from last time", the issue doesn't appear.

But on Plasma 5 I didn't use this option and it didn't cause this issue. Is this a bug or intended behaviour?
Comment 7 Akseli Lahtinen 2024-01-08 09:45:00 UTC
I can't reproduce this issue. Can you try doing the following and see if it fixes the issue:

1. Go to ~/.local/share/ 
2. Find folder named dolphin
3. Rename it to backup_dolphin
4. Try launching dolphin again
Comment 8 VesperLlama 2024-01-08 12:23:07 UTC
I deleted the dolphinstaterc file in ~./local/share/dolphin and now the panels' size remains the same as before (location bar was already fixed when I updated to Beta 2).

 According to this comment all panels opening is a bug in Qt 6.7. 
> https://www.reddit.com/r/kde/comments/18n3bfb/plasma_6_beta_2_released_we_are_nearly_there_but/ke918wj/
> https://bugreports.qt.io/browse/QTBUG-120191

I think this bug can be closed now. Thanks for the help!