JuliaGraphics / Gtk.jl

Julia interface to Gtk windowing toolkit.
Other
290 stars 80 forks source link

Gdk-CRITICAL ... 'GDK_IS_SCREEN (screen)' failed #147

Open UrKr opened 9 years ago

UrKr commented 9 years ago

(julia.exe:212012): Gdk-CRITICAL **: gdk_window_new: assertion 'GDK_IS_WINDOW (parent)' failed

(julia.exe:212012): Gdk-WARNING **: gdk_input_wintab_init: gdk_window_new failed

Warning: could not import Gtk.gtk_main into Main
Warning: could not import Gtk.gtk_quit into Main```

I get the above error when running this:

using Gtk.ShortNames import Gtk.gtk_main, Gtk.gtk_quit RPMbindir = Pkg.dir("WinRPM","deps","usr","$(Sys.ARCH)-w64-mingw32","sys-root","mingw","bin") ENV["PATH"]=ENV["PATH"]";"RPMbindir

window = @Window("Hello world") signal_connect(window, "destroy") do widget println("Destroy") end showall(window) gtk_main()



A window still opens, but it often crashes.
I've tried re-installing it, as well as running the code in the troubleshooting instructions.
With the latter I got this error:
ERROR: Package candidate for gtk3 not found
 in select at C:\Users\user.julia\v0.3\WinRPM\src\WinRPM.jl:314
vtjnash commented 9 years ago

what does Pkg.installed("Gtk") report? is this a 32 or 64 bit julia installation?

hustf commented 9 years ago

I believe I may have had the same issue yesterday. The 'Usage example' below fixed it for me. At least in Repl.

See https://github.com/JuliaLang/WinRPM.jl ('Usage example' to guide WinRPM in choosing a Gtk3 variant)

See issue #165 .