Closed cmhulbert closed 1 year ago
@axtimwalde do you have steps that duplicate this? I've tried just opening an existing project, do some painting/shape interpolation operations and then closing, but the process quits properly when exiting.
Nothing special. Open, close. Did you test the release version?
Also, I am working on a project on a network drive, may be speed matters.
Nothing special. Open, close. Did you test the release version?
Yes, I was testing against the current release. I have seen similar issue while debugging for example, but can't duplicate with the release. I'll keep trying. I can test over the network also
It's the MIDI controller! Needs to be closed at exit or will prevent JVM from closing. You should use it more :).
Found with VisualVM.
Thanks for investigating. I should be able to get a quick fix for this then :+1:
Seems this is a known bug (https://bugs.openjdk.org/browse/JDK-8232862). This results in the Midi device thread never returning cooperatively when closing the midi device. When Paintera quits, it calls Platform.exit
which is specific to closing a JavaFx application. However, this differs from System.exit
in that it doesn't force non-daemon
threads to return. The result is that the Midi thread is still running. Until the bug is fixed at least, there should be no harm in explicitly calling System.exit
afterPlatform.exit
reported by @axtimwalde Associated stacktrace when forcing the process to quit via
Ctrl-C