log大致内容如下:
# # A fatal error has been detected by the Java Runtime Environment: # # SIGFPE (0x8) at pc=0x0000707068b94206, pid=35491, tid=35586 # # JRE version: OpenJDK Runtime Environment JBR-17.0.10+1-1207.14-jcef (17.0.10+1) (build 17.0.10+1-b1207.14) # Java VM: OpenJDK 64-Bit Server VM JBR-17.0.10+1-1207.14-jcef (17.0.10+1-b1207.14, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64) # Problematic frame: # C [libawt_xawt.so+0x1e206] OGLTR_DrawGlyphList.part.0+0x1a6 # # Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" (or dumping to /home/ubuntu/.local/share/JetBrains/Toolbox/apps/clion/bin/core.35491) # # If you would like to submit a bug report, please visit: # https://youtrack.jetbrains.com/issues/JBR# The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. #
问题要出现在libawt_xawt.so文件当中的OGLTR_DraGlyphList
Java虚拟机在调用libawt_xawt.so时, opengl2d驱动渲染队列刷新时故障。
几种解决方法:
1、禁用opengl
java -Dsun.java2d.opengl=False -jar java包名 # 或者全局屏蔽 java -Dsun.java2d.opengl=false
2、换个老一点的ide,减少ide程序里调用openGL的花活,就不出故障。