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.

36 comments
Comment actions Permalink

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.

Edited by Jonaut80
0
Comment actions Permalink

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.

0
Comment actions Permalink

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.

0
Comment actions Permalink

I'm using macbook air 2020 and I crash with intelliJ 2020 ultimate. pls fix it

0
Comment actions Permalink

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.

0
Comment actions Permalink

@Dennis @Julien there is an existing issue about MacBook Air 2020 crashes (most likely a hardware bug): JBR-2310

Edited by Andrey Dernov
0

Please sign in to leave a comment.

Have more questions?

Submit a request