Brave & Chrome browsers freezes on download and print to pdf

Bug #1970148 reported by James Loh
132
This bug affects 25 people
Affects Status Importance Assigned to Milestone
chromium-browser (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Whenever any file is downloaded, the browser will freeze. Download files, from any page does not work. Same issue with Firefox.

Similarly, the browser will freeze when a page is printed to pdf.

Tags: bot-comment
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Libera.chat.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1970148/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu:
status: New → Confirmed
Revision history for this message
Lin Sun (nonamestreet) wrote :

I am on Ubuntu 22.04.

It also freezes my Google chrome browser(Version 100.0.4896.127), if I try to upload any file from local. The page and the window become unresponsive. But I can create new window or close the browser using right click menu from the GNOME on the top and right sidebar.

Lin Sun (nonamestreet)
affects: ubuntu → chromium-browser (Ubuntu)
Revision history for this message
Olivier Tilloy (osomon) wrote :

I cannot observe the problem described here when running the latest stable version of google chrome in a fully up-to-date 22.04 VM.

Regardless, if this is a problem that happens in brave or Google Chrome, it should be reported to the upstream projects. See https://support.brave.com/hc/en-us/articles/360018228951-How-do-I-submit-a-bug-report- and https://bugs.chromium.org/p/chromium/issues/list.

Please let us know if the problem also affects the chromium package maintained by Ubuntu Developers.

Changed in chromium-browser (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
James Loh (jamesloh) wrote :

Yes, Olivier. You are correct. I tried a VM and didn't observe the problem. However, the problem occurs on real hardware. This problem is not in Ubuntu 20.04.

Revision history for this message
Olivier Tilloy (osomon) wrote :

Try this, and let us know whether this resolves the problem:

    sudo apt install xdg-desktop-portal-gnome

Revision history for this message
Lin Sun (nonamestreet) wrote :

Thank you Olivier

The command resolved my problem.

Revision history for this message
James Loh (jamesloh) wrote :

Yes, this resolves the problem. Thank you, Olivier.

Olivier Tilloy (osomon)
Changed in chromium-browser (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Dhairy Tripathi (dhairy) wrote :

Hey, Olivier, your proposed solution solves the issue but it changes my file download pop up to generic ubuntu 22.04. I am using a gnome theme and the pop up is not consistent with it. I guess the problem might be with using gnome themes on ubuntu 22.04. BTW i am using this theme (https://github.com/dracula/gtk/)

Revision history for this message
Marc H. (makedir) wrote :

I have the same issue on Windows 11, Chrome/Edge freezing for about 3-4 seconds when you save any file to disk. This started a few days ago.

Revision history for this message
Juan de Dios Mattos (jdmattos) wrote :

I tried the sudo apt install xdg-desktop-portal-gnome, but no luck. Download does not work with Chrome or Firefox. Executing the command indicates 0 upgrades, 0 newly installed and 0 not upgraded. I guess I have the latest version running. I'm using the generic install of 22.04. Ubuntu was working fine before the upgrade. Any other suggestion?

description: updated
Revision history for this message
Lars (lbj86) wrote :

Running sudo apt install xdg-desktop-portal-gnome resolved the problem on Vivaldi and Chrome on my Ubuntu 22.04 (upgraded from 20.04) machine. It did however introduce another problem as fuse was removed during the installation. .appimages no longer work. Is there another workaround?

Revision history for this message
Olivier Tilloy (osomon) wrote :

Lars, that's bug #1965636.

Revision history for this message
M Willis Monroe (willismonroe) wrote :

I already had xdg-desktop-portal-gnome installed however I'm still seeing the bug in Google Chrome 101.0.4951.64 (Official Build) (64-bit)

Revision history for this message
Douglas Gilbert (gilbertdl) wrote :

This bug is affecting both firefox and chrome on 22.04. Any website that prints, uploads, or downloads. Really made a big mess. I can't edit using Windows online either.

Revision history for this message
Douglas Gilbert (gilbertdl) wrote :

Sorry I meant Microsoft Office Home online editing etc.

Revision history for this message
Douglas Gilbert (gilbertdl) wrote (last edit ):

I am almost 99% sure that this error was caused by installing pCloud Linux software. Today I rebuilt my computer on Ubuntu 22.04 and did NOT install pCloud Linux and the problem is gone. There fore my assumption is that Pcloud caused it although I have no proof.

After contacting pCloud techncial support it was determeined they gave ncoorect advice originally and this caused an issue with libfuse2. I have since reinstalled pCloud Linux software following recommendations and it works perfectly.

Revision history for this message
Lars (lbj86) wrote :

Duglas. You might be correct. I noticed that the pCloud appimage requires fuse to work. Installing fuse will uninstall fuse3 xdg-desktop-portal xdg-desktop-portal-gnome and xdg-desktop-portal-gtk and re-introduce the problem of browsers freezing when using the file dialogue. pCloud is aware of the problem and are supposedly working on a fix.

Revision history for this message
Douglas Gilbert (gilbertdl) wrote : Re: [Bug 1970148] Re: Brave & Chrome browsers freezes on download and print to pdf

I have emailed pCloud support and they forwarded the problem to Linux tech
developers. They told me when it gets fixed they will email me. After I
found the freezing I completely rebuilt my Ubuntu 22.04 from scratch and
without pCloud installed everything has been normal since then. When I hear
fo them, I will forward it to you.

Douglas

On Fri, May 20, 2022 at 12:01 AM Lars <email address hidden> wrote:

> Duglas. You might be correct. I noticed that the pCloud appimage
> requires fuse to work. Installing fuse will uninstall fuse3 xdg-desktop-
> portal xdg-desktop-portal-gnome and xdg-desktop-portal-gtk and re-
> introduce the problem of browsers freezing when using the file
> dialogue. pCloud is aware of the problem and are supposedly working on a
> fix.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1970148
>
> Title:
> Brave & Chrome browsers freezes on download and print to pdf
>
> Status in chromium-browser package in Ubuntu:
> Invalid
>
> Bug description:
> Whenever any file is downloaded, the browser will freeze. Download
> files, from any page does not work. Same issue with Firefox.
>
> Similarly, the browser will freeze when a page is printed to pdf.
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1970148/+subscriptions
>
>

Revision history for this message
Alex N. (a-nox) wrote :

I can confirm #14

Revision history for this message
jeremy lanssiers (jlanssie) wrote :

I can confirm #3

Revision history for this message
Eduardo García Campillo (edugarcam) wrote :

I can confirm #14

Revision history for this message
Thomas Brunner (thomasbbrunner) wrote :

I can support Douglas' statement #17.

I installed the fuse package on my fresh Ubuntu 22.04 and it caused the ubuntu-desktop and xdg-desktop-portal packages to be removed. After this, I started getting weird behavior when uploading files on Chrome.

I submitted a bug report to the fuse package here: https://bugs.launchpad.net/ubuntu/+source/fuse/+bug/1978310

Reinstalling the ubuntu-desktop-minimal package solved the issues I was having with Chrome. (I am running the minimal version of Ubuntu).

Revision history for this message
M Willis Monroe (willismonroe) wrote :

I'm still seeing this issue, it seems to be related to Chrome engaging with the file-picker because the unresponsiveness happens whenever I download, or upload a file. The file transfer goes through fine, but Chrome is immediately unresponsive to the mouse. Interestingly, it's restricted just to that window (and all of its tabs), other Chrome windows are just fine.

Revision history for this message
Diego Garcia (d1360-64rc14) wrote :

Installing the package xdg-desktop-portal-gnome (sudo apt install xdg-desktop-portal-gnome) worked for me (after restarting the system).

Revision history for this message
Kes (mr-kyem) wrote :

Package xdg-desktop-portal-gnome also worked for me

Revision history for this message
Eduardo García Campillo (edugarcam) wrote :

Still happening to me with xdg-desktop-portal-gnome already installed.

"xdg-desktop-portal-gnome is already the newest version (42.1-0ubuntu1)."

For me, look like that the nautilus window that appear to select the file do not close correctly mading Chrome unclickable because there are still something over Chrome.

Revision history for this message
kgx (karuna-kgx) wrote :

The problem seems to be related to Chrome apps (Google Chat for example) automatically starting. In my case, I uninstalled Google Chat and that fixed the problem.

Essentially, if a Chrome app starts before the browser itself, that's when the problem happens. So for example, if you have your browser and chat running already, shutting both of them completely also solves the problem. Note, I'm on X, haven't checked to see if this happens on Wayland also.

Revision history for this message
Eduardo García Campillo (edugarcam) wrote :

Disabling "Use hardware acceleration when available" from chrome settings the problem stop happend.

Like I said in #27, look like now in the window to select the file use another browser (not Nautilus) and chrome do not freeze anymore.

Additionally it happends to me that with different windows (with different google users) the problem is fixed in one window but still ocurring in another... Restarting chrome making sure that "Use hardware acceleration when available" is still disabled, it fix the issue again.

I think that this is not the right solution to this problem, but at least prevent the problem happends again for a while.

Revision history for this message
Alex N. (a-nox) wrote :

Also happening to me with xdg-desktop-portal-gnome installed. For me it does not seems to be related with chrome apps.
#29 fixes the issue for me but it should be a last resort as this affects performance.

Revision history for this message
Robert Helewka (heluca) wrote :

I can confirm #3
I've had the same behaviour on 2 very different PCs with fresh installs of 22.04 Desktop since May 2022 affecting:
Chromium Version 101.0.4951.15
Edge Version 104.0.1293.47
Chrome (installed for testing, same problem)

I can confirm #6
Installing xdg-desktop-portal-gnome appears to have resolved the issue on both machines for Chromium and Edge

These machines were running Bionic previously and this problem did not exist.

Revision history for this message
wanger (wangdeera) wrote :

I hava same problem.

Excute `sudo apt install xdg-desktop-portal-gnome` not resovlved.

Disable `hardware acceleration` in chrome seeting, proble sovled.

Revision history for this message
Truong Phap (pdc96019) wrote :

I can confirm #29

Revision history for this message
Aleksandr Panzin (jalexoid) wrote :

I can confirm the issue and that xdg-desktop-portal-gnome solved the problem.

Revision history for this message
Lorenzo Natali (offtherailz) wrote :

Same problem on version 105.0.5195.102.
Neither of the proposed solutions solved the problem.
I tested Google Chrome beta, version 106.0.5249.30 and the problem is not present.

Revision history for this message
Diego Garcia (d1360-64rc14) wrote :

In the #25 I said the issue was solved after installing "xdg-desktop-portal-gnome", but no (It was solved partially)

For me, this issue occurs only at the FIRST Chrome launch (after reboot). If I close the browser and reopen it, the issue disappears.
The issue also doesn't come back when I do Log Out, only on restart/shutdown.

Below, I test 2 probable fixes commented in this bug thread:

#28: "The problem seems to be related to Chrome apps (Google Chat for example)"
Me: I don't have any Chrome apps and the issue are happening

#29: "Disabling 'Use hardware acceleration when available' from chrome settings the problem stop happend."
Me: Nope. Again, still happening. I think reopening the browser falls into the behavior presented above.

----------------------
From chrome://version:

Google Chrome 105.0.5195.102 (Official Build) (64-bit)
Revision 4c16f5ffcc2da70ee2600d5db77bed423ac03a5a-refs/branch-heads/5195_55@{#4}
OS Linux

Revision history for this message
Lorenzo Natali (offtherailz) wrote (last edit ):

I applied the same solution found here https://bugs.chromium.org/p/chromium/issues/detail?id=1315684#c17 using dconf-editor to turn to false org/gnome/desktop/sound/input-feedkback-sounds and this worked for me,
The other solutions (installing portal, disabling hardware acceleration) didn't worked, but this seems to work.

Revision history for this message
Alex N. (a-nox) wrote :

I can confirm #37, thank you!

Revision history for this message
Myles Morales (mylesmorales1940) wrote :

Hello,

I have the following installed:

xdg-desktop-portal-gnome is already the newest version (42.1-0ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

It is still happening and I selected Ubuntu.Xorg for my desktop environment. Chrome completely froze and I had to do a hard reboot. Please advise.

Thanks

Revision history for this message
Vu Quoc Huy (vuquochuy) wrote :

I can confirm #37, thanks

Revision history for this message
Eduardo García Campillo (edugarcam) wrote :

I can confirm #37, various days already working, thanks! :)

Revision history for this message
renan domingos (rna.domingos) wrote :

I can confirm #6, thanks!!

Revision history for this message
John Bester (stellenbosser) wrote :

I tried apt install xdg-desktop-portal-gnome and since it was installed I tried reinstall and also rebooted and logged out and back in - none of these options solved the problem.

But I found a different solution. Brave was installed before upgrade to 22.04, so I did an apt purge brave-browser and then apt install brave-browser. This seems to have fixed the problem.

Revision history for this message
Simon Brahan (simon-brahan) wrote :

This bug: https://bugs.launchpad.net/ubuntu/+source/gtk+3.0/+bug/1970047 describes a similar problem.

The following command:

gsettings set org.gnome.desktop.sound input-feedback-sounds false

fixed things for me.

Revision history for this message
Vu Pham (vupham01) wrote (last edit ):

I have same problem.
I tried sudo apt install xdg-desktop-portal-gnome and/or disable "Use hardware acceleration when available" from browser. The problem was fixed but not completely.
I applied the solution found here: https://askubuntu.com/a/1416189/1591703
I changed Nvidia driver 510 to another version and it solved my problem.

Revision history for this message
Kemal Sokolovic (ksokolovic) wrote :

I can confirm #25 (sudo apt install xdg-desktop-portal-gnome) and #29 (Disable hardware acceleration)

Revision history for this message
Abdul Rauf (armujahid) wrote (last edit ):

I noticed this in both chrome and firefox for file upload case.
I can confirm #6. This has apparently resolved my issue in both chrome and firefox for file upload.

Related: https://askubuntu.com/a/1404974/140778

Changed in chromium-browser (Ubuntu):
status: Invalid → Confirmed
Olivier Tilloy (osomon)
Changed in chromium-browser (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Diego Garcia (d1360-64rc14) wrote :

I can confirm #37.

----------------------
From chrome://version:

Google Chrome 107.0.5304.121 (Official Build) (64-bit)
Revision f069d69e0559af6ce6208316892bb2e0a9bd2d17-refs/branch-heads/5304_110@{#3}
OS Linux

Revision history for this message
Cyrille Chatelain (snotline) wrote :

I can confirm #44 work for me at the end !

Revision history for this message
orensbruli (orensbruli) wrote (last edit ):

I can also confirm #25 not working for me but #44 did on Ubuntu 22.04 and Google Chrome Version 112.0.5615.49 (Official Build) beta (64-bit)

Revision history for this message
Arash Mehrabi (arash-mehrabi-z) wrote :

I can confirm #29.

Thank you!

Revision history for this message
K Somasekhar Babu (kssb) wrote (last edit ):

I CONFIRM #29

Turning OFF Hardware Acceleration helped.

on Brave Browser:
1.Open Brave browser on your computer.
2.Click the menu button and select Settings.
3.Switch to the System tab on the left side.
4.Find the Use hardware acceleration when available option.
5.Toggle the corresponding button.
6.Click the Relaunch button to restart the browser.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.