cryptomator icon indicating copy to clipboard operation
cryptomator copied to clipboard

Application Crash when opening a vault on Linux via FUSE (Ubuntu 20.10)

Open Xathros1 opened this issue 6 years ago • 45 comments

Description

Hello, I can't get Cryptomator to work with OpenSuse Tumbleweed and my vault, or any vault for that matter.

System Setup

*Operating System: openSUSE Tumbleweed 20201007 KDE Plasma Version: 5.19.5 KDE Frameworks Version: 5.74.0 Qt Version: 5.15.1 Kernel Version: 5.8.12-1-default OS Type: 64-bit

  • Cryptomator version: 1.5.8
  • Volume type: [Dokany/FUSE]

Steps to Reproduce

  1. Start the Appimage / or use the builtkit for Linux
  2. Add the vault or create a new one
  3. Enter Password
  4. Program crashes.

Expected Behavior

Decrypts vault, mounts it.

Actual Behavior

Cryptomator crashes

Reproducibility

Always

Additional Information

See log hs_err_pid30274.log hs_err_pid30825.log

Xathros1 avatar Oct 09 '20 16:10 Xathros1

I noticed an error (the only one) when starting through terminal:

16:36:48.555 [JavaFX Application Thread] ERROR o.f.secret.handlers.MessageHandler - org.freedesktop.dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.secrets was not provided by any .service files

Maybe related?

Xathros1 avatar Oct 10 '20 14:10 Xathros1

It is unlikely that the log message causing code is the problem.

In our forum we have two other users reporting the exact same problem with OpenSuse Tumbleweed, see https://community.cryptomator.org/t/cryptomator-crashes-with-sigsegv-0xb-when-unlocking-vault/5614

It is always the same stackframe:

C  [jffi17413466840685389187.so+0x7189]

Other distributions run fine, hence, i believe there is an error in OpenSuse Tumbleweed (special kernel compiling for fuse?).

infeo avatar Oct 11 '20 08:10 infeo

It is unlikely that the log message causing code is the problem.

In our forum we have two other users reporting the exact same problem with OpenSuse Tumbleweed, see https://community.cryptomator.org/t/cryptomator-crashes-with-sigsegv-0xb-when-unlocking-vault/5614

It is always the same stackframe:

C  [jffi17413466840685389187.so+0x7189]

Other distributions run fine, hence, i believe there is an error in OpenSuse Tumbleweed (special kernel compiling for fuse?).

When using WebDAV in KDE/Dolphin mode, I get another error: It's not crashing the program but it's not working either.

org.cryptomator.common.vaults.Volume$VolumeException: org.cryptomator.frontend.webdav.mount.Mounter$CommandFailedException: Command failed with exit code 2. Expected 0. Stderr: gio: webdav://localhost:42427/bZI03sSHA8WF/test: Ort kann nicht eingehängt werden

	at org.cryptomator.common.vaults.WebDavVolume.mount(WebDavVolume.java:65)
	at org.cryptomator.common.vaults.WebDavVolume.mount(WebDavVolume.java:49)
	at org.cryptomator.common.vaults.Vault.unlock(Vault.java:129)
	at org.cryptomator.ui.unlock.UnlockWorkflow.attemptUnlock(UnlockWorkflow.java:103)
	at org.cryptomator.ui.unlock.UnlockWorkflow.call(UnlockWorkflow.java:80)
	at org.cryptomator.ui.unlock.UnlockWorkflow.call(UnlockWorkflow.java:43)
	at javafx.concurrent.Task$TaskCallable.call(Task.java:1425)
	at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)
Caused by: org.cryptomator.frontend.webdav.mount.Mounter$CommandFailedException: Command failed with exit code 2. Expected 0. Stderr: gio: webdav://localhost:42427/bZI03sSHA8WF/test: Ort kann nicht eingehängt werden

	at org.cryptomator.frontend.webdav.mount.ProcessUtil.assertExitValue(ProcessUtil.java:28)
	at org.cryptomator.frontend.webdav.mount.LinuxGioMounter.mount(LinuxGioMounter.java:39)
	at org.cryptomator.frontend.webdav.servlet.WebDavServletController.mount(WebDavServletController.java:102)
	at org.cryptomator.common.vaults.WebDavVolume.mount(WebDavVolume.java:62)
	... 12 more

