IntelliJ 2019.3 Ultimate not opening after MacOs upgrade to Catalina
I need help with figuring out my IntelliJ(2019.3) not opening after I upgraded to MacOS Catalina(10.15.1). It was working right before my upgrade.
I tried to run both by double clicking on the IntelliJ icon on the dock as well as trying
the following commands
/Applications/IntelliJ\ IDEA.app/Contents/MacOS/idea
and also
open -a /Applications/IntelliJ\ IDEA.app
It gives absolutely no output(the open command returns after few seconds whereas the first command doesn't). When I right click the icon it just shows the Application Not Responding message.
I also see no update in the $HOME/Library/Logs/IntelliJIdea2019.3/idea.log file either.
I searched a bit and I tried this solution https://intellij-support.jetbrains.com/hc/en-us/articles/360007275320 and it didn't help either.
I also uninstalled IntelliJ and then removed the configuration files as mentioned here (MacOS section in https://intellij-support.jetbrains.com/hc/en-us/articles/206544519 )
Still didn't work.
But after this I just tried to create a test account and then I logged into my test account. I tried to open and it was at least able to launch my IntelliJ!
But I really need work using IntelliJ from my current or primary account. What could be wrong with the way my primary account is upgraded? I can open all other apps I used to before the upgrade! I am only facing issue with IntelliJ.
So your help would be very much appreciated.
Can you please suggest how to solve this issue or at least how to debug this issue?
UPDATE: I just downloaded the 2019.3 Community edition. I can run this in my user account now.
请先登录再写评论。
Check your xms and xmx values in
/Users/${user}/Library/Preferences/IntelliJIdea2019.3/idea.vmoptions
(xms must be lower than xmx)
That was my problem, had to make the XMX > XMS
Thank you very much Ivanvakulovwork and Dbpatel219. I have removed the $HOME/Library/Preferences/IntelliJIdea2019.3 folder altogether. Now I just created the directory again and put back that file per your suggestion. Still not opening(goes into the Application Not Responding mode after a short while). Again as I mentioned this was working prior to the the upgrade to Catalina.
Please let me know if there is any other way I can try to troubleshoot this issue.
If the app is not responding, please provide the thread dumps: https://intellij-support.jetbrains.com/hc/articles/206544899 .
I had the same issue, where intellij got stuck after upgrading to 2019.3. After reading this thread, i tried the suggestion by @Ivanvakulovwork but the issue did not get resolve.
Later i went through the thread dump created under $HOME/Library/Logs/IntelliJIdea2019.3 and noticed the issue with kotlin plugin.
So followed the below steps to resolve this issue.
- disabled the kotlin plugin by adding a line org.jetbrains.kotlin in the file $HOME/Library/Preferences/IntelliJIdea2019.3/disabled_plugins.txt
- restarted the intellij & noticed it worked.
- Finally went into the intellij preferences and re-enabled the kotlin plugin.
Thank you very much Serge Baranov and @....
I am really sorry for responding this late to the thread again. But I am still not able to open IntelliJ Idea 2019.3 Ultimate.
But at least I can right now work with IntelliJ Idea Community Edition(so I am not blocked).
I tried adding kotlin in disabled_plugins.txt as @... suggested. It didn't help either.
Also I think the IntelliJ Idea Ultimate starts hanging or gets stuck somewhere even before it can start the first JVM(I don't even see the initial splash popup). So I am not sure how I can get the thread dump as Serge Baranov suggested. I opened VisualVM first so that I can see the JVMs running before I opened IntelliJ Ultimate. I could not see any new JVM showing up when I started the IntelliJ Idea Ultimate.
Also I already mentioned I see no update in $HOME/Library/Preferences/Logs/IntelliJIdea2019.3.
Please suggest any other way that I can diagnose.
Run the app in the Terminal and post the output:
/Applications/IntelliJ\ IDEA.app/Contents/MacOS/idea
As I already mentioned I don't get any output when I run from the command line. I just tried again and didn't get any output for 4 minutes. Please let me know if there are any additional arguments that I can pass to make it print something.
12:53() ~$ /Applications/IntelliJ\ IDEA.app/Contents/MacOS/idea
^\Quit: 3
12:57() ~$
This one returns immediately but again it tries to open the app and it doesn't respond after that.
13:01() ~$ open -a /Applications/IntelliJ\ IDEA.app
13:02() ~$
HOWEVER if I try this with another temporary user that I just created it's able to open it.
testuser@C02XJ192JGH6 ~ % /Applications/IntelliJ\ IDEA.app/Contents/MacOS/idea
2019-12-06 13:04:21.195 idea[63222:14749991] allVms required 1.8*,1.8+
2019-12-06 13:04:21.197 idea[63222:14749995] Value of IDEA_VM_OPTIONS is (null)
2019-12-06 13:04:21.198 idea[63222:14749995] fullFileName is: /Applications/IntelliJ IDEA.app/Contents/bin/idea.vmoptions
2019-12-06 13:04:21.198 idea[63222:14749995] fullFileName exists: /Applications/IntelliJ IDEA.app/Contents/bin/idea.vmoptions
2019-12-06 13:04:21.198 idea[63222:14749995] Processing VMOptions file at /Applications/IntelliJ IDEA.app/Contents/bin/idea.vmoptions
2019-12-06 13:04:21.198 idea[63222:14749995] Done
2019-12-06 13:04:22.429 idea[63222:14750175] +[NSXPCSharedListener endpointForReply:withListenerName:]: an error occurred while attempting to obtain endpoint for listener 'ClientCallsAuxiliary': Connection interrupted
2019-12-06 13:04:32.829 idea[63222:14750178] +[NSXPCSharedListener endpointForReply:withListenerName:]: an error occurred while attempting to obtain endpoint for listener 'HostCallsAuxiliary': Connection interrupted
testuser@C02XJ192JGH6 ~ %
But I really need to make it work with my current user. So please suggest how to solve this. Thank you very much in advance.
Delete all the IDE folders per https://intellij-support.jetbrains.com/hc/articles/206544519 .
Hi Ganesh Krishnamurti, forget to mention in my case i was able to run as privileged(sudo) user after upgrade, when i run intellij as normal i had this issue, so what i did was ran the inellij as privileged user and copied the default vm options & used the same for the normal user.
This is an additional step which i did after the steps above mentioned to disable kotlin. Since it specific to my case i didn't mention this before,
Try the below vm options, by copying and pasting into your preferences (just take a backup of yours before you apply this)
$HOME/Library/Preferences/IntelliJIdea2019.3/idea.vmoptions
-Xms128m
-Xmx750m
-XX:ReservedCodeCacheSize=240m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-XX:CICompilerCount=2
-Dsun.io.useCanonPrefixCache=false
-Djava.net.preferIPv4Stack=true
-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
-XX:HeapDumpPath=$USER_HOME/java_error_in_idea.hprof
Thank you again @... and Serge Baranov.
@... I tried your option with the idea.vmoptions and still it didn't help with my user.
So if I understand you right you are just suggesting that I just copy your idea.vmoptions in my $HOME/Library/Preferences/IntelliJIdea2019.3 folder. Correct?
You are suggesting you just obtained this file by running as root right? But I need not run this as root. Correct?
Serge Baranov I already tried this first time as I mentioned. For my user it still doesn't help.
If this can give you more hints let me please let you know that when I check using Activity Monitor the CPU% is 0.0 and Memory is also pretty constant at 1 MB or sometimes at 1.3 MB. I am wondering if it's just waiting for something. But then I have no clue what it could be.
Please advise.
Try using jstack to get the thread dump per https://intellij-support.jetbrains.com/hc/articles/206544899 .
Did you remove config, plugins and system directories, or just the configuration?
~/Library/Application Support/IntelliJIdea2019.3
~/Library/Preferences/IntelliJIdea2019.3
~/Library/Caches/IntelliJIdea2019.3
Serge Baranov yes I did remove all the directories as you mentioned.
Also it doesn't start a Java process. I tried VisualVM (as I mentioned before) and I also checked using jps command. I don't see any Java process running.
14:10() bin$ jps
85930 Jps
Whereas when I tried running IntelliJ Community Edition and it opened I could notice the JVM running (in the jps command output).
When I try jstack it just actually kills the process.
14:01() bin$ jstack -l 79207
79207: Unable to open socket file: target process not responding or HotSpot VM not loaded
The -F option can be used when the target process is not responding
It looks like the native launcher itself hangs for some reason before it's even able to start the JVM.
Try this in the Terminal before starting /Applications/IntelliJ\ IDEA.app/Contents/MacOS/idea:
export IDEA_LAUNCHER_DEBUG=true
Does it produce any output with the debug enabled?
If there is still no output, you can try tracing the system calls of the native launcher to see where it hangs, see https://stackoverflow.com/questions/31045575/how-to-trace-system-calls-of-a-program-in-mac-os-x . Run idea binary via dtruss.
Serge Baranov I tried that and it didn't help either.
14:24() bin$ export IDEA_LAUNCHER_DEBUG=true
14:24() bin$ /Applications/IntelliJ\ IDEA.app/Contents/MacOS/idea
^C
15:03() bin$
Please let me know if there is anything else that can be tried for troubleshooting.
Try running via dtruss.
I just upgraded to MacOS 10.15.2 again and now I am able to open IntelliJ Idea 2019.3 Ultimate again! Phew!
So I guess something that happened to my user account during my upgrade to Catalina thankfully got fixed during this last upgrade again! (though I have no clue what could have been fixed)
Thank you very much anyway Serge Baranov, @..., Dbpatel219 and @...!
Thats good to know Ganesh Krishnamurti.
mac os 10.15.4 has same problem!
Why do you need sudo to run it? Does it start without sudo?
Please see https://youtrack.jetbrains.com/issue/JBR-1750 and the linked tickets.
See if the steps from https://intellij-support.jetbrains.com/hc/en-us/articles/360007568559 help.
If it still fails, try to run per https://intellij-support.jetbrains.com/hc/en-us/articles/360011901879-How-to-start-IDE-from-the-command-line and provide all the output from the Terminal.
Hello,
I'm facing the same issue as Ganesh Krishnamurti: idea command is not printing anything. Previously I had IDEA 2019 (don't know which exact version) but it worked fine. Yesterday I updated to the latest version (IC-213.6777.52) and it's not opening in my Mac. I tried previous versions, 2020, 2019 and none of them are opening. I also tried updating my Mac but it didn't help.
current Mac O.S.: macOs Catalina 10.15.7
Idea build version: IC-213.6777.52
As you can see, running it from the console doesn't give any outputs. So no logs are being generated.
It seems the java process is not even starting. So I have tried with dtruss as well, but it's not providing any useful information:
Gbarreras93 It looks like some low level system issue. If the steps from https://intellij-support.jetbrains.com/hc/en-us/articles/360007568559 do not help, I would try repairing/reinstalling the OS.