JDK-8276915 : Crash on iOS 15.1 in GlassRunnable::dealloc
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: openjfx18
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: aarch64
  • Submitted: 2021-11-09
  • Updated: 2021-11-11
  • Resolved: 2021-11-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
openjfx18Fixed
Related Reports
Relates :  
Description
ADDITIONAL SYSTEM INFORMATION :
Using javafx.version 18-ea+6, gluonfx.plugin.version 1.0.9 to build the iOS native image.

A DESCRIPTION OF THE PROBLEM :
Referring to https://bugs.openjdk.java.net/browse/JDK-8275723

I am getting a very similar crash on iOS 15.1, the console output of my iPad is showing following line:
*** Assertion failure in -[GlassRunnable dealloc], GlassApplication.m:268

I see that for MacOS, this has been fixed. Comparing with the source code for iOS at https://github.com/openjdk/jfx/blob/master/modules/javafx.graphics/src/main/native-glass/ios/GlassApplication.m
the iOS dealloc method still looks like the macOS code before the fix. So I suppose with iOS 15.1, the same issue got introduced as it was with macOS 12.
This behaviour has not been seen in previous iOS releases, including iOS 15.0.2.

From the comments in the aforementioned macOS bug report, the discussion mentions a follow-up effort to check other deallocs...this might be one of those to fix.



Comments
Changeset: d122ed00 Author: Jose Pereda <jpereda@openjdk.org> Date: 2021-11-11 15:04:06 +0000 URL: https://git.openjdk.java.net/jfx/commit/d122ed00557eeeb823a42e0c5503ab55f754e921
11-11-2021

Thanks for reporting. The iOS code suffers from the same issue indeed, we will fix it.
10-11-2021

Yes, it does look like a similar bug in the iOS-specific glass code.
10-11-2021