IDE crashes on MacOS 10.15 Catalina
Symptoms
-
MacOS 10.15 Catalina is installed.
-
PhpStorm or any other IDE crashes with the following error in
java_error_in_<product>_<PID>.log
:# Problematic frame: # C [CoreGraphics+0x195930] ERROR_CGDataProviderCreateWithData_BufferIsNotReadable+0x10
Cause
HarfBuzz library is used by JDK in text layout. The library is interacting with Cocoa API in a way which is causing the crash on MacOS 10.15 Catalina.
Workaround
Replace JBR with the patched one using the switcher:
If the IDE could not be started use the following method to change JBR (this example is for IntelliJ IDEA):
sudo tar -C /Library/Java/JavaVirtualMachines/ -xvf jbrsdk-8u212-osx-x64-b1596.tar.gz
echo /Library/Java/JavaVirtualMachines/jdk > ~/Library/Preferences/IntelliJIdea2019.1/idea.jdk
See this document for more details about overriding the default runtime via the "<product>.jdk" file.
Examples for PyCharm, RubyMine, PhpStorm and WebStorm products (2019.1.x version):
echo /Library/Java/JavaVirtualMachines/jdk > ~/Library/Preferences/PyCharm2019.1/pycharm.jdk
echo /Library/Java/JavaVirtualMachines/jdk > ~/Library/Preferences/RubyMine2019.1/rubymine.jdk
echo /Library/Java/JavaVirtualMachines/jdk > ~/Library/Preferences/PhpStorm2019.1/phpstorm.jdk
echo /Library/Java/JavaVirtualMachines/jdk > ~/Library/Preferences/WebStorm2019.1/webstorm.jdk
Additional details regarding the problem are described in the scope of this YouTrack ticket.
Please sign in to leave a comment.
Got the same super problematic crashing problem. Mac Book Air 2020 Mac 10.15.4 (19E287) with Ultimate:
IntelliJ IDEA 2020.1.1 (Ultimate Edition)
Build #IU-201.7223.91, built on April 30, 2020
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.15.4
GC: ParNew, ConcurrentMarkSweep
Memory: 3005M
Cores: 8
Non-Bundled Plugins: org.jetbrains.kotlin, com.intellij.plugins.html.instantEditing
Using Java installed with sdkman.io. My work is halted with super annoying crashes (today within 3 hours already 5 times), either just IntelliJ crashes, or the complete Mac with power off. Looking forward to a fast fix of this. thank you!
The workaround described is too mystic for me. What's JBR? How can I "not break" my Java sdkman.io setup? Please elaborate a bit more.
Update: tried the workaround to install
Patched JBR 8 version."
but this did not work. Crashed again now.
It's a new issue that is unrelated to the problem described in this document. Please follow https://youtrack.jetbrains.com/issue/JBR-2310 for updates.
I've been using MBP and OSX Catalina for a few months.
I recently upgraded IntelliJ to 2020.1.1 and the high-CPU symptom started happening a few days ago.
I also just downgraded back to 2019.3.5 and now everything is good, again.
I'm using macbook air 2020 and I crash with intelliJ 2020 ultimate. pls fix it
Twopee26 The issue you have is not related to the one described in this document. A couple of posts above yours there was a link to the new issue: https://youtrack.jetbrains.com/issue/JBR-2310.
@Dennis @Julien there is an existing issue about MacBook Air 2020 crashes (most likely a hardware bug): JBR-2310
This is probably not 100% similar but possibly related.
I have MacBook Pro 16inch 2019. macOS Catalina 10.15.5 , autocomplete appears to be taking almost one full second to insert auto-complete text. I still have my older 15inch MacBook Pro from 2014 and autocompleted was not perceivably slow.
Typing in other applications such as iTerm, Safari, Pages etc is not laggy.
Should I report on a different dedicated thread or this will be the correct place ?
Gagan You have a performance problem, please report per https://intellij-support.jetbrains.com/hc/articles/207241235 .
Could also be a https://youtrack.jetbrains.com/issue/JBR-2475 Please check the workaround in the issue.
This bug is becoming a dealbreaker. The workaround doesn't seem to work. 2020 MBA is an issue. No issues whatsoever on my 2015 MBA.
Not from JetBrains, and faced a similar but not the exact problem where IDE crashed randomly.
Upgrading from Catalina 10.15.3 to 10.15.5 mysteriously fixed the issue for me.
I've noticed my mac freezing while using PyCharm over the last few weeks. However, since last week, it happens multiple times a day.
Mine completely freezes, and never comes back to life - I have to hold down the power button - which results in no logs, and no Apple error reports.
MBP 15" 2017, 16GB RAM, Radeon Pro 560 4 GB, Intel HD Graphics 630 1536 MB, 2.9 GHz Quad-Core Intel Core i7
Anyone else experiencing this exact problem?
This may be corrected for me with MacOS Catalina 10.15.6 for the 2020 MBA. I've been using IntelliJ for the last day and it would have restarted or froze the OS at least 3 times by now. The JBR workaround did not work for me. Will keep an eye on it.
I'm running MacOS Cataline 10.15.7 with PHPStom 2020.2.3. I have no clue how this JBR hacks work. Can't we expect a new release of PHP Storm that fixes the bug?