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

LoadError: Javascript error #116

Closed
mfariacastro opened this issue May 3, 2017 · 3 comments
Closed

LoadError: Javascript error #116

mfariacastro opened this issue May 3, 2017 · 3 comments

Comments

@mfariacastro
Copy link

Hi, there's an error I get occasionally, but I have found it extremely hard to replicate. It arises sometimes when I try to plot stuff with plotlyjs, but not always, and I have been unable to come up with a minimal working example. Maybe the error itself is informative enough? Sorry for not being able to say more about it.

ERROR: LoadError: Javascript error      ReferenceError: svg_f01d1be0 is not defined
 in #js#5(::Bool, ::Function, ::Blink.Page, ::Blink.JSString) at C:\Users\mdf34\.julia\v0.5\Blink\src\rpc\rpc.jl:41
 in (::Blink.#kw##js)(::Array{Any,1}, ::Blink.#js, ::Blink.Page, ::Blink.JSString) at .\<missing>:0
 in #js#11(::Bool, ::Function, ::Blink.AtomShell.Window, ::Blink.JSString) at C:\Users\mdf34\.julia\v0.5\Blink\src\AtomShell\window.jl:128
 in (::Blink.#kw##js)(::Array{Any,1}, ::Blink.#js, ::Blink.AtomShell.Window, ::Blink.JSString) at .\<missing>:0 (repeats 2 times)
 in #js#72(::Bool, ::Function, ::PlotlyJS.ElectronDisplay, ::Blink.JSString) at C:\Users\mdf34\.julia\v0.5\PlotlyJS\src\displays\electron.jl:230
 in (::Blink.#kw##js)(::Array{Any,1}, ::Blink.#js, ::PlotlyJS.ElectronDisplay, ::Blink.JSString) at .\<missing>:0 (repeats 2 times)
 in svg_data(::PlotlyJS.SyncPlot{PlotlyJS.ElectronDisplay}, ::String, ::Bool) at C:\Users\mdf34\.julia\v0.5\PlotlyJS\src\displays\electron.jl:215
 in #savefig#202(::Symbol, ::Function, ::PlotlyJS.SyncPlot{PlotlyJS.ElectronDisplay}, ::String) at C:\Users\mdf34\.julia\v0.5\PlotlyJS\src\savefig.jl:126
 in savefig(::PlotlyJS.SyncPlot{PlotlyJS.ElectronDisplay}, ::String) at C:\Users\mdf34\.julia\v0.5\PlotlyJS\src\savefig.jl:106
 in plotlyjs_save_hack(::IOStream, ::Plots.Plot{Plots.PlotlyJSBackend}, ::String) at C:\Users\mdf34\.julia\v0.5\Plots\src\backends\plotlyjs.jl:98
 in show(::IOStream, ::MIME{Symbol("image/png")}, ::Plots.Plot{Plots.PlotlyJSBackend}) at C:\Users\mdf34\.julia\v0.5\Plots\src\output.jl:197
 in png(::Plots.Plot{Plots.PlotlyJSBackend}, ::String) at C:\Users\mdf34\.julia\v0.5\Plots\src\output.jl:8
 in savefig(::Plots.Plot{Plots.PlotlyJSBackend}, ::String) at C:\Users\mdf34\.julia\v0.5\Plots\src\output.jl:116
 in #solve_model#37(::Float64, ::Int64, ::Function, ::Model_Structure) at C:\Users\mdf34\quantecon\master_file.jl:602
 in solve_model(::Model_Structure) at C:\Users\mdf34\quantecon\master_file.jl:529
 in include_from_node1(::String) at .\loading.jl:488
while loading C:\Users\mdf34\quantecon\master_file.jl, in expression starting on line 188
@sglyon
Copy link
Member

sglyon commented May 4, 2017

Thanks for reporting @mfariacastro .

This shouldn't be happening, but my guess is that when it does it happens on your first attempt to save a figure in a given Julia session?

I'll try to look into it soon -- in the meantime if you get any more info on what triggers it please post here.

@mfariacastro
Copy link
Author

This shouldn't be happening, but my guess is that when it does it happens on your first attempt to save a figure in a given Julia session?

That is correct. I have a .jl file that performs a number of computations and then tries to plot and save a series of figures. It typically crashes when trying to save the first figure and generates the said error. I will try to pin down under what conditions I can replicate it.

@sglyon
Copy link
Member

sglyon commented Dec 13, 2017

Closing due to inactivity. Please re-open if this is still an issue we can help with

@sglyon sglyon closed this as completed Dec 13, 2017
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