My Julia is crashing a lot. I use Julia with VSCode and when these crashes happen, the repl window just closes itself so fast that I can’t read it. Is there somewhere where these messages are stored? Otherwise, how would I go about investigating what is happening?
I don’t have a minimum example to share. I have no idea where the problem is or how to narrow it down, and the whole codebase is too large to share.
How do I investigate? Is there a log?
2 Likes
All great questions! I think maybe the first question for diagnosis here is sharing some information about your set-up being:
What OS are you using (Windows, Mac, Linux):
What version of Julia is this:
Has this problem always existed or when did it start:
Otherwise, beyond giving some answers on the above, I would be curious if you could open Julia from the Julia app (if you downloaded it from the Windows Store or juliaup on Mac). Does it crash when you try to open it from there?
Cheers!
~ tcp
P.S. I adjusted the title of your post here to make it a little more clear on what exactly the issue is so others can chime in to help better.
1 Like
julia> versioninfo()
Julia Version 1.10.4
Commit 48d4fd48430 (2024-06-04 10:41 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: 8 × Intel(R) Core(TM) i7-8665U CPU @ 1.90GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-15.0.7 (ORCJIT, skylake)
Threads: 1 default, 0 interactive, 1 GC (on 8 virtual cores)
Environment:
JULIA_EDITOR = code
JULIA_NUM_THREADS = 0
No, it hasn’t always happened. I’m fairly certain this is my dodgy code, I just don’t know how to investigate.
Does it crash when you try to open it from there?
To be clear, this doesn’t always happen. I’ll have to spend some time working from the (non-vscode) REPL to see if this also happens there, and I’ll report back.
But so from your response I take it that the crash logs don’t get saved anywhere…?
Hmmm… I unfortunately don’t know off the top of my head about a crash log for the Julia VSCode extension… I don’t really use VSCode but if you open the command palette, you can open the logs directory by writing “Open Logs Folder”. Wonder if the crashes would get logged there? Sorry I can’t be more helpful @freeman !
Alright thank you. I’ll report back if I find anything.