pmd / pmd/pmd-eclipse-plugin

Ui freeze then crash

Open
#139 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
99
Forks
42
Avg merge
20h 19m
Merged PRs (30d)
19

Description

reproducing in my local environment all the time since pmd install. I think it was installed after m2e connector installation after importing https://github.com/apache/cxf and https://github.com/apache/velocity-engine/tree/1.7.x

it stays blocked with this stack:

Name: Worker-0: Decoration Calculation
State: RUNNABLE
Total blocked: 92  Total waited: 87

Stack trace: 
org.eclipse.swt.internal.cairo.Cairo.cairo_paint(Native Method)
org.eclipse.swt.internal.ImageList.convertSurface(ImageList.java:59)
org.eclipse.swt.graphics.Image.getImageDataAtCurrentZoom(Image.java:1085)
org.eclipse.swt.graphics.Image.getImageData(Image.java:1169)
org.eclipse.swt.graphics.Image.getImageData(Image.java:1058)
net.sourceforge.pmd.eclipse.ui.ShapePainter.newDrawnImage(ShapePainter.java:44)
net.sourceforge.pmd.eclipse.ui.priority.PriorityDescriptor.createImage(PriorityDescriptor.java:211)
net.sourceforge.pmd.eclipse.ui.priority.PriorityDescriptor.getImage(PriorityDescriptor.java:233)
net.sourceforge.pmd.eclipse.ui.priority.PriorityDescriptor.getAnnotationImage(PriorityDescriptor.java:202)
net.sourceforge.pmd.eclipse.ui.priority.PriorityDescriptor.refreshImages(PriorityDescriptor.java:263)
net.sourceforge.pmd.eclipse.ui.priority.PriorityDescriptorCache.refreshImages(PriorityDescriptorCache.java:94)
net.sourceforge.pmd.eclipse.ui.priority.PriorityDescriptorCache.loadFromPreferences(PriorityDescriptorCache.java:50)
net.sourceforge.pmd.eclipse.ui.priority.PriorityDescriptorCache.<init>(PriorityDescriptorCache.java:28)
net.sourceforge.pmd.eclipse.ui.priority.PriorityDescriptorCache.<clinit>(PriorityDescriptorCache.java:24)
net.sourceforge.pmd.eclipse.ui.RuleLabelDecorator.decorate(RuleLabelDecorator.java:98)
org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.decorate(LightweightDecoratorDefinition.java:247)
org.eclipse.ui.internal.decorators.LightweightDecoratorManager$LightweightRunnable.run(LightweightDecoratorManager.java:105)
org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
org.eclipse.ui.internal.decorators.LightweightDecoratorManager.decorate(LightweightDecoratorManager.java:360)
org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations(LightweightDecoratorManager.java:346)
org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(DecorationScheduler.java:386)
org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:362)
org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

Fedora 33
Eclipse 2020-12

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the freeze in the PMD Eclipse plugin after installing PMD and the m2e connector, using the CXF and velocity-engine imports on Fedora 33 with Eclipse 2020-12. Start with net.sourceforge.pmd.eclipse.ui.ShapePainter.newDrawnImage and the PriorityDescriptor image-loading path shown in the stack trace. Done means the decoration calculation no longer remains blocked or crashes in this scenario.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.