Skip to content

Execute org.eclipse.swt.graphics.GC call in UI thread in ShapePainter #157

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

Merged
merged 1 commit into from
Jul 31, 2021

Conversation

adangel
Copy link
Member

@adangel adangel commented Jul 31, 2021

Also make sure to use Display.getDefault() instead of
Display.getCurrent() - the latter might return null if not
in UI thread.

Avoid deadlock while creating PriorityDescriptorCache by
lazy populating the cache on demand instead of eagerly.

Fixes #148

Also make sure to use Display.getDefault() instead of
Display.getCurrent() - the latter might return null if not
in UI thread.

Avoid deadlock while creating PriorityDescriptorCache by
lazy populating the cache on demand instead of eagerly.

Fixes pmd#148
@adangel adangel added this to the 4.26.0 milestone Jul 31, 2021
@adangel adangel merged commit dd8340b into pmd:master Jul 31, 2021
@adangel adangel deleted the issue-148-ui-crash branch July 31, 2021 17:35
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Eclipse nearly-consistently crashes on startup when workspace contains PMD enabled projects
1 participant