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

Main loop issues on startup on Mac OS #19

Open
jwahlstrand opened this issue Jul 14, 2024 · 3 comments
Open

Main loop issues on startup on Mac OS #19

jwahlstrand opened this issue Jul 14, 2024 · 3 comments

Comments

@jwahlstrand
Copy link
Member

jwahlstrand commented Jul 14, 2024

In the examples "interactive.jl" and "widgets.jl", there is some code (only run if Sys.isapple()) that waits for the Gtk4 event loop to be started before "using Gtk4Makie". Without this, on my Mac, the GTK event loop freezes. This wait shouldn't be required.

@jwahlstrand jwahlstrand changed the title Strange behavior in "widgets" example on Mac OS Main loop issues on startup on Mac OS Jul 14, 2024
@jonathanBieler
Copy link

Hey, I think I'm hitting this issue but I'm not totally sure. I'm trying to use Gtk4Makie inside a package, and the window just doesn't show up. Since I'm in a package I can't wait for the main loop to start before using Gtk4Makie. Is that the same issue ?

For now I'm doing this as a workaround :

using Gtk4; win = GtkWindow(); show(win); destroy(win); using MyApp; win = MyApp.start()

But would be better to fix it.

@jwahlstrand
Copy link
Member Author

When I use Gtk4Makie inside a package on Linux and Windows I don't need to do anything special. The event loop on Mac OS is handled a little differently because of a REPL issue (JuliaGtk/Gtk4.jl#23) and I suspect that's related.

@jonathanBieler
Copy link

Alright thanks, I'll have a look.

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

2 participants