Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Dialog windows sometimes not doing anything on v1.1.11 #610

Closed
Vexatos opened this issue Jan 15, 2022 · 3 comments · Fixed by #611
Closed

Dialog windows sometimes not doing anything on v1.1.11 #610

Vexatos opened this issue Jan 15, 2022 · 3 comments · Fixed by #611

Comments

@Vexatos
Copy link
Contributor

Vexatos commented Jan 15, 2022

The changes introduced in PR #607 seem to cause issues when showing dialog boxes sometimes, at least on Windows. Setting GTK_AUTO_IDLE to false fixes it, confirming that this PR is the culprit.

We don't have much information to present unfortunately, but in some situations, opening a dialog box such as ask_dialog shortly after using Gtk opens a completely unresponsive window. It's not possible to interact with any buttons in the window, including the X button in the window bar. In our tests, adding a simple sleep(0) or println() in front of the ask_dialog is already enough to fix it, so we don't really know why this could happen.

@IanButterworth
Copy link
Collaborator

Thanks. I'm looking into this

@IanButterworth
Copy link
Collaborator

I don't have access to a windows machine and I can't reproduce this on ubuntu by just doing

julia> begin
           using Gtk
           ask_dialog("hello")
       end

@Vexatos would you mind dev-ing Gtk and trying to add a yield() between line 41 and 42 here?

end

If that doesn't work try between 40 and 41.

Sorry for the breakage!

@Vexatos
Copy link
Contributor Author

Vexatos commented Jan 15, 2022

Putting a yield() after the signal_connect block does indeed appear to reliably fix the issue.

IanButterworth added a commit to IanButterworth/Gtk.jl that referenced this issue Jan 16, 2022
tknopp pushed a commit that referenced this issue Jan 16, 2022
… MacOS (#611)

* add a yield for windows (fix #610)

* make static

* add fix for MacOS windows not reliably closing too

* fix thread safety in auto idle handler
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants