-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
fx2.1
-
Actual only starting from 2.1.0b09. For 2.1.0b08 is not actual.
OpenJDK7 (actual for jdk6 too).
Linux Ubuntu 10.04
Select element from choice box and get exception below.
Code:
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.ChoiceBox;
import javafx.scene.layout.HBox;
import javafx.scene.layout.Pane;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
public class ChoiceBoxApp extends Application {
ChoiceBox cb;
protected Scene getScene() {
cb = new ChoiceBox();
HBox content = new HBox(5);
Pane test_pane = new Pane();
test_pane.setPrefSize(300, 400);
test_pane.setMinSize(300, 400);
test_pane.setMaxSize(300, 400);
content.getChildren().add(test_pane);
test_pane.getChildren().add(cb);
cb.getItems().addAll(1, 2, 3);
VBox controls = new VBox();
content.getChildren().add(controls);
Scene res = new Scene(content);
return res;
}
public static void main(String args[]) {
launch(ChoiceBoxApp.class, args);
}
@Override
public void start(Stage stage) throws Exception {
stage.setScene(getScene());
stage.show();
}
}
Exception:
run:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0xb6e6a21b, pid=19320, tid=2126494576
#
# JRE version: 7.0-b146
# Java VM: OpenJDK Server VM (21.0-b16 mixed mode linux-x86 )
# Problematic frame:
# V [libjvm.so+0x3ee21b] jni_invoke_nonstatic(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, Thread*)+0x15b
#
# 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/fx/NetBeansProjects/JavaApplication1/hs_err_pid19320.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
#
Java Result: 134
For JDK6:
run:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0xb6d7644d, pid=19349, tid=2126592880
#
# JRE version: 6.0_26-b03
# Java VM: Java HotSpot(TM) Server VM (20.1-b02 mixed mode linux-x86 )
# Problematic frame:
# V [libjvm.so+0x41444d] jni_invoke_nonstatic(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, Thread*)+0x11d
#
# An error report file with more information is saved as:
# /home/fx/NetBeansProjects/JavaApplication1/hs_err_pid19349.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
Java Result: 134
Code:
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.ChoiceBox;
import javafx.scene.layout.HBox;
import javafx.scene.layout.Pane;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
public class ChoiceBoxApp extends Application {
ChoiceBox cb;
protected Scene getScene() {
cb = new ChoiceBox();
HBox content = new HBox(5);
Pane test_pane = new Pane();
test_pane.setPrefSize(300, 400);
test_pane.setMinSize(300, 400);
test_pane.setMaxSize(300, 400);
content.getChildren().add(test_pane);
test_pane.getChildren().add(cb);
cb.getItems().addAll(1, 2, 3);
VBox controls = new VBox();
content.getChildren().add(controls);
Scene res = new Scene(content);
return res;
}
public static void main(String args[]) {
launch(ChoiceBoxApp.class, args);
}
@Override
public void start(Stage stage) throws Exception {
stage.setScene(getScene());
stage.show();
}
}
Exception:
run:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0xb6e6a21b, pid=19320, tid=2126494576
#
# JRE version: 7.0-b146
# Java VM: OpenJDK Server VM (21.0-b16 mixed mode linux-x86 )
# Problematic frame:
# V [libjvm.so+0x3ee21b] jni_invoke_nonstatic(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, Thread*)+0x15b
#
# 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/fx/NetBeansProjects/JavaApplication1/hs_err_pid19320.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
#
Java Result: 134
For JDK6:
run:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0xb6d7644d, pid=19349, tid=2126592880
#
# JRE version: 6.0_26-b03
# Java VM: Java HotSpot(TM) Server VM (20.1-b02 mixed mode linux-x86 )
# Problematic frame:
# V [libjvm.so+0x41444d] jni_invoke_nonstatic(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, Thread*)+0x11d
#
# An error report file with more information is saved as:
# /home/fx/NetBeansProjects/JavaApplication1/hs_err_pid19349.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
Java Result: 134
- duplicates
-
JDK-8119216 Gtk: Choicebox and Advanced Stage samples cause jvm to crash
- Closed