Process finished with exit code -1073741819 (0xC0000005) Without stack trace
Intellij version 2018.1.6
Java SDK 10.0.2
Windows 10
Recently updated from Java 8 to 10 and have been resolving a number of problems associated with the update in a number of my projects but not sure what's going on here? Some cursory googling turned up that it might have something to do with the thread stack overflowing so I went to the idea.exe.vmoptions file and upped the stack size allocation and the memory allocated to Intellij:
-Xms1g
-Xmx2g
-Xss512m
-XX:ReservedCodeCacheSize=240m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
Now Intellij is giving an exception_access_violation in native code, I'll link the dump file as soon as I find out how to. Any help is appreciated.
Please sign in to leave a comment.
Which process is finished with the error code, IntelliJ IDEA or the process you run from it (your own app)?
-Xss512m makes no sense, default stack size is less than 4m, JVM will not handle 512m stack size well and your system resources will be exhausted. Note that stack size is allocated for every thread, so 20 threads with 512m stack = 10GB RAM.
Changing IntelliJ IDEA VM Options will not have any effect on your projects running in IntelliJ IDEA. For that you have to use VM Options field of the corresponding Run/Debug configuration.