question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v0.1.36 with forced GraalVM 21.x: Linux Binary crashes when opening a DirectoryChooser

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
jperedadnrcommented, Apr 20, 2021

@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

1reaction
jperedadnrcommented, Feb 23, 2021

Once this [PR|https://github.com/gluonhq/substrate/pull/880] gets integrated, this issue should be fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

gluonfx-maven-plugin - bytemeta
v0.1.36 with forced GraalVM 21.x: Linux Binary crashes when opening a DirectoryChooser · Previous Next. Make software development more efficient, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found