自分用メモ
os(ubuntu)インストール後にfirefoxが起動しない,,
調べると X Window System関連の問題だそう.
単純に使ってるグラフィックボードのNVIDIAドライバがなくて起動できないとのこと.
以下,エラーメッセージ
christopher@Chris-Gaming-Linux:~$ env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/firefox_firefox.desktop /snap/bin/firefox %u
Gtk-Message: 18:41:59.114: Failed to load module "canberra-gtk-module"
Gtk-Message: 18:41:59.115: Failed to load module "canberra-gtk-module"
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
(firefox:60465): Gdk-WARNING **: 18:42:01.096: The program 'firefox' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAlloc'.
(Details: serial 505 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.
以下,解決法(NVIDIAドライバへの切り替え)
まずは利用可能なドライバをリスト
$ sudo ubuntu-drivers devices
distro non-free recommended と書かれたドライバを見つけ, インストールする
$ sudo apt-get install (ドライバ名)
再起動すると使用可能になるはず
解決しない場合は,safe modeで起動してキャッシュをクリアする?