Repository navigation
Closed
Labels
Milestone
Description
Discussed in #3266
Originally posted by aritus007 December 26, 2023
OS: Linux / 6.4.0-0.deb12.2-amd64
App: 1.11.1 / appimage-4989
Description:
Error shows up on launching the snap version of the application.
No media is mounted. Yet, within the system icon-tray, on Debian, KDE I can right-click Cryptomator icon and quite and will be asked if locking the media/drives is wanted.
Details:
Error Code 32K8:D9PA:2LL9
java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: Could not initialize class de.swiesend.secretservice.simple.SimpleCollection
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source)
at java.base/java.util.concurrent.CompletableFuture.completeThrowable(Unknown Source)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source)
at [email protected]/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at [email protected]/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(Unknown Source)
at [email protected]/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
at [email protected]/com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at [email protected]/com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$11(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class de.swiesend.secretservice.simple.SimpleCollection
at [email protected]/org.cryptomator.linux.keychain.SecretServiceKeychainAccess.isSupported(SecretServiceKeychainAccess.java:28)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(Unknown Source)
at java.base/java.util.stream.ReferencePipeline$15$1.accept(Unknown Source)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(Unknown Source)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
at java.base/java.util.ArrayList.forEach(Unknown Source)
at java.base/java.util.stream.SortedOps$RefSortingSink.end(Unknown Source)
at java.base/java.util.stream.Sink$ChainedReference.end(Unknown Source)
at java.base/java.util.stream.Sink$ChainedReference.end(Unknown Source)
at java.base/java.util.stream.Sink$ChainedReference.end(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.evaluateToArrayNode(Unknown Source)
at java.base/java.util.stream.ReferencePipeline.toArray(Unknown Source)
at java.base/java.util.stream.ReferencePipeline.toArray(Unknown Source)
at java.base/java.util.stream.ReferencePipeline.toList(Unknown Source)
at [email protected]/org.cryptomator.common.keychain.KeychainModule.provideSupportedKeychainAccessProviders(KeychainModule.java:19)
at [email protected]/org.cryptomator.common.keychain.KeychainModule_ProvideSupportedKeychainAccessProvidersFactory.provideSupportedKeychainAccessProviders(KeychainModule_ProvideSupportedKeychainAccessProvidersFactory.java:29)
at [email protected]/org.cryptomator.launcher.DaggerCryptomatorComponent$CryptomatorComponentImpl$SwitchingProvider.get(DaggerCryptomatorComponent.java:9207)
at [email protected]/dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
at [email protected]/org.cryptomator.launcher.DaggerCryptomatorComponent$CryptomatorComponentImpl$SwitchingProvider.get(DaggerCryptomatorComponent.java:9202)
at [email protected]/dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
at [email protected]/org.cryptomator.launcher.DaggerCryptomatorComponent$CryptomatorComponentImpl$SwitchingProvider.get(DaggerCryptomatorComponent.java:9196)
at [email protected]/dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
at [email protected]/org.cryptomator.launcher.DaggerCryptomatorComponent$ocuk_KeyLoadingComponentImpl$SwitchingProvider.get(DaggerCryptomatorComponent.java:4610)
at [email protected]/dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
at [email protected]/org.cryptomator.launcher.DaggerCryptomatorComponent$ocuk_KeyLoadingComponentImpl$SwitchingProvider.get(DaggerCryptomatorComponent.java:4593)
at [email protected]/dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
at [email protected]/org.cryptomator.ui.keyloading.KeyLoadingModule.provideKeyLoadingStrategy(KeyLoadingModule.java:34)
at [email protected]/org.cryptomator.ui.keyloading.KeyLoadingModule_ProvideKeyLoadingStrategyFactory.provideKeyLoadingStrategy(KeyLoadingModule_ProvideKeyLoadingStrategyFactory.java:44)
at [email protected]/org.cryptomator.launcher.DaggerCryptomatorComponent$ocuk_KeyLoadingComponentImpl$SwitchingProvider.get(DaggerCryptomatorComponent.java:4583)
at [email protected]/dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
at [email protected]/org.cryptomator.launcher.DaggerCryptomatorComponent$ocuk_KeyLoadingComponentImpl.keyloadingStrategy(DaggerCryptomatorComponent.java:4549)
at [email protected]/org.cryptomator.ui.unlock.UnlockModule.provideKeyLoadingStrategy(UnlockModule.java:60)
at [email protected]/org.cryptomator.ui.unlock.UnlockModule_ProvideKeyLoadingStrategyFactory.provideKeyLoadingStrategy(UnlockModule_ProvideKeyLoadingStrategyFactory.java:53)
at [email protected]/org.cryptomator.launcher.DaggerCryptomatorComponent$UnlockComponentImpl$SwitchingProvider.get(DaggerCryptomatorComponent.java:5004)
at [email protected]/dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
at [email protected]/org.cryptomator.launcher.DaggerCryptomatorComponent$UnlockComponentImpl$SwitchingProvider.get(DaggerCryptomatorComponent.java:4951)
at [email protected]/dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
at [email protected]/org.cryptomator.launcher.DaggerCryptomatorComponent$UnlockComponentImpl.unlockWorkflow(DaggerCryptomatorComponent.java:4915)
at [email protected]/org.cryptomator.ui.fxapp.FxApplicationWindows.lambda$startUnlockWorkflow$7(FxApplicationWindows.java:141)
... 8 more
Caused by: java.lang.ExceptionInInitializerError: Exception org.freedesktop.dbus.exceptions.AddressResolvingException: Cannot Resolve Session Bus Address: MachineId file can not be found [in thread "JavaFX Application Thread"]
at [email protected]/org.freedesktop.dbus.utils.AddressBuilder.getDbusMachineId(AddressBuilder.java:133)
at [email protected]/org.freedesktop.dbus.connections.impl.DBusConnectionBuilder.forSessionBus(DBusConnectionBuilder.java:44)
at [email protected]/org.freedesktop.dbus.connections.impl.DBusConnectionBuilder.forSessionBus(DBusConnectionBuilder.java:65)
at [email protected]/de.swiesend.secretservice.simple.SimpleCollection.getConnection(SimpleCollection.java:140)
at [email protected]/de.swiesend.secretservice.simple.SimpleCollection.<clinit>(SimpleCollection.java:40)
at [email protected]/org.cryptomator.linux.keychain.SecretServiceKeychainAccess.isSupported(SecretServiceKeychainAccess.java:28)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(Unknown Source)
at java.base/java.util.stream.ReferencePipeline$15$1.accept(Unknown Source)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(Unknown Source)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
at java.base/java.util.ArrayList.forEach(Unknown Source)
at java.base/java.util.stream.SortedOps$RefSortingSink.end(Unknown Source)
at java.base/java.util.stream.Sink$ChainedReference.end(Unknown Source)
at java.base/java.util.stream.Sink$ChainedReference.end(Unknown Source)
at java.base/java.util.stream.Sink$ChainedReference.end(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.evaluateToArrayNode(Unknown Source)
at java.base/java.util.stream.ReferencePipeline.toArray(Unknown Source)
at java.base/java.util.stream.ReferencePipeline.toArray(Unknown Source)
at java.base/java.util.stream.ReferencePipeline.toList(Unknown Source)
at [email protected]/org.cryptomator.common.keychain.KeychainModule.provideSupportedKeychainAccessProviders(KeychainModule.java:19)
at [email protected]/org.cryptomator.common.keychain.KeychainModule_ProvideSupportedKeychainAccessProvidersFactory.provideSupportedKeychainAccessProviders(KeychainModule_ProvideSupportedKeychainAccessProvidersFactory.java:29)
at [email protected]/org.cryptomator.launcher.DaggerCryptomatorComponent$CryptomatorComponentImpl$SwitchingProvider.get(DaggerCryptomatorComponent.java:9207)
at [email protected]/dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
at [email protected]/org.cryptomator.launcher.DaggerCryptomatorComponent$CryptomatorComponentImpl$SwitchingProvider.get(DaggerCryptomatorComponent.java:9202)
at [email protected]/dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
at [email protected]/org.cryptomator.launcher.DaggerCryptomatorComponent$CryptomatorComponentImpl$SwitchingProvider.get(DaggerCryptomatorComponent.java:9196)
at [email protected]/dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
at [email protected]/org.cryptomator.launcher.DaggerCryptomatorComponent$MainWindowComponentImpl$SwitchingProvider.get(DaggerCryptomatorComponent.java:3140)
at [email protected]/dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
at [email protected]/org.cryptomator.ui.common.FxmlLoaderFactory.constructController(FxmlLoaderFactory.java:78)
at [email protected]/javafx.fxml.FXMLLoader$ValueElement.processAttribute(Unknown Source)
at [email protected]/javafx.fxml.FXMLLoader$InstanceDeclarationElement.processAttribute(Unknown Source)
at [email protected]/javafx.fxml.FXMLLoader$Element.processStartElement(Unknown Source)
at [email protected]/javafx.fxml.FXMLLoader$ValueElement.processStartElement(Unknown Source)
at [email protected]/javafx.fxml.FXMLLoader.processStartElement(Unknown Source)
at [email protected]/javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at [email protected]/javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at [email protected]/javafx.fxml.FXMLLoader$IncludeElement.constructValue(Unknown Source)
at [email protected]/javafx.fxml.FXMLLoader$ValueElement.processStartElement(Unknown Source)
at [email protected]/javafx.fxml.FXMLLoader.processStartElement(Unknown Source)
at [email protected]/javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at [email protected]/javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at [email protected]/javafx.fxml.FXMLLoader$IncludeElement.constructValue(Unknown Source)
at [email protected]/javafx.fxml.FXMLLoader$ValueElement.processStartElement(Unknown Source)
at [email protected]/javafx.fxml.FXMLLoader.processStartElement(Unknown Source)
at [email protected]/javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at [email protected]/javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at [email protected]/javafx.fxml.FXMLLoader.load(Unknown Source)
at [email protected]/org.cryptomator.ui.common.FxmlLoaderFactory.load(FxmlLoaderFactory.java:46)
at [email protected]/org.cryptomator.ui.common.FxmlLoaderFactory.createScene(FxmlLoaderFactory.java:63)
at [email protected]/org.cryptomator.ui.common.FxmlLoaderFactory.createScene(FxmlLoaderFactory.java:51)
at [email protected]/org.cryptomator.ui.mainwindow.MainWindowModule.provideMainScene(MainWindowModule.java:78)
at [email protected]/org.cryptomator.ui.mainwindow.MainWindowModule_ProvideMainSceneFactory.provideMainScene(MainWindowModule_ProvideMainSceneFactory.java:38)
at [email protected]/org.cryptomator.launcher.DaggerCryptomatorComponent$MainWindowComponentImpl$SwitchingProvider.get(DaggerCryptomatorComponent.java:3072)
at [email protected]/dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
at [email protected]/org.cryptomator.ui.mainwindow.MainWindowComponent.showMainWindow(MainWindowComponent.java:28)
... 8 more
Activity
purejava commentedon Jan 10, 2024
Technically, the underlying dbus is failing to build a session, which is quite uncommon. I wonder, why this isn’t thrown as a DBusException, which would have been caught by secret-service.
Probably, kdewallet would fail here for the same reason.
Besides that, if one of the plugins for Cryptomator fails to initialize, this keeps the main window from coming up too. The app is starting though and can at least be ended via the systray icon.
I’d suggest to change the title of this issue to “Failures on early service loading can prevent main windows from showing up”.
[-]Checking for GNOME Keyring support can prevent app from starting[/-][+]Failures on early service loading can prevent main windows from showing up[/+]infeo commentedon Jan 10, 2024
The underlying dbus lib inherits ultimatively from
RuntimeException, thus it is not catched (see here)infeo commentedon Feb 6, 2024
Fixed with a30db34
purejava commentedon Feb 8, 2024
Hi @infeo, can we please re-open this?
Besides the fix for
integrations-linux, if one of the plugins for Cryptomator fails to initialize, this keeps the main window from coming up too. The app is starting though and can at least be ended via the systray icon.E.g. take a look at the bitwarden plugin. The dependency com.bitwarden:sdk is compiled for Linux x86_64, but not for aarch64. When you run the plugin on the latter, the Cryptomator UI does not come up due to an
java.util.concurrent.CompletionException: java.util.ServiceConfigurationError: org.cryptomator.integrations.keychain.KeychainAccessProvider: Provider org.purejava.integrations.keychain.BitwardenAccess could not be instantiated.There is nothing the plugin can do on its side. Below, for the record, the full stacktrace:
infeo commentedon Feb 13, 2024
Sigh, i guess we need a more resilient approach.
infeo commentedon Feb 20, 2024
Depends on cryptomator/integrations-api#26
infeo commentedon Feb 26, 2024
Fixed with 5ea73a5