Steps to reproduce:
Log File
Paste an excerpt of your log file here
I could not reproduce this. Windows 10. It might take some time until all threads are stopped. But generally it works.
Still an issue`? (Do not confuse this with the other issue, the port issue/starting multiple instances of JabRef)
Yes. I can confirm this, especially with v4.3.1.
It happens on ~10% of the cases. Windows 10.
JabRef 5.0-dev--snapshot--2018-10-28--master--05047f32a
Windows 10 10.0 amd64
Java 1.8.0_191
I encountered this problem as well, if a previous JabRef version was open, then closed and then the installation of a new JabRef version was attempted.
My workaround was to just restart my system and to then run the installation, without having opened and closed the older JabRef version before the installation.
There is probably still a thread running which does not get shutdown correctly
Could you please test with the latest version? I can no longer reproduce this.
When I start it from terminal java -jar JabRef.jar do sth and then exit by clicking on the x on the window right top JabRef shuts down correctly. It takes a couple of seconds until all Threads are stopped, but then it returns fine.
JabRef 5.0-dev--snapshot--2018-11-01--master--11ddb8c96
Windows 10 10.0 amd64
Java 1.8.0_191
This bug appears to be fixed in the current master build - at least I cannot reproduce it anymore.
Confirming that it doesn't happen with the dev snapshot here either: JabRef-5.0-dev--snapshot--2018-11-02--master--611e35a6b.jar
With the current stable release (4.3.1), it doesn't exit on quit. The processes still hang around and must be killed manually.
Fedora 29 Linux user here, using Oracle Java.
Okay, thanks for confirming that it works @sanjayankur31 Due to a lack of resources we only maintain the latest version. Therefore bugs should always be tested/confiremd with the latest snapshot, as they might already be fixed.
For those looking for a fix, disabling anonymous statistics collection seems to result in it exiting correctly in 4.3.1. This probably means this bug is a duplicate of #3266.
Hm, thanks @jeremylea for the feedback. Unfortunately, I have disabled the telemetry and anonymous statistics, and rarely I still experience the aforementioned issue. Therefore, I am afraid, your solution, although it might be on the right path, does not fully resolve the issue.
Most helpful comment
JabRef 5.0-dev--snapshot--2018-11-01--master--11ddb8c96
Windows 10 10.0 amd64
Java 1.8.0_191
This bug appears to be fixed in the current master build - at least I cannot reproduce it anymore.