File chooser refuses to open and sometimes causes Firefox freeze/crash
Categories
(Core :: Widget: Gtk, defect, P3)
Tracking
()
People
(Reporter: ffb.z1o96, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0
Steps to reproduce:
- Open a GitLab instance > New Issue
- Press on the button to add a new attachment and add it
- Repeat step 2
Actual results:
File chooser will refuse to open. Sometimes, Firefox will freeze and crash. Also, other system dialogs like the print dialog won't open either.
More info: Fedora 40 Silverblue, Wayland, GNOME 46.3, flatpaked Firefox from Flathub.
Also, the file chooser/printer dialog will only open after restarting Firefox.
Ignore the attachment. It's meant for https://bugzilla.mozilla.org/show_bug.cgi?id=1903946, but Bugzilla doesn't allow deleting or editing stuff...
Comment 5•1 year ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Here are the contents of about:support.
Comment 8•1 year ago
|
||
Can you please try to get backtrace of frozen Firefox? How-to is here:
https://fedoraproject.org/wiki/Debugging_guidelines_for_Mozilla_products#Application_freeze
Thanks.
Comment 9•1 year ago
|
||
It's most likely bug in the xdg-desktop-portal or xdg-desktop-portal-gtk.
/usr/libexec/xdg-desktop-portal --replace -v
/usr/libexec/xdg-desktop-portal-gtk --replace -v
Please check for log output before file chooser dialog fails to popup.
| Reporter | ||
Comment 10•1 year ago
|
||
(In reply to Jan Horak [:jhorak] from comment #9)
It's most likely bug in the
xdg-desktop-portalorxdg-desktop-portal-gtk./usr/libexec/xdg-desktop-portal --replace -v /usr/libexec/xdg-desktop-portal-gtk --replace -vPlease check for log output before file chooser dialog fails to popup.
Thanks! I'll try this. I'll also try getting the backtrace. Does it also work for flatpak?
| Reporter | ||
Comment 11•1 year ago
|
||
How do I install(In reply to Martin Stránský [:stransky] (ni? me) from comment #8)
Can you please try to get backtrace of frozen Firefox? How-to is here:
https://fedoraproject.org/wiki/Debugging_guidelines_for_Mozilla_products#Application_freeze
Thanks.
How do I install debug symbols for the flatpak version? There isn't a org.mozilla.firefox.Debug package.
| Reporter | ||
Comment 12•1 year ago
|
||
Is there a debug symbols package for the flatpak version?
Comment 13•1 year ago
|
||
(In reply to ffb.z1o96 from comment #12)
Is there a debug symbols package for the flatpak version?
AFAIK it's pretty complicated to use debugging session inside flatpak. Better to make regular Firefox to use portal. Please try latest nightly:
https://fedoraproject.org/wiki/How_to_debug_Firefox_problems#Testing_Mozilla_Nightly_binaries
and set appropriate portal preference to 1 at about:config (2 means autodetection):
widget.use-xdg-desktop-portal.file-picker
widget.use-xdg-desktop-portal.location
widget.use-xdg-desktop-portal.mime-handler
widget.use-xdg-desktop-portal.open-uri
widget.use-xdg-desktop-portal.settings
and then restart nightly. It should use portal even from regular build. Then please try to reproduce the issue. You may be able to submit crashreport then via standard crash dialog so you don't need to deal with flatpak at all.
Description
•