Ivan CLOVIS Canet
08/24/2025, 1:12 PMException in thread "DefaultSharedObjectDecoder reader thread" org.gradle.api.GradleException: Could not load the value of
field `collection` of `kotlin.collections.builders.SerializedCollection` bean found in
field `_byTask` of `org.jetbrains.kotlin.gradle.targets.js.nodejs.TasksRequirements` bean found in
field `tasksRequirements` of `org.jetbrains.kotlin.gradle.targets.js.npm.resolver.KotlinCompilationNpmResolution` bean found in
field `byCompilation` of `org.jetbrains.kotlin.gradle.targets.js.npm.resolved.KotlinProjectNpmResolution` bean found in
field `v` of `java.util.Collections$SingletonMap` bean found in field `projects` of `org.jetbrains.kotlin.gradle.targets.js.npm.resolved.KotlinRootNpmResolution` bean found in
field `__resolution__` of `org.jetbrains.kotlin.gradle.targets.js.npm.KotlinNpmResolutionManager$Parameters_Decorated` bean found in Gradle runtime.
at org.gradle.internal.serialize.graph.BeanPropertyExtensionsKt.readPropertyValue(BeanPropertyExtensions.kt:70)
at org.gradle.internal.serialize.beans.services.BeanPropertyReader.readFieldOf(BeanPropertyReader.kt:93)
ā¦
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 53 out of bounds for length 4
at org.gradle.internal.serialize.codecs.core.jos.JavaObjectSerializationCodec.decode(JavaObjectSerializationCodec.kt:299)
at org.gradle.internal.serialize.graph.codecs.BindingsBackedCodec.decode(BindingsBackedCodec.kt:92)
* What went wrong:
Could not load the value of field `__npmResolutionManager__` of task `:jsPackageJson` of type `org.jetbrains.kotlin.gradle.targets.js.npm.tasks.KotlinPackageJsonTask`.
No build scan was generated, even though they are enabled.
From what I can tell, this was introduced by this commit, but I don't understand why.Vampire
08/24/2025, 2:32 PMIvan CLOVIS Canet
08/24/2025, 2:44 PMbuild/reports/configuration-cache .Ivan CLOVIS Canet
08/24/2025, 2:45 PMRafael Chaves
08/24/2025, 4:09 PMArrayIndexOutOfBoundsException suggests a bug in the configuration cache. Even without a reproducer, this would be worthwhile reporting, the stacktrace alone may be sufficient.Rafael Chaves
08/24/2025, 4:09 PMIvan CLOVIS Canet
08/24/2025, 4:10 PM--configuration-cacheRafael Chaves
08/24/2025, 4:10 PMIvan CLOVIS Canet
08/24/2025, 4:11 PMRafael Chaves
08/24/2025, 4:13 PMIvan CLOVIS Canet
08/24/2025, 4:13 PMIvan CLOVIS Canet
08/24/2025, 4:14 PMCould be a corrupted cache entry, if this is for a cache hit.It's reproducible between multiple installations, without shared build cache.
Ivan CLOVIS Canet
08/24/2025, 4:22 PMMikhail Lopatkin
08/24/2025, 4:39 PMIvan CLOVIS Canet
08/24/2025, 4:43 PMVampire
08/25/2025, 6:59 AMIvan CLOVIS Canet
08/25/2025, 7:05 AM.gradle/configuration-cache , I don't see a differenceIvan CLOVIS Canet
09/03/2025, 7:26 PMRafael Chaves
09/04/2025, 12:13 PMgradle.properties)
#org.gradle.configuration-cache.parallel=trueRafael Chaves
09/09/2025, 1:11 PMVampire
09/09/2025, 1:16 PMRafael Chaves
09/09/2025, 1:28 PMRafael Chaves
09/09/2025, 1:30 PMVampire
09/09/2025, 1:33 PMRafael Chaves
09/09/2025, 1:33 PMVampire
09/09/2025, 1:43 PMRafael Chaves
09/09/2025, 1:48 PMMikhail Lopatkin
09/09/2025, 1:53 PMVampire
09/09/2025, 1:55 PMIvan CLOVIS Canet
09/10/2025, 9:19 AMIt can inflate the entry by 15% quite easilyDoes it particularly slow down the build? Personally, I care about speed but not much about storage space, so I may enable it by default if it doesn't slow down too much
Ivan CLOVIS Canet
09/10/2025, 9:19 AMOn the bright side, seems it was fixed in 9.0.Thanks, I'll try upgrading as soon as I can.
Mikhail Lopatkin
09/10/2025, 9:46 AMDoes it particularly slow down the build?Today probably not. I'm not 100% sure, but I don't recall seeing an effect in our performance tests. Main danger with enabling the check permanently is that a new Gradle version may add new, slower diagnostics without you noticing. Obviously, we're aiming more at another end of speed-vs.-thoroughness tradeoff here.