Bug 501787 - File selector closes when hovering pdf files
Summary: File selector closes when hovering pdf files
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: Open/save dialogs (other bugs)
Version First Reported In: 6.12.0
Platform: Arch Linux Linux
: HI grave
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords: regression
: 505255 505559 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-03-20 10:54 UTC by Quentin Guyot
Modified: 2025-06-19 21:43 UTC (History)
7 users (show)

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


Attachments
attachment-711566-0.html (2.44 KB, text/html)
2025-03-21 06:26 UTC, Quentin Guyot
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Quentin Guyot 2025-03-20 10:54:31 UTC
SUMMARY
When I save or open files with the KDE file picker and there's a pdf in any of the folders I explore, whenever I hover the pdf file, the file selector exits without selecting or saving anything.


STEPS TO REPRODUCE
1. Open a file using the file picker
2. move to a folder containing a pdf
3. hover the pdf with the mouse

OBSERVED RESULT
The file selector terminates and no file has been selected

EXPECTED RESULT
The file selector doesn't terminate until I close it, or I select a file.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.3
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2
Kernel Version: 6.13.7-arch1-1 (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
I tried with falkon, chromium and firefox (with the portal). They all do as described earlier in the report.

I just tried with Gwenview, and the file selector disappears temporarily, and then i can use it normally.
Comment 1 TraceyC 2025-03-21 00:50:40 UTC
If something exited abnormally, it may have crashed. We need a backtrace of it so we can figure out what's going on. Can you please attach a backtrace of the crash using the coredumpctl command-line program, as detailed in https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl?

Thanks!
Comment 2 Quentin Guyot 2025-03-21 06:26:09 UTC
Created attachment 179622 [details]
attachment-711566-0.html

There's no entry for the file selector in coredumpctl --reverse

When I do the procedure with chromium launched from a terminal I get this message

[79061:79061:0321/071937.952883:ERROR:request.cc(165)] Request cancelled by user.

so I guess the file selector understands "hovering a pdf" as "cancel".

The only difference I noticed with pushing cancel is that, when i hover a pdf there's a bouncy cursor notification after the selector closes.

Le 21/03/2025 à 01:50, TraceyC a écrit :

> https://bugs.kde.org/show_bug.cgi?id=501787
> TraceyC
> [<kdedev@tlcnet.info>](mailto:kdedev@tlcnet.info)
> changed:
>
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>          Resolution|---                         |WAITINGFORINFO
>              Status|REPORTED                    |NEEDSINFO
>                  CC|                            |
> kdedev@tlcnet.info
> --- Comment #1 from TraceyC
> [<kdedev@tlcnet.info>](mailto:kdedev@tlcnet.info)
> ---
> If something exited abnormally, it may have crashed. We need a backtrace of it
> so we can figure out what's going on. Can you please attach a backtrace of the
> crash using the coredumpctl command-line program, as detailed in
> https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl
> ?
>
> Thanks!
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 3 TraceyC 2025-03-21 14:48:18 UTC
Well, that's weird. Thanks for the detail, that helps. I'll let the frameworks maintainers take a deeper look from here.
Comment 4 John Kizer 2025-04-07 19:36:03 UTC
Hi - just checking, do you have poppler installed on your device?
Comment 5 Quentin Guyot 2025-04-12 21:12:23 UTC
(In reply to John Kizer from comment #4)
> Hi - just checking, do you have poppler installed on your device?

Yes I do.
Comment 6 Akseli Lahtinen 2025-05-05 11:02:00 UTC
Testing this out in Arch VM, I am unable to reproduce it. This sounds very similar to https://bugs.kde.org/show_bug.cgi?id=494627 but when the file picker disappears, it just thinks you didn't do anything.

Do you have any thumbnailers installed in /usr/share/thumbnailers?
Comment 7 John Kizer 2025-05-05 19:18:22 UTC
Updating status pending a response, thanks!
Comment 8 Quentin Guyot 2025-05-05 20:38:37 UTC
ls /usr/share/thumbnailers  returns

avif.thumbnailer  gdk-pixbuf-thumbnailer.thumbnailer  heif.thumbnailer  jxl.thumbnailer  librsvg.thumbnailer
Comment 9 Akseli Lahtinen 2025-05-05 21:59:41 UTC
Thanks!
Comment 10 Akseli Lahtinen 2025-05-08 15:19:25 UTC
Could you try another thing for me: Go to dolphin settings, interface side tab, previews tab, set "Remote storage preview" to "No file" and see if that fixes your issue.

I still haven't been able to reproduce the issue you're having proper, so this will help narrow it down.

Thanks!
Comment 11 Quentin Guyot 2025-05-13 16:24:55 UTC
It was already set up to "no file" for remote storage preview.
Comment 12 Nate Graham 2025-06-12 14:06:34 UTC
*** Bug 505255 has been marked as a duplicate of this bug. ***
Comment 13 Nate Graham 2025-06-12 14:07:33 UTC
It is possible though by no means certain that the final piece of the fix for Bug 490827 will fix this too.
Comment 14 Konstantin 2025-06-12 14:36:56 UTC
(In reply to Nate Graham from comment #13)
> It is possible though by no means certain that the final piece of the fix
> for Bug 490827 will fix this too.

Perhaps this is not a duplicate of the error, because I have a problem not only with PDF, but for example json, rar, etc.
Comment 15 Nate Graham 2025-06-16 16:21:57 UTC
*** Bug 505559 has been marked as a duplicate of this bug. ***
Comment 16 Nate Graham 2025-06-16 16:22:28 UTC
It would be great to know if Frameworks 6.16 (or current git master of KIO) fixes this for affected people.
Comment 17 Quentin Guyot 2025-06-16 18:11:02 UTC
(In reply to Konstantin from comment #14)
> (In reply to Nate Graham from comment #13)
> > It is possible though by no means certain that the final piece of the fix
> > for Bug 490827 will fix this too.
> 
> Perhaps this is not a duplicate of the error, because I have a problem not
> only with PDF, but for example json, rar, etc.

It might be.

I said "pdf" because it was the only type of file that had issues.

I added a deck to my Anki earlier today, and it crashed the file picker as well.

The earlier discussions about thumbnails + the second file type made me notice only types with thumbs crashed the file picker on my machine, so I tried enabling thumbs for pdfs (which needed installing kdegraphics-thumbnailers which wasn’t installed on my machine) and it solved it, for pdfs at least.

The problem persists for Anki decks (which are zip archives with the extension .apkg) and others (zip files, some but not all files in my ~/.config).
Comment 18 Nate Graham 2025-06-19 21:43:18 UTC
This might be fixed by https://invent.kde.org/frameworks/kio/-/commit/6552bc6f280b2eddff4b1da931004a8a9230ac81.

Can anyone affected test again with any of the following:
1. That commit manually built on top of their frameworks-kio package
2. git master of frameworks-kio
3. Frameworks 6.16 once it's released in a few weeks

Thanks!