LoginSignup
1
0

Ubuntuでnvidiaのエラーが出たときのなおしかた

Posted at

Ubuntuを使っていると突然つぎのようなエラーが表示されてGUIが動作しなくなります。

UBSAN: array-index-out-of-bounds
index 0 is out of range for type 'uvm_gpu_chunk_t *[x]'
in build/nvidia/535.171.04/build/nvidia-uvm/uvm_pmm_gpu.c:2364:28

UBSAN: array-index-out-of-bounds
index 0 is out of range for type 'uvm_gpu_chunk_t *[x]'
in build/nvidia/535.171.04/build/nvidia-uvm/uvm_pmm_gpu.c:2038:44

UBSAN: array-index-out-of-bounds
index 0 is out of range for type 'uvm_gpu_chunk_t *[x]'
in build/nvidia/535.171.04/build/nvidia-uvm/uvm_pmm_gpu.c:746:68

UBSAN: array-index-out-of-bounds
index 1 is out of range for type 'uvm_gpu_chunk_t *[x]'
in build/nvidia/535.171.04/build/nvidia-uvm/uvm_pmm_gpu.c:2644:63

UBSAN: array-index-out-of-bounds
index 1 is out of range for type 'uvm_page_directory_t *[x]'
in build/nvidia/535.171.04/build/nvidia-uvm/uvm_mmu.c:569:17

UBSAN: array-index-out-of-bounds
index 16 is out of range for type 'uvm_page_directory_t *[x]'
in build/nvidia/535.171.04/build/nvidia-uvm/uvm_mmu.c:555:51

UBSAN: array-index-out-of-bounds
index 0 is out of range for type 'uvm_page_directory_t *[x]'
in build/nvidia/535.171.04/build/nvidia-uvm/uvm_pmm_gpu.c:2614:71

UBSAN: array-index-out-of-bounds
index 0 is out of range for type 'uvm_gpu_chunk_t *[x]'
in build/nvidia/535.171.04/build/nvidia-uvm/uvm_pmm_gpu.c:829:45

UBSAN: array-index-out-of-bounds
index 0 is out of range for type 'uvm_gpu_chunk_t *[x]'
in build/nvidia/535.171.04/build/nvidia-uvm/uvm_pmm_gpu.c:857:39

このエラーはnvidiaのプロプライエタリなドライバが影響しているようです。

いったん次のコマンドでドライバをすべて削除します。

sudo apt-get remove --purge '^nvidia-.*'

このコマンドを実行するとGNOMEといったウィンドウマネージャも削除されてしまうため、入れ直します。

sudo apt install ubuntu-desktop

再起動してnvidiaのドライバを再インストールして再起動したらなおります。CLIでプロプライエタリなドライバをインストールするには次のようにします。

sudo ubuntu-drivers install
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0