It's interesting that switching to the webdav Gnome mode does the trick and it does work, even though I'm using KDE?

Xathros1 avatar Oct 12 '20 20:10 Xathros1

Hi,

Can confirm that I also cannot launch any vault on Arch Linux v1.5.8 from Arch repo and the 1.5.7 and 1.5.8 Appimages. But when i removed ~/.config/Cryptomator it worked again. Carefull it will remove all the saved vaults in the UI. I have no idea why this happened. I hope this is of atleast any help to you.

qx-775 avatar Oct 16 '20 10:10 qx-775

Hi,

Can confirm that I also cannot launch any vault on Arch Linux v1.5.8 from Arch repo and the 1.5.7 and 1.5.8 Appimages. But when i removed ~/.config/Cryptomator it worked again. Carefull it will remove all the saved vaults in the UI. I have no idea why this happened. I hope this is of atleast any help to you.

Not working on tumbleweed.

Xathros1 avatar Oct 17 '20 13:10 Xathros1

I have the same problems with openSUSE (KDE).

Behavior FUSE: crash WebDav: Doesn't work (on KDE)

franjsco avatar Oct 18 '20 14:10 franjsco

Quoting myself

It's interesting that switching to the webdav Gnome mode does the trick and it does work, even though I'm using KDE?

I was wrong.

Opening the vault is indeed working with webdav, however it can't add any files to it.

Xathros1 avatar Oct 18 '20 19:10 Xathros1

I see the same behavior on Kubuntu 20.10 (20.04 worked fine) with 1.5.8 (also tested with 1.5.0 with the same result). The workaround (deleting ~/.config/Cryptomator and ~/.Cryptomator) does not work for me. The error messages in both cases (FUSE and WEBDAV) are identical to the errors above except for a different stack frame in the FUSE case. Is there still a version without bundled Java? The PPA also contains the same AppImage. Btw: I also checked Plasma on Wayland and during an openbox-session, so this seems not be related to the desktop environment. EDIT: New libffi8-AppImage works (s.b.)

frafl avatar Oct 20 '20 20:10 frafl

I see the same behavior on Kubuntu 20.10 (20.04 worked fine) with 1.5.8 (also tested with 1.5.0 with the same result). The workaround (deleting ~/.config/Cryptomator and ~/.Cryptomator) does not work for me. The error messages in both cases (FUSE and WEBDAV) are identical to the errors above except for a different stack frame in the FUSE case. Is there still a version without bundled Java? The PPA also contains the same AppImage. Btw: I also checked Plasma on Wayland and during an openbox-session, so this seems not be related to the desktop environment.

Interesting, so it's not only on Tumbleweed now. I can also confirm that it's not the desktop environment, I tried it with Gnome instead of KDE. The given workaround with Webdav seems not to work.

Xathros1 avatar Oct 20 '20 22:10 Xathros1

I'm stopping this discussion now, since we get off the rails here.

This ticket is about an application crash with FUSE.

