Coder Social home page Coder Social logo

Comments (7)

beorostica avatar beorostica commented on May 27, 2024

This appears to be a duplicate of #473. The issue is described in https://discourse.julialang.org/t/plotlyjs-0-18-11-hangs-when-trying-using-but-only-the-first-time/105636/5.

from plotlyjs.jl.

NicolasRiel avatar NicolasRiel commented on May 27, 2024

I am not sure this is the same problem

I am having similar issues on Windows 10-11 and also Ubuntu 22

When adding my package on these machines it gets stuck during the pre-compilation of DashBasePlotlyJSExt (hangs forever).

It was working just fine before Julia 1.10

from plotlyjs.jl.

BeastyBlacksmith avatar BeastyBlacksmith commented on May 27, 2024

That is most likely JuliaPlots/PlotlyKaleido.jl#13

from plotlyjs.jl.

BeastyBlacksmith avatar BeastyBlacksmith commented on May 27, 2024

Please try 0.18.13

from plotlyjs.jl.

NicolasRiel avatar NicolasRiel commented on May 27, 2024

Hi, so version 0.18.13 does help with the pre-compilation on Windows, that can be completed now.

However, when "using my_package" it now loads forever (on Windows only). I have to cancel the "using my_package" and relaunch it several times before it is able to actually load the package. This is especially a problem for the CI as because of this it still fails on Windows!

Hope this helps, and thanks for the support

Nicolas

from plotlyjs.jl.

NicolasRiel avatar NicolasRiel commented on May 27, 2024

This is the error I get now when trying to use PlotlyJS on windows (after trying to load for 360min):

serial: Error During Test at D:\a\MAGEMinApp.jl\MAGEMinApp.jl\test\runtests.jl:15
  Got exception outside of a @test
  LoadError: InitError: InterruptException:
  Stacktrace:
    [1] poptask(W::Base.IntrusiveLinkedListSynchronized{Task})
      @ Base .\task.jl:974
    [2] wait()
      @ Base .\task.jl:983
    [3] wait(c::Base.GenericCondition{Base.Threads.SpinLock}; first::Bool)
      @ Base .\condition.jl:130
    [4] wait
      @ .\condition.jl:125 [inlined]
    [5] readuntil(x::Base.PipeEndpoint, c::UInt8; keep::Bool)
      @ Base .\stream.jl:1014
    [6] readuntil
      @ .\stream.jl:998 [inlined]
    [7] #readuntil#410
      @ .\io.jl:442 [inlined]
    [8] readuntil
      @ .\io.jl:442 [inlined]
    [9] readline(s::Pipe; keep::Bool)
      @ Base .\io.jl:548
   [10] readline
      @ .\io.jl:547 [inlined]
   [11] start(; plotly_version::Missing, mathjax::Missing, mathjax_version::VersionNumber, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
      @ PlotlyKaleido C:\Users\runneradmin\.julia\packages\PlotlyKaleido\HmwOd\src\PlotlyKaleido.jl:95
   [12] start
      @ C:\Users\runneradmin\.julia\packages\PlotlyKaleido\HmwOd\src\PlotlyKaleido.jl:29 [inlined]
   [13] __init__()
      @ PlotlyJS C:\Users\runneradmin\.julia\packages\PlotlyJS\b6MbQ\src\PlotlyJS.jl:104
   [14] register_restored_modules(sv::Core.SimpleVector, pkg::Base.PkgId, path::String)
      @ Base .\loading.jl:1115
   [15] _include_from_serialized(pkg::Base.PkgId, path::String, ocachepath::Nothing, depmods::Vector{Any})
      @ Base .\loading.jl:1061
   [16] _tryrequire_from_serialized(modkey::Base.PkgId, path::String, ocachepath::Nothing, sourcepath::String, depmods::Vector{Any})
      @ Base .\loading.jl:1391
   [17] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128)
      @ Base .\loading.jl:1494
   [18] _require(pkg::Base.PkgId, env::String)
      @ Base .\loading.jl:1783
   [19] _require_prelocked(uuidkey::Base.PkgId, env::String)
      @ Base .\loading.jl:1660
   [20] macro expansion
      @ .\loading.jl:1648 [inlined]
   [21] macro expansion
      @ .\lock.jl:267 [inlined]
   [22] require(into::Module, mod::Symbol)
      @ Base .\loading.jl:1611
   [23] include(fname::String)
      @ Base.MainInclude .\client.jl:478
   [24] macro expansion
      @ D:\a\MAGEMinApp.jl\MAGEMinApp.jl\test\runtests.jl:16 [inlined]
   [25] macro expansion
      @ C:\hostedtoolcache\windows\julia\1.9.4\x64\share\julia\stdlib\v1.9\Test\src\Test.jl:1498 [inlined]
   [26] top-level scope
      @ D:\a\MAGEMinApp.jl\MAGEMinApp.jl\test\runtests.jl:16
   [27] include(fname::String)
      @ Base.MainInclude .\client.jl:478
   [28] top-level scope
      @ none:6
   [29] eval
      @ .\boot.jl:370 [inlined]
   [30] exec_options(opts::Base.JLOptions)
      @ Base .\client.jl:280
   [31] _start()
      @ Base .\client.jl:522
  during initialization of module PlotlyJS
  in expression starting at D:\a\MAGEMinApp.jl\MAGEMinApp.jl\test\tests.jl:4

from plotlyjs.jl.

disberd avatar disberd commented on May 27, 2024

This should be solved now. See the related comment in #473 (comment) for more details.

Edit: It does not specifically solves this in 0.18.11, you'd need to update to 0.18.13 and make sure that the dependent PlotlyKaleido is at least at version 2.2.4 (which should happen automatically if you install PlotlyJS from now on)

from plotlyjs.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.