So I use VSCode to login in to the supercomputer I’m working with, and I installed the Julia extension on it. It works well, but recently I noticed that the following error appears frequently:
[ Info: Loading GPUArraysCore from cache... (50%)
[ Info: Loading Adapt from cache... (50%)
[ Info: Loading Measures from cache... (50%)
[ Info: Loading FFMPEG from cache... (50%)
[ Info: Loading BinaryProvider from cache... (50%)
[ Info: Loading PlotThemes from cache... (50%)
[ Info: Loading Contour from cache... (50%)
[ Info: Loading LaTeXStrings from cache... (75%)
[ Info: Received new data from Julia Symbol Server.
Internal error: encountered unexpected error in runtime:
OutOfMemoryError()
jl_gc_alloc_new_page at /home1/***/julia/src/gc-pages.c:163 [inlined]
jl_gc_alloc_page at /home1/***/julia/src/gc-pages.c:222
add_page at /home1/***/julia/src/gc.c:1422
As you can see, this usually happens when the language server loads all packages installed. After the error the language server closes and restarts.
I don’t really have lots of packages installed actually: below is a list of installed packages:
Status `~/.julia/environments/v1.9/Project.toml`
[f67ccb44] HDF5 v0.16.15
[b964fa9f] LaTeXStrings v1.3.0
⌃ [8314cec4] PGFPlotsX v1.5.1
⌃ [91a5bcdd] Plots v1.15.2
What’s the root cause of this? It’s hard to imagine that indexing so few packages can cause a memory problem. Is there any way to solve this?