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.gzecho /Library/Java/JavaVirtualMachines/jdk > ~/Library/Preferences/IntelliJIdea2019.1/idea.jdk
Selecting the JDK version the IDE will run under for more details about overriding the default runtime via the ".jdk" file.
Examples for PyCharm, RubyMine, PhpStorm and WebStorm products (2019.1.x version):
echo /Library/Java/JavaVirtualMachines/jdk > ~/Library/Preferences/PyCharm2019.1/pycharm.jdkecho /Library/Java/JavaVirtualMachines/jdk > ~/Library/Preferences/RubyMine2019.1/rubymine.jdkecho /Library/Java/JavaVirtualMachines/jdk > ~/Library/Preferences/PhpStorm2019.1/phpstorm.jdkecho /Library/Java/JavaVirtualMachines/jdk > ~/Library/Preferences/WebStorm2019.1/webstorm.jdk
Additional details regarding the problem are described in the scope of this YouTrack ticket.
Comments
0 comments
Please sign in to leave a comment.