Error in SonarQube for IntelliJ

Environment:

  • Java: JetBrains s.r.o. 25.0.3
  • OS: Windows 11 amd64
  • IDE: PyCharm 2026.1.3
  • SonarQube for IDE: 12.4.0.84870

Freeze in EDT for 120 seconds
Sampled time: 38100ms, sampling rate: 100ms, GC time: 75ms (0%), Class loading: 0%, CPU load: 3%

c.ij.diagnostic.Freeze
	at java.base@25.0.3/jdk.internal.misc.Unsafe.park(Native Method)
	at java.base@25.0.3/java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:271)
	at java.base@25.0.3/java.util.concurrent.FutureTask.awaitDone(FutureTask.java:508)
	at java.base@25.0.3/java.util.concurrent.FutureTask.get(FutureTask.java:205)
	at o.sl.ij.util.FutureUtils.waitForFutureWithTimeout(FutureUtils.java:105)
	at o.sl.ij.util.FutureUtils.waitForTask(FutureUtils.java:57)
	at o.sl.ij.util.ThreadUtilsKt.computeOnPooledThread(ThreadUtils.kt:45)
	at o.sl.ij.analysis.AnalysisSubmitter.analyzeFilesPreCommit(AnalysisSubmitter.kt:113)
	at o.sl.ij.trigger.SonarLintCheckinHandler.beforeCheckin(SonarLintCheckinHandler.java:103)
	at c.ij.vcs.commit.ProxyCommitCheck.runCheck(AbstractCommitWorkflow.kt:560)
	at c.ij.vcs.commit.AbstractCommitWorkflow$Companion.runCommitCheck(AbstractCommitWorkflow.kt:495)
	at c.ij.vcs.commit.NonModalCommitWorkflowHandler$runLateCommitChecks$2$problem$1.invokeSuspend(NonModalCommitWorkflowHandler.kt:490)
	at c.ij.vcs.commit.NonModalCommitWorkflowHandler$runLateCommitChecks$2$problem$1.invoke(NonModalCommitWorkflowHandler.kt)
	at c.ij.vcs.commit.NonModalCommitWorkflowHandler$runLateCommitChecks$2$problem$1.invoke(NonModalCommitWorkflowHandler.kt)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndspatched(Undispatched.kt:67)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:43)
	at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:165)
	at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
	at c.ij.platform.util.progress.SequentialProgressReporterImpl.sizedStep(SequentialProgressReporterImpl.kt:62)
	at c.ij.platform.util.progress.SequentialProgressReporter.itemStep$suspendImpl(SequentialProgressReporter.kt:112)
	at c.ij.platform.util.progress.SequentialProgressReporter.itemStep(SequentialProgressReporter.kt)
	at c.ij.platform.util.progress.SequentialProgressReporter.itemStep$default(SequentialProgressReporter.kt:111)
	at c.ij.vcs.commit.NonModalCommitWorkflowHandler.runLateCommitChecks(NonModalCommitWorkflowHandler.kt:489)
	at c.ij.vcs.commit.NonModalCommitWorkflowHandler.access$runLateCommitChecks(NonModalCommitWorkflowHandler.kt:73)
	at c.ij.vcs.commit.NonModalCommitWorkflowHandler$runLateCommitChecks$1.invokeSuspend(NonModalCommitWorkflowHandler.kt)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:34)
	at kotlinx.coroutines.UndispatchedCoroutine.afterResume(CoroutineContext.kt:277)
	at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:101)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:47)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
	at c.ij.oa.ap.impl.DispatchedRunnable.run(DispatchedRunnable.kt:42)
	at c.ij.oa.ap.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:236)
	at c.ij.oa.ap.TransactionGuardImpl.access$100(TransactionGuardImpl.java:22)
	at c.ij.oa.ap.TransactionGuardImpl$2.run(TransactionGuardImpl.java:218)

Hey @jguillot.lynxview, thanks for the report. The 120s EDT freeze during pre-commit seems to be caused by an issue where module lookup for each committed file blocks the UI thread while waiting on background threads. A fix is in progress to avoid EDT blocking.

As a temporary workaround: uncheck “Perform SonarQube for IDE analysis” in the commit dialog before committing if you consistently stuck.