Open Bug 1910199 Opened 1 year ago Updated 1 year ago

File chooser refuses to open and sometimes causes Firefox freeze/crash

Categories

(Core :: Widget: Gtk, defect, P3)

Firefox 128
defect

Tracking

()

UNCONFIRMED

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:

  1. Open a GitLab instance > New Issue
  2. Press on the button to add a new attachment and add it
  3. 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...

Summary: File chooser/printer dialog refuse to open and sometimes causes Firefox freeze/crash → File chooser refuse to open and sometimes causes Firefox freeze/crash
Summary: File chooser refuse to open and sometimes causes Firefox freeze/crash → File chooser refuses to open and sometimes causes Firefox freeze/crash

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.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core

Please attach your about:support page.
Thanks.

Flags: needinfo?(ffb.z1o96)
Attached file about:support

Here are the contents of about:support.

Flags: needinfo?(ffb.z1o96)
Blocks: flatpak
Priority: -- → P3

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.

Flags: needinfo?(ffb.z1o96)

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.

(In reply to Jan Horak [:jhorak] from comment #9)

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.

Thanks! I'll try this. I'll also try getting the backtrace. Does it also work for flatpak?

Flags: needinfo?(ffb.z1o96)

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.

Is there a debug symbols package for the flatpak version?

(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.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: