Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PlotlyJS breaks when Julia is started with multiple threads #464

Open
murari0 opened this issue May 29, 2023 · 0 comments
Open

PlotlyJS breaks when Julia is started with multiple threads #464

murari0 opened this issue May 29, 2023 · 0 comments

Comments

@murari0
Copy link

murari0 commented May 29, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant