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

multithreading error: There isn't a current drawing #321

Closed
guo-yong-zhi opened this issue Oct 15, 2024 · 3 comments · Fixed by #322
Closed

multithreading error: There isn't a current drawing #321

guo-yong-zhi opened this issue Oct 15, 2024 · 3 comments · Fixed by #322

Comments

@guo-yong-zhi
Copy link
Contributor

guo-yong-zhi commented Oct 15, 2024

I found that Luxor's multithreading feature does not work well in Pkg test mode. The same code works well in my REPL (sometimes). I am not sure that if this is related to the test mode or the environment.
Additionally, it seems that everything works well on Windows, but not on Linux.
The minimum reproducing code: https://github.com/guo-yong-zhi/WordCloud.jl/blob/multithread_debug/test/runtests.jl
The error message (CI): https://github.com/guo-yong-zhi/WordCloud.jl/actions/runs/11340408881/job/31536783739

The way to reproduce:

  1. Clone the repo and checkout to the branch multithread_debug
  2. Run cd WordCloud.jl
  3. Run julia -t 4
  4. Run ] dev .
  5. Run ] test WordCloud

@cormullion @oheil

@cormullion
Copy link
Member

Thanks for the report. Someone who understands multithreading (ie not me) might be able to investigate.

@oheil
Copy link
Contributor

oheil commented Oct 15, 2024

I will have a look, my time is very short, but I hope for next weekend or the next...

@oheil
Copy link
Contributor

oheil commented Oct 20, 2024

As easy the solution seems, it took me the whole sunday to find ;-)

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

Successfully merging a pull request may close this issue.

3 participants