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

REPL locks up after using Gtk4 in julia 1.11 with multiple threads #78

Open
jwahlstrand opened this issue Dec 6, 2024 · 2 comments
Open
Labels
bug Something isn't working Linux

Comments

@jwahlstrand
Copy link
Member

jwahlstrand commented Dec 6, 2024

When Julia 1.11 is started with more than one interactive thread, or started with 2 or more default threads and no interactive thread, the REPL locks up after calling using Gtk4. So this occurs when starting julia with julia -t y or julia -t x,y for y>1.

Reported here jwahlstrand/AravisCameras.jl#5 but it's a Gtk4 issue. I can reproduce it on Linux but have no time to look into it today.

It doesn't happen with Julia 1.10 and I haven't seen it on Windows or Mac OS.

@jwahlstrand jwahlstrand added bug Something isn't working Linux labels Dec 6, 2024
@jwahlstrand jwahlstrand changed the title REPL locks up when starting julia 1.11 with multiple threads REPL locks up after using Gtk4 in julia 1.11 with multiple threads Dec 7, 2024
@srikumarks
Copy link

Just encountered this. It looks like it is not locked entirely (at least on MacOS), every key stroke take several seconds to be delivered, but they eventually do get delivered. So this is perhaps due to some cross-event loop communication issues (between Julia's event loop and Gtk's) ... perhaps.

@jwahlstrand
Copy link
Member Author

Thanks, good to know it's an issue on MacOS too. I do think it's an event loop conflict of some kind but am not sure what do to about it. For me at least, it can be avoided by starting Julia with julia -t N,1 (or setting the environment variable JULIA_NUM_THREADS = N,1). It deserves a note in the README and the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Linux
Projects
None yet
Development

No branches or pull requests

2 participants