# Gtk assertion 'GDK\_IS\_WINDOW (window)' failed

**URL:** https://discourse.julialang.org/t/gtk-assertion-gdk-is-window-window-failed/28964
**Category:** General Usage
**Tags:** question
**Created:** [September 19, 2019, 7:22pm UTC](https://discourse.julialang.org/t/gtk-assertion-gdk-is-window-window-failed/28964 "2019-09-19T19:22:30Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Alan\_Bahm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alan_bahm/32/7742_2.png) [@Alan\_Bahm](https://discourse.julialang.org/u/Alan_Bahm)
#### Post date: [September 19, 2019, 7:22pm UTC](https://discourse.julialang.org/t/gtk-assertion-gdk-is-window-window-failed/28964/1 "2019-09-19T19:22:30Z")

</div>

#=  
Using Julia v1.2.0 with Gtk v0.17.0, running Win10 or Mac v10.14.6

A window holding a grid,  
holding a notebook,  
holding a canvas  
generates 5 assertions like:

(:47666): Gdk-CRITICAL \*\*: 11:53:46.732:  
gdk\_window\_get\_scale\_factor: assertion ‘GDK\_IS\_WINDOW (window)’ failed

Why? How can I fix it? Do I just have to live with it?  
=#

using Gtk

#= build gtk widgets =#  
canvas = GtkCanvas()  
notebook = GtkNotebook()  
push!(notebook, canvas, “my canvas”)

#= layout gtk widgets =#  
grid = GtkGrid()  
grid[1,1] = notebook

#= create window =#  
win = GtkWindow(“my window”)  
push!(win, grid)  
showall(win)

---

<div class="post-metadata">

### Author: ![jonathanBieler](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@jonathanBieler](https://discourse.julialang.org/u/jonathanBieler)
#### Post date: [September 20, 2019, 2:07pm UTC](https://discourse.julialang.org/t/gtk-assertion-gdk-is-window-window-failed/28964/2 "2019-09-20T14:07:27Z")

</div>

I’m not sure what’s causing this but in my experience if the application works and doesn’t crash you can ignore those warnings. Maybe there’s something not quite right with the GtkCanvas implementation though (it’s not a normal widget).

---

<div class="post-metadata">

### Author: ![programista](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/programista/32/5372_2.png) [@programista](https://discourse.julialang.org/u/programista)
#### Post date: [February 24, 2020, 7:36pm UTC](https://discourse.julialang.org/t/gtk-assertion-gdk-is-window-window-failed/28964/3 "2020-02-24T19:36:34Z")

</div>

In WIN7 a has problem with gtk (Plots) , now a have gksqt.exe in autosart ! Is OK
