IDEA2021.3 Error: Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
Issue:
IEDA2021.3 Error: Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
Error Meesages:
A fatal error has been detected by the Java Runtime Environment: EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ff8d19b122e, pid=64220, tid=0x000000000000fae8 JRE version: Java™ SE Runtime Environment (8.0_291-b10) (build 1.8.0_291-b10) Java VM: Java HotSpot™ 64-Bit Server VM (25.291-b10 mixed mode windows-amd64 compressed oops) Problematic frame: C [vcruntime140.dll+0x122e] Failed to write core dump. Minidumps are not enabled by default on client versions of Windows If you would like to submit a bug report, please visit: http://bugreport.java.com/bugreport/crash.jsp
Solution:
As the screenshot below, just click Run->Edit Configurations->Modify options->Add VM options:
- For JDK8 and below, fill in **-XX:+CreateMinidumpOnCrash**
- For JDK9 and above, fill in **-XX:CreateCoredumpOnCrash**
and click OK
then run the code console and the Core dump written will be output. Default location: C:\Users******\Desktop**** ****\hs_err_pid21232.mdmp, you can view more detailed error information in hs_err_pid21232.mdmp.