Makie crash

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.

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.

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…

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

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?

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

Do you do anything with tasks/threads?

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

Steve

yes, GLMakie is not threadsafe…

1 Like

Ok, thanks.