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

If last session was a hard crash, may need to recuperate as if clear=true #163

Closed
tlienart opened this issue Aug 17, 2022 · 1 comment
Closed
Labels
bug Something isn't working error-handling

Comments

@tlienart
Copy link
Owner

serve()

...

(hard crash, serialisation issue)

serve()
--> error

error type:

[ Info: 📓 de-serializing global context...
ERROR: EOFError: read end of file
Stacktrace:
  [1] read(s::IOStream, #unused#::Type{UInt8})
    @ Base ./iostream.jl:399
  [2] deserialize(s::Serialization.Serializer{IOStream})
    @ Serialization /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/Serialization/src/Serialization.jl:801
  [3] handle_deserialize(s::Serialization.Serializer{IOStream}, b::Int32)
    @ Serialization /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/Serialization/src/Serialization.jl:907
  [4] deserialize
    @ /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/Serialization/src/Serialization.jl:801 [inlined]
  [5] deserialize(s::IOStream)
    @ Serialization /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/Serialization/src/Serialization.jl:788
  [6] open(f::typeof(Serialization.deserialize), args::String; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Base ./io.jl:330
  [7] open
    @ ./io.jl:328 [inlined]
  [8] deserialize
    @ /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/Serialization/src/Serialization.jl:798 [inlined]
  [9] deserialize_gc(gc::Xranklin.GlobalContext{Xranklin.LocalContext})
    @ Xranklin ~/.julia/dev/Xranklin/src/context/serialize.jl:145
 [10] serve(d::String; dir::String, folder::String, clear::Bool, final::Bool, single::Bool, eval::Bool, nocode::Bool, threads::Bool, use_threads::Bool, prepath::String, prefix::String, base_url_prefix::String, debug::Bool, cleanup::Bool, skip::Vector{String}, port::Int64, host::String, launch::Bool)
    @ Xranklin ~/.julia/dev/Xranklin/src/build/serve.jl:139
 [11] serve (repeats 2 times)
    @ ~/.julia/dev/Xranklin/src/build/serve.jl:84 [inlined]
 [12] top-level scope
    @ REPL[3]:1

could be caught and just a clear.

@tlienart tlienart added bug Something isn't working error-handling labels Jan 2, 2023
@tlienart
Copy link
Owner Author

there's a try-catch around this now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working error-handling
Projects
None yet
Development

No branches or pull requests

1 participant