AMD GPU timeout error crashing Ubuntu

Steps to reproduce

Launch Obsidian.

Expected result

Obsidian runs as expected.

Actual result

The screen will flash and keyboard and mouse input will fail.


OS: Ubuntu 22.04.2 LTS x86_64
Host: MINIPC PB50 0602
Kernel: 5.19.0-32-generic
Uptime: 1 hour, 16 mins
Packages: 2661 (dpkg), 52 (snap)
Shell: bash 5.1.16
Resolution: 2560x1440
WM: Mutter
WM Theme: Yaru-dark
Theme: Yaru-olive-dark [GTK2/3]
Icons: Yaru-olive [GTK2/3]
Terminal: gnome-terminal
CPU: AMD Ryzen 7 3750H with Radeon Vega Mobile Gfx (8) @ 2.300GHz
GPU: AMD ATI Radeon Vega Series / Radeon Vega Mobile Series
Memory: 5098MiB / 30019MiB

Additional information

This issue could be an Electron-related issue only. Obsidian was running on this system for months just fine but a recent system update made Obsidian (Electron) load faster. Also note there are other Electron-based apps on this system that run just fine (e.g. Azure Storage Explorer and GitHub Desktop).

Error messages from log:

[drm:amdgpu_job_timedout [amdgpu]] ERROR Process information: process obsidian pid 5305 thread obsidian:cs0 pid 5337
[drm:amdgpu_job_timedout [amdgpu]] ERROR ring sdma0 timeout, signaled seq=1286, emitted seq=128
[drm:amdgpu_job_timedout [amdgpu]] ERROR GPU Recovery Failed: -110
[drm:amdgpu_device_ip_resume_phase2 [amdgpu]] ERROR resume of IP block <sdma_v4_0> failed -110
amdgpu 0000:04:00.0: [drm:amdgpu_ring_test_helper [amdgpu]] ERROR ring sdma0 test failed (-110)
[drm:amdgpu_job_timedout [amdgpu]] ERROR Process information: process obsidian pid 5305 thread obsidian:cs0 pid 5337
[drm:amdgpu_job_timedout [amdgpu]] ERROR Process information: process obsidian pid 5305 thread obsidian:cs0 pid 5337
[drm:amdgpu_dm_commit_planes [amdgpu]] ERROR Waiting for fences timed out!
amdgpu 0000:04:00.0: amdgpu: RW: 0x1
amdgpu 0000:04:00.0: amdgpu: MAPPING_ERROR: 0x0
amdgpu 0000:04:00.0: amdgpu: PERMISSION_FAULTS: 0x5
amdgpu 0000:04:00.0: amdgpu: WALKER_ERROR: 0x0
amdgpu 0000:04:00.0: amdgpu: MORE_FAULTS: 0x1
amdgpu 0000:04:00.0: amdgpu: Faulty UTCL2 client ID: MP1 (0x0)
amdgpu 0000:04:00.0: amdgpu: VM_L2_PROTECTION_FAULT_STATUS:0x00140051

This is either an electron or gpu driver problem and both are outside our control. I suggest you try to download and reinstall the latest version for the website and hope that a newer version of electron fixes the issue.

Thanks for an answer! Which version of Electron is Obsidian using now?

version 21.4

I have opened a new issue for Electron: [Bug]: Obsidian (on Electron) throwing AMD GPU timeout error crashing Ubuntu · Issue #37393 · electron/electron · GitHub

before opening a bug report on electron you should really try to isolate the problem with a minimal example that doesn’t involve Obsidian. I don’t think that they are gonna look at it. Anyway, let’s see how it goes.

One way to do what you are talking about is to isolate the Graph View functionality of Obsidian and wrap it in Electron. Today, I do not know how to do that :pancakes:

My issue is resolved by uninstalling and reinstalling! Miserable details below:

Okay, when I first installed [[Obsidian]] back in [[the summer of 2022]], I literally used the --dangerous option for the Snap pack:

sudo snap install obsidian_0.15.9_amd64.snap --dangerous

I now respect the preferences of the Ubuntu Snap Store and used the *.deb file instead:

[:link: Obsidian download link ]

Right-clicking on the *.deb file and selecting Open With Other Application allowed me to run Software Install—which makes the Obsidian Icon show up among the applications just like a Snap installation:

Pasted image 20230225124551

I do not think that any of these installation choices led to my devastating crashes. I suspect that I was improperly updating [[Obsidian]] and it might be better to uninstall [[Obsidian]] and then reinstall. This might be a snag with dealing with the distribution of Electron.