Progress indicator is not closed in some instances


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:

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( ` which may indicate a bug but probably(?) isn't related to my problem.

Thank you.

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...

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)

Comment actions Permalink

Alexey Kudravtsev Thanks for the response.

This is my thread dump:

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(` which seems to be the one that draws the actuall display.


Please sign in to leave a comment.