-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jabre-4.x does not exit cleanly #2955
Comments
On windows (started with ./gradlew run from sourcecode) I can not reproduce this. It might be the case that there is still some background thread which does write a backup or whatever and takes some time. |
I also tested it directly from command line on Xubuntu 16.04 with the steps you provided and it exits cleanly. Do you have any save actions defined which might delay the exiting? |
I have already updated to a more recent version and I retried several times. I have to agree, that it is not so easy to reproduce anymore. I will have to investigate a bit more what causes it. Sometimes it exits in 3 seconds (which is quite slow for an simple GUI on a i7 cpu), some times it takes longer. I think the best is we close the ticket and I open a new ticket, when I can provide useful details. |
I also have this issue and can reproduce it every single time. It seems to only occur when a database is open, although I am not 100% about this aspect. I ran JabRef in an Eclipse debug session and got the following stack trace when the application is hanging on exit:
So many threads/daemons are waiting for @jonasstein or some developer: could you please reopen this issue? |
All but one Thread are daemons, which are not blocking termination. The only non-daemon Thread is this one:
It is located under there: https://github.com/JabRef/jabref/blob/master/src/main/java/org/jabref/gui/JabRefFrame.java#L665 |
@michaellass thanks to a quick fix by @125m125 the issue should be now resolved in the latest development version |
This indeed fixes the issue in most cases but there is still a corner case left: When exiting JabRef while the statistics dialog is open, the following error is printed to terminal and JabRef does not exit:
|
You have to wrap the command in |
The dialog to ask for collecting anonymous statistics needs to be created in the Swing EDT. Do so using SwingUtilities.invokeLater(). This is a follow-up on 7ef2b3a and should finally fix JabRef#2955.
@Siedlerchr Since I have little to no experience with developing with Swing and JavaFX, could you check if PR #3272 is what you suggested? It works fine here and fixes the issue. As a side effect, it disables all user inputs in the main window while the dialog is open. |
It looks good from my side. The blocking is okay, as it is defined as a kind of modal dialog. |
The dialog to ask for collecting anonymous statistics needs to be created in the Swing EDT. Do so using SwingUtilities.invokeLater(). This is a follow-up on 7ef2b3a and should finally fix JabRef#2955.
still marked as
Thank you. |
I am on Manjaro Linux 18.0.1 "Illyria". I've installed JabRef 4.3.1 through the AUR. I have noticed through When I run JabRef through a terminal, either through the
Nothing else prints when I close the window and the terminal stays hanged until I hit To be thorough, I've just downloaded JabRef version 4.3.1 from the releases page here on GitHub and exactly the same behavior occurs. If it is of any help, I have a library with roughly 600 items. Output of
|
I fixed the issue by unmarking the checkbox related to collecting and sharing telemetry data, in the General tab of the Preferences window. I saw this issue was mentioned in a few pull requests related to usage statistics, decided to try it and it worked. |
Please try the latest development version in case you encounter any problems. Please remember to create a backup of your Bib file before trying out the new version |
Just tested with The problem still exists. And unchecking "collecting and sharing telemetry data" does solve the problem. |
@shichuzhu Please try the latest develioment version from 5.x.. |
The GUI disappears after running File/Quit from the menu, but Jabref does not return to console.
Need to press Ctrl+C several times.
Started from commandline with
java -jar jabref.jar
The text was updated successfully, but these errors were encountered: