Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8314529

[macos] JavaFX threading bug only on ARM M2 Ventura

XMLWordPrintable

    • arm
    • os_x

      ADDITIONAL SYSTEM INFORMATION :
      Bug is only present in ARM M2 with Ventura; it is absent on Windows, Linux, and Parallels Windows 11 on ARM M2. Tested Java SDKs: Liberica 17 and 20; Zulu 17 and 20.

      Liberica Java Version: 20.0.2
      JavaFX Version: 20.0.2+1+b01
      OS: Mac OS X 13.5

      A DESCRIPTION OF THE PROBLEM :
      See steps to reproduce below. JavaFX application opens and operates correctly. User invokes data processing that causes a new window /scene to open, which immediately starts running a set of Services / Tasks and crashes.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      see: https://github.com/bell-sw/Liberica/issues/134 for instructions copied below:

      To replicate bug:
      1) clone https://github.com/CIRDLES/Tripoli
      2) build and run TripoliApp using Liberica 20.0.2 Full
      3) click menu: Session / Open Demonstration Session
      4) double click any of the analyses that appear on the right to open Analysis Manager
      5) click the bottom right button "Process / Plot blocks using MCMC"
      6) note new window appears for an instant and then Java crashes.
      7) using Intellij in debug mode, set a breakpoint at:
         line 634 of
      https://github.com/CIRDLES/Tripoli/blob/main/TripoliApp/src/main/java/org/cirdles/tripoli/gui/AnalysisManagerController.java
      8) set a breakpoint at:
         line 77 of
      https://github.com/CIRDLES/Tripoli/blob/main/TripoliApp/src/main/java/org/cirdles/tripoli/gui/dataViews/plots/plotsControllers/mcmcPlots/MCMCPlotsWindow.java
      9) follow steps 3-5 above
      10) step over line 634 and subsequent lines (or just run to next breakpoint at line 77 in step 8)
      11) executing line 77 from step 8 crashes Java

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Second scene window opens and runs a set of service / task and displays progress and then results.
      ACTUAL -
      Second scene window opens and crashes (see hs_err file)

      ---------- BEGIN SOURCE ----------
      see: https://github.com/bell-sw/Liberica/issues/134 for links to running source code.
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      NONE (switch to Parallels Win11 on same ARM M2 and all is well!)

      FREQUENCY : always


            pnarayanaswa Praveen Narayanaswamy
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: