Skip to content

Commit

Permalink
Workaround fix for JVM Crash Issue while refreshing 'ProblemTreeViewer'
Browse files Browse the repository at this point in the history
This workaround ensures that the action is performed on the display thread properly. However, the bug still exists in the SWT/JFace which needs to be fixed. Other plugins using `getTreeViewer().refresh()` from `PackageExplorerPart` are prone to crash the JVM as well.

Fixes bndtools#4854
  • Loading branch information
amitjoy committed Sep 27, 2021
1 parent 1e89446 commit 6a45dca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bndtools.core/src/bndtools/explorer/BndtoolsExplorer.java
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,8 @@ private void updateTreeViewer() {
installFilter();
}

getTreeViewer().refresh();
Display.getDefault()
.asyncExec(getTreeViewer()::refresh);
}

private void installFilter() {
Expand Down

0 comments on commit 6a45dca

Please # to comment.