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

ImageView grinds Windows to a hold #287

Closed
RainerHeintzmann opened this issue Aug 2, 2023 · 9 comments
Closed

ImageView grinds Windows to a hold #287

RainerHeintzmann opened this issue Aug 2, 2023 · 9 comments

Comments

@RainerHeintzmann
Copy link

A Pluto Notebook on a Windows 10 PC using Julia 1.9 and Pluto 0.19.28 with only the following line in the Pluto notebook:
using ImageView
is enough to (almost) grind my computer to a halt. Typing any letter on the keyboard in any program has about 1-5 seconds delay to take effekt. Presumably this is some GTK issue. I set NUM_THREADS to any in my environment.
I think this is a windows-only problem.

@ashwanirathee
Copy link
Member

ashwanirathee commented Aug 2, 2023

Thank you for reporting sir, we are aware of the problem: #281 and it's due to an issue with GTK.jl, we are working on port to GTK4.jl here: #284. Also, I think in Pluto there isn't much of need for using ImageView, are you trying to update images or something along those lines?

@RainerHeintzmann
Copy link
Author

I stumbled over this, since it was in the list of a published Pluto-Notebook. But I guess the idea was to have some interactive image control within Pluto.

@ashwanirathee
Copy link
Member

ashwanirathee commented Aug 2, 2023

For interactive use with Images through Pluto, this pluto notebook might be of interest too sir: https://gist.github.com/ashwani-rathee/4211eec75ebdc8becd31ac1c38f50a6b

@mkitti
Copy link
Member

mkitti commented Aug 2, 2023

Are we doing anything with interactive threads yet?

@ashwanirathee
Copy link
Member

Ones with channels and producers? I could have example ready for that, something like done here: https://medium.com/@ashwanirathee/2-way-communication-with-microcontrollers-using-c-and-julia-611e37c18da7, an example I can think of is getting data from rtsp stream and then processing it, which is doable too.

@mkitti
Copy link
Member

mkitti commented Aug 6, 2023

Does the ENV["GTK_AUTO_IDLE"] = false trick apply here?

@mkitti
Copy link
Member

mkitti commented Aug 6, 2023

No, I mean the new Julia 1.9 interactive thread pool.

@jwahlstrand
Copy link
Collaborator

Does the ENV["GTK_AUTO_IDLE"] = false trick apply here?

That should work if it's just JuliaGraphics/Gtk.jl#629

In any case the Gtk4 port should be ready soon.

@jwahlstrand
Copy link
Collaborator

Just released version 0.12.0 hopefully fixes this.

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

4 participants