本文介绍了无法在Ubuntu 13.10上调用JavaFX中的showSaveDialog的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过以下方式拨打 showSaveDialog

I'm trying to call showSaveDialog in the following way:

FileChooser fileChooser = new FileChooser();
fileChooser.setTitle(title);

return fileChooser.showSaveDialog(null);

但整个程序已中止,输出如下:

But the whole program is aborted with the following output:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f7d783e3500, pid=22008, tid=140176664483584
#
# JRE version: Java(TM) SE Runtime Environment (7.0_51-b13) (build 1.7.0_51-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.51-b03 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libgdk-x11-2.0.so.0+0x6a500]  gdk_window_set_geometry_hints+0x0
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try     "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/sk_/projects/mjolnirr/hs_err_pid22008.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

我怎样才能让它运转?

推荐答案

使用vlcj并通过添加JVM选项修复它 -DVLCJ_INITX = no

Had this when using vlcj and fixed it by adding JVM option -DVLCJ_INITX=no

找到解决方案

这篇关于无法在Ubuntu 13.10上调用JavaFX中的showSaveDialog的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-22 04:48