-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IDEA hangs during test generation #1207
Comments
Additional details Same happened to me once - on other version - newest IDEA 2022.2.3 - and with build from next release candidate branch. |
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. |
Prevent reformatting for too big generated files
Tested with build from main branch #483 |
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:
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 settingsUTBot - 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.
The text was updated successfully, but these errors were encountered: