Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apple Silicon/M1 Chip: Crashes on WebDAV when altering files #1419

Closed
pawelostr opened this issue Nov 20, 2020 · 71 comments
Closed

Apple Silicon/M1 Chip: Crashes on WebDAV when altering files #1419

pawelostr opened this issue Nov 20, 2020 · 71 comments
Labels
mount:webdav os:mac state:has-workaround There is a known workaround for the described problem type:upstream-bug Something isn't working in upstream

Comments

@pawelostr
Copy link

Description

When a vault is mounted and I try to rename any folder inside of it, computer freezes and in few seconds crashes and restarts. It produced no logs in debug mode.

System Setup

  • Operating system and version: macOS Big Sur 11.0.1
  • Cryptomator version: 1.5.10
  • Volume type: WebDAV

Steps to Reproduce

  1. Open a vault
  2. Rename a folder

Expected Behavior

Folder is renamed

Actual Behavior

Computer crashes

Reproducibility

Always

Additional Information

Tried to unmount a vault and now Finder doesn't work. Previously it was fine.

@pawelostr pawelostr added the type:bug Something isn't working label Nov 20, 2020
@pawelostr
Copy link
Author

pawelostr commented Nov 20, 2020

Tried to unmount a vault and now Finder doesn't work. Previously it was fine.

So I couldn't unmount it using cryptomator (it has necessary permissions), Finder wasn't working, and I couldn't reboot because Cryptomator was blocking it. I tried umount, so it crashed Terminal too. Had to force restart.

Edit:

After figuring out the log production and numbering systems, here they are:
cryptomator0.log
cryptomator1.log
cryptomator2.log

@Jose-Tejera
Copy link

Having the same issue. I would assume this to be an issue with Cryptomator and Apple Silicon rather than an edge case.

@pawelostr
Copy link
Author

Seems like I was a little bit premature with stating that it crashes on renaming a folder - it would appear it crashes on any file addition. I got too fixated on creating a folder.

This makes Cryptomator fully unusable for anything but viewing files.

@infeo infeo changed the title Computer crashes when renaming a folder on Apple Silicon MacOS Bug Sur: Crashes on WebDAV when altering files Nov 23, 2020
@pawelostr
Copy link
Author

pawelostr commented Nov 24, 2020

@cryptomator any updates?

edit: if anyone needs it, Cyberduck (or Mountain Duck I think) works, badly - but works.

@tobihagemann
Copy link
Member

tobihagemann commented Nov 25, 2020

I'm unable to reproduce the issue. Could you please open Console.app and check if there are any "Crash Reports"?

Edit: Oh, @pawelostr are you also on Apple Silicon as @Jose-Tejera? I guess that's why I can't reproduce it?

@pawelostr
Copy link
Author

@tobihagemann Yup, Apple Silicon

@tobihagemann tobihagemann changed the title MacOS Bug Sur: Crashes on WebDAV when altering files Apple Silicon: Crashes on WebDAV when altering files Nov 25, 2020
@tobihagemann
Copy link
Member

What happens if you connect to a WebDAV server via Finder (without Cryptomator at all). E.g., you can test https://webdavserver.com/. Does that crash as well?

@infeo infeo added the state:awaiting-response We need further input from the issue author label Nov 25, 2020
@pawelostr
Copy link
Author

Tried it, exactly the same crash. Upstream it would appear. Crash report attached (didn't copy all the ex's)

crash.txt

PS. swiping between images on iOS ain't upstream

@no-response no-response bot removed the state:awaiting-response We need further input from the issue author label Nov 25, 2020
@pawelostr
Copy link
Author

pawelostr commented Nov 25, 2020

So this knowledge led me to try FUSE (I have the latest version of osxfuse from brew) and I'mm getting this error:

