[2.0.4] IDE: on exit: Exception in ShutDownHook --- can be ignored --- fixed in 2.0.5

Bug #1871026 reported by Jeff_Vallis on 2020-04-06
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Critical
RaiMan

Bug Description

Installed
2.0.4-2020-03-14_08:01/Mac10.15.3/Java13(64)13.0.1+9
Tried 3 Script Files
Script ran ok
on exit(0)
Result
Exception in thread "Thread-0" java.lang.IllegalStateException: Shutdown in progress
 at java.base/java.lang.ApplicationShutdownHooks.add(ApplicationShutdownHooks.java:66)
 at java.base/java.lang.Runtime.addShutdownHook(Runtime.java:213)
 at java.prefs/java.util.prefs.MacOSXPreferencesFile.timer(MacOSXPreferencesFile.java:357)
 at java.prefs/java.util.prefs.MacOSXPreferencesFile.markChanged(MacOSXPreferencesFile.java:291)
 at java.prefs/java.util.prefs.MacOSXPreferencesFile.addNode(MacOSXPreferencesFile.java:367)
 at java.prefs/java.util.prefs.MacOSXPreferences.<init>(MacOSXPreferences.java:115)
 at java.prefs/java.util.prefs.MacOSXPreferences.<init>(MacOSXPreferences.java:86)
 at java.prefs/java.util.prefs.MacOSXPreferences.getUserRoot(MacOSXPreferences.java:59)
 at java.prefs/java.util.prefs.MacOSXPreferencesFactory.userRoot(MacOSXPreferencesFactory.java:31)
 at java.prefs/java.util.prefs.Preferences.userRoot(Preferences.java:457)
 at java.prefs/java.util.prefs.Preferences.userNodeForPackage(Preferences.java:371)
 at org.sikuli.basics.PreferencesUser.<init>(PreferencesUser.java:53)
 at org.sikuli.basics.PreferencesUser.get(PreferencesUser.java:57)
 at org.sikuli.script.support.RunTime.cleanUp(RunTime.java:1350)
 at org.sikuli.script.support.RunTime.runShutdownHook(RunTime.java:1364)
 at org.sikuli.script.support.RunTime.access$000(RunTime.java:42)
 at org.sikuli.script.support.RunTime$3.run(RunTime.java:1056)

Jeff_Vallis (vallis-pj) wrote :

So changed first line in script to
exit(0)
so that script did nothing

ran :
java -jar /Users/Jeff/Documents/SikuliX/Sikulix-Current.jar -r /Users/Jeff/Documents/Sikuli_Live/SikuliScripts/Vikings/Code/Command_File.sikuli

result :-
[info] Exit code: 0
Exception in thread "Thread-0" java.lang.IllegalStateException: Shutdown in progress
 at java.base/java.lang.ApplicationShutdownHooks.add(ApplicationShutdownHooks.java:66)
 at java.base/java.lang.Runtime.addShutdownHook(Runtime.java:213)
 at java.prefs/java.util.prefs.MacOSXPreferencesFile.timer(MacOSXPreferencesFile.java:357)
 at java.prefs/java.util.prefs.MacOSXPreferencesFile.markChanged(MacOSXPreferencesFile.java:291)
 at java.prefs/java.util.prefs.MacOSXPreferencesFile.addNode(MacOSXPreferencesFile.java:367)
 at java.prefs/java.util.prefs.MacOSXPreferences.<init>(MacOSXPreferences.java:115)
 at java.prefs/java.util.prefs.MacOSXPreferences.<init>(MacOSXPreferences.java:86)
 at java.prefs/java.util.prefs.MacOSXPreferences.getUserRoot(MacOSXPreferences.java:59)
 at java.prefs/java.util.prefs.MacOSXPreferencesFactory.userRoot(MacOSXPreferencesFactory.java:31)
 at java.prefs/java.util.prefs.Preferences.userRoot(Preferences.java:457)
 at java.prefs/java.util.prefs.Preferences.userNodeForPackage(Preferences.java:371)
 at org.sikuli.basics.PreferencesUser.<init>(PreferencesUser.java:53)
 at org.sikuli.basics.PreferencesUser.get(PreferencesUser.java:57)
 at org.sikuli.script.support.RunTime.cleanUp(RunTime.java:1350)
 at org.sikuli.script.support.RunTime.runShutdownHook(RunTime.java:1364)
 at org.sikuli.script.support.RunTime.access$000(RunTime.java:42)
 at org.sikuli.script.support.RunTime$3.run(RunTime.java:1056)

RaiMan (raimund-hocke) wrote :

this problem can simply be ignored. Does not do any harm.
will be fixed in 2.0.5

summary: - Exception in thread
+ [2.0.4] IDE: on exit: Exception in ShutDownHook .-
summary: - [2.0.4] IDE: on exit: Exception in ShutDownHook .-
+ [2.0.4] IDE: on exit: Exception in ShutDownHook --- can be ignored ---
+ fixed in 2.0.5
Jeff_Vallis (vallis-pj) wrote :

ok

RaiMan (raimund-hocke) on 2021-02-09
Changed in sikuli:
status: New → Fix Committed
importance: Undecided → Critical
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 2.0.5
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers