<分区>
我开发的 javaFx 应用程序在工作期间崩溃了一段时间。同时,在应用程序的注册用户之间切换时,我正在使用用户名和密码的自定义对话框。一旦打开密码应用程序就会崩溃。我在这里收到错误消息。我正在使用 ubntu 14.0。
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f205619792e, pid=8902, tid=139775151732480
#
# JRE version: Java(TM) SE Runtime Environment (8.0_45-b14) (build 1.8.0_45-b14)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.45-b02 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V [libjvm.so+0x6c492e] jni_invoke_nonstatic(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, Thread*)+0xa1e
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
#
我已经将我的 java 版本从 1.8.0_45 更新到 1.8.0_71。但问题仍然存在。 这是弹出窗口的代码,我正在使用它作为用户密码。
GridPane grid = new GridPane();
final PasswordField passwordPasswordField = new PasswordField();
final Dialog dlg = new Dialog(null, "Open User's Profile");
grid.add(passwordPasswordField, 1, 2);
dlg.setContent(grid);
dlg.show();