The idea interface suddenly stuck

Please provide

  • Operating system:win10
  • SonarLint plugin version:10.1.0.77128
  • Programming language you’re coding in: Java

And a thorough description of the problem / question:
After upgrading to version 10.1.0.77128, the idea interface suddenly stuck a few times in two hours

I also experience this issue (also Windows 10), unfortunately I have no stack trace / memory dump as I had to kill the IDE process.

1 Like

Same experience here running on a Mac. Have already killed the process several times. Haven’t seen a pattern yet only that the SonarLint analysis hangs and renders the IDE useless.

+1 +1

This is on Window 10, Plugin-Version 10.1.0.77128, IntelliJ 2023.2.2, U-232.9921.47, from 12.09.23

Programming in Java

Connected to SonarCube Community EditionVersion 9.9.2 (build 77730).

Log is:

No VCS repository found for module Module: 'dts-parent'
[SYNC] Synchronizing issues for project 'VirtualConsulting' on branch 'develop'
[SYNC] Synchronizing taint issues for project 'VirtualConsulting' on branch 'develop'
Downloaded plugin list in 92ms
[SYNC] Synchronizing analyzer configuration for project 'VirtualConsulting'
Downloaded settings in 109ms
[SYNC] Active rules for 'cloudformation' are up-to-date
[SYNC] Active rules for 'css' are up-to-date
[SYNC] Active rules for 'docker' are up-to-date
[SYNC] Active rules for 'java' are up-to-date
[SYNC] Active rules for 'js' are up-to-date
[SYNC] Active rules for 'kotlin' are up-to-date
[SYNC] Active rules for 'kubernetes' are up-to-date
[SYNC] Active rules for 'php' are up-to-date
[SYNC] Active rules for 'py' are up-to-date
[SYNC] Active rules for 'ruby' are up-to-date
[SYNC] Active rules for 'scala' are up-to-date
[SYNC] Active rules for 'secrets' are up-to-date
[SYNC] Active rules for 'terraform' are up-to-date
[SYNC] Active rules for 'ts' are up-to-date
[SYNC] Active rules for 'web' are up-to-date
[SYNC] Active rules for 'xml' are up-to-date
[SYNC] Active rules for 'yaml' are up-to-date
[SYNC] Synchronizing project branches for project 'VirtualConsulting'
Unsupported mode of new code definition: 
Using connection 'SonarQube' for project 'VirtualConsulting'
Analysing 'td.md'...
Using connection 'SonarQube' for project 'VirtualConsulting'
Analysing 4 files...
Using connection 'SonarQube' for project 'VirtualConsulting'
Analysing 'DialogExpressionContext.java'...
Found 146 issues and 5 hotspots
Using connection 'SonarQube' for project 'VirtualConsulting'
Analysing 4164 files...
Using connection 'SonarQube' for project 'VirtualConsulting'
Analysing 969 files...
Using connection 'SonarQube' for project 'VirtualConsulting'
Analysing 435 files...
Using connection 'SonarQube' for project 'VirtualConsulting'
Analysing 352 files...
Found 8251 issues and 156 hotspots

At the end SonarLint switches to Report tab. I open the first issue in the first file and double click.

File opens in editor.

Freeze occurs exactly when I start typing. Cursor still blicking until I type a first character.

UI completely dead then.

I’m attaching the thread dump.

threadDumps-freeze-20231205-114841-IU-232.9921.47.zip (255.8 KB)

Hello all,

Thank you very much for reporting this problem. I created this ticket and already started working on it. We take UI freezes seriously as we don’t want to get in the way of developers, so my goal is to release a bugfix version as soon as possible. I will post updates on this thread.

Special thanks to @AlexisKyaw, the thread dumps are really useful!

Hi again,
I prepared a fix and before releasing it publicly, I would appreciate if one of you could install this build and quickly check if you still face UI freezes. Thanks!

Installed version 10.1.1.77143 on Mac. I’ll find out if it freezes, which usually happens once a day. Thank You!

I will be reporting back tomorrow EOD from a Win11 laptop running the just-released IntelliJ 2023.3.
I was was experiencing it multiple times a day.

Environment:

  • Java: JetBrains s.r.o. 17.0.9
  • OS: Windows 11 amd64
  • IDE: IntelliJ IDEA 2023.2.5
  • SonarLint: 10.1.0.77128

*** exception class was changed or removed

   Freeze for 40 seconds
IDE KILLED! Sampled time: 29800ms, sampling rate: 100ms, GC time: 47ms (0%), Class loading: 0%, cpu load: 5%

The stack is from the thread that was blocking EDT
   
   c.ij.diagnostic.Freeze
	at o.sl.ij.finding.persistence.LiveFindingCache.getLive(LiveFindingCache.java:123)
	at o.sl.ij.finding.persistence.FindingsCache.lambda$getFindingsForFile$0(FindingsCache.java:76)
	at o.sl.ij.finding.persistence.FindingsCache$$Lambda$8198/0x0000000803099588.apply(Unknown Source)
	at java.base@17.0.9/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base@17.0.9/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992)
	at java.base@17.0.9/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base@17.0.9/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base@17.0.9/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
	at java.base@17.0.9/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base@17.0.9/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
	at o.sl.ij.finding.persistence.FindingsCache.getFindingsForFile(FindingsCache.java:79)
	at o.sl.ij.ui.traffic.light.SonarLintTrafficLightAction.updatePresentation(SonarLintTrafficLightAction.kt:57)
	at o.sl.ij.actions.AbstractSonarAction.update(AbstractSonarAction.java:67)

We just released a new version on the Marketplace, feel free to update and let us know if the freezes are gone. We apologize for the inconvenience and thank you all for reporting here.

3 Likes

I no longer experienced any crashes since installing version 10.1.1.77143.

Thanks for the timely fix.

2 Likes