Skip to content

IDEA hangs during test generation #1207

Closed
@tyuldashev

Description

@tyuldashev

Description

I've faced the problem that IDEA becomes not responsible during several test generations with the latest RC builds. While it's most probably caused by insufficient memory allocated to IDEA, UTBot test generation should not cause hang of IDEA without ability to cancel test generation process.

To Reproduce

Most of the times I've faced that problem after the following steps:

  1. Open UTBot project
  2. Generate tests for org.utbot.examples.algorithms.Sort

Expected behavior

Tests are generated

Actual behavior

Test generation started but in a about a minute IDEA stops to respond to user interaction. Once it finished generation in about 17min, but latter hanged again. Other times I killed IDEA after waiting for several minutes.

Visual proofs (screenshots, logs, images)

Thread dumps

Environment
IDEA 2022.1.4, with default -Xmx2022m in VM settings
UTBot - utbot-intellij-2022.10.459 - build from unittestbot/rc10192022

Additional information
Increasing IDEA memory to 4Gb seems resolves the problem. But I believe UTBot still should not cause hangs in IDEA and still be cancelable.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions