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

RE: EOFError: read end of file #105

Closed
mdhe1248 opened this issue Jan 11, 2017 · 6 comments
Closed

RE: EOFError: read end of file #105

mdhe1248 opened this issue Jan 11, 2017 · 6 comments

Comments

@mdhe1248
Copy link

I have this issue:
I installed the generic linux binary Julia0.5. Then I wanted to use plotly. However, I encountered an error. "EOFError: read end of file".

I ran the commends below:

julia> Pkg.init()
julia> Pkg.add("PlotlyJS")
julia> using PlotlyJS
INFO: Recompiling stale cache file /home/donghoon/.julia/lib/v0.5/PlotlyJS.ji for module PlotlyJS.
WARNING: using Lazy.remove in module AtomShell conflicts with an existing identifier.          

julia> Blink.AtomShell.install()
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  386k  100  386k    0     0   839k      0 --:--:-- --:--:-- --:--:--  839k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   159    0   159    0     0   1242      0 --:--:-- --:--:-- --:--:--  1251
  0     0    0   606    0     0   3241      0 --:--:-- --:--:-- --:--:--  3241
100 35.2M  100 35.2M    0     0  5288k      0  0:00:06  0:00:06 --:--:-- 5843k


julia> plot(1:10)
EOFError: read end of file
 in read at ./iobuffer.jl:88 [inlined]
 in read(::TCPSocket, ::Type{UInt8}) at ./stream.jl:787
 in byteat at /home/donghoon/.julia/v0.5/JSON/src/Parser.jl:55 [inlined]
 in current at /home/donghoon/.julia/v0.5/JSON/src/Parser.jl:66 [inlined]
 in chomp_space! at /home/donghoon/.julia/v0.5/JSON/src/Parser.jl:110 [inlined]
 in parse_value(::JSON.Parser.StreamingParserState{TCPSocket}, ::Type{T}) at /home/donghoon/.julia/v0.5/JSON/src/Parser.jl:153
 in #parse#2(::Type{Dict{String,Any}}, ::Function, ::TCPSocket) at /home/donghoon/.julia/v0.5/JSON/src/Parser.jl:392
 in macro expansion at /home/donghoon/.julia/v0.5/Lazy/src/macros.jl:258 [inlined]
 in macro expansion at /home/donghoon/.julia/v0.5/Blink/src/AtomShell/process.jl:94 [inlined]
 in (::Blink.AtomShell.##6#7{Blink.AtomShell.Electron})() at ./event.jl:68
^Cfatal: error thrown and no exception handler available.
InterruptException()
jl_run_once at /home/centos/buildbot/slave/package_tarball64/build/src/jl_uv.c:142
process_events at ./libuv.jl:82
wait at ./event.jl:147
task_done_hook at ./task.jl:191
unknown function (ip: 0x7fbf4d9a23a2)
jl_call_method_internal at /home/centos/buildbot/slave/package_tarball64/build/src/julia_internal.h:189 [inlined]
jl_apply_generic at /home/centos/buildbot/slave/package_tarball64/build/src/gf.c:1942
jl_apply at /home/centos/buildbot/slave/package_tarball64/build/src/julia.h:1392 [inlined]
finish_task at /home/centos/buildbot/slave/package_tarball64/build/src/task.c:214 [inlined]
start_task at /home/centos/buildbot/slave/package_tarball64/build/src/task.c:261
unknown function (ip: 0xffffffffffffffff)
@sglyon
Copy link
Member

sglyon commented Jan 12, 2017

That error happens when blink doesn't get set up properly when you call using PlotlyJS. this probably happened because you had to install electron (formerly called Atom shell) after trying to load blink.

Will you try to plot something again in a fresh Julia session and let me know what happens?

@mdhe1248
Copy link
Author

mdhe1248 commented Jan 12, 2017

Hi,
I re-ran my Julia session. I am getting the same issue:

julia> using PlotlyJS

julia> plot(1:10)
EOFError: read end of file
 in read at ./iobuffer.jl:88 [inlined]
 in read(::TCPSocket, ::Type{UInt8}) at ./stream.jl:787
 in byteat at /home/donghoon/.julia/v0.5/JSON/src/Parser.jl:55 [inlined]
 in current at /home/donghoon/.julia/v0.5/JSON/src/Parser.jl:66 [inlined]
 in chomp_space! at /home/donghoon/.julia/v0.5/JSON/src/Parser.jl:110 [inlined]
 in parse_value(::JSON.Parser.StreamingParserState{TCPSocket}, ::Type{T}) at /home/donghoon/.julia/v0.5/JSON/src/Parser.jl:153
 in #parse#2(::Type{Dict{String,Any}}, ::Function, ::TCPSocket) at /home/donghoon/.julia/v0.5/JSON/src/Parser.jl:392
 in macro expansion at /home/donghoon/.julia/v0.5/Lazy/src/macros.jl:258 [inlined]
 in macro expansion at /home/donghoon/.julia/v0.5/Blink/src/AtomShell/process.jl:94 [inlined]
 in (::Blink.AtomShell.##6#7{Blink.AtomShell.Electron})() at ./event.jl:68

^Cfatal: error thrown and no exception handler available.
InterruptException()
jl_run_once at /home/centos/buildbot/slave/package_tarball64/build/src/jl_uv.c:142
process_events at ./libuv.jl:82
wait at ./event.jl:147
task_done_hook at ./task.jl:191
unknown function (ip: 0x7faa0f9750f2)
jl_call_method_internal at /home/centos/buildbot/slave/package_tarball64/build/src/julia_internal.h:189 [inlined]
jl_apply_generic at /home/centos/buildbot/slave/package_tarball64/build/src/gf.c:1942
jl_apply at /home/centos/buildbot/slave/package_tarball64/build/src/julia.h:1392 [inlined]
finish_task at /home/centos/buildbot/slave/package_tarball64/build/src/task.c:214 [inlined]
start_task at /home/centos/buildbot/slave/package_tarball64/build/src/task.c:261
unknown function (ip: 0xffffffffffffffff)

@sglyon
Copy link
Member

sglyon commented Jan 12, 2017

Hmm @mdhe1248 thanks for posting again. I don't actually know what that issue is and unfortunately I can't reproduce and don't have the time to vicariously debug right ow.

Perhaps @MikeInnes has some idea as the issue seems to originate inside Blink?

@mdhe1248
Copy link
Author

Thank you for spending time on this issue.
I have an update: I run Julia in our server. The error occurs when I connect our server through "NoMachine".

I use ssh. If I connect our server directly from my ubuntu via ssh, PlotlyJS works fine. If I run Nomachine first, then use ssh (in Nomachine), I get the error. Do you have any insights on this problem?

@sglyon
Copy link
Member

sglyon commented Jan 17, 2017

Hmm, I'm sorry but I haven't been able to get PlotlyJS to work reliably over ssh myself.

I think it amounts to having Blink.jl open windows on the user's machine rather than on the machine running the Julia process, but I don't believe that has been implemented yet.

@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