Warning: You are using Gtk on Windows which is currently not recommended

What to do ? After adding Gtk is still the same Warning.
Win 7 , I preparde special USER JuliaPro_v1.3.1-1 for this instalation JPRO. In Atom was added uber-juno

(@v1.3) pkg> st
     Status `C:\Users\JuliaPro_v1.3.1-1\.juliapro\JuliaPro_v1.3.1-1\environments\v1.3\Project.toml`
   c52e3926 Atom v0.11.3 ⚲
   4c0ca9eb Gtk v1.1.2
   7073ff75 IJulia v1.20.2
   e5e0dc1b Juno v0.7.2 ⚲
   4722fa14 PkgAuthentication v0.1.2
   91a5bcdd Plots v0.28.4
   c17dfb99 WinRPM v1.0.0
   bd07be1c Winston v0.15.0

julia> using Winston
┌ Warning: You are using Gtk on Windows which is currently not recommended. Your REPL/IDE and anything depending on task switches will become sluggish and much slower (up to ~85x slower).
└ @ Gtk C:\Users\JuliaPro_v1.3.1-1\.juliapro\JuliaPro_v1.3.1-1\packages\Gtk\5KVNb\src\Gtk.jl:74

julia> versioninfo()
Julia Version 1.3.1
Commit 2d5741174c (2019-12-30 21:36 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, sandybridge)
Environment:
  JULIA_DEPOT_PATH = C:\Users\JuliaPro_v1.3.1-1\.juliapro\JuliaPro_v1.3.1-1;C:\JuliaPro-1.3.1-1\Julia-1.3.1\local\share\julia;C:\JuliaPro-1.3.1-1\Julia-1.3.1\share\julia
  JULIA_EDITOR = "C:\JuliaPro-1.3.1-1\app-1.44.0\atom.exe"  -a
  JULIA_NUM_THREADS = 4
  JULIA_PKG_SERVER = pkg.juliacomputing.com
  JULIA_PKG_TOKEN_PATH = C:\Users\JuliaPro_v1.3.1-1\.juliapro\token.toml

julia> 

Paul

Yeah, I wasn’t a huge fan of adding that warning. It’s meaningless, and nothing’s actually changed. But I’m not the Gtk.jl maintainer anymore.

1 Like

See the github issue below for an explanation of the warning. If the mentioned issue doesn’t affect your use-case, you can safely ignore the warning.

https://github.com/JuliaGraphics/Gtk.jl/issues/325

Somebody who actually uses Gtk on Windows in real life should check whether Warn on windows by SimonDanisch · Pull Request #467 · JuliaGraphics/Gtk.jl · GitHub reduces the scale of the problem without causing issues (e.g., dropped events). If so we could at least paper over the problem.

1 Like

I use a GUI written with Gtk and ImageView from time to time and I can confirm that the workaround proposed by @tim.holy improves the experience. I wouldn’t say it fixes it 100% because occasionally I see stutters, but it’s better. Just modify according to the comment, build Gtk and give it a try.

1 Like

After changing singnals.jl tmout_min::Cint = (uv_pollfd::_GPollFD).fd == -1 ? 10 : 5000

winston is lazy …


> for i=1:100

@time display(scatter(rand(100),rand(100)))
       end
FramedPlot(...)
  0.958385 seconds (1.23 M allocations: 61.319 MiB, 1.73% gc time)
FramedPlot(...)
  0.105294 seconds (17.07 k allocations: 1.478 MiB)
FramedPlot(...)
  0.107720 seconds (17.08 k allocations: 1.480 MiB)
FramedPlot(...)
  0.124370 seconds (17.08 k allocations: 1.480 MiB)
FramedPlot(...)
  0.125256 seconds (17.08 k allocations: 1.481 MiB)
...

Plots also

Plot{Plots.GRBackend() n=1}
  0.212880 seconds (1.23 M allocations: 25.355 MiB, 11.91% gc time)
Plot{Plots.GRBackend() n=1}
  0.219549 seconds (1.23 M allocations: 25.389 MiB, 5.04% gc time)
Plot{Plots.GRBackend() n=1}
  0.199911 seconds (1.23 M allocations: 25.353 MiB)
Plot{Plots.GRBackend() n=1}

But on this same machine in clear REPL of Julia 0.7 all workig fast (but I must manualy run gksqt.exe). Looks problem is in Julia PRO.

ulia> for i=1:100
      @time display(Plots.scatter(rand(100),ran
      sleep(.1)
      end
 0.057756 seconds (560.14 k allocations: 10.974
 0.059458 seconds (545.50 k allocations: 10.751
 0.067727 seconds (536.53 k allocations: 10.580
 0.068309 seconds (536.52 k allocations: 10.580

Paul

Hi Paul,

It is great that you found a way round GTK problem which I documented:

https://discourse.julialang.org/t/serious-issue-julia-language-keyboard-lag-typing-very-slow/32081

I use Winston since it seems to date to be the fastest plotting package, as I require making a number of plots. Unfortunately I did not find a better alternative solution.

You are speaking to a non computer scientist, so what simple steps must I perform to avoid the Gtk problem?

Many thanks for any help you may provide,
Joseph

For my is not the some problem, VS and ATOM are not siimlar.
Just use only REPL Julia :slight_smile: Studio ,Atom, all are slow on win ! :slight_smile:
I checked Linux, is the same , Win7 and Julia on Vbox or just on HD is fastest!
Win10 is not system … it is some like jam :slight_smile:
Paul