JuliaPlots / PlotlyJS.jl

Julia library for plotting with plotly.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PlotlyJS breaks when Julia is started with multiple threads

murari0 opened this issue · comments

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), but as an example, something simple like the following:

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

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