# Recent errors with WGLMakie on Pluto

**URL:** <https://discourse.julialang.org/t/recent-errors-with-wglmakie-on-pluto/64859>\
**Category:** Visualization\
**Tags:** pluto, makie\
**Created:** [July 18, 2021, 1:47pm UTC](https://discourse.julialang.org/t/recent-errors-with-wglmakie-on-pluto/64859 "2021-07-18T13:47:26Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Post date:** [July 18, 2021, 1:47pm UTC](https://discourse.julialang.org/t/recent-errors-with-wglmakie-on-pluto/64859/1 "2021-07-18T13:47:26Z")

</div>

I don’t know what happened but I started getting this warning on a previously working Pluto notebook with WGLMakie plots:

```julia
┌ Warning: Waiting for page sessions to load.
│ This can happen for the first cells to run, or is indicative of faulty state
└ @ JSServe ~/.julia/packages/JSServe/E7QrV/src/display.jl:162

```

After the warning is shown in the Julia REPL, the following error is thrown in the Pluto cell:

```julia
Failed to show value:

Could not initialize Page. Open an issue at JSServe.jl.

error(::String)@error.jl:33
assure_ready(::JSServe.Page)@display.jl:169
show_in_page(::JSServe.Page, ::JSServe.App)@display.jl:262
show(::IOContext{IOBuffer}, ::MIME{Symbol("text/html")}, ::JSServe.App)@display.jl:377
backend_show@display.jl:25[inlined]
show(::IOContext{IOBuffer}, ::MIME{Symbol("text/html")}, ::Makie.Scene)@display.jl:117
show@display.jl:106[inlined]
show(::IOContext{IOBuffer}, ::MIME{Symbol("text/html")}, ::Makie.FigureAxisPlot)@display.jl:105
show_richest(::IOContext{IOBuffer}, ::Any)@PlutoRunner.jl:654
var"#sprint_withreturned#28"(::IOContext{Base.DevNull}, ::Int64, ::typeof(Main.PlutoRunner.sprint_withreturned), ::Function, ::Makie.FigureAxisPlot)@PlutoRunner.jl:591
format_output_default(::Any, ::Any)@PlutoRunner.jl:515
#format_output#17@PlutoRunner.jl:532[inlined]
formatted_result_of(::Base.UUID, ::Bool, ::Nothing, ::Module)@PlutoRunner.jl:448
top-level scope@none:1

```

Is there any recent update to the Makie or Pluto stack that could have caused it?

---

<div class="post-metadata">

**Author:** ![erickn](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/erickn/32/27431_2.png) [@erickn](https://discourse.julialang.org/u/erickn)\
**Post date:** [July 27, 2021, 7:34am UTC](https://discourse.julialang.org/t/recent-errors-with-wglmakie-on-pluto/64859/2 "2021-07-27T07:34:44Z")

</div>

I have the exactly same issue… Any hint to fix the issue would be appreciated.

---

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [July 27, 2021, 9:48am UTC](https://discourse.julialang.org/t/recent-errors-with-wglmakie-on-pluto/64859/3 "2021-07-27T09:48:42Z")

</div>

What are your versions and what did you run? I can’t reproduce it with the newest Pluto + WGLMakie version…  
Note, that the `Page()` thing is a bit brittle and absolutely must be displayed before anything else… And if it isn’t, one currently needs to restart the notebook.

 ![image](https://global.discourse-cdn.com/julialang/original/3X/7/d/7d9923c2bb25f666cc6bd9281d914b7f44154abc.png)

---

<div class="post-metadata">

**Author:** ![erickn](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/erickn/32/27431_2.png) [@erickn](https://discourse.julialang.org/u/erickn)\
**Post date:** [July 27, 2021, 9:44pm UTC](https://discourse.julialang.org/t/recent-errors-with-wglmakie-on-pluto/64859/4 "2021-07-27T21:44:33Z")

</div>

Hi, Simon,  
I am using the newest packages on Julia 1.6.  
I followed your suggestion carefully, and it works now! It seems still fragile, but now I know how to make it work.  
Thank you very much.

---

<div class="post-metadata">

**Author:** ![KajWiik](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kajwiik/32/199_2.png) [@KajWiik](https://discourse.julialang.org/u/KajWiik)\
**Post date:** [July 28, 2021, 9:52am UTC](https://discourse.julialang.org/t/recent-errors-with-wglmakie-on-pluto/64859/5 "2021-07-28T09:52:54Z")

</div>

With

```julia
[824d6782] JSServe v1.2.3
[276b4fcb] WGLMakie v0.4.4
[c3e4b0f8] Pluto v0.15.1

```

and

```julia
using WGLMakie, JSServe; JSServe.Page()
scatter(1:4)

```

I get an error

```julia
Could not initialize Page. Open an issue at JSServe.jl.

error(::String)@error.jl:33
assure_ready(::JSServe.Page)@display.jl:169
show_in_page(::JSServe.Page, ::JSServe.App)@display.jl:262
show(::IOContext{IOBuffer}, ::MIME{Symbol("text/html")}, ::JSServe.App)@display.jl:377
backend_show@display.jl:25[inlined]
var"#show#910"(::Bool, ::typeof(show), ::IOContext{IOBuffer}, ::MIME{Symbol("text/html")}, ::Makie.Scene)@display.jl:113
show@display.jl:107[inlined]
#show#909@display.jl:104[inlined]
show@display.jl:104[inlined]
#show#908@display.jl:103[inlined]
show(::IOContext{IOBuffer}, ::MIME{Symbol("text/html")}, ::Makie.FigureAxisPlot)@display.jl:103
show_richest(::IOContext{IOBuffer}, ::Any)@PlutoRunner.jl:654
var"#sprint_withreturned#28"(::IOContext{Base.DevNull}, ::Int64, ::typeof(Main.PlutoRunner.sprint_withreturned), ::Function, ::Makie.FigureAxisPlot)@PlutoRunner.jl:591
format_output_default(::Any, ::Any)@PlutoRunner.jl:515
#format_output#17@PlutoRunner.jl:532[inlined]
formatted_result_of(::Base.UUID, ::Bool, ::Nothing, ::Module)@PlutoRunner.jl:448
top-level scope@none:1

```

Any suggestions?

---

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [July 28, 2021, 10:07am UTC](https://discourse.julialang.org/t/recent-errors-with-wglmakie-on-pluto/64859/6 "2021-07-28T10:07:48Z")

</div>

The Page needs to be displayed! So it needs it’s own cell

---

<div class="post-metadata">

**Author:** ![KajWiik](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kajwiik/32/199_2.png) [@KajWiik](https://discourse.julialang.org/u/KajWiik)\
**Post date:** [July 28, 2021, 10:31am UTC](https://discourse.julialang.org/t/recent-errors-with-wglmakie-on-pluto/64859/7 "2021-07-28T10:31:56Z")

</div>

So different from what you suggested earlier, Should `JSServe.Page()` be in own cell afterall?

![Screenshot from 2021-07-28 13-30-04](https://global.discourse-cdn.com/julialang/original/3X/e/a/eac2b9a7fb52e63335522825581a4cf6769b69e1.png)

---

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [July 28, 2021, 11:04am UTC](https://discourse.julialang.org/t/recent-errors-with-wglmakie-on-pluto/64859/8 "2021-07-28T11:04:48Z")

</div>

> So different from what you suggested earlier

> [@sdanisch](#):
>
> Note, that the `Page()` thing is a bit brittle and absolutely must be displayed before anything else… And if it isn’t, one currently needs to restart the notebook.

I’m not sure how that could imply anything else, but displaying the page before displaying anything else 😃  
The screenshot I posted should also help clearing up any confusion…

Did you restart the notebook after changing the order of how you display things?

---

<div class="post-metadata">

**Author:** ![KajWiik](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kajwiik/32/199_2.png) [@KajWiik](https://discourse.julialang.org/u/KajWiik)\
**Post date:** [July 28, 2021, 12:40pm UTC](https://discourse.julialang.org/t/recent-errors-with-wglmakie-on-pluto/64859/9 "2021-07-28T12:40:50Z")

</div>

For sure I am confused but because I usually am, I am getting used to it 😀.

So I did exactly like you suggested in the screenshot and got that error message, I have also updated Pluto, JSServe, and WGLMakie and restarted Pluto & Julia multiple times.

So should I run JSServe.Page() in a separate cell?

---

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [July 28, 2021, 3:34pm UTC](https://discourse.julialang.org/t/recent-errors-with-wglmakie-on-pluto/64859/10 "2021-07-28T15:34:37Z")

</div>

Yes!

```julia
# cell 1
begin 
    using WGLMakie, JSServe
    Page()
end
# cell 2
begin 
    scatter(1:4)
end

```

If that errors in a completely fresh Pluto session, try opening the browser console (e.g with `ctrl+shift+i`) and post any errors here…

---

<div class="post-metadata">

**Author:** ![KajWiik](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kajwiik/32/199_2.png) [@KajWiik](https://discourse.julialang.org/u/KajWiik)\
**Post date:** [July 28, 2021, 6:49pm UTC](https://discourse.julialang.org/t/recent-errors-with-wglmakie-on-pluto/64859/11 "2021-07-28T18:49:21Z")

</div>

```julia
​ Pluto.jl, by Fons van der Plas (https://github.com/fonsp) and Mikołaj Bochenski (https://github.com/malyvsen) 🌈
PlutoConnection.js:178 Waiting for socket to open... 8:09:58 PM
PlutoConnection.js:170 Socket opened 8:09:58 PM
PlutoConnection.js:382 Hello?
PlutoConnection.js:384 Hello!
PlutoConnection.js:388 Object
edit:1 The resource http://localhost:1234/vollkorn.css was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
:9284/assetserver/f3e1e8e1744164fefa445efb54668db6d79a24e3-msgpack.min.js:1 Failed to load resource: net::ERR_CONNECTION_REFUSED
:9284/assetserver/645855f771322469535815cb5dea8e630ac14e9c-pako_inflate.min.js:1 Failed to load resource: net::ERR_CONNECTION_REFUSED
:9284/assetserver/e58d102035c659a26a986f7b29e7c436a39fc341-Base64.js:1 Failed to load resource: net::ERR_CONNECTION_REFUSED
:9284/assetserver/1c70c4e8746f3df4bfca03207c324380c20399aa-JSServe.js:1 Failed to load resource: net::ERR_CONNECTION_REFUSED
CellOutput.js:288 Couldn't execute script: <script data-jscall-id=​"9" type=​"text/​javascript">​…​</script>​
execute_scripttags @ CellOutput.js:288
CellOutput.js:290 TypeError: JSServe.track_deleted_sessions is not a function
    at eval (eval at execute_dynamic_function (CellOutput.js:204), <anonymous>:7:13)
    at eval (eval at execute_dynamic_function (CellOutput.js:204), <anonymous>:11:3)
    at execute_dynamic_function (CellOutput.js:204)
    at execute_scripttags (CellOutput.js:264)
    at async CellOutput.js:333
execute_scripttags @ CellOutput.js:290
Logging.js:21 ┌ Warn: Waiting for page sessions to load.
                This can happen for the first cells to run, or is indicative of faulty state
handle_log @ Logging.js:21
CellOutput.js:288 Couldn't execute script: <script data-jscall-id=​"18" type=​"text/​javascript">​…​</script>​
execute_scripttags @ CellOutput.js:288
CellOutput.js:290 TypeError: JSServe.track_deleted_sessions is not a function
    at eval (eval at execute_dynamic_function (CellOutput.js:204), <anonymous>:7:13)
    at eval (eval at execute_dynamic_function (CellOutput.js:204), <anonymous>:11:3)
    at execute_dynamic_function (CellOutput.js:204)
    at execute_scripttags (CellOutput.js:264)
    at async CellOutput.js:333
execute_scripttags @ CellOutput.js:290
Logging.js:21 ┌ Warn: Waiting for page sessions to load.
                This can happen for the first cells to run, or is indicative of faulty state
handle_log @ Logging.js:21

```

---

<div class="post-metadata">

**Author:** ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Post date:** [July 28, 2021, 7:00pm UTC](https://discourse.julialang.org/t/recent-errors-with-wglmakie-on-pluto/64859/12 "2021-07-28T19:00:55Z")

</div>

@sdanisch this error started happening even with the correct setup. That is why I opened this discussion here. You can find a reproducible example in my JuliaCon talk: [https://github.com/juliohm/JuliaCon2021](https://github.com/juliohm/JuliaCon2021)

The first plots of the notebook work fine but the last plots sometimes fail.

---

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [July 29, 2021, 7:43am UTC](https://discourse.julialang.org/t/recent-errors-with-wglmakie-on-pluto/64859/13 "2021-07-29T07:43:59Z")

</div>

Hm, do you have any more details? I can run that notebook just fine…  
Any specific browser? Are you exporting the notebook to html? What Pluto version?

---

<div class="post-metadata">

**Author:** ![KajWiik](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kajwiik/32/199_2.png) [@KajWiik](https://discourse.julialang.org/u/KajWiik)\
**Post date:** [July 29, 2021, 8:44am UTC](https://discourse.julialang.org/t/recent-errors-with-wglmakie-on-pluto/64859/14 "2021-07-29T08:44:55Z")

</div>

The notebook runs now locally OK, thanks for your time! I was trying to run it on a server via ssh tunnel and that did not work. Is there some communication going on that uses other ports than 1234?

---

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [July 29, 2021, 9:50am UTC](https://discourse.julialang.org/t/recent-errors-with-wglmakie-on-pluto/64859/15 "2021-07-29T09:50:08Z")

</div>

Yes:  
[http://makie.juliaplots.org/stable/remote.html#WGLMakie](http://makie.juliaplots.org/stable/remote.html#WGLMakie)

---

<div class="post-metadata">

**Author:** ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Post date:** [July 29, 2021, 10:56am UTC](https://discourse.julialang.org/t/recent-errors-with-wglmakie-on-pluto/64859/16 "2021-07-29T10:56:01Z")

</div>

I remember the issue started when I updated from Julia v1.6.0 to Julia v1.6.2 and also updated Pluto to v0.15.1. I downgraded to Julia v1.6.0 but the error was still there. I was running Pluto on Chromium Version 92.0.4515.107 (Official Build) Arch Linux (64-bit).

```julia
Julia Version 1.6.2
Commit 1b93d53fc4 (2021-07-14 15:36 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.1 (ORCJIT, skylake)
Environment:
  JULIA_NUM_THREADS = 8

```

Will try to run again today to see if the error is still there.

---

<div class="post-metadata">

**Author:** ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Post date:** [July 29, 2021, 11:04am UTC](https://discourse.julialang.org/t/recent-errors-with-wglmakie-on-pluto/64859/17 "2021-07-29T11:04:31Z")

</div>

Now this is what I get when I open the notebook:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/0/d/0dadda2027df9e73046fcdada61a9b04027634d7.png)

---

<div class="post-metadata">

**Author:** ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Post date:** [July 29, 2021, 11:31am UTC](https://discourse.julialang.org/t/recent-errors-with-wglmakie-on-pluto/64859/18 "2021-07-29T11:31:13Z")

</div>

I think this latest issue may be related to a recent update on Manjaro. The Makie window is showing that my GPU may not support WebGL, but that is definitely not true as I was using it just fine for months.

Trying o debug it…

---

<div class="post-metadata">

**Author:** ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Post date:** [July 29, 2021, 11:54am UTC](https://discourse.julialang.org/t/recent-errors-with-wglmakie-on-pluto/64859/19 "2021-07-29T11:54:47Z")

</div>

Yes, suddenly everything started working again 🤷🏽‍♂️
