Obsidian Crashes when Clicking the 'Browse' Button while Creating a New Vault - Ubuntu - KDE Plasma

Steps to reproduce

  1. Create new vault
  2. Click ‘Browse’ to select a directory to save the new vault in

Expected result

A file manager prompt opening, allowing the user to select a specific directory

Actual result

Obsidian crashes

Environment

  • Operating system: Ubuntu (Kubuntu)
  • Operating system version: 21.04
  • Obsidian version: 0.12.19

Additional information

Logs during crash in /var/log/syslog:

Nov 11 15:41:17 hostname-123 kernel: [793164.653621] audit: type=1400 audit(1636666877.812:674): apparmor=“DENIED” operation=“open” profile=“snap.obsidian.obsidian” name="/etc/fstab" pid=376230 comm=“obsidian” requested_mask=“r” denied_mask=“r” fsuid=1000 ouid=0

Nov 11 15:41:17 hostname-123 kernel: [793164.655181] audit: type=1400 audit(1636666877.812:675): apparmor=“DENIED” operation=“open” profile=“snap.obsidian.obsidian” name="/run/mount/utab" pid=376230 comm=“obsidian” requested_mask=“r” denied_mask=“r” fsuid=1000 ouid=0

Nov 11 15:41:18 hostname-123 systemd[1690]: snap.obsidian.obsidian.85fefd85-07b5-4752-94d1-90d637d96982.scope: Succeeded.

Nov 11 15:41:18 hostname-123 systemd[1690]: app-obsidian_obsidian-8775c59c28d74d9b9f2d6267c1fb251b.scope: Succeeded.

Can you tell me your installer version and method (AppImage, Snap, etc?)

I followed the info in this link:

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

Also:

username-123@hostname-123:~$ snap version
snap    2.53.2
snapd   2.53.2
series  16
ubuntu  21.04
kernel  5.11.0-40-generic

Please go into About in the settings and take a screenshot of the versions shown up in there

Also note that the snap has had weird sandboxing issues in the past. You might want to try with the AppImage instead (at least to rule out Snap’s sandboxing)

The error logs looks like an apparmor issue that is a permission issue.

Where is you vault and where is obsidian. Does it have access to that location according to apparmor?

I’m having this same problem. I’m using Ubuntu 20.04, and the AppImage version 0.12.19. Obsidian crashes after a second or two of the files app being open, whether I try to open an existing vault or create a new one. I don’t have apparmor or any other program that I believe would be causing a permission issue.

Operating System: Kubuntu 21.04
KDE Plasma Version: 5.21.4
KDE Frameworks Version: 5.80.0
Qt Version: 5.15.2
Kernel Version: 5.11.0-40-generic
OS Type: 64-bit
Graphics Platform: X11
Processors: 4 × Intel® Xeon® CPU E5-1607 0 @ 3.00GHz
Memory: 31.3 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 645/PCIe/SSE2

@TaranYourAss we still need this information. @owlsys could you provide the same as I mentioned above? And please also answer the following:

Please go into About in the settings and take a screenshot of the versions shown up in there

If it’s not this information, then I don’t know what you mean, there isn’t an about section in the settings. If you could clarify what versions I would expect to find, I can go from there.

Where is you vault and where is obsidian. Does it have access to that location according to apparmor?

I do not have a vault, when I try to create one it crashes.

obsidian is located at: /snap/bin/obsidian

Ah thank you, I did not piece together you meant within Obsidian itself:

Both Obsidian and the installer are v0.12.19

Obsidian is in /home/applications, while other files are in /home/.config/obsidian

Also, as I was poking around, I decided to try opening a vault once again and… it works! I don’t know how it does, the app is still on the same version as it was when I was having the problem.