Toolkit.getDefaultToolkit().getScreenSize()導致的crash

大概是這樣

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffe38dc7837, pid=203556, tid=0x0000000000031d54
#
# JRE version: OpenJDK Runtime Environment (8.0_152-b01) (build 1.8.0_152-release-1343-b01)
# Java VM: OpenJDK 64-Bit Server VM (25.152-b01 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C  [awt.dll+0x27837]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

寫的一個小程序掛掉了,最後定位在了Toolkit.getDefaultToolkit().getScreenSize()上面。百度了一圈之後無果,最後還是google大法好,找到了官網的bug report
https://bugs.openjdk.java.net/browse/JDK-8144074
大概意思是java8 native層的一個bug?反正最後把Java版本更新一下就解決了。

最後說一句,google大法好,百度還是欠火候啊。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章