Hi! I’ve got a project that consistently causes Do...
# dokka
j
Hi! I’ve got a project that consistently causes Dokka to hang in
dokkaHtmlPartial
. More debug information in a thread.
dokka thread dump.txt
I’m completely unfamiliar with this code but it might be a deadlock in some PSI code??
Copy code
at org.jetbrains.kotlin.storage.CancellableSimpleLock.lock(locks.kt:67)
	  at org.jetbrains.kotlin.storage.LockBasedStorageManager.compute(LockBasedStorageManager.java:288)
	  at org.jetbrains.kotlin.storage.LockBasedLazyResolveStorageManager$LockProtectedContext.get(LockBasedLazyResolveStorageManager.kt:46)
	  at org.jetbrains.kotlin.resolve.lazy.LazyDeclarationResolver.findClassDescriptorIfAny(LazyDeclarationResolver.kt:78)
	  at org.jetbrains.kotlin.resolve.lazy.LazyDeclarationResolver.getClassDescriptorIfAny(LazyDeclarationResolver.kt:59)
	  at org.jetbrains.kotlin.resolve.lazy.LazyDeclarationResolver$resolveToDescriptor$1.visitParameter(LazyDeclarationResolver.kt:135)
	  at org.jetbrains.kotlin.resolve.lazy.LazyDeclarationResolver$resolveToDescriptor$1.visitParameter(LazyDeclarationResolver.kt:94)
	  at org.jetbrains.kotlin.psi.KtParameter.accept(KtParameter.java:50)
	  at org.jetbrains.kotlin.resolve.lazy.LazyDeclarationResolver.resolveToDescriptor(LazyDeclarationResolver.kt:94)
	  at org.jetbrains.kotlin.resolve.lazy.LazyDeclarationResolver.resolveToDescriptor(LazyDeclarationResolver.kt:91)
	  at org.jetbrains.kotlin.resolve.lazy.ResolveSession.resolveToDescriptor(ResolveSession.java:368)
	  at org.jetbrains.dokka.analysis.DokkaResolutionFacade.resolveToDescriptor(DokkaResolutionFacade.kt:53)
The project that consistently causes this will soon be open sourced, please let me know if you’d like access early
Good news, I found a fix
I upgraded our Dokka from 1.6.21 to 1.7.10 and that no longer hangs
i
Hi! A deadlock was indeed fixed in 1.7.0, and judging by the stacktrace that must've been it Was it a multiplatform project by any chance?
j
Yep!