Bug 459204 - Invalid zip file causes Open File dialog window freezes
Summary: Invalid zip file causes Open File dialog window freezes
Status: RESOLVED WORKSFORME
Alias: None
Product: xdg-desktop-portal-kde
Classification: Plasma
Component: general (show other bugs)
Version: 5.24.6
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-16 07:10 UTC by zyf0330
Modified: 2022-10-23 05:01 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zyf0330 2022-09-16 07:10:51 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. `touch foo.zip` in the directory A
2. In Chrome browser, open Open File Dialog to pick file, and enter directory A
3. Single click foo.zip

OBSERVED RESULT
Open File Dialog window freezes

EXPECTED RESULT
nothing happens

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Ubuntu 22.04
(available in About System)
KDE Plasma Version: 5.24.6
KDE Frameworks Version: 5.24.6
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2022-09-22 17:13:57 UTC
Is Chrome a flatpak app using xdg-desktop portals?

Cannot reproduce with either `kdialog --getopenurl` (which is what Chrome is using) or the native file dialog from Kate or Ark.

Does it work for you with the native file dialog from Kate or Ark?
Comment 2 zyf0330 2022-09-23 02:50:38 UTC
I install Chrome using apt.
I cannot reproduce using Chrome too, but I find logs at the time.
```
xdg-desktop-portal-kde[5507]: xdp-kde-file-chooser: OpenFile called with parameters:
xdg-desktop-portal-kde[5507]: xdp-kde-file-chooser:     handle:  "/org/freedesktop/portal/desktop/request/1_7823/handle_5"
xdg-desktop-portal-kde[5507]: xdp-kde-file-chooser:     parent_window:  "x11:0x2a000b8"
xdg-desktop-portal-kde[5507]: xdp-kde-file-chooser:     title:  "Open Files"
xdg-desktop-portal-kde[5507]: xdp-kde-file-chooser:     options:  QMap(("filters", QVariant(QDBusArgument, ))("multiple", QVariant(bool, true)))
xdg-desktop-portal-kde[5507]: KCrash: crashing... crashRecursionCounter = 2
xdg-desktop-portal-kde[5507]: KCrash: Application Name = xdg-desktop-portal-kde path = /usr/lib/x86_64-linux-gnu/libexec pid = 5507
xdg-desktop-portal-kde[5507]: KCrash: Arguments: /usr/lib/x86_64-linux-gnu/libexec/xdg-desktop-portal-kde
xdg-desktop-portal-kde[5507]: KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi
xdg-desktop-portal-kde[5507]: Unable to start Dr. Konqi
xdg-desktop-portal-kde[5507]: Re-raising signal for core dump handling.
xdg-desktop-por[5456]: Backend call failed: Message recipient disconnected from message bus without replying


systemd[3323]: plasma-xdg-desktop-portal-kde.service: Main process exited, code=killed, status=11/SEGV
systemd[3323]: plasma-xdg-desktop-portal-kde.service: Failed with result 'signal'.
systemd[3323]: plasma-xdg-desktop-portal-kde.service: Consumed 1min 1.959s CPU time.

```
Comment 3 Bug Janitor Service 2022-10-08 04:53:47 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2022-10-23 05:01:28 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!