Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

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

Open
UrKr opened this issue May 13, 2015 · 2 comments
Open

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

UrKr opened this issue May 13, 2015 · 2 comments

Comments

@UrKr
Copy link

UrKr commented May 13, 2015


(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
Copy link
Contributor

vtjnash commented May 18, 2015

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

@hustf
Copy link

hustf commented Aug 31, 2015

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 .

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants