Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P4
-
Resolution: Incomplete
-
Affects Version/s: 8u45
-
Fix Version/s: None
-
Component/s: javafx
-
Labels:
-
CPU:x86_64
-
OS:linux
Description
FULL PRODUCT VERSION :
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
FULL OS VERSION :
Linux UN-010091 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
I create setOnKeyPressed event on my Scene. When window is opened, i just write somethig in the only one text field, and press ENTER, then i get error, and app is closed.
THE PROBLEM WAS REPRODUCIBLE WITH -Xint FLAG: Did not try
THE PROBLEM WAS REPRODUCIBLE WITH -server FLAG: Did not try
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run the application, and when window is opened, write somethig in the only one text field (dont use mouse on this window), and press ENTER, then the error will be showed, and the app will be closed.
EXPECTED VERSUS ACTUAL BEHAVIOR :
I expected that on key enter is pressed, the event handler will be invoked.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f25cf314f48, pid=22442, tid=139798783096576
#
# 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+0x6c3f48] jni_invoke_nonstatic(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, Thread*)+0x38
#
# 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/ruminiki/workspacefx/MilkMoney/hs_err_pid22442.log
Compiled method (c1) 35320 3696 3 com.sun.javafx.tk.quantum.WindowStage::setInEventHandler (6 bytes)
total in heap [0x00007f25b9addf50,0x00007f25b9ade248] = 760
relocation [0x00007f25b9ade078,0x00007f25b9ade0a0] = 40
main code [0x00007f25b9ade0a0,0x00007f25b9ade160] = 192
stub code [0x00007f25b9ade160,0x00007f25b9ade1f0] = 144
oops [0x00007f25b9ade1f0,0x00007f25b9ade1f8] = 8
metadata [0x00007f25b9ade1f8,0x00007f25b9ade200] = 8
scopes data [0x00007f25b9ade200,0x00007f25b9ade210] = 16
scopes pcs [0x00007f25b9ade210,0x00007f25b9ade240] = 48
dependencies [0x00007f25b9ade240,0x00007f25b9ade248] = 8
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
#
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
The source code:
AnchorPane form = (AnchorPane) MainApp.load(getFormName());
dialogStage = new Stage();
dialogStage.initModality(Modality.WINDOW_MODAL);
dialogStage.initOwner(MainApp.primaryStage);
Scene scene = new Scene(form);
dialogStage.setScene(scene);
scene.setOnKeyPressed(new EventHandler<KeyEvent>() {
@Override
public void handle(KeyEvent event) {
if ( event.getCode().equals(KeyCode.ENTER) ){
handleOk();
}
if ( event.getCode().equals(KeyCode.ESCAPE) ){
handleCancel();
}
}
});
dialogStage.showAndWait();
---------- END SOURCE ----------
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
FULL OS VERSION :
Linux UN-010091 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
I create setOnKeyPressed event on my Scene. When window is opened, i just write somethig in the only one text field, and press ENTER, then i get error, and app is closed.
THE PROBLEM WAS REPRODUCIBLE WITH -Xint FLAG: Did not try
THE PROBLEM WAS REPRODUCIBLE WITH -server FLAG: Did not try
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run the application, and when window is opened, write somethig in the only one text field (dont use mouse on this window), and press ENTER, then the error will be showed, and the app will be closed.
EXPECTED VERSUS ACTUAL BEHAVIOR :
I expected that on key enter is pressed, the event handler will be invoked.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f25cf314f48, pid=22442, tid=139798783096576
#
# 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+0x6c3f48] jni_invoke_nonstatic(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, Thread*)+0x38
#
# 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/ruminiki/workspacefx/MilkMoney/hs_err_pid22442.log
Compiled method (c1) 35320 3696 3 com.sun.javafx.tk.quantum.WindowStage::setInEventHandler (6 bytes)
total in heap [0x00007f25b9addf50,0x00007f25b9ade248] = 760
relocation [0x00007f25b9ade078,0x00007f25b9ade0a0] = 40
main code [0x00007f25b9ade0a0,0x00007f25b9ade160] = 192
stub code [0x00007f25b9ade160,0x00007f25b9ade1f0] = 144
oops [0x00007f25b9ade1f0,0x00007f25b9ade1f8] = 8
metadata [0x00007f25b9ade1f8,0x00007f25b9ade200] = 8
scopes data [0x00007f25b9ade200,0x00007f25b9ade210] = 16
scopes pcs [0x00007f25b9ade210,0x00007f25b9ade240] = 48
dependencies [0x00007f25b9ade240,0x00007f25b9ade248] = 8
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
#
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
The source code:
AnchorPane form = (AnchorPane) MainApp.load(getFormName());
dialogStage = new Stage();
dialogStage.initModality(Modality.WINDOW_MODAL);
dialogStage.initOwner(MainApp.primaryStage);
Scene scene = new Scene(form);
dialogStage.setScene(scene);
scene.setOnKeyPressed(new EventHandler<KeyEvent>() {
@Override
public void handle(KeyEvent event) {
if ( event.getCode().equals(KeyCode.ENTER) ){
handleOk();
}
if ( event.getCode().equals(KeyCode.ESCAPE) ){
handleCancel();
}
}
});
dialogStage.showAndWait();
---------- END SOURCE ----------