-
Notifications
You must be signed in to change notification settings - Fork 2
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
REPL is unresponsive after using Gtk4
#23
Comments
I am on Julia 1.8.0 and macOS 12.3.1 and have not seen this so far. |
I have seen it on my Mac and it makes the REPL unusable after a minute or two, like @cmey said. I have not noticed this on Windows, which I use a lot more. The same thing happens for me with Gtk.jl, but only after you open a window, which starts the GLib main loop, and wait a few minutes. I noticed it goes away if I revert JuliaGraphics/Gtk.jl#630. But doing that unfortunately brings back slowdown issues with multithreading. We could add some functions that allow you to turn |
Hm, I have used Gtk4 on Mac quite intensively when porting a larger app and have not seen it so far. But anyways, the suggestion to make in configurable and enabling it on Mac/Windows sounds good. |
See if what I just pushed fixes the REPL issue. It does for me. This re-enables the uv_backend polling on a Mac if you're in an interactive session. To go back to how it was before (to prevent Gtk4 from interfering with multithreading), you can call As I mentioned, I had seen this on my own computer (which is pretty old and slow) but figured that it wasn't an issue for everyone, since I knew @tknopp has been using Gtk4.jl on a Mac and hadn't complained. |
@jwahlstrand Thanks a lot for the fix, I can confirm that your latest change fixes it! I Can you please tag a new release with this fix? 🙏 |
Done! |
Hi!
Just
using Gtk4
and waiting for a minute, makes the julia REPL unresponsive / super slow.This is on julia 1.8.5 and also on 1.9-rc1 on a mac Intel, macOS Ventura 13.2.1.
I've tried 3 terminal apps: the Terminal app that comes with macOs, Warp, and the REPL in vscode - they all show the same behevior.
Detailed infos:
I start julia with
julia +1.9 --project=.
(fromjuliaup
).(Side note: I've seen it happen on Windows too. And on Linux all is fine.)
The text was updated successfully, but these errors were encountered: