# Warnings when pre-compiling GLMakie

**URL:** <https://discourse.julialang.org/t/warnings-when-pre-compiling-glmakie/118615>\
**Category:** General Usage\
**Tags:** question, package, glmakie\
**Created:** [August 26, 2024, 9:43am UTC](https://discourse.julialang.org/t/warnings-when-pre-compiling-glmakie/118615 "2024-08-26T09:43:24Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [August 26, 2024, 9:43am UTC](https://discourse.julialang.org/t/warnings-when-pre-compiling-glmakie/118615/1 "2024-08-26T09:43:24Z")

</div>

If I freshly install GLMakie I get the following warnings:

```julia
┌ GLMakie
│ [pid 70482] waiting for IO to finish:
│ Handle type uv_handle_t->data
│ timer 0x60503c7f60f0->0x714926932110
│ This means that a package has started a background task or event source that has not finished running. For precompilation to complete successfully, the event source needs to be closed explicitly. See the developer documentation on fixing precompilation hangs for more help.
│  
│ [pid 70482] waiting for IO to finish:
│ Handle type uv_handle_t->data
│ timer 0x60503c7f60f0->0x714926932110
│ This means that a package has started a background task or event source that has not finished running. For precompilation to complete successfully, the event source needs to be closed explicitly. See the developer documentation on fixing precompilation hangs for more help.
└  

```

How can this be fixed?

In addition, if I execute the following script:

```julia
#!/bin/bash -eu
rm -rf /tmp/testdepot
mkdir /tmp/testdepot
rm -rf /tmp/test
mkdir /tmp/test
cd /tmp/test
export JULIA_DEPOT_PATH=/tmp/testdepot 
julia --project="." -e "using Pkg; Pkg.add(\"KiteViewers\"); using KiteViewers; Pkg.test(\"KiteViewers\")"

```

I get the following, additional warnings:

```julia
┌ GLMakie
│ WARNING: Makie.Combined is deprecated, use Plot instead.
│ likely near none:1
│ WARNING: importing deprecated binding Makie.Combined into GLMakie.
│ , use Plot instead.
│ WARNING: Makie.ContinuousSurface is deprecated, use VertexGrid instead.
│ likely near none:1
│ WARNING: importing deprecated binding Makie.ContinuousSurface into GLMakie.
│ , use VertexGrid instead.
│ WARNING: Makie.DiscreteSurface is deprecated, use CellGrid instead.
│ likely near none:1
│ WARNING: importing deprecated binding Makie.DiscreteSurface into GLMakie.
│ , use CellGrid instead.
└  

```

This is strange, because the functions Combined or ContinousSurface are not used, neither in KiteViewers not in GLMakie.

Any idea where these warnings might be coming from?

This line `likely near none:1` is also strange.

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [August 26, 2024, 12:12pm UTC](https://discourse.julialang.org/t/warnings-when-pre-compiling-glmakie/118615/2 "2024-08-26T12:12:09Z")

</div>

> [@ufechner7](#):
>
> In addition, if I execute the following script:

I think your script is broken. Also, for what is worth you can reduce it to a single line

```sh
#!/bin/bash -eu
JULIA_DEPOT_PATH=$(mktemp -d) julia -e 'using Pkg; Pkg.activate(; temp=true); Pkg.add("KiteViewers"); using KiteViewers; Pkg.test("KiteViewers")' 

```

> [@ufechner7](#):
>
> Any idea where these warnings might be coming from?

[https://docs.julialang.org/en/v1/devdocs/precompile\_hang/](https://docs.julialang.org/en/v1/devdocs/precompile_hang/)

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [August 26, 2024, 12:21pm UTC](https://discourse.julialang.org/t/warnings-when-pre-compiling-glmakie/118615/3 "2024-08-26T12:21:04Z")

</div>

> [@giordano](#):
>
> I think your script is broken.

Fixed.

But your link only give a hint regarding the timer warnings, not regarding the “deprecated” warnings.

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [August 27, 2024, 7:46pm UTC](https://discourse.julialang.org/t/warnings-when-pre-compiling-glmakie/118615/4 "2024-08-27T19:46:24Z")

</div>

Bump. How can we debug the source of these warnings:

```julia
┌ GLMakie
│ WARNING: Makie.Combined is deprecated, use Plot instead.
│ likely near none:1
│ WARNING: importing deprecated binding Makie.Combined into GLMakie.
│ , use Plot instead.
│ WARNING: Makie.ContinuousSurface is deprecated, use VertexGrid instead.
│ likely near none:1
│ WARNING: importing deprecated binding Makie.ContinuousSurface into GLMakie.
│ , use VertexGrid instead.
│ WARNING: Makie.DiscreteSurface is deprecated, use CellGrid instead.
│ likely near none:1
│ WARNING: importing deprecated binding Makie.DiscreteSurface into GLMakie.
│ , use CellGrid instead.
└

```

?

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [August 27, 2024, 7:55pm UTC](https://discourse.julialang.org/t/warnings-when-pre-compiling-glmakie/118615/5 "2024-08-27T19:55:59Z")

</div>

> [@ufechner7](#):
>
> How can we debug the source of these warnings:
> 
> `┌ GLMakie`

Wild guess: source code of `GLMakie`?

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [August 27, 2024, 9:38pm UTC](https://discourse.julialang.org/t/warnings-when-pre-compiling-glmakie/118615/6 "2024-08-27T21:38:40Z")

</div>

Well, I checked it, but the functions that are depreciated are not called.

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [August 27, 2024, 9:45pm UTC](https://discourse.julialang.org/t/warnings-when-pre-compiling-glmakie/118615/7 "2024-08-27T21:45:38Z")

</div>

What did you check? What version of GLMakie do you have in your environment?

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [August 27, 2024, 10:15pm UTC](https://discourse.julialang.org/t/warnings-when-pre-compiling-glmakie/118615/8 "2024-08-27T22:15:59Z")

</div>

> [@giordano](#):
>
> What version of GLMakie do you have in your environment?

```julia
Project KiteViewers v0.4.17
Status `~/repos/KiteViewers.jl/Project.toml`
  [5789e2e9] FileIO v1.16.3
  [e9467ef8] GLMakie v0.10.9
  [5c1252a2] GeometryBasics v0.4.11
  [82f05805] Joysticks v0.1.4
  [90980105] KiteUtils v0.7.8
  [d96e819e] Parameters v0.12.3
  [aea7be01] PrecompileTools v1.2.1
  [189a3867] Reexport v1.2.2
  [6038ab10] Rotations v1.7.1
  [90137ffa] StaticArrays v1.9.7
  [21f18d07] Timers v0.1.5
  [37e2e46d] LinearAlgebra
  [44cfe95a] Pkg v1.10.0
  [de0858da] Printf

```

With the latest version of GLMakie there are less warnings:

```julia
 GLMakie
│ WARNING: Makie.ContinuousSurface is deprecated, use VertexGrid instead.
│ likely near none:1
│ WARNING: importing deprecated binding Makie.ContinuousSurface into GLMakie.
│ , use VertexGrid instead.
│ WARNING: Makie.DiscreteSurface is deprecated, use CellGrid instead.
│ likely near none:1
│ WARNING: importing deprecated binding Makie.DiscreteSurface into GLMakie.
│ , use CellGrid instead.

```

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [August 27, 2024, 10:34pm UTC](https://discourse.julialang.org/t/warnings-when-pre-compiling-glmakie/118615/9 "2024-08-27T22:34:15Z")

</div>

> [@giordano](#):
>
> What did you check?

```julia
ufechner@ufryzen:~/repos/Makie.jl$ grep -r ContinuousSurface .
./test/deprecated.jl: @test ContinuousSurface == VertexGrid
./test/deprecated.jl: msg = @depwarn_message ContinuousSurface()
./test/deprecated.jl: @test occursin("ContinuousSurface is deprecated", msg)
./src/deprecated.jl:Base.@deprecate_binding ContinuousSurface VertexGrid true

```

and

```julia
ufechner@ufryzen:~/repos/Makie.jl$ grep -r DiscreteSurface .
./test/deprecated.jl: @test DiscreteSurface == CellGrid
./test/deprecated.jl: msg = @depwarn_message DiscreteSurface()
./test/deprecated.jl: @test occursin("DiscreteSurface is deprecated", msg)
./src/deprecated.jl:Base.@deprecate_binding DiscreteSurface CellGrid true

```

In other words, these functions only exist in the test script `depreciated.jl`. But this script should not be executed if I test KiteViewers.jl.

It might be worth to mention that GLMakie is a sub-module of Makie.jl.

---

<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:** [August 27, 2024, 10:36pm UTC](https://discourse.julialang.org/t/warnings-when-pre-compiling-glmakie/118615/10 "2024-08-27T22:36:04Z")

</div>

> <https://github.com/MakieOrg/Makie.jl/pull/4143>
>
> Fixes https://github.com/MakieOrg/Makie.jl/issues/4140

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [August 27, 2024, 10:40pm UTC](https://discourse.julialang.org/t/warnings-when-pre-compiling-glmakie/118615/11 "2024-08-27T22:40:36Z")

</div>

OK, there is some progress, which is nice. But the issue is not fixed yet, at least not in GLMakie 0.10.9.

---

<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:** [August 27, 2024, 10:41pm UTC](https://discourse.julialang.org/t/warnings-when-pre-compiling-glmakie/118615/12 "2024-08-27T22:41:31Z")

</div>

Yeah the rest need to get the same treatment 😉
