Hey all, I'm trying to get keyboard keys to work for a project I'm doing which uses Gtk as the frontend. I'm currently getting a StackOverflowError everytime I press a key. I'm running Julia 0.6 RC 1, Gtk.jl master, and with GTK+ 3.22.12 on Xorg installed on my Gentoo Linux system. Here's a MWE:
using Gtk, Gtk.ShortNames
win = Window("Test")
signal_connect(win, "key-press-event") do widget, event
@async println("Key: ", event.keyval)
end
signal_connect(win, "destroy") do widget
exit(0)
end
showall(win)
while true
sleep(1)
end
And here's the error:
WARNING: Executing #1:
ERROR: StackOverflowError:
Stacktrace:
[1] convert(::Type{Gtk.GdkEvent}, ::Ptr{Gtk.GdkEvent}) at /home/jpsamaroo/.julia/v0.6/Gtk/src/GLib/gtype.jl:283 (repeats 80000 times)
My versioninfo():
Julia Version 0.6.0-rc1.0
Commit 6bdb395* (2017-05-07 00:00 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.9.1 (ORCJIT, ivybridge)
I wouldn't be surprised if I'm just doing something terribly stupid, so please let me know if that's the case 😄
Hey all, I'm trying to get keyboard keys to work for a project I'm doing which uses Gtk as the frontend. I'm currently getting a
StackOverflowErroreverytime I press a key. I'm running Julia 0.6 RC 1, Gtk.jl master, and with GTK+ 3.22.12 on Xorg installed on my Gentoo Linux system. Here's a MWE:And here's the error:
My versioninfo():
I wouldn't be surprised if I'm just doing something terribly stupid, so please let me know if that's the case 😄