How to diagnose UI freezes

Answered

I have reports of UI freezes caused by my plugin: https://gitlab.com/ppiag/intellij_gitlab_pipeline_monitor/-/issues/44

The code makes several network calls which may take longer. But everything is run in a Runnable either via  `ProgressManager.getInstance().runProcessWithProgressAsynchronously()` using a `BackgroundableProcessIndicator` or via `ApplicationManager.getApplication().executeOnPooledThread`.

How do I best diagnose this? I have been unable to reproduce this locally so I'm stumped. Thank you!

1
3 comments

Nobody? I can't be the only one with this problem. I don't ask for a solution, just for advice how to get there (although a solution would be nice...). The code is here: https://gitlab.com/ppiag/intellij_gitlab_pipeline_monitor/-/blob/master/src/main/java/de/sist/gitlab/pipelinemonitor/BackgroundUpdateService.java#L87

0

There should be threadDumps-freeze-XXX directories with exact stacktraces during freeze in IDE log directory.

Btw you should build against lowest supported IDE version (203.4203.26): https://gitlab.com/ppiag/intellij_gitlab_pipeline_monitor/-/blob/master/gradle.properties#L15 and upgrade to Gradle 7.5.1

0

Argh, I should've thought of that myself. Thanks, Yann Cebron

That helped. I'll make the changes you proposed, thanks for looking.

0

Please sign in to leave a comment.