gluonfx-maven-plugin: v0.1.36 with forced GraalVM 21.x: Linux Binary crashes when opening a DirectoryChooser
Using the Gist I’ve created for an unrelated issue with GraalVM I’ve added the following in App.kt
private fun Button.chooseTargetDir(): File? =
scene.window.let {
DirectoryChooser().apply {
val userHome = System.getProperty("user.home")
if (userHome != null && userHome.isNotEmpty()) initialDirectory = File(userHome)
title = "Test"
}.showDialog(it)
}
and replaced the last buttons (“Show Dialog”) content with
action {
chooseTargetDir()?.also { System.err.println(it) }
}
The app compiles and executes, but crashes as soon as you hit the “Show Dialog” button.
Reverting to 0.1.35 and GraalVM 20.3.x “solves” the issue.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 16 (8 by maintainers)
Commits related to this issue
- add hard-coded path to static Java and JVM libs, at least on linux. Remove the JDK static libs path from the -L list, avoiding other libraries to be unintentionally picked up from there (e.g. libharfb... — committed to johanvos/substrate by johanvos 3 years ago
- add hard-coded path to static Java and JVM libs, at least on linux. Remove the JDK static libs path from the -L list, avoiding other libraries to be unintentionally picked up from there (e.g. libharfb... — committed to gluonhq/substrate by johanvos 3 years ago
@bgmf Sorry it took a while… but 0.1.39 has just been released. Note that we are moving back again to our own GraalVM build https://github.com/gluonhq/graal/releases/latest
Once this [PR|https://github.com/gluonhq/substrate/pull/880] gets integrated, this issue should be fixed.
We have created this GraalVM issue: https://github.com/oracle/graal/issues/3213