I cannot open IDEA on mac

Answered

I have tried to install again but it doesn't work. This is what it shows when i runs it in interminal.

/Applications/IntelliJ\ IDEA.app/Contents/MacOS/idea

2021-10-05 19:37:25.452 idea[1158:27767] allVms required 1.8*,1.8+

2021-10-05 19:37:25.454 idea[1158:27771] Current Directory: /Users/chimingyanghuang/Library/Preferences

2021-10-05 19:37:25.454 idea[1158:27771] Value of IDEA_VM_OPTIONS is (null)

2021-10-05 19:37:25.454 idea[1158:27771] Processing VMOptions file at /Users/chimingyanghuang/Library/Application Support/JetBrains/IntelliJIdea2021.2/idea.vmoptions

2021-10-05 19:37:25.454 idea[1158:27771] Done

OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.

intx MaxJavaStackTraceDepth=-1 is outside the allowed range [ 0 ... 1073741823 ]

Improperly specified VM option 'MaxJavaStackTraceDepth=-1'

OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.

intx MaxJavaStackTraceDepth=-1 is outside the allowed range [ 0 ... 1073741823 ]

Improperly specified VM option 'MaxJavaStackTraceDepth=-1'

2021-10-05 19:37:25.464 idea[1158:27771] JNI_CreateJavaVM (/Applications/IntelliJ IDEA.app/Contents/jbr) failed: -6

0
4 comments

Seems that vmoptions is the cause: 

/Users/chimingyanghuang/Library/Application Support/JetBrains/IntelliJIdea2021.2/idea.vmoptions

Try to rename/move out this file. 

1

it works now thank you!

0

Hello, I removed the idea.vmoptions file but it still cannot open. What else can I do besides reinstallation?

Thank you very much!

0

Huishanzhang2021

Try following the steps from this troubleshooting guide. It will have you delete various default IDE directories in order to restore program integrity.
 
If it doesn't help, try to start the IDE from the command line: 
  1. navigate to the <IDE installation folder>/bin directory
  2. launch the idea.bat file, and examine the output for any errors.
Also check the Windows Event Viewer log (OS system log on Linux/macOS) for any errors or warnings around the moment when the problem occurred.
0

Please sign in to leave a comment.