Reporting Error in SonarLint for IntelliJ

Environment:

  • Java: JetBrains s.r.o. 11.0.12
  • OS: Windows 10 amd64
  • IDE: CLion 2021.2.2
  • SonarLint: 5.3.0.36775
java.lang.AssertionError: offset = -2768896
	at c.ij.util.io.Page.<init>(Page.java:38)
	at c.ij.util.io.PagePool.hitQueues(PagePool.java:117)
	at c.ij.util.io.PagePool.alloc(PagePool.java:84)
	at c.ij.util.io.RandomAccessDataFile.get(RandomAccessDataFile.java:70)
	at c.ij.util.io.RandomAccessDataFile.getInt(RandomAccessDataFile.java:88)
	at c.ij.oa.vfs.newvfs.persistent.CompactRecordsTable.getSize(CompactRecordsTable.java:98)
	at c.ij.util.io.storage.AbstractRecordsTable.scanForFreeRecords(AbstractRecordsTable.java:135)
	at c.ij.util.io.storage.AbstractRecordsTable.ensureFreeRecordsScanned(AbstractRecordsTable.java:128)
	at c.ij.util.io.storage.AbstractRecordsTable.createNewRecord(AbstractRecordsTable.java:71)
	at c.ij.util.io.storage.Storage.lambda$createNewRecord$0(Storage.java:26)
	at c.ij.util.ConcurrencyUtil.withLock(ConcurrencyUtil.java:234)
	at c.ij.util.io.storage.AbstractStorage.withWriteLock(AbstractStorage.java:430)
	at c.ij.util.io.storage.Storage.createNewRecord(Storage.java:25)
	at c.ij.oa.vfs.newvfs.persistent.PersistentFSAttributeAccessor$AttributeOutputStream.rewriteDirectoryRecordWithAttrContent(PersistentFSAttributeAccessor.java:242)
	at c.ij.oa.vfs.newvfs.persistent.PersistentFSAttributeAccessor$AttributeOutputStream.close(PersistentFSAttributeAccessor.java:207)
	at java.base/java.io.FilterOutputStream.close(FilterOutputStream.java:188)
	at c.ij.oa.vfs.newvfs.persistent.FSRecords$2.lambda$close$0(FSRecords.java:678)

Hello @AndresDuque,

Thanks for your report and welcome to community!
Unfortunately stack trace is truncated, so it’s not obvious what happened here. Do you have some steps to reproduce or additional details about how it happen?