Skip to content

IDE fatal error during tests generation #68

Closed
@EgorkaKulikov

Description

@EgorkaKulikov

Description

IDE fatal error occured during tests generation. The stack trace of this error is represented on the attached screenshot.

To Reproduce

Unfortunately, this problem is flacky.

Exception stack trace is

Freeze in EDT for 21 seconds
Sampled time: 14900ms, sampling rate: 100ms, GC time: 194ms (1%), Class loading: 6%

com.intellij.diagnostic.Freeze
	at org.jetbrains.kotlin.idea.project.ResolveElementCache.functionAdditionalResolve(ResolveElementCache.kt:678)
	at org.jetbrains.kotlin.idea.project.ResolveElementCache.performElementAdditionalResolve(ResolveElementCache.kt:397)
	at org.jetbrains.kotlin.idea.project.ResolveElementCache.getElementsAdditionalResolve(ResolveElementCache.kt:225)
	at org.jetbrains.kotlin.idea.project.ResolveElementCache.resolveToElements(ResolveElementCache.kt:284)
	at org.jetbrains.kotlin.idea.caches.resolve.ModuleResolutionFacadeImpl$analyze$3.invoke(ModuleResolutionFacadeImpl.kt:74)
	at org.jetbrains.kotlin.idea.caches.resolve.ModuleResolutionFacadeImpl$analyze$3.invoke(ModuleResolutionFacadeImpl.kt:41)
	at com.intellij.openapi.progress.impl.CancellationCheck.withCancellationCheck(CancellationCheck.kt:48)
	at com.intellij.openapi.progress.impl.CancellationCheck$Companion.runWithCancellationCheck(CancellationCheck.kt:80)
	at org.jetbrains.kotlin.idea.util.application.ApplicationUtilsKt.runWithCancellationCheck(ApplicationUtils.kt:46)
	at org.jetbrains.kotlin.idea.caches.resolve.ModuleResolutionFacadeImpl.analyze(ModuleResolutionFacadeImpl.kt:73)
	at org.jetbrains.kotlin.idea.caches.resolve.ResolutionFacadeWithDebugInfo.analyze(ResolutionFacadeWithDebugInfo.kt:51)
	at org.jetbrains.kotlin.idea.core.ShortenReferences$shortenReferencesInFile$$inlined$runReadAction$2$lambda$1.invoke(ShortenReferences.kt:231)
	at org.jetbrains.kotlin.idea.core.ShortenReferences$shortenReferencesInFile$$inlined$runReadAction$2$lambda$1.invoke(ShortenReferences.kt:42)
	at org.jetbrains.kotlin.idea.caches.resolve.ResolveInDispatchThreadManagerKt.allowResolveInDispatchThread(ResolveInDispatchThreadManager.kt:132)
	at org.jetbrains.kotlin.idea.core.ShortenReferences$shortenReferencesInFile$$inlined$runReadAction$2.compute(actions.kt:82)
	at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:851)
	at org.jetbrains.kotlin.idea.core.ShortenReferences.shortenReferencesInFile(ShortenReferences.kt:801)
	at org.jetbrains.kotlin.idea.core.ShortenReferences.process(ShortenReferences.kt:181)
	at org.jetbrains.kotlin.idea.core.ShortenReferences.process(ShortenReferences.kt:103)
	at org.jetbrains.kotlin.idea.core.ShortenReferences.process(ShortenReferences.kt:111)
	at org.jetbrains.kotlin.idea.core.ShortenReferences.process$default(ShortenReferences.kt:109)
	at org.utbot.intellij.plugin.generator.TestGenerator.reformat(TestGenerator.kt:251)
	at org.utbot.intellij.plugin.generator.TestGenerator.addTestMethodsAndSaveReports(TestGenerator.kt:208)
	at org.utbot.intellij.plugin.generator.TestGenerator.generateTestsInternal(TestGenerator.kt:88)

Visual proofs (screenshots, logs, images)

image

Metadata

Metadata

Labels

comp-uiImprovements of plugin UI appearence and functionalityctg-bugIssue is a bug

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions