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

ERROR: Malt.TerminatedWorkerException() with Quarto #87

Open
dmetivie opened this issue Feb 17, 2025 · 2 comments
Open

ERROR: Malt.TerminatedWorkerException() with Quarto #87

dmetivie opened this issue Feb 17, 2025 · 2 comments

Comments

@dmetivie
Copy link

dmetivie commented Feb 17, 2025

Not sure if this is the correct place to post this issue or Quarto (or should it be in QuartoNotebookRunner.jl?).
A sent a Quarto file to a colleague to check that my notebook was fully reproducible.
She got this error message and I have no clue how to debug that. She uses Linux (on my computer it works both on Windows and WSL so I cannot reproduce the error).

Running [39/59] at line 834:  α_ABC_CNN = 0.001
ERROR: Julia server returned error after receiving "run" command:
Failed to run notebook: /home/julia/Lake_norm/ABC_Conformal_Lake.qmd
ERROR: Malt.TerminatedWorkerException()
Stacktrace:
  [1] unwrap_worker_result(worker::Malt.Worker, result::Malt.WorkerResult)
    @ Malt ~/.julia/packages/Malt/YJ2Ml/src/Malt.jl:48
  [2] _wait_for_response(worker::Malt.Worker, msg_id::UInt64)
    @ Malt ~/.julia/packages/Malt/YJ2Ml/src/Malt.jl:325
  [3] _send_receive
    @ ~/.julia/packages/Malt/YJ2Ml/src/Malt.jl:336 [inlined]
  [4] #remote_call_fetch#41
    @ ~/.julia/packages/Malt/YJ2Ml/src/Malt.jl:406 [inlined]
  [5] remote_call_fetch
    @ ~/.julia/packages/Malt/YJ2Ml/src/Malt.jl:405 [inlined]
  [6] remote_eval_fetch
    @ ~/.julia/packages/Malt/YJ2Ml/src/Malt.jl:484 [inlined]
  [7] remote_eval_fetch
    @ ~/.julia/packages/Malt/YJ2Ml/src/Malt.jl:485 [inlined]
  [8] remote_eval_fetch_channeled(worker::Malt.Worker, expr::Expr)
    @ QuartoNotebookRunner ~/.julia/packages/QuartoNotebookRunner/eYIiC/src/server.jl:107
  [9] macro expansion
    @ ~/.julia/packages/QuartoNotebookRunner/eYIiC/src/server.jl:665 [inlined]
 [10] macro expansion
    @ ~/.julia/packages/ProgressLogging/6KXlp/src/ProgressLogging.jl:470 [inlined]
 [11] evaluate_raw_cells!(f::QuartoNotebookRunner.File, chunks::Vector{Any}, options::Dict{String, Any}; showprogress::Bool, chunk_callback::QuartoNotebookRunner.var"#chunk_callback#67"{TCPSocket})
    @ QuartoNotebookRunner ~/.julia/packages/QuartoNotebookRunner/eYIiC/src/server.jl:570
 [12] evaluate!(f::QuartoNotebookRunner.File, output::Nothing; showprogress::Bool, options::Dict{String, Any}, chunk_callback::Function, markdown::String)
    @ QuartoNotebookRunner ~/.julia/packages/QuartoNotebookRunner/eYIiC/src/server.jl:152
 [13] evaluate!
    @ ~/.julia/packages/QuartoNotebookRunner/eYIiC/src/server.jl:137 [inlined]
 [14] (::QuartoNotebookRunner.var"#32#36"{Nothing, String, Bool, Dict{String, Any}, QuartoNotebookRunner.var"#chunk_callback#67"{TCPSocket}, Server})(file::QuartoNotebookRunner.File)
    @ QuartoNotebookRunner ~/.julia/packages/QuartoNotebookRunner/eYIiC/src/server.jl:1113
 [15] (::QuartoNotebookRunner.var"#42#45"{Bool, QuartoNotebookRunner.var"#32#36"{Nothing, String, Bool, Dict{String, Any}, QuartoNotebookRunner.var"#chunk_callback#67"{TCPSocket}, Server}, Server, String})()
    @ QuartoNotebookRunner ~/.julia/packages/QuartoNotebookRunner/eYIiC/src/server.jl:1185
 [16] lock(f::QuartoNotebookRunner.var"#42#45"{Bool, QuartoNotebookRunner.var"#32#36"{Nothing, String, Bool, Dict{String, Any}, QuartoNotebookRunner.var"#chunk_callback#67"{TCPSocket}, Server}, Server, String}, l::ReentrantLock)
    @ Base ./lock.jl:232
 [17] borrow_file!(f::QuartoNotebookRunner.var"#32#36"{Nothing, String, Bool, Dict{String, Any}, QuartoNotebookRunner.var"#chunk_callback#67"{TCPSocket}, Server}, server::Server, path::String; optionally_create::Bool, options::Dict{String, Any})
    @ QuartoNotebookRunner ~/.julia/packages/QuartoNotebookRunner/eYIiC/src/server.jl:1178
 [18] borrow_file!
    @ ~/.julia/packages/QuartoNotebookRunner/eYIiC/src/server.jl:1139 [inlined]
 [19] #run!#31
    @ ~/.julia/packages/QuartoNotebookRunner/eYIiC/src/server.jl:1108 [inlined]
 [20] _handle_response(socket::TCPSocket, notebooks::Server, request::@NamedTuple{type::String, content::Union{Dict{String, Any}, String}}, showprogress::Bool)
    @ QuartoNotebookRunner ~/.julia/packages/QuartoNotebookRunner/eYIiC/src/socket.jl:273
 [21] (::QuartoNotebookRunner.var"#59#66"{Bool, Base.RefValue{Bool}, Server, Base.UUID})()
    @ QuartoNotebookRunner ~/.julia/packages/QuartoNotebookRunner/eYIiC/src/socket.jl:201
ERROR: Internal julia server error

Stack trace:
    at writeJuliaCommand (file:///opt/quarto/bin/quarto.js:41406:19)
    at eventLoopTick (ext:core/01_core.js:175:7)
    at async executeJulia (file:///opt/quarto/bin/quarto.js:41300:22)
    at async Object.execute (file:///opt/quarto/bin/quarto.js:41037:20)
    at async renderExecute (file:///opt/quarto/bin/quarto.js:85568:27)
    at async renderFileInternal (file:///opt/quarto/bin/quarto.js:85736:43)
    at async renderFiles (file:///opt/quarto/bin/quarto.js:85604:17)
    at async render (file:///opt/quarto/bin/quarto.js:90506:21)
    at async Command.actionHandler (file:///opt/quarto/bin/quarto.js:90654:32)
    at async Command.execute (file:///opt/quarto/bin/quarto.js:8111:13)

Here is the preamble

---
format:
  html:
    toc: true
engine: julia
julia:
  exeflags: ["--threads=auto"]
---

We render using quarto render file.qmd --to html. I saw very few posts with this error (that I don't understand). One was referring GPUs. Inside the file there are amongst other package GPUs.

using Lux # Neural Networks pkg
using Zygote # Automatic Differentation pkg
using LuxCUDA # comment if you use CPU
dev = gpu_device() # cpu_device()

Is it related to her GPUs?

Any idea what is the issue?

@MichaelHatherly
Copy link
Collaborator

A sent a Quarto file

Would you be able to reduce that file to a MWE that still throws the error?

She uses Linux (on my computer it works both on Windows and WSL so I cannot reproduce the error).

Would be good to know the details of the two systems from versioninfo() as well. Also the GPU details may be useful.

@dmetivie
Copy link
Author

I can try if she lets me borrow her computer ! I'll let you know.

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