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

WebIO/Blink random failure with PlotlyJS #505

Open
mzaffalon opened this issue Jan 12, 2023 · 2 comments
Open

WebIO/Blink random failure with PlotlyJS #505

mzaffalon opened this issue Jan 12, 2023 · 2 comments

Comments

@mzaffalon
Copy link

Since a couple of days, I get intermittent failures. I am not experienced enough to know if this is a WebIO or a Blink problem.

   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.8.4 (2022-12-23)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(@v1.8) pkg> activate .
  Activating project at `C:\Users\michele.zaffalon\tmp`

julia> using WebIO, PlotlyJS

julia> plot(scatter(y=randn(100)))
[ Info: Listening on: 127.0.0.1:9404, thread id: 1

julia> plot(scatter(y=randn(100)))

julia> plot(scatter(y=randn(100)))

julia> plot(scatter(y=randn(100)))

julia> plot(scatter(y=randn(100)))

julia> plot(scatter(y=randn(100)))
┌ Error: An error occurred while trying to initialize a Blink window!
│   exception =
│    Javascript error   ReferenceError: webio is not defined
│    Stacktrace:
│     [1] js(o::Blink.Page, js::WebIO.JSString; callback::Bool)
│       @ Blink C:\Users\michele.zaffalon\.julia\packages\Blink\SMxOp\src\rpc\rpc.jl:53
│     [2] js(win::Blink.AtomShell.Window, s::WebIO.JSString; callback::Bool)
│       @ Blink.AtomShell C:\Users\michele.zaffalon\.julia\packages\Blink\SMxOp\src\AtomShell\window.jl:263
│     [3] js(o::Blink.AtomShell.Window, j::Expr; callback::Bool)
│       @ Blink C:\Users\michele.zaffalon\.julia\packages\Blink\SMxOp\src\rpc\rpc.jl:61
│     [4] js
│       @ C:\Users\michele.zaffalon\.julia\packages\Blink\SMxOp\src\rpc\rpc.jl:61 [inlined]
│     [5] initwebio!(w::Blink.AtomShell.Window)
│       @ Blink.AtomShell C:\Users\michele.zaffalon\.julia\packages\Blink\SMxOp\src\AtomShell\webio.jl:17
│     [6] initwindow!(w::Blink.AtomShell.Window, callback_cond::Condition)
│       @ Blink.AtomShell C:\Users\michele.zaffalon\.julia\packages\Blink\SMxOp\src\AtomShell\window.jl:92
│     [7] (::Blink.AtomShell.var"#9#10"{Blink.AtomShell.Window, Condition})()
│       @ Blink.AtomShell .\task.jl:484
└ @ Blink.AtomShell C:\Users\michele.zaffalon\.julia\packages\Blink\SMxOp\src\AtomShell\window.jl:69

(tmp) pkg> st
Status `C:\Users\michele.zaffalon\tmp\Project.toml`
  [f0f68f2c] PlotlyJS v0.18.10
  [0f1e0344] WebIO v0.8.20
@mzaffalon
Copy link
Author

Related JuliaPlots/PlotlyJS.jl#460.

@takbal
Copy link

takbal commented Feb 18, 2023

The issue seems to be introduced with the recent (2023/01/06) v0.12.6 release of Blink.

Adding [email protected] seems to solve the issue, even with latest PlotlyJS and WebIO.

Created the same ticket in Blink:

JuliaGizmos/Blink.jl#300

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

2 participants