org.cryptomator.common.vaults.Volume$VolumeException: Unable to mount Filesystem
at org.cryptomator.common.vaults.FuseVolume.mount(FuseVolume.java:53)
at org.cryptomator.common.vaults.FuseVolume.mount(FuseVolume.java:42)
at org.cryptomator.common.vaults.Vault.unlock(Vault.java:132)
at org.cryptomator.ui.unlock.UnlockWorkflow.attemptUnlock(UnlockWorkflow.java:107)
at org.cryptomator.ui.unlock.UnlockWorkflow.call(UnlockWorkflow.java:90)
at org.cryptomator.ui.unlock.UnlockWorkflow.call(UnlockWorkflow.java:44)
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.fuse.mount.CommandFailedException: ru.serce.jnrfuse.FuseException: Unable to mount FS
at org.cryptomator.frontend.fuse.mount.MacMounter.mount(MacMounter.java:48)
at org.cryptomator.frontend.fuse.mount.Mounter.mount(Mounter.java:8)
at org.cryptomator.common.vaults.FuseVolume.mount(FuseVolume.java:51)
... 12 more
Caused by: ru.serce.jnrfuse.FuseException: Unable to mount FS
at ru.serce.jnrfuse.AbstractFuseFS.mount(AbstractFuseFS.java:287)
at org.cryptomator.frontend.fuse.mount.MacMounter.mount(MacMounter.java:46)
... 14 more
Caused by: ru.serce.jnrfuse.FuseException: Unable to mount FS, return code = 1
at ru.serce.jnrfuse.AbstractFuseFS.mount(AbstractFuseFS.java:283)
... 15 more

@infeo infeo added type:upstream-bug Something isn't working in upstream state:has-workaround There is a known workaround for the described problem and removed type:bug Something isn't working labels Nov 25, 2020
@pawelostr
Copy link
Author

May I ask what the workaround is @infeo ?

@tobihagemann
Copy link
Member

I think the workaround is to use FUSE instead of WebDAV. :D Regarding your FUSE issue, see #1406 (basically, did you give permissions in System Preferences?). Though, I'm not sure about Apple Silicon...

@infeo infeo removed the state:has-workaround There is a known workaround for the described problem label Nov 25, 2020
@infeo
Copy link
Member

infeo commented Nov 25, 2020

Whoops, was a little too fast.

@Jose-Tejera
Copy link

Workaround does not work. I have tried the latest FUSE v3 and also the betas for v4. Both don’t work.

V3 gets the errors already mentioned above.
V4 when installed you don’t get an option in Cryptomator to use FUSE.

@infeo
Copy link
Member

infeo commented Nov 25, 2020

For the ones being in dire need of access: #1419 (comment)

edit: if anyone needs it, Cyberduck (or Mountain Duck I think) works, badly - but works.

@pawelostr
Copy link
Author

pawelostr commented Nov 25, 2020

Yup, workaround does not work. Just like Jose, tried v3 a few times from brew (edit: I had previously installed osxfuse and am pretty sure I gave permissions ad it asked me for password in zsh), then twice from dmg(pkg), then v4 from dmg (this time I got a new security prompt) and on v3 getting the same crashes, on v4 Cryptomator not giving you an option to use FUSE.

@aminsabeti
Copy link

I have the same problem on Mac with M1 Chip with Big Sur. I can open all vault but when I try to edit/copy or anything with the vault the mac crashes and restarts again and again.

@Jose-Tejera
Copy link

Seems Veracrypt fixed it
https://doesitarm.com/app/veracrypt/

@SailReal SailReal pinned this issue Mar 3, 2021
@infeo infeo changed the title Apple Silicon: Crashes on WebDAV when altering files Apple Silicon/M1 Chip: Crashes on WebDAV when altering files Mar 14, 2021
@ellygaytor
Copy link

It looks like the issue has been fixed upstream - I'm no longer having this problem.

@GeniusUnleashed
Copy link

GeniusUnleashed commented Apr 2, 2021

I'm geting this prompt when I switch to FUSE. Anyone have any suggestions? It won't let me view any of my files even after I unlock them.
Screen Shot 2021-04-02 at 1 08 17 PM

@ksho
Copy link

ksho commented Apr 3, 2021

It looks like the issue has been fixed upstream - I'm no longer having this problem.

@Danielmeskin Upstream in in this repo? Or webdav?

@ellygaytor
Copy link

ellygaytor commented Apr 3, 2021 via email

@pawelostr
Copy link
Author

It looks like the issue has been fixed upstream - I'm no longer having this problem.

I'm having exactly the same crashes as before on latest Cryptomator and macOS (that'd be 1.5.14 and 11.2.3), so it's definitely not fixed - at least for me.

@ellygaytor
Copy link

ellygaytor commented Apr 3, 2021 via email

@LukasCBossert
Copy link

I do have also the same problem with the same versions (Cryptomator 1.5.14; macOS 11.2.3 with M1). The bug is still there.

@ksho
Copy link

ksho commented Apr 6, 2021

Same for me on 1.5.14 + 11.2.3 (M1 air).

@ellygaytor
Copy link

ellygaytor commented Apr 6, 2021 via email

@jefabrah
Copy link

Have this same issue. Cryptomater 1.5.14 + 11.2.3 M1 Air

@pacaj2am
Copy link

WebDAV issues resolved with 11.3 update

@liuhao
Copy link

liuhao commented May 14, 2021

Unfortunately, WebDAV issue reappeared with 11.3.1 update

@sub0ne
Copy link

sub0ne commented May 14, 2021

Unfortunately, WebDAV issue reappeared with 11.3.1 update

just did an update to 11.3.1 and retried mounting an webdav folder from webdavserver.com without any issues.

So I can not confirm that the issue reappeared.

@liuhao
Copy link

liuhao commented May 16, 2021

Unfortunately, WebDAV issue reappeared with 11.3.1 update

just did an update to 11.3.1 and retried mounting an webdav folder from webdavserver.com without any issues.

So I can not confirm that the issue reappeared.

I reinstalled cryptomator and try again, this time it works fine.

@liuhao
Copy link

liuhao commented May 24, 2021

I found the root reason of my problem: if you use PDF Expert application open any pdf file in cryptomator disk and exit the application, then try to lock the disk, Big Sur will crash for sure, it should be a bug of PDF Expert, I tried Acrobat Reader, doesn't have this issue.

@jakult2
Copy link

jakult2 commented May 24, 2021 via email

@liuhao
Copy link

liuhao commented Jun 9, 2021

I found another app that can cause the problem: if you use the system Preview app open any pic file on cryptomator disk, after exit Preview app and try to lock the disk, Big Sur will hang.

@WillemWever
Copy link

WillemWever commented Jul 13, 2021

I found another app that can cause the problem: if you use the system Preview app open any pic file on cryptomator disk, after exit Preview app and try to lock the disk, Big Sur will hang.

I'm experiencing the exact same issue. As soon as I use Preview for files inside the Cryptomator Vault I'm unable to lock the Vault (forced). After trying to lock the vault safari stops loading pages and all program's start to hang. I'm unable to soft restart the MacBook Air M1.

Opening files in Excel or Adobe Reader is not a problem at al. Adding files through Finder isn't a problem as well.

@shblack
Copy link

shblack commented Feb 7, 2023

Not sure why this issue is closed, I am seeing the exact behavior described by WillemWever, with the latest beta of cryptomator, using either straight WebDAV or using FUSE-T

@infeo
Copy link
Member

infeo commented Feb 8, 2023

@shblack This issue was about using WebDAV, it seemed fixed according to the comments and the crashes were caused by external applications. If you have an issue when using FUSE-T, please open a new ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mount:webdav os:mac state:has-workaround There is a known workaround for the described problem type:upstream-bug Something isn't working in upstream
Projects
None yet
Development

No branches or pull requests