Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Workaround fix for JVM Crash Issue while refreshing 'ProblemTreeViewer' #4862

Merged
merged 1 commit into from
Sep 28, 2021

Conversation

amitjoy
Copy link
Member

@amitjoy amitjoy commented Sep 27, 2021

This workaround ensures that the action is performed on the display thread properly by rescheduling it on the display thread. Note that, previously it was also executed on the display thread, but underlying SWT/JFace didn't submit the task properly to the display thread. That's why, this MR ensures that we submit the task properly (or explicitly) to the display thread. 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 #4854

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
Signed-off-by: Amit Kumar Mondal <admin@amitinside.com>
@amitjoy amitjoy force-pushed the fix/bug/4854/workaround-jvm-crash branch from c7a7d7b to 2bfd056 Compare September 28, 2021 06:40
@pkriens pkriens merged commit 6d981a7 into bndtools:master Sep 28, 2021
@amitjoy amitjoy deleted the fix/bug/4854/workaround-jvm-crash branch September 28, 2021 12:04
@bjhargrave bjhargrave added the cherry-pick Candidate to cherry-pick to next label Sep 28, 2021
@bjhargrave
Copy link
Member

I will cherry-pick this fix onto the next branch for the 6.0 release.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
cherry-pick Candidate to cherry-pick to next
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Eclipse Bug] JVM Crash
3 participants