以Android Studio舉例:
進入應用程序 > Android Studio > 顯示包內容 > Contents > bin > 修改 studio.vmoptions
尾部加入:
-XX:+TieredCompilation
-XX:TieredStopAtLevel=1
產生此問題的原因:
Since crash happens in c2 compiled code try to use these two additional java options when running idea, to disable c2 and leave only c1:
參考鏈接:
https://youtrack.jetbrains.com/issue/JBR-3715