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

Importing ProfileView slows down keyboard input and crashes AutoHotkey #205

Open
tfiers opened this issue Jun 13, 2022 · 5 comments
Open

Comments

@tfiers
Copy link

tfiers commented Jun 13, 2022

I'm on Windows 10, Julia 1.7.0.

Running using ProfileView (after it's installed in the current env, v1.5.1) makes the keyboard unresponsive or very slow to respond, for about 30 seconds after the command has returned.
In addition, if have an AutoHotkey script running during the import command, the script stops working and I have to restart it.

It's not a big issue; I'm just posting this here for if there are other Julia users with this problem and wondering where it comes from (I had a large list of packages imported, and by elimination narrowed the problem down to ProfileView).

edit: still in Julia 1.8.1

tfiers added a commit to tfiers/MyToolbox.jl that referenced this issue Jun 13, 2022
@timholy
Copy link
Owner

timholy commented Sep 24, 2022

I can verify this, and I'd call it a big issue. Does it happen for you with using Gtk?

@tfiers
Copy link
Author

tfiers commented Sep 27, 2022

It does indeed.

Seems like it is downstream and known:

@tfiers
Copy link
Author

tfiers commented Sep 28, 2022

As suggested by @jwahlstrand, having ENV["GTK_AUTO_IDLE"] = false before importing fixes it.

@MariusDrulea
Copy link

MariusDrulea commented Aug 9, 2023

This issue also appears in julia 1.9.2, https://discourse.julialang.org/t/profileview-jl-makes-my-computer-lag/
ENV["GTK_AUTO_IDLE"] = false still works. I think however we should not do this manually. The fix itself is not a big deal, but imagine your keyboard being super laggy and nearly un-usable and you don't know why. Users spend a few hours until they figure out is ProfileView/Gtk. Is it possible for ProfileView to automatically call ENV["GTK_AUTO_IDLE"] = false when using it? (only on windows machines)

Edit: If I think better ENV["GTK_AUTO_IDLE"] = false shall be done in the Gtk package, not inside ProfileView.

@timholy
Copy link
Owner

timholy commented Aug 10, 2023

JuliaGraphics/Gtk.jl#692 may fix it once and for all

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

3 participants