scijava / scijava-common

A plugin framework and application container with built-in extensibility mechanism :electric_plug:
BSD 2-Clause "Simplified" License
91 stars 52 forks source link

BackingStoreException caused by PrefService #440

Open tischi opened 2 years ago

tischi commented 2 years ago

Sometimes (not clear to me when), users get this exception (the likelihood of this happening seems to increase when trying to start multiple Fiji in parallel on the same computer):

> Apr 27, 2022 9:27:59 AM java.util.prefs.FileSystemPreferences syncWorld
> WARNING: Couldn't flush user prefs: java.util.prefs.BackingStoreException: Couldn't get file lock.

More information can be found here: https://forum.image.sc/t/fiji-console-message-repeating-every-few-seconds/66306

I read a bit about this issue and have the feeling that generally people advice not to use the Java Preferences at all but rather use an own implementation.

Here is some link with suggestions how one may fix it (I did not try this yet):

imagesc-bot commented 2 years ago

This issue has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/fiji-console-message-repeating-every-few-seconds/66306/11