# Makie crash

**URL:** <https://discourse.julialang.org/t/makie-crash/117942>\
**Category:** General Usage\
**Created:** [August 8, 2024, 6:21am UTC](https://discourse.julialang.org/t/makie-crash/117942 "2024-08-08T06:21:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sransome](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sransome/32/29810_2.png) [@sransome](https://discourse.julialang.org/u/sransome)\
**Post date:** [August 8, 2024, 6:21am UTC](https://discourse.julialang.org/t/makie-crash/117942/1 "2024-08-08T06:21:43Z")

</div>

I have a Makie based application that involves using the mesh! function. This line of code works fin in the repl but embedded in the application (its quite complex) everything crashes. Even the repl crashes.

```julia
mesh!(spr.axis,[1041.0 1261.0; 1348.0 1261.0; 1348.0 1280.0; 1041.0 1280.0], [1 2 3;3 4 1], color = (:green,0.4), shading = NoShading)

```

I had to record the screen to capture this message because the app errors , followed by the repl crashing immediately.

 ![image](https://global.discourse-cdn.com/julialang/original/3X/f/0/f073a7b86a7c9f033daae73e5f6951466eb727c6.jpeg)

There are no other messages.

Can anyone suggest how I might go about diagnosing this type of problem.  
tried restarting everything

using Windows 10, vscode with Julia ext 1.102.2 and v11.11.0-rc2  
tried to change back to v1.10.4 (by setting default using juliaup)  
but got this error…

```julia
Precompiling VSCodeServer
  1 dependency successfully precompiled in 13 seconds. 1 already precompiled.
┌ Warning: The active manifest file has dependencies that were resolved with a different julia version (1.11.0-rc2). Unexpected behavior may occur.
└ @ C:\Source\Julia\shares\Manifest.toml:0
ERROR: Could not locate the source code for the StyledStrings package. Are you trying to use a manifest generated by a different version of Julia?
Stacktrace:
  [1] pkgerror(msg::String)
    @ Pkg.Types C:\Users\steve\.julia\juliaup\julia-1.10.4+0.x64.w64.mingw32\share\julia\stdlib\v1.10\Pkg\src\Types.jl:70
  [2] is_package_downloaded(manifest_file::String, pkg::Pkg.Types.PackageSpec; platform::Base.BinaryPlatforms.Platform)
    @ Pkg.Operations C:\Users\steve\.julia\juliaup\julia-1.10.4+0.x64.w64.mingw32\share\julia\stdlib\v1.10\Pkg\src\Operations.jl:2194
  [3] is_package_downloaded
    @ C:\Users\steve\.julia\juliaup\julia-1.10.4+0.x64.w64.mingw32\share\julia\stdlib\v1.10\Pkg\src\Operations.jl:2191 [inlined]
  [4] #10
    @ C:\Users\steve\.julia\juliaup\julia-1.10.4+0.x64.w64.mingw32\share\julia\stdlib\v1.10\Pkg\src\Operations.jl:132 [inlined]
  [5] _all
    @ .\reduce.jl:1288 [inlined]

```

any hints how to overcome this issue so I can try 1.10.4?

Thanks  
Steve

---

<div class="post-metadata">

**Author:** ![DanielVandH](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/danielvandh/32/31134_2.png) [@DanielVandH](https://discourse.julialang.org/u/DanielVandH)\
**Post date:** [August 8, 2024, 6:23am UTC](https://discourse.julialang.org/t/makie-crash/117942/2 "2024-08-08T06:23:43Z")

</div>

For your latter issue with StyledStrings, try doing `] resolve` to re-resolve the manifest or just `] up`. That usually fixes it.

For your first issue: Could there be any bounds errors anywhere? Are you running Julia with inbounds checks?

---

<div class="post-metadata">

**Author:** ![sransome](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sransome/32/29810_2.png) [@sransome](https://discourse.julialang.org/u/sransome)\
**Post date:** [August 8, 2024, 9:09am UTC](https://discourse.julialang.org/t/makie-crash/117942/3 "2024-08-08T09:09:52Z")

</div>

Thanks Daniel,

] up solved the StyledStrings problem and I was able to reproduce the mesh! problem with 1.10.4.

I’m not familiar with how to change bounds checking in Julia. I have not used @inbounds and regularly get bounds errors when I make mistakes. There are several axis within the fig and the mesh! line fails on all of them.

Thanks  
Steve

---

<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 8, 2024, 10:57am UTC](https://discourse.julialang.org/t/makie-crash/117942/4 "2024-08-08T10:57:44Z")

</div>

Do you do anything with tasks/threads?

---

<div class="post-metadata">

**Author:** ![sransome](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sransome/32/29810_2.png) [@sransome](https://discourse.julialang.org/u/sransome)\
**Post date:** [August 8, 2024, 2:22pm UTC](https://discourse.julialang.org/t/makie-crash/117942/5 "2024-08-08T14:22:56Z")

</div>

Oh, Yes. Do I need to avoid and plotting function in threads?

Steve

---

<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 8, 2024, 3:16pm UTC](https://discourse.julialang.org/t/makie-crash/117942/6 "2024-08-08T15:16:31Z")

</div>

yes, GLMakie is not threadsafe…

---

<div class="post-metadata">

**Author:** ![sransome](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sransome/32/29810_2.png) [@sransome](https://discourse.julialang.org/u/sransome)\
**Post date:** [August 8, 2024, 10:50pm UTC](https://discourse.julialang.org/t/makie-crash/117942/7 "2024-08-08T22:50:29Z")

</div>

Ok, thanks.
