JDK-8299321 : Crash after display the window with # Problematic frame: # v ~StubRoutines::SafeFetchN
  • Type: Bug
  • Component: javafx
  • Sub-Component: window-toolkit
  • Affected Version: openjfx17
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: os_x
  • CPU: aarch64
  • Submitted: 2022-12-15
  • Updated: 2023-01-03
  • Resolved: 2023-01-03
Related Reports
Duplicate :  
Description
ADDITIONAL SYSTEM INFORMATION :
See Crash report below

A DESCRIPTION OF THE PROBLEM :
Crash after display the main window  or on click


REGRESSION : Last worked in version 18


---------- BEGIN SOURCE ----------
package carnet;


import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;

public class Main extends Application {

    @Override
    public void start(Stage primaryStage) throws Exception{
        BorderPane bp = new BorderPane();
        bp.setCenter(new Button("sdfghjk"));
        Scene scene= new Scene(bp, 660, 600);
        primaryStage.setScene(scene);

        primaryStage.setTitle("Carnet de Voyage");
        primaryStage.show();
    }


    public static void main(String[] args) {
        launch(args);
    }
}
---------- END SOURCE ----------

FREQUENCY : always



Comments
This is almost certainly a duplicate of JDK-8275723.
03-01-2023

Stack: [0x0000000171f74000,0x0000000172177000], sp=0x00000001721767a0, free space=2057k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) v ~StubRoutines::SafeFetchN V [libjvm.dylib+0x7d15c0] _ZN10OopStorage7releaseEPKP7oopDesc+0x20 V [libjvm.dylib+0x4f7efc] jni_DeleteGlobalRef+0xd4 C [libglass.dylib+0xab08] -[GlassRunnable dealloc]+0x34 C [Foundation+0x85318] -[_NSThreadPerformInfo dealloc]+0x30 C [Foundation+0x518ac] -[NSObject(NSThreadPerformAdditions) performSelectorOnMainThread:withObject:waitUntilDone:]+0x8 This appears to be an issue with JavaFX (libglass) deleting an invalid JNI Global reference.
03-01-2023

Issue is not reproduced, the crash is not observed. OS: Mac Monterey openJFX 17.0.1 JDK 18.0.2.1 : Pass This issue is reported on Mac M1 (openjfx 17.0.1, openjdk 18.0.2.1) with # Problematic frame: # v ~StubRoutines::SafeFetchN Moving it to dev team for further analysis. ILW = Regression, reproducible on Mac M1,no known workaround yet = HLM = P3
23-12-2022