26

So I'm running Ubuntu 22.04, my main browser is Brave which is chromium based but I have replicated this issue successfully in Chrome as well:

  1. Browser runs fine.
  2. Download content - this opens up a window asking where you would like to download.
  3. I save the file, the download window closes.
  4. I'm back on the browser but frozen, I can't click anything. No bookmarks, address bar, tabs etc can be clicked.
  5. I shut down browser and restart and everything is fine.

This happens only after the download box appears.

So far I have tried:

  1. Turn off Sync feature in Brave
  2. Turn off hardware acceleration
  3. Uninstall and reinstall
  4. There was a broken file in the config directory that had to be manually removed according to Brave support, which I did but it did not help.

It happens every time on browsers but I can sometimes replicate the issue on PDF reader applications like Okular or Foxit as well. The condition being that a window has to open in FRONT of the window I'm working on, when the front window is close the original window freezes.

I'm new to linux so if I left anything out please let me know.

11
  • I do not confirm your issue, chromium 100.0.4896.88 runned on xubuntu 22.04. Try to switch from wayland to xorg. Apr 14, 2022 at 20:19
  • 1
    Ubuntu 22.04 doesn't yet exist; it's currently the development release Ubuntu jammy and remains that until it reaches RC state which isn't expected until after 14 April 2022, and isn't on-topic here until release on 21 April 2022. discourse.ubuntu.com/t/jammy-jellyfish-release-schedule/23906 Please refer askubuntu.com/help/on-topic. For support issues with Ubuntu jammy you'll need to use a #ubuntu-next or #ubuntu+1 site (IRC, UF etc)
    – guiverc
    Apr 14, 2022 at 21:54
  • FYI: I am using chromium & have used google-chrome (I rarely use it) on jammy, but it's still the development release and is in testing only. If you wish to report bugs, firstly thank you for helping test the release, but please see help.ubuntu.com/community/ReportingBugs and use a #ubuntu+1 site such as IRC, ubuntuforums.org etc. This site isn't tracked for ubuntu+1 or #ubuntu-next issues
    – guiverc
    Apr 14, 2022 at 21:55
  • @guiverc thanks I figured this was because I was running a beta distro. I'm still new to all this so appreciate the push in the proper direction. Apr 15, 2022 at 19:38
  • 3
    I'm running Ubuntu 22.04 and have exactly the same issue. The same issue also happens in Firefox.
    – DiveIntoML
    Apr 23, 2022 at 1:03

3 Answers 3

22

I experienced the same problem after Ubuntu 22.04 had been released. I had installed during the final week of the beta and upgraded to the release version before discovering the same problem.

After a number of unsuccessful solutions, research revealed this thread: bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1970148 . The suggested fix, running sudo apt install xdg-desktop-portal-gnome and restarting the system resolved the problem for me and a number of people who responded to the thread. You might try it if you're still experiencing the problem.

Edit, Nov 2022. Should this not work for you, Stefan's solution below may resolve the issue (turn off hardware acceleration in your chrome based browser, then please give him a tick). FWIW, finding settings can be hard so I open settings then search for hardware acceleration which takes you to this page & you can try turning it off.

enter image description here

9
  • 2
    I had the same issue and running the command also worked. Fresh Ubuntu 22 installed. May 28, 2022 at 23:57
  • In my case, this improved the situation (freezes occurs much less frequently) but not completely fixed the issue.
    – FedFranz
    Jun 21, 2022 at 8:34
  • I have always had this package installed, and I still am seeing this problem, since upgrading to Jammy in May 2022.
    – elmor
    Jul 9, 2022 at 19:15
  • Your comment and FedFranz's suggest that there is more than one mechanism that can drive this problem. In your situation I'd be tempted to try to purge the package and reinstall it (with the usual cautions about backing everything up).
    – John 9631
    Jul 10, 2022 at 1:47
  • i had it already installed and the freezes happen on and on
    – tymik
    Jul 31, 2022 at 20:57
10

I had problems with Chrome - it was working fine on 20.04, but right after the upgrade to 22.04 it started to freeze temporarily, which was very annoying.

The top answer did not solve my problem (I already had the xdg-desktop-portal-gnome package installed and it was the latest version), but the Launchpad link did help. One of the comments suggested disabling hardware acceleration in Chrome settings - I tried it and voila, problem solved.

enter image description here

2
  • Don't forget to restart Chrome. It also worked for me after buying a new computer and having this annoying problem 1 month ago. Oct 21, 2022 at 11:10
  • This seems to work for me with Ubuntu 22.10, at least so far chrome hasn't crashed in awhile.
    – Kiffin
    Nov 21, 2022 at 19:49
0

In some cases this issue can be caused by a wrong graphic card driver. This is especially common with some Nvidia cards, for which the official driver are incompatible with newer Linux kernels (see this, for example).

In my case, installing the legacy Nvidia driver from this repo, fixed the issue.

Note that none of the other solutions proposed here worked for me.

Not the answer you're looking for? Browse other questions tagged or ask your own question.