Atwix / phpstorm-plugin-feedback

6 stars 0 forks source link

[Bug] java.io.IOException: [C:\Users\38099\AppData\Local\JetBrains\PhpStorm2024.1\index\fastAttributes\fileIncludes.index.version.fast]: fileSize(=8273920 b) is not page(=4194304 b)-aligned #76

Closed quterorta closed 2 months ago

quterorta commented 2 months ago

Describe the bug (*)

Please, describe as much as possible about of what the bug is. It will help to solve this issue faster.

StackTrace from IDE

java.io.IOException: [C:\Users\38099\AppData\Local\JetBrains\PhpStorm2024.1\index\fastAttributes\fileIncludes.index.version.fast]: fileSize(=8273920 b) is not page(=4194304 b)-aligned
    at com.intellij.util.io.dev.mmapped.MMappedFileStorageFactory.dealWithPageUnAlignedFileSize(MMappedFileStorageFactory.java:128)
    at com.intellij.util.io.dev.mmapped.MMappedFileStorageFactory.open(MMappedFileStorageFactory.java:96)
    at com.intellij.util.io.dev.mmapped.MMappedFileStorageFactory.open(MMappedFileStorageFactory.java:20)
    at com.intellij.util.io.dev.StorageFactory.wrapStorageSafely(StorageFactory.java:31)
    at com.intellij.openapi.vfs.newvfs.persistent.mapped.MappedFileStorageHelper.openHelper(MappedFileStorageHelper.java:91)
    at com.intellij.openapi.vfs.newvfs.persistent.mapped.MappedFileStorageHelper.openHelperAndVerifyVersions(MappedFileStorageHelper.java:145)
    at com.intellij.openapi.vfs.newvfs.persistent.SpecializedFileAttributes.specializeAsFastInt(SpecializedFileAttributes.java:201)
    at com.intellij.util.indexing.impl.perFileVersion.IntFileAttributeImpl$attributeAccessor$1.invoke(IntFileAttribute.kt:57)
    at com.intellij.util.indexing.impl.perFileVersion.IntFileAttributeImpl$attributeAccessor$1.invoke(IntFileAttribute.kt:55)
    at com.intellij.util.indexing.impl.perFileVersion.AutoRefreshingOnVfsCloseRef.invoke(AutoRefreshingOnVfsCloseRef.kt:27)
    at com.intellij.util.indexing.impl.perFileVersion.IntFileAttributeImpl.writeInt(IntFileAttribute.kt:69)
    at com.intellij.util.indexing.impl.perFileVersion.PersistentSubIndexerRetriever.setFileIndexerId(PersistentSubIndexerRetriever.java:82)
    at com.intellij.util.indexing.impl.storage.VfsAwareMapReduceIndex.setIndexedStateForFileOnFileIndexMetaData(VfsAwareMapReduceIndex.java:164)
    at com.intellij.util.indexing.impl.storage.VfsAwareMapReduceIndex.setIndexedStateForFileOnFileIndexMetaData(VfsAwareMapReduceIndex.java:32)
    at com.intellij.indexing.composite.CompositeInvertedIndexBase.setIndexedStateForFileOnFileIndexMetaData(CompositeInvertedIndexBase.java:195)
    at com.intellij.util.indexing.SingleIndexValueApplier.lambda$doApply$0(SingleIndexValueApplier.java:71)
    at com.intellij.util.ConcurrencyUtil.withLock(ConcurrencyUtil.java:264)
    at com.intellij.util.indexing.SingleIndexValueApplier.doApply(SingleIndexValueApplier.java:67)
    at com.intellij.util.indexing.SingleIndexValueApplier.apply(SingleIndexValueApplier.java:50)
    at com.intellij.util.indexing.FileIndexesValuesApplier.applyModifications(FileIndexesValuesApplier.java:223)
    at com.intellij.util.indexing.FileIndexesValuesApplier.apply(FileIndexesValuesApplier.java:155)
    at com.intellij.util.indexing.FileBasedIndexImpl.processRefreshedFile(FileBasedIndexImpl.java:1332)
    at com.intellij.util.indexing.FileBasedIndexImpl$VirtualFileUpdateTask.doProcess(FileBasedIndexImpl.java:1701)
    at com.intellij.util.indexing.FileBasedIndexImpl$VirtualFileUpdateTask.doProcess(FileBasedIndexImpl.java:1695)
    at com.intellij.util.indexing.UpdateTask.process(UpdateTask.java:63)
    at com.intellij.util.indexing.UpdateTask.processAll(UpdateTask.java:32)
    at com.intellij.util.indexing.FileBasedIndexImpl.forceUpdate(FileBasedIndexImpl.java:1718)
    at com.intellij.util.indexing.FileBasedIndexImpl.ensureUpToDate(FileBasedIndexImpl.java:810)
    at com.intellij.util.indexing.FileBasedIndexEx.processExceptions(FileBasedIndexEx.java:296)
    at com.intellij.util.indexing.FileBasedIndexEx.getContainingFilesIterator(FileBasedIndexEx.java:243)
    at com.intellij.util.indexing.FileBasedIndexEx.getContainingFiles(FileBasedIndexEx.java:219)
    at com.intellij.util.indexing.FileBasedIndexImpl.getContainingFiles(FileBasedIndexImpl.java:1088)
    at com.atwix.magento.indexing.provider.WebApiIndexProvider.getServiceDeclaration(WebApiIndexProvider.kt:26)
    at com.atwix.magento.feature.webapi.navigation.lineMarker.GoToWebApiDeclarationLineMarkerProvider.getLineMarkerInfo(GoToWebApiDeclarationLineMarkerProvider.kt:46)
    at com.atwix.magento.feature.webapi.navigation.lineMarker.GoToWebApiDeclarationLineMarkerProvider.getLineMarkerInfo(GoToWebApiDeclarationLineMarkerProvider.kt:29)
    at com.intellij.codeInsight.daemon.impl.LineMarkersPass.queryProviders(LineMarkersPass.java:184)
    at com.intellij.codeInsight.daemon.impl.LineMarkersPass.lambda$doCollectMarkers$2(LineMarkersPass.java:108)
    at com.intellij.codeInsight.daemon.impl.Divider.divideInsideAndOutsideInOneRoot(Divider.java:98)
    at com.intellij.codeInsight.daemon.impl.LineMarkersPass.doCollectMarkers(LineMarkersPass.java:104)
    at com.intellij.codeInsight.daemon.impl.LineMarkersPass.doCollectInformation(LineMarkersPass.java:77)
    at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:55)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$2(PassExecutorService.java:418)
    at com.intellij.platform.diagnostic.telemetry.helpers.TraceKt.runWithSpanIgnoreThrows(trace.kt:109)
    at com.intellij.platform.diagnostic.telemetry.helpers.TraceUtil.runWithSpanThrows(TraceUtil.java:34)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$3(PassExecutorService.java:413)
    at com.intellij.openapi.application.impl.RwLockHolder.tryRunReadAction(RwLockHolder.kt:310)
    at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:958)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$4(PassExecutorService.java:404)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:660)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CorePr

To Reproduce (*)

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Screenshots

If applicable, add screenshots to help explain your problem.

System information:

bohdan-harniuk commented 2 months ago

Hello @quterorta,

Thank you for bringing this issue to our attention. Upon investigation, it appears that the reported problem is related to PHPStorm's native indexes.

We recommend performing a cache invalidation in PHPStorm as a preliminary step to resolve this issue. This process typically resolves transient issues like the one reported, which can occur sporadically due to various factors, such as unexpected shutdowns or other external influences.

As this concern seems to be associated with PHPStorm's native behaviour and does not directly pertain to our plugin, we're marking this matter as closed. However, if after attempting cache invalidation, the issue persists or if you require further assistance related to our plugin, please feel free to reopen this issue, and we'll be glad to assist you further.

Best regards,