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.

Closing the window of the Clojure example causes JVM crash on MacOS

See original GitHub issue

Closing the window of the Clojure example causes JVM crash on MacOS. I ran it with clj -J-XstartOnFirstThread -M -m lwjgl.main. Log attached.

hs_err_pid6917.log

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13

github_iconTop GitHub Comments

1reaction
tonskycommented, Dec 28, 2020

This goes directly from LWJGL example: https://www.lwjgl.org/guide Also, this line didn’t existed on Nov 26 when this issue was created 😃

0reactions
tonskycommented, Apr 6, 2021

I updated the Clojure example, thanks.

The most preferable solution would be some kind of weak reference that automatically cleans things up and doesn’t crash.

That’s exactly how this is set up. The problem is that global GL state is managed externally to Skija resources. All Skija resources clean up cleanly, but if you closed GL context before that there’s no way of knowing or reporting that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Closing the window of the Clojure example causes JVM crash on ...
This issue has been tracked since 2020-11-26. Closing the window of the Clojure example causes JVM crash on MacOS. I ran it with...
Read more >
File watching fails on MacOS Big Sur beta · Issue #253 - GitHub
When starting up file watching via wkf/hawk, an exception is thrown. After a little digging, this looks to be caused by changes to...
Read more >
4. Local I/O - Clojure Cookbook [Book] - O'Reilly
The built-in function clojure.java.io/writer is a versatile constructor for ... the JVM terminates and may not be deleted if the process crashes or...
Read more >
To be perfectly honest, Clojure's biggest mistake, from my ...
Initial implementation of Clojure targeted CLR and JVM. Urban legend says: Rich Hickey named the language "Clojure" because it has 'c', 'l', 'r'...
Read more >
How to have Command-W close a window on Mac OS in Java ...
Here's one way: Action closeWindow = new AbstractAction("Close Window") { @Override public void actionPerformed(ActionEvent e) { // window ...
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