When I open graph view, the UI buttons in the top right are there (for filters, groups etc.) but no graph itself.
Things I have tried
I did a complete uninstall and reinstall (used pacman as I’m on Arch) and created a new vault, made a couple of files and no graph appeared. I opened the sandbox vault, and the graph does not appear also.
I’ve run into the issue myself yesterday. It miraculously cured itself after I closed the graph view, restarted Obsidian and only then opened the Graph again.
Unfortunately I have no idea whatsoever, if that was but a lucky coincidence
Oh I missed this topic about the problem, thanks for linking!
I’d be willing to bet that this is the issue.
@aiden1999 The pacman version has issues in general, sometimes it breaks, sometimes it doesn’t, but fundamentally it’s a GPU driver issue from what I could gather (see my thread that ariehen linked to).
The solution ultimately is not using the Arch version and pacman because ultimately they are just not supported. I’ve gone over to using the AppImage as it seems to be the most advertised format officially supported by Obsidian for Linux. The Flatpak could be an alternative as well of course, though it is community maintained so the guarantee of it working well is a smidge weaker.
Assuming you’re on Gnome and you want the AppImage to show up in your launcher, here is how I “installed” it:
download the AppImage
Install fuse2 and fuse3
move the appimage file to /usr/local/bin
Downloaded the obsidian-icon.svg and put it under /usr/share/icons
Created an obsidian.desktop file under ~/.local/share/applications looking like this:
This should add the icon to your launcher same as if you had installed it via pacman.
Sadly you can’t “uninstall” via pacman that way.
Honestly I wonder why pacman, even if it can’t control updating an appimage, can’t at least manage installing/uninstalling it.
This issue is caused by Electron configuration as @acook mentioned. Specifically, under Wayland. By default, Electron applications try to run using XWayland (the compatibility layer with X11 applications). To fix this issue with the Arch package, simply create a file ~/.config/electron25-flags.conf and add the following contents:
Had issue of graph not appearing after installing a mass of updates on my Kubuntu 22.04
Replaced the Obsidian-1.4.[something].AppImage with the newest Obsidian-1.5.8.AppImage from the official website and the graph seems to be working fine now
Due to a change in lib Mesa the GPU cache files are no longer compatible with previous versions. Trying to load the old cache files breaks Obsidian’s Electron from being able to successfully acquire a OGL context.
Solution
Delete ~/.config/obsidian/GPUcache.
To fix this problem for everyone and prevent it from happening in the future I propose that Obsidian purge the GPUcache during every update.
I just wanted to come on here and report that I’ve been having the same issue with my graph for what seemed like months. It wasn’t much of an issue, as I do not utilize the graph all that much, but I thought I’d search the forum here and see if anybody else was having these issues and found this thread.
I’m on the newest version of Linux Mint and have had the problems many of the others here mentioned. The proposed solution of deleting ~/.config/obsidian/GPUcache worked like a charm for me. I nuked the directory with Obsidian open, reloaded the app and alas, there was the illusive graph once again.
Thanks for everything you guys. This forum is always such a gold-mine!
Unfortunately the graph view is disappearing again. This can be replicated for me:
Open Sandbox Vault
Open Local Graph View
Put Local Graph into Right Sidebar
Close Obsidian
Reopen Obsidian
Observe the the Local Graph is broken
Console messages:
PixiJS Error: Could not initialize shader.
PixiJS Warning: gl.getProgramInfoLog() Program binary could not be loaded. Binary is not compatible with current driver/hardware combination. Driver build date Apr 14 2024. Please check build information of source that generated the binary.
WebGL: INVALID_OPERATION: useProgram: program not valid
WebGL: INVALID_OPERATION: drawElements: no valid shader program in use
Deleting the GPU cache is insufficient to fix the issue persistently, it will recur after the next program start, and it doesn’t fix the issue for my main vault at all. So there must be some other cache somewhere??
UPDATE: The problem seems to pop up ocassionally, but inconsistently. I’m still not sure why, but no other Electron app seems to have this issue. Very strange. It probably has something to do with graphics driver updates. Right now restarting Obsidian or my computer is usually enough.
I just noticed this when running obsidian from the terminal.
Seems like this may be related?
2024-06-20 10:20:01 Checking for update using Github
DRM kernel driver 'nvidia-drm' in use. NVK requires nouveau.
2024-06-20 10:20:01 Success.
2024-06-20 10:20:01 Latest version is 1.6.3
2024-06-20 10:20:01 App is up to date.
libva error: vaGetDriverNames() failed with unknown libva error