← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #677873]: SikuliX seems to be adding a shutdown hook that's blocking my app from exiting

 

Question #677873 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/677873

Description changed to:
I'm seeing a problem that started recently, but I'm not sure what change
preceded it. When my app exits, or attempts to exit, when I'm running it
in IntelliJ, it hangs. This is true whether it's a successful exit, or
one due to an uncaught exception.

The relevant part of the thread dump seems to be this:

"main" #1 prio=5 os_prio=0 tid=0x0000000002cb2800 nid=0x23d0 in Object.wait() [0x0000000002b7e000]
   java.lang.Thread.State: WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	at java.lang.Thread.join(Thread.java:1252)
	- locked <0x00000000e00cc710> (a org.sikuli.script.RunTime$1)
	at java.lang.Thread.join(Thread.java:1326)
	at java.lang.ApplicationShutdownHooks.runHooks(ApplicationShutdownHooks.java:107)
	at java.lang.ApplicationShutdownHooks$1.run(ApplicationShutdownHooks.java:46)
	at java.lang.Shutdown.runHooks(Shutdown.java:123)
	at java.lang.Shutdown.sequence(Shutdown.java:167)
	at java.lang.Shutdown.exit(Shutdown.java:212)
	- locked <0x00000000e0075510> (a java.lang.Class for java.lang.Shutdown)
	at java.lang.Runtime.exit(Runtime.java:109)
	at java.lang.System.exit(System.java:971)
	at com.illumon.guitest.TestIrisGui.main(TestIrisGui.java:586)

This is using the SikuliX 1.1.4 jar under Java 1.8.0_172 from IntelliJ
2018.2.5 on Windows 10.

Any ideas?

Thanks,
Paul

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.