JuliaPlots / JuliaPlots/PlotlyJS.jl

PlotlyJS breaks when Julia is started with multiple threads

Open
#464 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
444
Forks
86
PR merge metrics
No merged PRs in 30d

Description

I am not able to produce any plots at all when running julia multi-threaded. I have attached the stacktrace as a separate file ([plotlyjs_threaded.log](https://github.com/JuliaPlots/PlotlyJS.jl/files/11592480/plotlyjs_threaded.log)), but as an example, something simple like the following:

```julia
using PlotlyJS
plot([1:10],[1:10])
```

which works when I start Julia single-threaded, fails with a `ConcurrencyViolationError("lock must be held")` when I start with multiple threads.

**Version info**

```julia
versioninfo()
Julia Version 1.9.0
Commit 8e630552924 (2023-05-07 11:25 UTC)
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: 20 × 12th Gen Intel(R) Core(TM) i7-12700
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-14.0.6 (ORCJIT, alderlake)
Threads: 16 on 20 virtual cores

using(Pkg);pkg"status"
Status `~/.julia/environments/v1.9/Project.toml`
[6e4b80f9] BenchmarkTools v1.3.2
[336ed68f] CSV v0.10.10
[a93c6f00] DataFrames v1.5.0
[b6b21f68] Ipopt v1.2.1
⌃ [4076af6c] JuMP v1.11.0
[b964fa9f] LaTeXStrings v1.3.0
[bdcacae8] LoopVectorization v0.12.159
[33e6dc65] MKL v0.6.0
[f0f68f2c] PlotlyJS v0.18.10
⌃ [91a5bcdd] Plots v1.38.11
⌃ [90137ffa] StaticArrays v1.5.24
Info Packages marked with ⌃ have new versions available and may be upgradable.
```
[plotlyjs_threaded.log](https://github.com/JuliaPlots/PlotlyJS.jl/files/11592480/plotlyjs_threaded.log)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.