Skip to content
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

mfb_update after window closes kills julia #6

Open
rafaqz opened this issue Sep 11, 2020 · 5 comments
Open

mfb_update after window closes kills julia #6

rafaqz opened this issue Sep 11, 2020 · 5 comments

Comments

@rafaqz
Copy link

rafaqz commented Sep 11, 2020

Might be nice to catch that somehow so it just throws an error.

Is there a way of checking the window is still open, or can we set a callback for when it closes?

@aviks
Copy link
Owner

aviks commented Sep 20, 2020

Is this on linux? On windows, mfb_update returns correctly when called on a closed window

julia> state = mfb_update(window, g_buffer)
STATE_EXIT::mfb_update_state = -1

@giordano
Copy link
Contributor

I have the same issue on Linux

@rafaqz
Copy link
Author

rafaqz commented Sep 20, 2020

Yes it's on linux, sorry I should have specified that.

@rafaqz
Copy link
Author

rafaqz commented Sep 20, 2020

Unlike the other issue #10 I can close the window fine with Ctl-C, Julia only dies when you run mfb_update.

This is on Arch, with kernel 5.8.5-arch1-1

@BrianGun
Copy link

I also have this problem on my system.Clicking the close button while the window is updating kills the REPL.

Ctrl-C stops the update of the window but doesn't close the window. Clicking the close button after Ctrl-C doesn't cause the REPL to crash.

Julia Version 1.5.1
Commit 697e782ab8 (2020-08-25 20:08 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: AMD EPYC 7702P 64-Core Processor
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-9.0.1 (ORCJIT, znver2)
Environment:
  JULIA_NUM_THREADS = 64
  JULIA_EDITOR = "/usr/share/code/code"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants