Test framework quit unexpectedly for Catch2
I used Catch2 test framework (https://github.com/catchorg/Catch2) for unit testing. And CLion used to show the test report correctly within the IDE, but for some reason, now it stops working and when I run the Catch2 unit tests, the UI reports "Test framework quit unexpectedly". The Catch2 xml report is printed in the console with only half of the xml printed, and if I run the same Catch2 test binary in the terminal with the same parameters "-r xml -d yes --order lex", the entire xml can be printed.
I have no idea how this happens and how I can solve it. I tried everything I could imagine:
1) deleting cmake build directory
2) invalidating IDE cache and restart
3) and even reinstalling CLion via the Jetbrains toolbox
But the issue remains.
I did some web search, and found several similar issues, for some examples:
1) https://youtrack.jetbrains.com/issue/CPP-14261
2) https://youtrack.jetbrains.com/issue/CPP-20954
3) similar issue for other Jetbrains IDEs
3.1) IntelliJ, https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000645310-Error-Test-framework-quit-unexpectedly?input_string=Test%20framework%20quit%20unex, https://intellij-support.jetbrains.com/hc/en-us/community/posts/360006712399-Test-Framework-quit-unexpectedly?input_string=Test%20framework%20quit%20unex
Could any one helps on this issue? Thanks.
Here is my screnshot:

Please sign in to leave a comment.
Hello!
>And CLion used to show the test report correctly within the IDE, but for some reason, now it stops working
Did you update Catch2? Maybe you faced https://youtrack.jetbrains.com/issue/CPP-31284. The fix will be available in CLion 2022.3.1.