-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Embedding an nREPL server in lwjgl example results in crash on connection attempt #59
Comments
I tried the same approach using the
|
Very strange. I can reproduce it, and it seems to be related to Skija specifically, if I remove it and leave LWJGL only, it doesn’t crash. I’ll look into it too, thanks for reporting! |
I think the problem is that connecting via nREPL triggers GC which collects BackendRenderTarget and Surface. Adding |
Should work fine in |
Finally getting back into this. |
I’m attempting to spin up an nREPL server from within my app (which I’m basing off the
lwjgl
example). The app starts up fine, but it crashes as soon as I try to connect to the server (using Cursive’s nREPL connection type):My goal is to enable interactive development for me while running the app on the main thread and to eventually include the REPL as a feature of the app. (This was an attempt to follow @tonsky's advice in #56.)
The only change I’ve made to the example so far is a call to start the REPL server just before the main
loop
:My
start!
function is fairly simple. I also tried wrapping everything in a fresh thread to no avail:I’m currently at a loss as to what else to try.
I've attached the crash log. Any suggestions?
hs_err_pid99984.log
The text was updated successfully, but these errors were encountered: