当AWT线程正在执行本地调用以更新游标时,我们的Swing应用程序崩溃了。 我们发现下同堆栈跟踪之前,应用程序崩溃。
几乎5分钟"AWT-EventQueue-2" Id=31 in RUNNABLE (running in native)
at sun.awt.windows.WGlobalCursorManager.setCursor(Native Method)
at sun.awt.GlobalCursorManager._updateCursor(Unknown Source)
at sun.awt.GlobalCursorManager.access$000(Unknown Source)
at sun.awt.GlobalCursorManager$NativeUpdater.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
请帮助我理解为什么AWT线程为什么继续打印相同的堆栈跟踪以及它打算做什么?
我们正在使用JDK 6 Windows PC 重新启动应用程序后问题已解决,并且无法再现。