bell-sw / Liberica

Free and 100% open source Progressive Java Runtime for modern Java™ deployments supported by a leading OpenJDK contributor
https://bell-sw.com/pages/libericajdk/
GNU General Public License v2.0
323 stars 28 forks source link

JavaFX application crashed on macOS Sierra 10.12 #197

Open hirukawa opened 1 week ago

hirukawa commented 1 week ago

JavaFX application crashed on macOS Sierra 10.12

My JavaFX application works fine in LibericaJDK 21.0.3 on macOS Sierra 10.12. But, My JavaFX application does not work on LibericaJDK 21.0.4 (and 21.0.5) on macOS Sierra 10.12.

Code Type: X86-64 (Native)
OS Version: Mac OS X 10.12.6 (16G2136)
Report Version: 12
Crashed Thread: 24 Java: QuantumRenderer-0

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Termination Reason: DYLD, [0x4] Symbol missing

Dyld Error Message:
  Symbol not found: _objc_alloc_init
  Referenced from: /Library/Java/JavaVirtualMachines/liberica-jdk-21-full.jdk/Contents/Home/lib/libprism_es2.dylib
  Expected in: /usr/lib/libobjc.A.dylib

On macOS High Sierra 10.13, the crash is similar, but with more detailed information.

Dyld Error Message:
  Symbol not found: _objc_alloc_init
  Referenced from: /Library/Java/JavaVirtualMachines/liberica-jdk-21-full.jdk/Contents/Home/lib/libprism_es2.dylib (which was built for Mac OS X 10.15)
  Expected in: /usr/lib/libobjc.A.dylib

libprism_es2.dylib (which was built for Mac OS X 10.15)

This seems to be because libprism_es2.dylib is built targeting macOS 10.15 from LibericaJDK 21.0.4/21.0.5. Is it possible to build libprism_es2.dylib targeting macOS 10.12, like in LibericaJDK 21.0.3?

voitylov commented 8 hours ago

the January 2025 release will revert to building for 10.12 for all OpenJFX modules with the exception of Webkit. Webkit will be built for 10.15 and will not work on 10.12.

That said, it's unknown for how long we will be able to support a Mac OS X release which is unsupported by Apple. We intend to bump the minimum supported version of Mac OS X some time when the efforts to continue to run on such an outdated version of Mac OS X outweigh the pros.