# Issue with a GtkReactive example

**URL:** https://discourse.julialang.org/t/issue-with-a-gtkreactive-example/9171
**Category:** General Usage
**Tags:** question
**Created:** [February 19, 2018, 4:03pm UTC](https://discourse.julialang.org/t/issue-with-a-gtkreactive-example/9171 "2018-02-19T16:03:15Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![yakir12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yakir12/32/297_2.png) [@yakir12](https://discourse.julialang.org/u/yakir12)
#### Post date: [February 19, 2018, 4:03pm UTC](https://discourse.julialang.org/t/issue-with-a-gtkreactive-example/9171/1 "2018-02-19T16:03:15Z")

</div>

Can you please try this drawing example from `GtkReactive`:

```julia
include(joinpath(Pkg.dir("GtkReactive"), "examples/drawing.jl"))

```

It runs without any errors/warnings but for some reason it does not draw anything (lines are supposed to show up on the canvas when you click and draw). I’m afraid it has something to do with the last problem we had with `Cairo` (see issues [here](https://github.com/JuliaImages/ImageView.jl/issues/139) and [here](https://github.com/JuliaGraphics/Graphics.jl/issues/12)), but I don’t know.

---

<div class="post-metadata">

### Author: ![lobingera](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lobingera/32/211_2.png) [@lobingera](https://discourse.julialang.org/u/lobingera)
#### Post date: [February 19, 2018, 4:52pm UTC](https://discourse.julialang.org/t/issue-with-a-gtkreactive-example/9171/2 "2018-02-19T16:52:20Z")

</div>

What do you mean with

> [@yakir12](#):
>
> runs without any errors/warnings

i see the same like above

```julia
ERROR: Cairo.CairoContext must implement reset_transform

```

---

<div class="post-metadata">

### Author: ![yakir12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yakir12/32/297_2.png) [@yakir12](https://discourse.julialang.org/u/yakir12)
#### Post date: [February 19, 2018, 7:01pm UTC](https://discourse.julialang.org/t/issue-with-a-gtkreactive-example/9171/3 "2018-02-19T19:01:41Z")

</div>

Ah, sorry, after pinning Cairo at 4.

---

<div class="post-metadata">

### Author: ![lobingera](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lobingera/32/211_2.png) [@lobingera](https://discourse.julialang.org/u/lobingera)
#### Post date: [February 20, 2018, 6:26am UTC](https://discourse.julialang.org/t/issue-with-a-gtkreactive-example/9171/4 "2018-02-20T06:26:52Z")

</div>

After

> Pkg.pin(“Cairo”,v"0.4.0")

the example works - drawing in red, lines are recorded in blue.

---

<div class="post-metadata">

### Author: ![yakir12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yakir12/32/297_2.png) [@yakir12](https://discourse.julialang.org/u/yakir12)
#### Post date: [February 20, 2018, 6:29am UTC](https://discourse.julialang.org/t/issue-with-a-gtkreactive-example/9171/5 "2018-02-20T06:29:44Z")

</div>

Waaaaat… wow. So no idea why it’s not working for me 😲

---

<div class="post-metadata">

### Author: ![yakir12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yakir12/32/297_2.png) [@yakir12](https://discourse.julialang.org/u/yakir12)
#### Post date: [February 20, 2018, 9:41am UTC](https://discourse.julialang.org/t/issue-with-a-gtkreactive-example/9171/6 "2018-02-20T09:41:27Z")

</div>

It works!!!  
No flipping idea what went wrong.

---

<div class="post-metadata">

### Author: ![lobingera](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lobingera/32/211_2.png) [@lobingera](https://discourse.julialang.org/u/lobingera)
#### Post date: [February 20, 2018, 10:09am UTC](https://discourse.julialang.org/t/issue-with-a-gtkreactive-example/9171/7 "2018-02-20T10:09:15Z")

</div>

just to mention this: getting a julia repository into a well defined state (incl. package versions AND precompiled .ij) is still an experimental feature and you even see well known developers recommending to start over with an empty .julia/v0.6. I set my hopes into Pkg3.

---

<div class="post-metadata">

### Author: ![piever](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/piever/32/1815_2.png) [@piever](https://discourse.julialang.org/u/piever)
#### Post date: [February 21, 2018, 4:35pm UTC](https://discourse.julialang.org/t/issue-with-a-gtkreactive-example/9171/8 "2018-02-21T16:35:03Z")

</div>

I got a bit confused, I also get the same error as @lobingera:

` ERROR: Cairo.CairoContext must implement reset_transform`

I’ve seen the issues linked above and pinned to Cairo v0.4 and that fixed it, but shouldn’t GtkReactive add an upper bound on Cairo if it doesn’t support its latest release?

---

<div class="post-metadata">

### Author: ![yakir12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yakir12/32/297_2.png) [@yakir12](https://discourse.julialang.org/u/yakir12)
#### Post date: [February 21, 2018, 5:20pm UTC](https://discourse.julialang.org/t/issue-with-a-gtkreactive-example/9171/9 "2018-02-21T17:20:16Z")

</div>

Sounds good.

---

<div class="post-metadata">

### Author: ![TravisA9](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/travisa9/32/357_2.png) [@TravisA9](https://discourse.julialang.org/u/TravisA9)
#### Post date: [March 1, 2018, 5:39pm UTC](https://discourse.julialang.org/t/issue-with-a-gtkreactive-example/9171/10 "2018-03-01T17:39:30Z")

</div>

Did this ever get solved? Or did it just randomly stop failing for you. I’ve had this problem for a very long time (exactly as first described above).

Just to clarify… I have Cairo pinned at v0.4. I have tried the example from the REPL and from Juno and even tried to run it by copy-pasting the code and running it that way. In all cases the window is created and no errors are generated whatsoever but drawing does not work. Since no errors are thrown I am not sure where to look.

Unless the problem has been clearly identified I think it might be good to revisit this issue. There may be others having problems who -like myself- never said anything.

I don’t know if this is important but I have had this problem on three computers and through several versions of julia.

---

<div class="post-metadata">

### Author: ![lobingera](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lobingera/32/211_2.png) [@lobingera](https://discourse.julialang.org/u/lobingera)
#### Post date: [March 1, 2018, 6:05pm UTC](https://discourse.julialang.org/t/issue-with-a-gtkreactive-example/9171/11 "2018-03-01T18:05:36Z")

</div>

i’m working on a new release of Cairo inlc. this, but i have some github problems today, so i cannot test all - esp. recent 0.7
