Skip to content
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

Fix open thread prevents shutdown #4111

Merged
merged 4 commits into from
Jun 13, 2018
Merged

Fix open thread prevents shutdown #4111

merged 4 commits into from
Jun 13, 2018

Conversation

Siedlerchr
Copy link
Member

@Siedlerchr Siedlerchr commented Jun 6, 2018

@tobiasdiez As this is just contains the relevant fix and works for me, I would be in favor for using this PR. You could still have your PR as refactoring PR then


  • Change in CHANGELOG.md described
  • Tests created for changes
  • Manually tested changed features in running JabRef
  • Screenshots added in PR description (for bigger UI changes)
  • Ensured that the git commit message is a good one
  • Check documentation status (Issue created for outdated help page at help.jabref.org?)

@Siedlerchr Siedlerchr changed the title Leakedthread Fix Leakedthread Jun 6, 2018
@Siedlerchr Siedlerchr mentioned this pull request Jun 6, 2018
6 tasks
@Siedlerchr Siedlerchr changed the title Fix Leakedthread Fix open thread prevents shutdown Jun 6, 2018
@tobiasdiez
Copy link
Member

Yes, I also noted that this is enough to fix the shutdown issue. I nonetheless think that getting rid of most of the AWT stuff is desirable. It's good that you highlight the essential part of #4109 that fixes the shutdown problem but I don't think we need two PR's for this (especially since this leads to merge problems...).

client.trackSessionState(SessionState.End);
client.flush();

// Workaround for bug https://github.com/Microsoft/ApplicationInsights-Java/issues/662
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a FIXME here, so we can revert this when the bug fix is merged

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

* upstream/master:
  Extract v4.x changelog (#4125)
  Saves and reloads window state on close and on open (#4124)
  Fix convert to bibtex moves contents of the file field (#4123)
  Opens the directory of the currently edited file when opening a new file (#4106)
  Show Citation style also in entry preview in preferences (#4121)
  Mac graphics (#4074)
  The textarea in the PersonsEditor is focused when the field is focused (#4112)
@Siedlerchr
Copy link
Member Author

I am going to merge this now.

@Siedlerchr Siedlerchr merged commit 2f5bffa into master Jun 13, 2018
@Siedlerchr Siedlerchr deleted the leakedthread branch June 13, 2018 13:31
Siedlerchr added a commit that referenced this pull request Jun 15, 2018
* upstream/master: (22 commits)
  fix failing architecture test by making test class public again migrate architecture test to junit jupiter
  Fix build... (#4128)
  fix checkstyle after merge
  Migrate Review field in entry preview to comment (#4100)
  [WIP] Split push to applications in logic and gui (#4110)
  Fix checkstyle
  Fix #4115: Don't report journal name as abbreviated when full name = abbreviated name (#4116)
  Use <kbd>in changelog
  Groups right click (#4061)
  Fix open thread prevents shutdown (#4111)
  Extract v4.x changelog (#4125)
  Saves and reloads window state on close and on open (#4124)
  Fix convert to bibtex moves contents of the file field (#4123)
  Opens the directory of the currently edited file when opening a new file (#4106)
  Don't run on Swing thread
  Properly shutdown telemetry client
  Code cleanup
  Remove Swing stuff (L&F, font customization)
  Properly shutdown JabRef (not with System.exit)
  Replace swing clipboard with JavaFX one
  ...

# Conflicts:
#	src/main/java/org/jabref/gui/BasePanel.java
#	src/main/java/org/jabref/gui/JabRefFrame.java
#	src/main/java/org/jabref/gui/maintable/MainTable.java
#	src/main/java/org/jabref/gui/search/SearchResultFrame.java
#	src/main/java/org/jabref/preferences/JabRefPreferences.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants