You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Application freezes after aborting Keyring access #1268
On certain linux distributions where the GNOME keyring is installed, Cryptomator cannot be used without entering the password for it. If the enter-password-dialogue for the keyring is canceld twice, the whole desktop freezes and the system is not responding anymore.
System Setup
Operating system and version: Kubuntu or Lubuntu 18.04 LTS
Cryptomator version: 1.5.6
Volume type: -
Steps to Reproduce
Start Cryptomator
Cancel dialogue to unlock keyring
Select a vault and click the unlock button
Cancel dialogue to unlock keyring a second time
Expected Behavior
Cryptomator contiues and show password prompt.
Actual Behavior
The screen freezes.
Reproducibility
Always
Additional Information
Log:
9:15:55.759 [main] INFO org.cryptomator.launcher.Cryptomator - Starting Cryptomator 1.5.5 on Linux 4.15.0-106-generic (amd64)
09:15:56.209 [JavaFX Application Thread] INFO o.c.ui.launcher.FxApplicationStarter - JavaFX Runtime started.
09:15:56.894 [JavaFX Application Thread] INFO o.f.secret.handlers.SignalHandler - await signal org.freedesktop.secret.interfaces.Prompt$Completed(/org/freedesktop/secrets/prompt/u1) within 300 seconds.
09:17:04.369 [DBus Worker Thread-2] INFO o.f.secret.handlers.SignalHandler - Prompt.Completed (/org/freedesktop/secrets/prompt/u1): {dismissed: true, result: [[]]}
09:17:15.248 [JavaFX Application Thread] WARN o.c.keychain.KeychainManager - LOAD
09:17:15.288 [JavaFX Application Thread] INFO o.f.secret.handlers.SignalHandler - await signal org.freedesktop.secret.interfaces.Prompt$Completed(/org/freedesktop/secrets/prompt/u2) within 300 seconds.
This issue was first reported in our forums, see here (German only) or there.
I was trying to reproduce these errors on Lubuntu 19.10 and Kubuntu 18.04.
I have never experienced a complete freeze of the OS. The worst was, you would have to wait 2 times 300 seconds, without any prompt. 300 seconds (5 min) is quite some time to wait.
In most (if not all) of the 300 seconds "freezes", the screen is locked onto the "Unlock Keyring" window, but some keyboard input into the textfield is possible, normally the buttons don't work. Sometimes only the Cryptomator application is blocked for 300 (*2) seconds.
The second freeze, when the application is running and you try to open a vault / the settings of a vault, happens whether the password for this vault is saved in the keychain or not.
A detailed description of my "research":
Lubuntu:
Cancel of unlock keyring before Cryptomator starts works fine.
After selecting the vault with the saved password, the buttons of the prompt cannot be selected, (no Cancel and no Unlock) but something can be entered as the password. The log says:
await signal
org.freedesktop.secret.interfaces.Promt$Completed(/orf/freedesktop/secretes/prompt/u7) within 300 seconds.
Then 300 seconds later Error o.f.secret.handerls.SignalHandder - java-util.conncurrent.TimoutException and another await signal.
The text field of the prompt is still editable, but the buttons cannot be pressed.
No other window can get focus.
300 Seconds later, everything is possible and after canceling the prompt, I get another prompt, where the focus is free. The Prompt can get canceled. In Cryptomator, I could select a vault and start unlocking. In the Cryptomator unlocking prompt, I could not use the keyboard, but the mouse.
The keyboard only worked in the new unlock keychain prompt.
After waiting another 300seconds, the unlock keychain prompt gets canceled and I can enter a password for a vault (and this unlocks the vault).
A relock and an attempt to unlock said vault causes the whole Cryptomator app to turn white.
No prompt to unlock the keychain appears, but the log says, the SignalHandler awaits a signal within 300 seconds.
After the first 300 seconds, The logfile reports a TimeoutException, and awaits a new signal (for 300sec), but there is still no prompt to enter any keychain password.
Next TimeoutException: The app shows the unlock vault window, with the option to save the password. The vault can be unlocked, but the saving of the password into the locked keychain causes the prompt of unlocking a vault not to disappear and the loading icon is still turning.
Kubuntu:
The process: gnome-keyring-daemon starts with the start of Cryptomator.
The first prompt to unlock the keychain can get (immediately) canceled.
Selecting a vault (with or without saved password) starts a new prompt to unlock keyring.
A Password can be entered, but the focus is locked and no buttons work.
Waiting 300 seconds for a timeout. Still a "frozen" screen. The log got a TimeoutException and is awaiting a new signal in 300seconds.
The next TimeoutException also has: ERROR o.f.secret.handerls.Message.Hander - org.freedesktop.secret.errros.IsLocked: Cannot get secret of a locked object. And Cryptomator throws a java.lang.NullPointerException
Any new access to the keychain does not get a prompt, you have to wait 2*5 minutes.
I think it would be best to only try to open the keychain at the start of the application.
Would this be a security issue, since the keychain is unlocked the whole time, the application is running?
We should investigate further why the prompt to unlock the keychain does not open every single time, we try to access it and it isn't opened yet.
I think it would be best to only try to open the keychain at the start of the application.
Would this be a security issue, since the keychain is unlocked the whole time, the application is running?
We should investigate further why the prompt to unlock the keychain does not open every single time, we try to access it and it isn't opened yet.
This is a good idea on first sight, but the keyring can be locked at all times. So you need to check wether a keyring is locked when you need to access it respectively unlock it.
I find the NPE mentioned above quite interesting.
Matching @BeyerMart's decription above you can get a repo for that NPE by having a vault with a password saved in the keyring. You end Cryptomator, lock the keyring, start Cryptomator and deny all prompts to unlock the keyring.
The NPE occurs when you click on the vault. Here is the complete NPE:
20:01:12.550 [main] INFO org.cryptomator.launcher.Cryptomator - Starting Cryptomator 1.5.6 on Linux 5.7.12-arch1-1 (amd64)
20:01:12.779 [JavaFX Application Thread] INFO o.c.ui.launcher.FxApplicationStarter - JavaFX Runtime started.
20:01:13.129 [JavaFX Application Thread] INFO o.f.secret.handlers.SignalHandler - await signal org.freedesktop.secret.interfaces.Prompt$Completed(/org/freedesktop/secrets/prompt/u15) within 300 seconds.
20:01:14.224 [DBus Worker Thread-2] INFO o.f.secret.handlers.SignalHandler - Prompt.Completed (/org/freedesktop/secrets/prompt/u15): {dismissed: true, result: [[]]}
20:01:18.921 [JavaFX Application Thread] WARN o.c.keychain.KeychainManager - LOAD
20:01:18.950 [JavaFX Application Thread] INFO o.f.secret.handlers.SignalHandler - await signal org.freedesktop.secret.interfaces.Prompt$Completed(/org/freedesktop/secrets/prompt/u16) within 300 seconds.
20:01:18.980 [DBus Worker Thread-3] INFO o.f.secret.handlers.SignalHandler - Prompt.Completed (/org/freedesktop/secrets/prompt/u16): {dismissed: true, result: [[]]}
20:01:19.015 [JavaFX Application Thread] INFO o.f.secret.handlers.SignalHandler - await signal org.freedesktop.secret.interfaces.Prompt$Completed(/org/freedesktop/secrets/prompt/u17) within 300 seconds.
20:01:19.042 [DBus Worker Thread-4] INFO o.f.secret.handlers.SignalHandler - Prompt.Completed (/org/freedesktop/secrets/prompt/u17): {dismissed: true, result: [[]]}
20:01:19.073 [JavaFX Application Thread] INFO o.f.secret.handlers.SignalHandler - await signal org.freedesktop.secret.interfaces.Prompt$Completed(/org/freedesktop/secrets/prompt/u18) within 300 seconds.
20:01:19.114 [DBus Worker Thread-1] INFO o.f.secret.handlers.SignalHandler - Prompt.Completed (/org/freedesktop/secrets/prompt/u18): {dismissed: true, result: [[]]}
20:01:19.127 [JavaFX Application Thread] ERROR o.f.secret.handlers.MessageHandler - org.freedesktop.secret.errors.IsLocked: Cannot get secret of a locked object
Exception in thread "JavaFX Application Thread" com.google.common.util.concurrent.UncheckedExecutionException: java.lang.NullPointerException
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2051)
at com.google.common.cache.LocalCache.get(LocalCache.java:3951)
at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3974)
at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4958)
at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4964)
at org.cryptomator.keychain.KeychainManager.getPassphraseStoredProperty(KeychainManager.java:105)
at org.cryptomator.ui.mainwindow.VaultDetailLockedController.lambda$new$0(VaultDetailLockedController.java:37)
at org.fxmisc.easybind.select.LeafSelectionElement.connect(LeafSelectionElement.java:26)
at org.fxmisc.easybind.select.SelectObjectBinding.computeValue(SelectObjectBinding.java:33)
at javafx.beans.binding.ObjectBinding.get(ObjectBinding.java:151)
at javafx.beans.binding.ObjectExpression.getValue(ObjectExpression.java:49)
at javafx.beans.binding.BooleanExpression$2.computeValue(BooleanExpression.java:136)
at javafx.beans.binding.BooleanBinding.get(BooleanBinding.java:155)
at javafx.beans.binding.BooleanExpression.getValue(BooleanExpression.java:55)
at javafx.beans.binding.BooleanBinding.getValue(BooleanBinding.java:59)
at com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(ExpressionHelper.java:355)
at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:80)
at javafx.beans.binding.BooleanBinding.invalidate(BooleanBinding.java:174)
at com.sun.javafx.binding.BindingHelperObserver.invalidated(BindingHelperObserver.java:52)
at com.sun.javafx.binding.ExpressionHelper$SingleInvalidation.fireValueChangedEvent(ExpressionHelper.java:136)
at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:80)
at javafx.beans.binding.ObjectBinding.invalidate(ObjectBinding.java:170)
at org.fxmisc.easybind.select.SelectObjectBinding.lambda$new$16(SelectObjectBinding.java:21)
at com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(ExpressionHelper.java:348)
at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:80)
at javafx.beans.property.ObjectPropertyBase.fireValueChangedEvent(ObjectPropertyBase.java:106)
at javafx.beans.property.ObjectPropertyBase.markInvalid(ObjectPropertyBase.java:113)
at javafx.beans.property.ObjectPropertyBase$Listener.invalidated(ObjectPropertyBase.java:234)
at com.sun.javafx.binding.ExpressionHelper$SingleInvalidation.fireValueChangedEvent(ExpressionHelper.java:136)
at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:80)
at javafx.beans.property.ReadOnlyObjectPropertyBase.fireValueChangedEvent(ReadOnlyObjectPropertyBase.java:74)
at javafx.beans.property.ReadOnlyObjectWrapper.fireValueChangedEvent(ReadOnlyObjectWrapper.java:102)
at javafx.beans.property.ObjectPropertyBase.markInvalid(ObjectPropertyBase.java:113)
at javafx.beans.property.ObjectPropertyBase.set(ObjectPropertyBase.java:147)
at javafx.scene.control.SelectionModel.setSelectedItem(SelectionModel.java:105)
at javafx.scene.control.MultipleSelectionModelBase.lambda$new$0(MultipleSelectionModelBase.java:67)
at com.sun.javafx.binding.ExpressionHelper$SingleInvalidation.fireValueChangedEvent(ExpressionHelper.java:136)
at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:80)
at javafx.beans.property.ReadOnlyIntegerPropertyBase.fireValueChangedEvent(ReadOnlyIntegerPropertyBase.java:72)
at javafx.beans.property.ReadOnlyIntegerWrapper.fireValueChangedEvent(ReadOnlyIntegerWrapper.java:102)
at javafx.beans.property.IntegerPropertyBase.markInvalid(IntegerPropertyBase.java:114)
at javafx.beans.property.IntegerPropertyBase.set(IntegerPropertyBase.java:148)
at javafx.scene.control.SelectionModel.setSelectedIndex(SelectionModel.java:69)
at javafx.scene.control.MultipleSelectionModelBase.select(MultipleSelectionModelBase.java:412)
at javafx.scene.control.MultipleSelectionModelBase.clearAndSelect(MultipleSelectionModelBase.java:360)
at javafx.scene.control.ListView$ListViewBitSetSelectionModel.clearAndSelect(ListView.java:1454)
at com.sun.javafx.scene.control.behavior.CellBehaviorBase.simpleSelect(CellBehaviorBase.java:282)
at com.sun.javafx.scene.control.behavior.CellBehaviorBase.doSelect(CellBehaviorBase.java:246)
at com.sun.javafx.scene.control.behavior.CellBehaviorBase.mousePressed(CellBehaviorBase.java:176)
at com.sun.javafx.scene.control.inputmap.InputMap.handle(InputMap.java:274)
at com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:247)
at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:234)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
at javafx.event.Event.fireEvent(Event.java:198)
at javafx.scene.Scene$MouseHandler.process(Scene.java:3890)
at javafx.scene.Scene.processMouseEvent(Scene.java:1885)
at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2618)
at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:409)
at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:299)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(GlassViewEventHandler.java:447)
at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:412)
at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:446)
at com.sun.glass.ui.View.handleMouseEvent(View.java:556)
at com.sun.glass.ui.View.notifyMouse(View.java:942)
at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$11(GtkApplication.java:277)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at org.freedesktop.secret.Item.getSecret(Item.java:44)
at org.freedesktop.secret.simple.SimpleCollection.getSecret(SimpleCollection.java:400)
at org.cryptomator.keychain.LinuxSecretServiceKeychainAccessImpl.loadPassphrase(LinuxSecretServiceKeychainAccessImpl.java:41)
at org.cryptomator.keychain.LinuxSecretServiceKeychainAccess.loadPassphrase(LinuxSecretServiceKeychainAccess.java:46)
at org.cryptomator.keychain.KeychainManager.isPassphraseStored(KeychainManager.java:72)
at org.cryptomator.keychain.KeychainManager.createStoredPassphraseProperty(KeychainManager.java:111)
at com.google.common.cache.CacheLoader$FunctionToCacheLoader.load(CacheLoader.java:165)
at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3529)
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2278)
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2155)
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2045)
... 85 more
getSecret returns null, as the keyring is still locked and that null gets retrieved from the cache by the KeychainManager.
As it is always possible that a keyring gets locked, I think it would add more robustness to the application if some checks wether the keyring is there and unlocked were added to the high-level SimpleCollection API.
These could be used by Cryptomator then.
I released 1.1.0, which may resolves this issue as I improved the signal handling. But I still have to reproduce the issue and verify that this version may be able to solve the issue.
Perfect this works super smoothly. Thanks for your fix @purejava 👍
I noticed two more problems in Cryptomator:
1st: It is (and properly should be) fine and ok to change the password of a vault with a locked keychain. Then this password can not be stored in the keychain.
After unlocking the keychain and trying to unlock a vault the loaded password is (and should be) incorrect, as it was just changed.
But when entering the new, changed passphrase, it does not update the one in the keychain:
After locking the vault and trying to unlock it again, it still tries to do it with the old one:
Edit: Ok, I got the difference between SimpleCollection.updateItem and SimpleCollection.createItem
2nd: When unlocking a keychain after the start of Cryptomator via a keychain software (So you cancel the first unlock prompt) the app doesn't try to access the keychain.
I will work on the first one as this seems to be more relevant.
Activity
infeo commentedon Jul 6, 2020
@swiesend We are using your library to access the GNOME keyring, can you imagine what went wrong?
swiesend commentedon Jul 6, 2020
I just tried to reproduce the problem with a fresh kubuntu 18.04 install, but could not succeed to reproduce it. But I'll look into this.
gnome-keyring)gnome-keyring-daemongnome-keyring(3.28.0.2-1ubuntu1.18.04.1) installed, no restartgnome-keyring-daemon, but no freeze after two abortsgnome-keyring(3.28.0.2-1ubuntu1.18.04.1) installed, after restartgnome-keyring-daemon, but no freeze after two abortsBeyerMart commentedon Aug 5, 2020
I was trying to reproduce these errors on Lubuntu 19.10 and Kubuntu 18.04.
I have never experienced a complete freeze of the OS. The worst was, you would have to wait 2 times 300 seconds, without any prompt. 300 seconds (5 min) is quite some time to wait.
In most (if not all) of the 300 seconds "freezes", the screen is locked onto the "Unlock Keyring" window, but some keyboard input into the textfield is possible, normally the buttons don't work. Sometimes only the Cryptomator application is blocked for 300 (*2) seconds.
The second freeze, when the application is running and you try to open a vault / the settings of a vault, happens whether the password for this vault is saved in the keychain or not.
A detailed description of my "research":
Lubuntu:
Cancel of unlock keyring before Cryptomator starts works fine.
After selecting the vault with the saved password, the buttons of the prompt cannot be selected, (no Cancel and no Unlock) but something can be entered as the password. The log says:
Then 300 seconds later


Error o.f.secret.handerls.SignalHandder - java-util.conncurrent.TimoutExceptionand anotherawait signal.The text field of the prompt is still editable, but the buttons cannot be pressed.
No other window can get focus.
300 Seconds later, everything is possible and after canceling the prompt, I get another prompt, where the focus is free. The Prompt can get canceled. In Cryptomator, I could select a vault and start unlocking. In the Cryptomator unlocking prompt, I could not use the keyboard, but the mouse.
The keyboard only worked in the new unlock keychain prompt.
After waiting another 300seconds, the unlock keychain prompt gets canceled and I can enter a password for a vault (and this unlocks the vault).
A relock and an attempt to unlock said vault causes the whole Cryptomator app to turn white.
No prompt to unlock the keychain appears, but the log says, the SignalHandler awaits a signal within 300 seconds.
After the first 300 seconds, The logfile reports a TimeoutException, and awaits a new signal (for 300sec), but there is still no prompt to enter any keychain password.
Next TimeoutException: The app shows the unlock vault window, with the option to save the password. The vault can be unlocked, but the saving of the password into the locked keychain causes the prompt of unlocking a vault not to disappear and the loading icon is still turning.
Kubuntu:
The process: gnome-keyring-daemon starts with the start of Cryptomator.

The first prompt to unlock the keychain can get (immediately) canceled.
Selecting a vault (with or without saved password) starts a new prompt to unlock keyring.
A Password can be entered, but the focus is locked and no buttons work.
Waiting 300 seconds for a timeout. Still a "frozen" screen. The log got a TimeoutException and is awaiting a new signal in 300seconds.
The next TimeoutException also has:
ERROR o.f.secret.handerls.Message.Hander - org.freedesktop.secret.errros.IsLocked: Cannot get secret of a locked object.And Cryptomator throws a java.lang.NullPointerExceptionAny new access to the keychain does not get a prompt, you have to wait 2*5 minutes.
I think it would be best to only try to open the keychain at the start of the application.
Would this be a security issue, since the keychain is unlocked the whole time, the application is running?
We should investigate further why the prompt to unlock the keychain does not open every single time, we try to access it and it isn't opened yet.
Sorry for the screenshots, my VMs wouldn't allow copy-pasting.
Edit: Added the log files of my test sessions:
cryptomator0Lubuntu.log
cryptomator0Kubuntu.log
purejava commentedon Aug 6, 2020
This is a good idea on first sight, but the keyring can be locked at all times. So you need to check wether a keyring is locked when you need to access it respectively unlock it.
purejava commentedon Aug 11, 2020
I find the NPE mentioned above quite interesting.
Matching @BeyerMart's decription above you can get a repo for that NPE by having a vault with a password saved in the keyring. You end Cryptomator, lock the keyring, start Cryptomator and deny all prompts to unlock the keyring.
The NPE occurs when you click on the vault. Here is the complete NPE:
getSecretreturnsnull, as the keyring is still locked and thatnullgets retrieved from the cache by theKeychainManager.As it is always possible that a keyring gets locked, I think it would add more robustness to the application if some checks wether the keyring is there and unlocked were added to the high-level
SimpleCollectionAPI.These could be used by Cryptomator then.
swiesend commentedon Aug 14, 2020
I released
1.1.0, which may resolves this issue as I improved the signal handling. But I still have to reproduce the issue and verify that this version may be able to solve the issue.purejava commentedon Aug 16, 2020
secret-service1.1.0solves the repo I described above:A NPE is not thrown any more.
BeyerMart commentedon Aug 19, 2020
Perfect this works super smoothly. Thanks for your fix @purejava 👍
I noticed two more problems in Cryptomator:

1st: It is (and properly should be) fine and ok to change the password of a vault with a locked keychain. Then this password can not be stored in the keychain.
After unlocking the keychain and trying to unlock a vault the loaded password is (and should be) incorrect, as it was just changed.
But when entering the new, changed passphrase, it does not update the one in the keychain:

After locking the vault and trying to unlock it again, it still tries to do it with the old one:

Edit: Ok, I got the difference between SimpleCollection.updateItem and SimpleCollection.createItem
2nd: When unlocking a keychain after the start of Cryptomator via a keychain software (So you cancel the first unlock prompt) the app doesn't try to access the keychain.

I will work on the first one as this seems to be more relevant.
purejava commentedon Aug 19, 2020
Thanks for the flowers @BeyerMart, but the fix is from @swiesend. I just tested his change too 🙂.
Thank you for giving the change a try and testing it!
I‘ll also look into the points you raised above. 🙂