Sonarlint crashing in Intellij 2018.2 on open

Template for a good bug report:
Intellij 2018.2
SonarLint 3.5.0.2729

Details: Current thread: Thread[pool-3-thread-2,5,Idea Thread Group] 823876824
; dispatch thread: false; isDispatchThread(): false
SystemEventQueueThread: Thread[AWT-EventQueue-0,6,Idea Thread Group] 1815828398

java.lang.Throwable: Read access is allowed from event dispatch thread or inside read-action only (see com.intellij.openapi.application.Application.runReadAction())
	at com.intellij.openapi.diagnostic.Logger.error(Logger.java:145)
	at com.intellij.openapi.application.impl.ApplicationImpl.assertReadAccessAllowed(ApplicationImpl.java:1073)
	at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.getDocument(FileDocumentManagerImpl.java:172)
	at com.intellij.openapi.editor.impl.RangeMarkerImpl.getDocument(RangeMarkerImpl.java:115)
	at com.intellij.openapi.editor.impl.RangeMarkerImpl.getDocument(RangeMarkerImpl.java:31)
	at org.sonarlint.intellij.issue.LiveIssue.getLine(LiveIssue.java:106)
	at org.sonarlint.intellij.issue.tracking.Tracker$LineAndTextRangeHashKey.<init>(Tracker.java:105)
	at org.sonarlint.intellij.issue.tracking.Tracker$LineAndTextRangeHashKeyFactory.apply(Tracker.java:141)
	at org.sonarlint.intellij.issue.tracking.Tracker.match(Tracker.java:77)
	at org.sonarlint.intellij.issue.tracking.Tracker.track(Tracker.java:38)
	at org.sonarlint.intellij.issue.IssueManager.updateTrackedIssues(IssueManager.java:156)
	at org.sonarlint.intellij.issue.IssueManager.matchWithServerIssues(IssueManager.java:147)
	at org.sonarlint.intellij.core.ServerIssueUpdater$IssueUpdater.matchFile(ServerIssueUpdater.java:239)
	at org.sonarlint.intellij.core.ServerIssueUpdater$IssueUpdater.downloadAndMatchFile(ServerIssueUpdater.java:221)
	at org.sonarlint.intellij.core.ServerIssueUpdater.lambda$fetchAndMatchServerIssues$0(ServerIssueUpdater.java:144)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

Happens when opening IntelliJ.

This is a different error than the Read Access error that was fixed in 3.5

I am seeing this issue as well. SonarLint Version: 3.5.0.2729, MacOS

Same here.

IntelliJ IDEA 2018.2 (Ultimate Edition)
Build #IU-182.3684.101, built on July 25, 2018
JRE: 1.8.0_152-release-1136-b39 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.17.9-1-ARCH

Hi,
Thanks for reporting the error.
We will create bug fix version to solve the problem: https://jira.sonarsource.com/browse/SLI-302.

1 Like

And FYI folks, the fix is now out ! (v3.5.1)