IntelliJ IDEA CE cannot start due to Error occurred during initialization of VM

Answered

Hi there,

I cannot start IntelliJ IDEA CE. I am using MacOS 10.15

I tried /Applications/IntelliJ\ IDEA\ CE.app/Contents/MacOS/idea, and got message:

2021-01-12 14:31:20.730 idea[40724:295236] Value of IDEA_VM_OPTIONS is (null)
2021-01-12 14:31:20.730 idea[40724:295236] Processing VMOptions file at /Users/my_user_name/Library/Application Support/JetBrains/IdeaIC2020.1/idea.vmoptions
2021-01-12 14:31:20.731 idea[40724:295236] Done
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Error occurred during initialization of VM

JVMCI Compiler does not support selected GC: concurrent mark sweep gc

 

I also opened the /Library/Application Support/JetBrains/IdeaIC2020.1/idea.vmoptions, below is the content:

-Xms128m
-Xmx2048m
-XX:ReservedCodeCacheSize=240m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-XX:CICompilerCount=2
-Dsun.io.useCanonPrefixCache=false
-Djdk.http.auth.tunneling.disabledSchemes=""
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-Djdk.attach.allowAttachSelf=true
-Dkotlinx.coroutines.debug=off
-Djdk.module.illegalAccess.silent=true
-XX:+UseCompressedOops
-Dfile.encoding=UTF-8

-XX:ErrorFile=$USER_HOME/java_error_in_idea_%p.log

How do I fix this? Thank you!

 

Best,

Cecilia

 

1 comment
Comment actions Permalink

It looks like you override IDE runtime with some custom JDK. Try switching back to the bundled JetBrains Runtime, see https://intellij-support.jetbrains.com/hc/en-us/articles/206544879 .

If there is idea.jdk file in /Library/Application Support/JetBrains/IdeaIC2020.1/ directory, delete it.

0

Please sign in to leave a comment.