Bug 505183 - File select dialog auto closes if the mouse cursor is on the file name
Summary: File select dialog auto closes if the mouse cursor is on the file name
Status: RESOLVED WORKSFORME
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: Open/save dialogs (other bugs)
Version First Reported In: 6.14.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-03 20:19 UTC by My2ndAngelic
Modified: 2025-07-20 17:57 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description My2ndAngelic 2025-06-03 20:19:07 UTC
SUMMARY
File select dialog auto close with Chromium-based app if the mouse cursor is on the file name


STEPS TO REPRODUCE
1. Open Google Chrome or any Chrome-based browser
2. Open file dialog
3a. If you scroll on the right side (does not trigger preview), you can scroll normally and select file normally
3b. If your cursor is on the file name (it triggers preview on the right panel), the dialog auto close for whatever reason.

OBSERVED RESULT
The file selector close automatically

EXPECTED RESULT
Shouldn't be so

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS 
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0
Kernel Version: 6.14.9-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × 12th Gen Intel® Core™ i5-1235U
Memory: 19.2 GiB of RAM
Graphics Processor: Intel® Iris® Xe Graphics

ADDITIONAL INFORMATION

X11 env:
[my2ndangelic@m2a-acer ~]$ google-chrome-stable 
[401931:401931:0603/212835.733344:ERROR:chrome/browser/policy/cloud/fm_registration_token_uploader.cc:179] Client is missing for kUser scope
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
I0000 00:00:1748978915.750772  401955 voice_transcription.cc:58] Registering VoiceTranscriptionCapability
Created TensorFlow Lite XNNPACK delegate for CPU.
Attempting to use a delegate that only supports static-sized tensors with a graph that has dynamic-sized tensors (tensor#-1 is a dynamic-sized tensor).
[401931:401957:0603/212835.808542:ERROR:google_apis/gcm/engine/registration_request.cc:291] Registration response error message: DEPRECATED_ENDPOINT
-- I select
[401931:401931:0603/212841.042297:ERROR:components/dbus/xdg/request.cc:165] Request cancelled by user.
[401979:401979:0603/212844.671194:ERROR:ui/gl/gl_surface_presentation_helper.cc:260] GetVSyncParametersIfAvailable() failed for 1 times!
[401979:401979:0603/212844.672538:ERROR:ui/gl/gl_surface_presentation_helper.cc:260] GetVSyncParametersIfAvailable() failed for 2 times!
[401979:401979:0603/212844.689128:ERROR:ui/gl/gl_surface_presentation_helper.cc:260] GetVSyncParametersIfAvailable() failed for 3 times!
[401931:401962:0603/212856.309031:ERROR:content/browser/browser_main_loop.cc:278] GLib: g_main_context_pop_thread_default: assertion 'stack != NULL' failed


Wayland env:
Video: https://youtu.be/z9JllC0uwn0

Log
[my2ndangelic@m2a-acer ~]$ google-chrome-stable 
[428865:428865:0603/214508.269955:ERROR:chrome/browser/policy/cloud/fm_registration_token_uploader.cc:179] Client is missing for kUser scope
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
I0000 00:00:1748979908.298287  428889 voice_transcription.cc:58] Registering VoiceTranscriptionCapability
Created TensorFlow Lite XNNPACK delegate for CPU.
Attempting to use a delegate that only supports static-sized tensors with a graph that has dynamic-sized tensors (tensor#-1 is a dynamic-sized tensor).
[428865:428892:0603/214508.354422:ERROR:google_apis/gcm/engine/registration_request.cc:291] Registration response error message: DEPRECATED_ENDPOINT
[428913:428913:0603/214530.316217:ERROR:ui/gl/gl_surface_presentation_helper.cc:260] GetVSyncParametersIfAvailable() failed for 1 times!
[428865:428865:0603/214530.351489:ERROR:components/dbus/xdg/request.cc:165] Request cancelled by user.
[428865:428892:0603/214533.445557:ERROR:google_apis/gcm/engine/registration_request.cc:291] Registration response error message: DEPRECATED_ENDPOINT
[428913:428913:0603/214533.835381:ERROR:ui/gl/gl_surface_presentation_helper.cc:260] GetVSyncParametersIfAvailable() failed for 2 times!
[428865:428961:0603/214535.184520:ERROR:content/browser/browser_main_loop.cc:278] GLib: g_main_context_pop_thread_default: assertion 'stack != NULL' failed
[428865:428960:0603/214535.184530:ERROR:content/browser/browser_main_loop.cc:278] GLib: g_main_context_pop_thread_default: assertion 'stack != NULL' failed
[428865:428959:0603/214535.184520:ERROR:content/browser/browser_main_loop.cc:278] GLib: g_main_context_pop_thread_default: assertion 'stack != NULL' failed
[428913:428913:0603/214537.502339:ERROR:ui/gl/gl_surface_presentation_helper.cc:260] GetVSyncParametersIfAvailable() failed for 3 times!
[428865:428896:0603/214540.699755:ERROR:content/browser/browser_main_loop.cc:278] GLib: g_main_context_pop_thread_default: assertion 'stack != NULL' failed
Comment 1 Nate Graham 2025-06-03 23:33:24 UTC
Does it fail on any other websites too? For example https://imgur.com/upload
Comment 2 My2ndAngelic 2025-06-04 00:06:39 UTC
(In reply to Nate Graham from comment #1)
> Does it fail on any other websites too? For example https://imgur.com/upload
 
Yeah it doesn't fail. After a little bit of testing, I discover that:

- If the website requests "Custom Files" in the field File Type, it will not fail
- If the website requests "Custom Files" and I switch to "All Files", it will fail

- If the website requests "All Files", it will fail.
- If the website request "All Files" and I enter the file type in the second field, for example pdf, jpg etc, it will not fail

I guess in short, "All Files" is the issue for some reasons.

Video: https://youtu.be/WQa0kQxa5sM

I also discover that if this issue with "All Files" happens if the folder has too many files. Otherwise with some other folder with less files, even with All Files, it won't fail.
Comment 3 Nate Graham 2025-06-04 15:50:37 UTC
Thanks! Can you reproduce the same thing with "Open" dialogs that are not using the xdg-desktop-portal? E.g. any KDE app installed using native packaging, rather than Flatpak or Snap.
Comment 4 My2ndAngelic 2025-06-04 20:59:54 UTC
(In reply to Nate Graham from comment #3)
> Thanks! Can you reproduce the same thing with "Open" dialogs that are not
> using the xdg-desktop-portal? E.g. any KDE app installed using native
> packaging, rather than Flatpak or Snap.

Yes, KWrite and Kate also demonstrate the same behavior.

Here is the log from KWrite on Wayland (All Files)

[my2ndangelic@m2a-acer ~]$ kwrite
libkate.time: All plugins loaded in 0 ms
libkate.time: Created KateMainWindow in 46 ms

--- I open file and start scrolling down, then the dialog closes and it spit out. ---
kf.kio.core.connection: Socket not connected QLocalSocket::PeerClosedError
kf.kio.core: An error occurred during write. The worker terminates now.
QThreadStorage: entry 10 destroyed before end of thread 0x55a448377360
QThreadStorage: entry 9 destroyed before end of thread 0x55a448377360
QThreadStorage: entry 8 destroyed before end of thread 0x55a448377360
QThreadStorage: entry 2 destroyed before end of thread 0x55a448377360
QThreadStorage: entry 1 destroyed before end of thread 0x55a448377360
--- End of whatever here ---

However, those last 7 lines will always spit out if I scroll and cursor is on the file name. Sometimes the File select dialog will not close if the folder doesn't have too many files but terminal also spits out those last 7 lines.
Comment 5 Bug Janitor Service 2025-06-19 03:48:03 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 6 My2ndAngelic 2025-06-19 08:05:52 UTC
Operating System: EndeavourOS 
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1
Kernel Version: 6.15.2-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 12 × 12th Gen Intel® Core™ i5-1235U
Memory: 19,2 GiB of RAM
Graphics Processor: Intel® Iris® Xe Graphics
Manufacturer: Acer
Product Name: Aspire A514-55
System Version: V1.25

I have recently updated to the new kernel and framework. Just want to report that it hasn't been fixed. Forgot to change the status last time I comment.
Comment 7 Nate Graham 2025-06-19 21:42:24 UTC
Possibly fixed by https://invent.kde.org/frameworks/kio/-/commit/6552bc6f280b2eddff4b1da931004a8a9230ac81.

Can you test again with any of the following:
1. https://invent.kde.org/frameworks/kio/-/commit/6552bc6f280b2eddff4b1da931004a8a9230ac81 manually built on top of your frameworks-kio package
2. git master of frameworks-kio
3. Frameworks 6.16 once it's released in a few weeks
Comment 8 Bug Janitor Service 2025-07-04 03:47:40 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 9 Bug Janitor Service 2025-07-20 03:47:20 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.
Comment 10 My2ndAngelic 2025-07-20 14:52:16 UTC
Hi again. I have upgraded to framework 6.16. This time, the file dialog will still crash.

For Chrome
- However, instead of closing, it will automatically open a new one.
- The dark screen effect will disappear, the screen effect brighten again for the window inside)
- The log:
[my2ndangelic@m2a-acer ~]$ google-chrome-stable
[17951:17976:0720/163620.476666:ERROR:components/signin/public/webdata/token_service_table.cc:189] Failed to decrypt token for service AccountId-104950475779070029094
[17951:17976:0720/163620.476717:ERROR:components/signin/public/webdata/token_service_table.cc:189] Failed to decrypt token for service AccountId-110893336326339923472
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
I0000 00:00:1753022182.280519   17976 voice_transcription.cc:58] Registering VoiceTranscriptionCapability
Created TensorFlow Lite XNNPACK delegate for CPU.
Attempting to use a delegate that only supports static-sized tensors with a graph that has dynamic-sized tensors (tensor#-1 is a dynamic-sized tensor).
[17951:17977:0720/163622.340652:ERROR:google_apis/gcm/engine/registration_request.cc:291] Registration response error message: DEPRECATED_ENDPOINT
Fontconfig error: Cannot load default config file: No such file: (null)
[17951:17977:0720/163644.622005:ERROR:google_apis/gcm/engine/registration_request.cc:291] Registration response error message: DEPRECATED_ENDPOINT
[17951:18050:0720/163649.415901:ERROR:content/browser/browser_main_loop.cc:278] GLib: g_main_context_pop_thread_default: assertion 'stack != NULL' failed
[17951:18052:0720/163649.415897:ERROR:content/browser/browser_main_loop.cc:278] GLib: g_main_context_pop_thread_default: assertion 'stack != NULL' failed
[17951:18051:0720/163649.415915:ERROR:content/browser/browser_main_loop.cc:278] GLib: g_main_context_pop_thread_default: assertion 'stack != NULL' failed

For KWrite (because Kate doesn't output anything to the Terminal)
- It just close and does not spawn a new one. This time, it applies both to the Open and Save dialogs. Note that this problem only applies if your file type is "All Files"
- If you visit the first folder and it crashed, it doesn't output any log, just close
- After crashing the first time, it will start spamming the terminal with logs
- The log:
[my2ndangelic@m2a-acer ~]$ kwrite
libkate.time: All plugins loaded in 0 ms
libkate.time: Created KateMainWindow in 45 ms

--- After the crash, I open the "Open" dialog and scroll around until it crashed. ---

QTimeLine::start: already running
QTimeLine::start: already running
QTimeLine::start: already running
IFFChunk::innerFromDevice: unkwnown chunk "\x00\x00\x00\x00"
kf.kio.core.connection: Socket not connected QLocalSocket::PeerClosedError
kf.kio.core: An error occurred during write. The worker terminates now.
IFFChunk::innerFromDevice: unkwnown chunk "\x89PNG"
QTimeLine::start: already running
IFFChunk::innerFromDevice: unkwnown chunk "\x89PNG"
IFFChunk::innerFromDevice: unkwnown chunk "\x89PNG"
kf.kio.core.connection: Socket not connected QLocalSocket::PeerClosedError
kf.kio.core: An error occurred during write. The worker terminates now.
QTimeLine::start: already running


Systeminfo
Here is my system:
Operating System: EndeavourOS 
KDE Plasma Version: 6.4.3
KDE Frameworks Version: 6.16.0
Qt Version: 6.9.1
Kernel Version: 6.15.7-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 12 × 12th Gen Intel® Core™ i5-1235U
Memory: 20 GiB of RAM (19,2 GiB usable)
Graphics Processor: Intel® Iris® Xe Graphics
Manufacturer: Acer
Product Name: Aspire A514-55
System Version: V1.25
Comment 11 Nate Graham 2025-07-20 17:57:47 UTC
That sounds like a different behavior entirely. Let's get a new bug report for it, since it will likely have a different root cause and need to be investigated separately.