Repository navigation
Closed
Labels
Milestone
Description
Description
- Sometimes there is
Exception in thread "DBusConnection" java.util.concurrent.RejectedExecutionExceptionat shutdown (log attached) - Sometimes the process won't stop for as long as 5-10 min (log attached)
System Setup
- Operating system and version: Ubuntu 20.04:
Linux *** 5.4.0-52-generic #57-Ubuntu SMP Thu Oct 15 10:57:00 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux - Cryptomator version:
cryptomator-1.5.9-beta1-x86_64.AppImage - Volume type: FUSE
- Libs:
dbus-java-3.2.3.jar
secret-service-1.2.1.jar
slf4j-api-1.7.30.jar
Steps to Reproduce
Start the Cryptomator app multiple times in a row and shutdown with the upper right UI button (X) and confirm "Lock and Quit" until the error occurs.
Expected Behavior
Should not complain about any with an RejectedExecutionException, but just teardown grecefully.
Actual Behavior
See: #1308 (comment)
Reproducibility
Sometimes (1/25 times)
Additional Information
Race condition while logging:
$ ~/downloads/cryptomator-1.5.9-beta1-x86_64.AppImage
15:51:35.297 [main] DEBUG org.cryptomator.common.Environment - java.library.path: /tmp/.mount_cryptoiZ6Hp1/lib/app:/tmp/.mount_cryptoiZ6Hp1/bin
15:51:35.300 [main] DEBUG org.cryptomator.common.Environment - user.language: en
15:51:35.300 [main] DEBUG org.cryptomator.common.Environment - user.region: null
15:51:35.300 [main] DEBUG org.cryptomator.common.Environment - logback.configurationFile: null
15:51:35.300 [main] DEBUG org.cryptomator.common.Environment - cryptomator.settingsPath: ~/.config/Cryptomator/settings.json:~/.Cryptomator/settings.json
15:51:35.300 [main] DEBUG org.cryptomator.common.Environment - cryptomator.ipcPortPath: ~/.config/Cryptomator/ipcPort.bin:~/.Cryptomator/ipcPort.bin
15:51:35.300 [main] DEBUG org.cryptomator.common.Environment - cryptomator.keychainPath: null
15:51:35.300 [main] DEBUG org.cryptomator.common.Environment - cryptomator.logDir: ~/.local/share/Cryptomator/logs
15:51:35.300 [main] DEBUG org.cryptomator.common.Environment - cryptomator.mountPointsDir: ~/.local/share/Cryptomator/mnt
15:51:35.300 [main] DEBUG org.cryptomator.common.Environment - cryptomator.minPwLength: null
15:51:35.300 [main] DEBUG org.cryptomator.common.Environment - cryptomator.buildNumber: appimage-1
15:51:35.300 [main] DEBUG org.cryptomator.common.Environment - fuse.experimental: false
15:51:35.349 [main] DEBUG org.cryptomator.common.ShutdownHook - Registered shutdown hook.
15:51:35.461 [main] DEBUG org.cryptomator.common.settings.SettingsProvider - Attempting to load settings from /home/sebastian/.config/Cryptomator/settings.json
15:51:35.547 [main] INFO org.cryptomator.common.settings.SettingsProvider - Settings loaded from /home/sebastian/.config/Cryptomator/settings.json
15:51:36.195 [main] INFO org.cryptomator.launcher.Cryptomator - Starting Cryptomator 1.5.9-beta1 on Linux 5.4.0-52-generic (amd64)
15:51:36.477 [JavaFX Application Thread] INFO o.c.ui.launcher.FxApplicationStarter - JavaFX Runtime started.
15:51:40.587 [App Background Thread 003] INFO o.c.ui.unlock.UnlockWorkflow - Unlock of 'sebastian' succeeded.
15:51:44.520 [JavaFX Application Thread] INFO o.cryptomator.ui.fxapp.UpdateChecker - Current version: 1.5.9-beta1, lastest version: 1.5.8
15:52:32.439 [JavaFX Application Thread] INFO o.cryptomator.ui.quit.QuitController - Locked sebastian
15:52:32.459 [main] INFO org.cryptomator.launcher.Cryptomator - UI shut down
Exception in thread "DBusConnection" java.util.concurrent.RejectedExecutionException: Task org.freedesktop.dbus.connections.AbstractConnection$1@e855db7 rejected from java.util.concurrent.ThreadPoolExecutor@3fcbf031[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 45]
at java.base/java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.reject(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.execute(Unknown Source)
at org.freedesktop.dbus.connections.AbstractConnection.sendMessage(AbstractConnection.java:378)
at org.freedesktop.dbus.connections.AbstractConnection.handleMessage(AbstractConnection.java:1054)
at org.freedesktop.dbus.connections.AbstractConnection.handleMessage(AbstractConnection.java:713)
at org.freedesktop.dbus.connections.IncomingMessageThread.run(IncomingMessageThread.java:43)Process won't stop for as long as 5-10 min:
$ /home/sebastian/downloads/cryptomator-1.5.9-beta1-x86_64.AppImage
16:13:54.672 [main] DEBUG org.cryptomator.common.Environment - java.library.path: /tmp/.mount_cryptoezEBLM/lib/app:/tmp/.mount_cryptoezEBLM/bin
16:13:54.675 [main] DEBUG org.cryptomator.common.Environment - user.language: en
16:13:54.675 [main] DEBUG org.cryptomator.common.Environment - user.region: null
16:13:54.675 [main] DEBUG org.cryptomator.common.Environment - logback.configurationFile: null
16:13:54.675 [main] DEBUG org.cryptomator.common.Environment - cryptomator.settingsPath: ~/.config/Cryptomator/settings.json:~/.Cryptomator/settings.json
16:13:54.675 [main] DEBUG org.cryptomator.common.Environment - cryptomator.ipcPortPath: ~/.config/Cryptomator/ipcPort.bin:~/.Cryptomator/ipcPort.bin
16:13:54.675 [main] DEBUG org.cryptomator.common.Environment - cryptomator.keychainPath: null
16:13:54.675 [main] DEBUG org.cryptomator.common.Environment - cryptomator.logDir: ~/.local/share/Cryptomator/logs
16:13:54.675 [main] DEBUG org.cryptomator.common.Environment - cryptomator.mountPointsDir: ~/.local/share/Cryptomator/mnt
16:13:54.675 [main] DEBUG org.cryptomator.common.Environment - cryptomator.minPwLength: null
16:13:54.675 [main] DEBUG org.cryptomator.common.Environment - cryptomator.buildNumber: appimage-1
16:13:54.675 [main] DEBUG org.cryptomator.common.Environment - fuse.experimental: false
16:13:54.718 [main] DEBUG org.cryptomator.common.ShutdownHook - Registered shutdown hook.
16:13:54.837 [main] DEBUG org.cryptomator.common.settings.SettingsProvider - Attempting to load settings from /home/sebastian/.config/Cryptomator/settings.json
16:13:54.927 [main] INFO org.cryptomator.common.settings.SettingsProvider - Settings loaded from /home/sebastian/.config/Cryptomator/settings.json
16:13:55.574 [main] INFO org.cryptomator.launcher.Cryptomator - Starting Cryptomator 1.5.9-beta1 on Linux 5.4.0-52-generic (amd64)
16:13:55.866 [JavaFX Application Thread] INFO o.c.ui.launcher.FxApplicationStarter - JavaFX Runtime started.
16:13:59.916 [App Background Thread 003] INFO o.c.ui.unlock.UnlockWorkflow - Unlock of 'sebastian' succeeded.
16:14:03.247 [JavaFX Application Thread] INFO o.cryptomator.ui.quit.QuitController - Locked sebastian
16:14:03.259 [main] INFO org.cryptomator.launcher.Cryptomator - UI shut down
^C
^C
^C^C^C
^C^C^C^C^C
Activity
[-]Sometimes a `RejectedExecutionException` occurs on shutdown or the process won't stop[/-][+]Sometimes a `RejectedExecutionException` occurs on shutdown or the process won't stop for minutes[/+]swiesend commentedon Nov 10, 2020
I already tried to eradicate this behaviour, but did not succeed until now. I only could fix swiesend/secret-service#20 to my knowledge, but swiesend/secret-service#21 is still open.
There is version
1.2.3, which might relief the situation a bit, but does not solve it entirely:https://github.com/swiesend/secret-service/blob/master/CHANGELOG.md
There can also occur some unhandled
RuntimeExceptions, like ajava.security.AccessControlExceptionon prompt dismiss or theoreticalIllegalArgumentExceptions. TheAccessControlExceptionwas not thrown in older versions, but documented in some method signatures, now there is an actual interface for the SimpleCollection.I created a new PR on https://github.com/cryptomator/integrations-linux with version
1.2.3to handle theIllegalArgumentExceptions and using the newisAvailable()method.infeo commentedon Nov 11, 2020
Depends on cryptomator/integrations-linux#2
infeo commentedon Feb 24, 2021
Fixed with bumping the integrations-linux version in 81091d4
infeo commentedon Feb 24, 2021
Well... the shutdown is not blocked anymore, but the RejectedExectutionException still appears from time to time.
infeo commentedon Feb 24, 2021
I'll open a new issue for that.
swiesend commentedon Feb 24, 2021
Oh, no. Don't see it popping up on my tests thou. Did you trigger it with the ui shutdown or with an interrupt by
ctrl+c?With an interrupt I only can trigger a
org.cryptomator.frontend.fuse.mount.CommandFailedExceptionon half way loading the vault.infeo commentedon Feb 25, 2021
I triggered the stacktrace by normally exiting the application, but it was started from an IDE. In a small test run with the 1.5.13 appimage and starts i was unable to trigger the issue. This might also be an "IDE only" issue 🤷 I dunno. Before reopening this, i favor to let this case be until it reappears again.
Your stack trace is something different. While this might look unsettling, closing an application via signal/interrupt rather than shutting it regulary down has its consequences.