You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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.
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.
Same happened to me once - on other version - newest IDEA 2022.2.3 - and with build from next release candidate branch.
UTBot - utbot-intellij-2022.10.464 - build from unittestbot/rc10202022
IDE hanged after test generation had already finished - and some imports and build project were being made.
It hanged for about 16 hours and only kill process helped.
That seems caused by #1225. If we try to open such file in IDEA it would warn that this file is too big and would skip formatting and analyzing it. We may implement similar or the same check, to prevent such problem.
Activity
alisevych commentedon Oct 21, 2022
Additional details
Same happened to me once - on other version - newest IDEA 2022.2.3 - and with build from next release candidate branch.
UTBot - utbot-intellij-2022.10.464 - build from unittestbot/rc10202022
IDE hanged after test generation had already finished - and some imports and build project were being made.
It hanged for about 16 hours and only kill process helped.
IDEA hangs during test generation #1207
IDEA hangs during test generation #1207
tyuldashev commentedon Oct 24, 2022
That seems caused by #1225. If we try to open such file in IDEA it would warn that this file is too big and would skip formatting and analyzing it. We may implement similar or the same check, to prevent such problem.
IDEA hangs during test generation #1207
tyuldashev commentedon Oct 27, 2022
Tested with build from main branch #483
IDEA 2022.1.4 & 2022.2.3