Skip to content

Failures on early service loading can prevent main windows from showing up #3279

Closed

Description

@infeo

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

  1. added this to the 1.12.0 milestone on Jan 9, 2024
  2. purejava commented on Jan 10, 2024

    @purejava
    Contributor

    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”.

  3. changed the title [-]Checking for GNOME Keyring support can prevent app from starting[/-] [+]Failures on early service loading can prevent main windows from showing up[/+] on Jan 10, 2024
  4. infeo commented on Jan 10, 2024

    @infeo
    MemberAuthor

    why this isn’t thrown as a DBusException, which would have been caught by secret-service

    The underlying dbus lib inherits ultimatively from RuntimeException, thus it is not catched (see here)

  5. infeo commented on Feb 6, 2024

    @infeo
    MemberAuthor

    Fixed with a30db34

  6. purejava commented on Feb 8, 2024

    @purejava
    Contributor

    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:

    12:54:18.534 [JavaFX Application Thread] ERROR o.c.ui.fxapp.FxApplicationWindows - Failed to display stage
    java.util.concurrent.CompletionException: java.util.ServiceConfigurationError: org.cryptomator.integrations.keychain.KeychainAccessProvider: Provider org.purejava.integrations.keychain.BitwardenAccess could not be instantiated
    	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.util.ServiceConfigurationError: org.cryptomator.integrations.keychain.KeychainAccessProvider: Provider org.purejava.integrations.keychain.BitwardenAccess could not be instantiated
    	at java.base/java.util.ServiceLoader.fail(Unknown Source)
    	at java.base/java.util.ServiceLoader$ProviderImpl.newInstance(Unknown Source)
    	at java.base/java.util.ServiceLoader$ProviderImpl.get(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 common frames omitted
    Caused by: java.lang.UnsatisfiedLinkError: Unable to load library 'bitwarden_c':
    libbitwarden_c.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden
    libbitwarden_c.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden
    Native library (linux-aarch64/libbitwarden_c.so) not found in resource path ([file:/home/ralph/.local/share/Cryptomator/plugins/cryptomator-bitwarden-0.4.0-SNAPSHOT-fix-arch.jar])
    	at [email protected]/com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:307)
    	at [email protected]/com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:467)
    	at [email protected]/com.sun.jna.Library$Handler.<init>(Library.java:192)
    	at [email protected]/com.sun.jna.Native.load(Native.java:622)
    	at [email protected]/com.sun.jna.Native.load(Native.java:596)
    	at com.bitwarden.sdk.BitwardenClient.<init>(BitwardenClient.java:31)
    	at org.purejava.integrations.keychain.BitwardenAccess.<init>(BitwardenAccess.java:39)
    	at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(Unknown Source)
    	at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Unknown Source)
    	at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
    	... 60 common frames omitted
    	Suppressed: java.lang.UnsatisfiedLinkError: libbitwarden_c.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden
    		at [email protected]/com.sun.jna.Native.open(Native Method)
    		at [email protected]/com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:197)
    		... 69 common frames omitted
    	Suppressed: java.lang.UnsatisfiedLinkError: libbitwarden_c.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden
    		at [email protected]/com.sun.jna.Native.open(Native Method)
    		at [email protected]/com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:210)
    		... 69 common frames omitted
    	Suppressed: java.io.IOException: Native library (linux-aarch64/libbitwarden_c.so) not found in resource path ([file:/home/ralph/.local/share/Cryptomator/plugins/cryptomator-bitwarden-0.4.0-SNAPSHOT-fix-arch.jar])
    		at [email protected]/com.sun.jna.Native.extractFromResourcePath(Native.java:1145)
    		at [email protected]/com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:281)
    		... 69 common frames omitted
    12:54:18.535 [JavaFX Application Thread] ERROR o.cryptomator.ui.fxapp.FxApplication - Failed to show main window
    java.util.concurrent.CompletionException: java.util.ServiceConfigurationError: org.cryptomator.integrations.keychain.KeychainAccessProvider: Provider org.purejava.integrations.keychain.BitwardenAccess could not be instantiated
    	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.util.ServiceConfigurationError: org.cryptomator.integrations.keychain.KeychainAccessProvider: Provider org.purejava.integrations.keychain.BitwardenAccess could not be instantiated
    	at java.base/java.util.ServiceLoader.fail(Unknown Source)
    	at java.base/java.util.ServiceLoader$ProviderImpl.newInstance(Unknown Source)
    	at java.base/java.util.ServiceLoader$ProviderImpl.get(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 common frames omitted
    Caused by: java.lang.UnsatisfiedLinkError: Unable to load library 'bitwarden_c':
    libbitwarden_c.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden
    libbitwarden_c.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden
    Native library (linux-aarch64/libbitwarden_c.so) not found in resource path ([file:/home/ralph/.local/share/Cryptomator/plugins/cryptomator-bitwarden-0.4.0-SNAPSHOT-fix-arch.jar])
    	at [email protected]/com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:307)
    	at [email protected]/com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:467)
    	at [email protected]/com.sun.jna.Library$Handler.<init>(Library.java:192)
    	at [email protected]/com.sun.jna.Native.load(Native.java:622)
    	at [email protected]/com.sun.jna.Native.load(Native.java:596)
    	at com.bitwarden.sdk.BitwardenClient.<init>(BitwardenClient.java:31)
    	at org.purejava.integrations.keychain.BitwardenAccess.<init>(BitwardenAccess.java:39)
    	at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(Unknown Source)
    	at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Unknown Source)
    	at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
    	... 60 common frames omitted
    	Suppressed: java.lang.UnsatisfiedLinkError: libbitwarden_c.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden
    		at [email protected]/com.sun.jna.Native.open(Native Method)
    		at [email protected]/com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:197)
    		... 69 common frames omitted
    	Suppressed: java.lang.UnsatisfiedLinkError: libbitwarden_c.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden
    		at [email protected]/com.sun.jna.Native.open(Native Method)
    		at [email protected]/com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:210)
    		... 69 common frames omitted
    	Suppressed: java.io.IOException: Native library (linux-aarch64/libbitwarden_c.so) not found in resource path ([file:/home/ralph/.local/share/Cryptomator/plugins/cryptomator-bitwarden-0.4.0-SNAPSHOT-fix-arch.jar])
    		at [email protected]/com.sun.jna.Native.extractFromResourcePath(Native.java:1145)
    		at [email protected]/com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:281)
    		... 69 common frames omitted
    
  7. infeo commented on Feb 13, 2024

    @infeo
    MemberAuthor

    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.

    Sigh, i guess we need a more resilient approach.

  8. reopened this on Feb 13, 2024
  9. modified the milestones: 1.12.0, next on Feb 13, 2024
  10. infeo commented on Feb 20, 2024

    @infeo
    MemberAuthor
  11. infeo commented on Feb 26, 2024

    @infeo
    MemberAuthor

    Fixed with 5ea73a5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions