Progress indicator is not closed in some instances

Answered

Hi all,

I have a problem where a progress indicator is not closed in some rare instances. The code which starts the task can be found here: https://gitlab.com/ppiag/intellij_gitlab_pipeline_monitor/-/blob/master/src/main/java/de/sist/gitlab/BackgroundUpdateService.java#L76

I have found no pattern when this happens. I have a button which starts this task and I can click it multiple times and everything works as expected but the task is also periodically started by a background task and at some point, sooner or later, I see the progress indicator which doesn't close and doesn't have a task behind it (as far as I can tell).

Is there any way to debug this?

I found the line `2021-04-28 19:46:45,546 [16121866] WARN - .AbstractProgressIndicatorBase - This progress indicator is indeterminate, this may lead to visual inconsistency. Please call setIndeterminate(false) before you start progress.
git4idea.commands.GitStandardProgressAnalyzer$1.onLineAvailable(GitStandardProgressAnalyzer.java:46) ` which may indicate a bug but probably(?) isn't related to my problem.

Thank you.

3 comments
Comment actions Permalink

Anybody? I'm close to just not using a progress indicator (or using an inivisible one) but that's not really a solution...

0
Comment actions Permalink

To verify that it "doesn't have a task behind it" you can take a thread dump in this moment and post it here. (Or analyze it yourself to see if the background task really is completed or stuck somewhere)

0
Comment actions Permalink

Alexey Kudravtsev Thanks for the response.

This is my thread dump: https://pastebin.com/82M2GeuC

No threads related to my code (package "de.sist.*") are contained. Three progress indicators are still open:

I see one thread related to `com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:773)` which seems to be the one that draws the actuall display.

0

Please sign in to leave a comment.