Things that are not part of the problem:

  • Problems regarding WebDAV are a seperate issue and as such need to be discussed seperatedly.
  • Deleting the settings file as a workaround (it certainly isn't)
  • Problems unlocking a vault without a crash

As far as we know this happens only on OpenSuse Tumbleweed, not on any other distro. Unfortunately, there seems also a problem with KDE+WebDAV, so the WebDAV workaround cannot be used. But, as stated above, this is a different issue.

infeo avatar Oct 21 '20 08:10 infeo

Of course, I respect this decision, but could you suggest a good title, definition etc. for the "vault cannot be unlocked" bug? IMHO this is the more important bug, because people don't need Cryptomator, if their vaults can't be unlocked. For an outsider it looks like the unlocking problem is the root cause and your WEBDAV code handles this error more gracefully than the FUSE code. While better error handling is certainly desirable, actually avoiding the error is more important.

frafl avatar Oct 21 '20 10:10 frafl

@frafl I found the following issue which should suit the needs: https://github.com/cryptomator/cryptomator/issues/1236. If you post the error message from your logs there I'll reopen the ticket.

infeo avatar Oct 22 '20 08:10 infeo

I'm stopping this discussion now, since we get off the rails here.

This ticket is about an application crash with FUSE.

Things that are not part of the problem:

* Problems regarding WebDAV are a seperate issue and as such need to be discussed seperatedly.

* Deleting the settings file as a workaround (it certainly isn't)

* Problems unlocking a vault _without a crash_

As far as we know this happens only on OpenSuse Tumbleweed, not on any other distro. Unfortunately, there seems also a problem with KDE+WebDAV, so the WebDAV workaround cannot be used. But, as stated above, this is a different issue.

I've created a new topic on the openSUSE forums and also a small bug report on bugzilla mentioning the thread: https://forums.opensuse.org/showthread.php/546202-Cryptomator-Application-Crash-when-using-FUSE Bugzilla: https://bugzilla.opensuse.org/show_bug.cgi?id=1178013

Xathros1 avatar Oct 22 '20 12:10 Xathros1

@infeo I don't think #1236 really fits to what we experience here. Most importantly the user there uses KDE neon which means at most Ubuntu 20.04 (+ some newer Qt/KDE parts) and not a rolling or relatively new distro release like Tumbleweed or Ubuntu 20.10. Since we observe the same problem on other DEs, it seems unlikely that the bug is related to an updated KDE (or Qt) library etc.

frafl avatar Oct 22 '20 12:10 frafl

@frafl If you think it is not the same, open a new issue. If you cannot decide about a heading, use something like "Unable to unlock vault using WebDAV on certain linux distros".

infeo avatar Oct 22 '20 16:10 infeo

Looks like the devs were wrong when they referred the application crash to special features of openSUSE Tumbleweed, because the problem now also occurs with new Ubuntu version 20.10. hs_err_pid6558.log

Tried it out (on live usb): Ubuntu 20.10 (5.8.0-25) 64-bit GNOME 3.38.1

# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fbb585ee189, pid=6558, tid=7092
#
# JRE version: OpenJDK Runtime Environment Zulu14.29+23-CA (14.0.2+12) (build 14.0.2+12)
# Java VM: OpenJDK 64-Bit Server VM Zulu14.29+23-CA (14.0.2+12, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# C  [jffi4261450707072693211.so+0x7189]

Systemlog

ct 23 11:05:58 ubuntu AppRun[7283]: Failed to load module "canberra-gtk-module"
Oct 23 11:05:58 ubuntu org.freedesktop.FileManager1[7283]: 11:05:58.958 [main] INFO  org.cryptomator.launcher.Cryptomator - Starting Cryptomator 1.5.8 on Linux 5.8.0-25-generic (amd64)
Oct 23 11:05:59 ubuntu org.freedesktop.FileManager1[7283]: 11:05:59.153 [JavaFX Application Thread] INFO  o.c.ui.launcher.FxApplicationStarter - JavaFX Runtime started.
Oct 23 11:05:59 ubuntu org.freedesktop.FileManager1[7283]: 11:05:59.451 [JavaFX Application Thread] ERROR o.f.secret.handlers.MessageHandler - org.freedesktop.dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/secrets/collection/login
Oct 23 11:06:00 ubuntu gnome-shell[5623]: Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x3e00004
Oct 23 11:06:00 ubuntu gnome-shell[5623]: Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x3e00004
Oct 23 11:06:14 ubuntu systemd[1]: systemd-timedated.service: Succeeded.
Oct 23 11:06:24 ubuntu org.freedesktop.FileManager1[7283]: 11:06:24.911 [App Background Thread 003] INFO  org.cryptomator.common.vaults.Vault - Storing file name length limit of 220
Oct 23 11:06:25 ubuntu org.freedesktop.FileManager1[7283]: #
Oct 23 11:06:25 ubuntu org.freedesktop.FileManager1[7283]: # A fatal error has been detected by the Java Runtime Environment:
Oct 23 11:06:25 ubuntu org.freedesktop.FileManager1[7283]: #
Oct 23 11:06:25 ubuntu org.freedesktop.FileManager1[7283]: #  SIGSEGV (0xb) at pc=0x00007f65fc3ed189, pid=7283, tid=7423
Oct 23 11:06:25 ubuntu org.freedesktop.FileManager1[7283]: #
Oct 23 11:06:25 ubuntu org.freedesktop.FileManager1[7283]: # JRE version: OpenJDK Runtime Environment Zulu14.29+23-CA (14.0.2+12) (build 14.0.2+12)
Oct 23 11:06:25 ubuntu org.freedesktop.FileManager1[7283]: # Java VM: OpenJDK 64-Bit Server VM Zulu14.29+23-CA (14.0.2+12, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
Oct 23 11:06:25 ubuntu org.freedesktop.FileManager1[7283]: # Problematic frame:
Oct 23 11:06:25 ubuntu org.freedesktop.FileManager1[7283]: # C  [jffi17449612571713990617.so+0x7189]
Oct 23 11:06:25 ubuntu org.freedesktop.FileManager1[7283]: #
Oct 23 11:06:25 ubuntu org.freedesktop.FileManager1[7283]: # Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %d %P %E" (or dumping to /home/ubuntu/Downloads/core.7283)
Oct 23 11:06:25 ubuntu org.freedesktop.FileManager1[7283]: #
Oct 23 11:06:25 ubuntu org.freedesktop.FileManager1[7283]: # An error report file with more information is saved as:
Oct 23 11:06:25 ubuntu org.freedesktop.FileManager1[7283]: # /home/ubuntu/Downloads/hs_err_pid7283.log
Oct 23 11:06:25 ubuntu org.freedesktop.FileManager1[7283]: #
Oct 23 11:06:25 ubuntu org.freedesktop.FileManager1[7283]: # If you would like to submit a bug report, please visit:
Oct 23 11:06:25 ubuntu org.freedesktop.FileManager1[7283]: #   http://www.azulsystems.com/support/
Oct 23 11:06:25 ubuntu org.freedesktop.FileManager1[7283]: #
Oct 23 11:06:25 ubuntu systemd[2502]: home-ubuntu-.local-share-Cryptomator-mnt-F9EjrZHwK9kF_1.mount: Succeeded.
Oct 23 11:06:25 ubuntu systemd[1]: home-ubuntu-.local-share-Cryptomator-mnt-F9EjrZHwK9kF_1.mount: Succeeded.
Oct 23 11:06:25 ubuntu systemd[2502]: tmp-.mount_cryptoOnSZIV.mount: Succeeded.
Oct 23 11:06:25 ubuntu systemd[1]: tmp-.mount_cryptoOnSZIV.mount: Succeeded.

Xathros1 avatar Oct 23 '20 11:10 Xathros1

I've the same issue with Kubuntu 20.10. Kubuntu 20.04 worked before ...

webracer999 avatar Oct 24 '20 11:10 webracer999

App also crashes since update to K/Ubuntu 20.10 - worked pre update.

Ive tried the AppImage and the buildkit and also build from master, always same JRE Crash.

I also run it in Intellij and tried to pin down the crash, and it seems to happen always on this line in JNR-Fuse:

https://github.com/SerCeMan/jnr-fuse/blob/master/src/main/java/ru/serce/jnrfuse/AbstractFuseFS.java#L296

debug output form fuse-nio-adapter befor it crashes

FUSE library version: 2.9.9
nullpath_ok: 0
nopath: 0
utime_omit_ok: 0
unique: 2, opcode: INIT (26), nodeid: 0, insize: 56, pid: 0
INIT: 7.31
flags=0x03fffffb
max_readahead=0x00020000

DanielWeigl avatar Oct 25 '20 17:10 DanielWeigl

I believe I'm experiencing the same issue with fresh install of PoP!_OS 20.10 (was working fine previously on Kubuntu 20.04)

Linux pop-os 5.8.0-7625-generic DE: GNOME 3.38.1

# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fe73a7aa189, pid=24084, tid=24228
#
# JRE version: OpenJDK Runtime Environment Zulu14.29+23-CA (14.0.2+12) (build 14.0.2+12)
# Java VM: OpenJDK 64-Bit Server VM Zulu14.29+23-CA (14.0.2+12, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# C  [jffi952973116351390613.so+0x7189]
#

mupster avatar Oct 26 '20 20:10 mupster

We uploaded an alternative AppImage release on our release page. It is the version with the libffi8 suffix.

Please give us feedback, if it works!

infeo avatar Oct 27 '20 16:10 infeo