I just did a clean install of Ubuntu 22.04 on two machines with Nvidia video cards.
With the default nouveau video driver, neither Firefox or Chromium (both snaps) will start.
Firefox gives the following error when started from Terminal:
ATTENTION: default value of option mesa_glthread overridden by environment. (firefox:2324): Gdk-WARNING **: 13:50:57.016: The program 'firefox' received an X Window System error. This probably reflects a bug in the program. The error was 'BadAlloc'. (Details: serial 509 error_code 11 request_code 146 (unknown) minor_code 7) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the GDK_SYNCHRONIZE environment variable to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) Exiting due to channel error.
and Chromium shows the following:
[2804:2804:0421/135208.578463:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process. [2804:2804:0421/135208.603047:ERROR:gbm_wrapper.cc(275)] Failed to export buffer to dma_buf: No such file or directory (2) ... repeats
Both Firefox and Chromium work fine if I switch to the Nvidia 390 proprietary driver.
I got the same error with Firefox using the Live USB.
I would report these as a bug, but I'm not sure where to do so; bugzilla.mozilla.org or somewhere for Ubuntu? And Chromium?