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

v0.6.0 crashes Julia on upper left icon click #129

Closed
tro3 opened this issue Jan 22, 2020 · 2 comments · Fixed by #131
Closed

v0.6.0 crashes Julia on upper left icon click #129

tro3 opened this issue Jan 22, 2020 · 2 comments · Fixed by #131

Comments

@tro3
Copy link

tro3 commented Jan 22, 2020

When trying out v0.6.0, simply running the tutorial demo, I accidentally hit the upper leftmost icon (print, I think) and crashed not only the window, but Julia itself.

julia> @profview profile_test(10);

[ok here, until I hit the upper leftmost icon in the GTK window]

julia> FATAL ERROR: Gtk state corrupted by error thrown in a callback:
ERROR: UndefVarError: c not defined
Stacktrace:
 [1] open_cb(::Ptr{Gtk.GLib.GObject}, ::Tuple{Gtk.GtkCanvas,Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}}) at C:\Users\Trey Roessig\.julia\packages\ProfileView\HysnR\src\ProfileView.jl:189
 [2] (::Gtk.var"#237#238")() at C:\Users\Trey Roessig\.julia\packages\Gtk\5KVNb\src\events.jl:2
 [3] g_sigatom(::Any) at C:\Users\Trey Roessig\.julia\packages\Gtk\5KVNb\src\GLib\signals.jl:176
 [4] gtk_main() at C:\Users\Trey Roessig\.julia\packages\Gtk\5KVNb\src\events.jl:1

[Julia dies - back to shell prompt]

My version info

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-4500U CPU @ 1.80GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, haswell)
Environment:
  JULIA_NUM_THREADS = 4

Hope this helps. Not a big deal for me

@tro3
Copy link
Author

tro3 commented Jan 22, 2020

Hmm. The second time loading, with a fresh recompilation, I now get

┌ 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\Trey Roessig\.julia\packages\Gtk\5KVNb\src\Gtk.jl:74

Perhaps any complaints of crashes on PC's are moot, in which case you can close this out.

@timholy
Copy link
Owner

timholy commented Jan 22, 2020

No, Gtk should work, it just slows responsivity of the REPL. See JuliaGraphics/Gtk.jl#325 and possible fix in JuliaGraphics/Gtk.jl#467 (comment).

Will be fixed by #131.

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

Successfully merging a pull request may close this issue.

2 participants