Hi everyone,
I was working on a project, during which eventually Julia crashed and asked me to
“Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.”
The error messages were very lengthy and I include it (together with a version info) at the end of the post. Before that happened, Julia also ended up crashing at the same place displaying the error message:
The terminal process "C:\Users\matth\AppData\Local\Microsoft\WindowsApps\julia.exe '-i', '--banner=no', '--project=c:\Users\matth\Documents\[path_to_project]', 'c:\Users\matth\.vscode\extensions\julialang.language-julia-1.79.2\scripts\terminalserver\terminalserver.jl', '\\.\pipe\vsc-jl-repl-03a47384-b5af-432a-b3e4-3b88f251d4d0', '\\.\pipe\vsc-jl-cr-44e41773-6d03-4706-85b3-cdfb1bbf4c9e', 'USE_REVISE=true', 'USE_PLOTPANE=true', 'USE_PROGRESS=true', 'ENABLE_SHELL_INTEGRATION=false', 'DEBUG_MODE=false'" terminated with exit code: -1073740940.
([path_to_project]
is the location of the local module I was working on).
I understand that you should submit a MWE. However, the error occured in a function that is part of a big local module and I couldn’t easily reproduce it outside it.
Thus, I am wondering what is the recommended procedure in such a case?
I don’t want to make said module publicly available at this point.
Below is a versioninfo()
and the error message:
Julia Version 1.10.2
Commit bd47eca2c8 (2024-03-01 10:14 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: 16 × 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-15.0.7 (ORCJIT, tigerlake)
Threads: 4 default, 0 interactive, 2 GC (on 16 virtual cores)
Environment:
JULIA_NUM_THREADS = 4
JULIA_EDITOR = code
Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x7fff5afcbe8d -- RtlGetCurrentServiceSessionId at C:\WINDOWS\SYSTEM32\ntdll.dll (unknown line)
in expression starting at REPL[6]:1
RtlGetCurrentServiceSessionId at C:\WINDOWS\SYSTEM32\ntdll.dll (unknown line)
RtlFreeHeap at C:\WINDOWS\SYSTEM32\ntdll.dll (unknown line)
free at C:\WINDOWS\System32\msvcrt.dll (unknown line)
aligned_free at C:\WINDOWS\System32\msvcrt.dll (unknown line)
jl_free_aligned at C:/workdir/src\gc.c:262 [inlined]
jl_gc_free_array at C:/workdir/src\gc.c:1200 [inlined]
sweep_malloced_arrays at C:/workdir/src\gc.c:1226 [inlined]
gc_sweep_other at C:/workdir/src\gc.c:1507 [inlined]
_jl_gc_collect at C:/workdir/src\gc.c:3393
ijl_gc_collect at C:/workdir/src\gc.c:3538
maybe_collect at C:/workdir/src\gc.c:937 [inlined]
jl_gc_pool_alloc_inner at C:/workdir/src\gc.c:1293 [inlined]
jl_gc_pool_alloc_noinline at C:/workdir/src\gc.c:1350
jl_gc_alloc_ at C:/workdir/src\julia_internal.h:476 [inlined]
_new_array_ at C:/workdir/src\array.c:144 [inlined]
_new_array at C:/workdir/src\array.c:198 [inlined]
ijl_alloc_array_2d at C:/workdir/src\array.c:443
Array at .\boot.jl:479 [inlined]
Array at .\boot.jl:487 [inlined]
zeros at .\array.jl:636 [inlined]
zeros at .\array.jl:632 [inlined]
#Hetblock_objective#158 at c:\Users\matth\Documents\Research\[location_of_function]\get_Hetblock.jl:129
Hetblock_objective at c:\Users\matth\Documents\Research\[location_of_function]\get_Hetblock.jl:115 [inlined]
obj_fun at c:\Users\matth\Documents\Research\[location_of_function]\get_Hetblock.jl:50 [inlined]
#164 at c:\Users\matth\Documents\Research\[location_of_function]\get_Hetblock.jl:75
derivative at C:\Users\matth\.julia\packages\ForwardDiff\vXysl\src\derivative.jl:14 [inlined]
#get_Hetblock#163 at c:\Users\matth\Documents\Research\[location_of_function]\get_Hetblock.jl:75
get_Hetblock at c:\Users\matth\Documents\Research\[location_of_function]\get_Hetblock.jl:5
unknown function (ip: 0000020079dba863)
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
do_call at C:/workdir/src\interpreter.c:126
eval_value at C:/workdir/src\interpreter.c:223
eval_stmt_value at C:/workdir/src\interpreter.c:174 [inlined]
eval_body at C:/workdir/src\interpreter.c:635
jl_interpret_toplevel_thunk at C:/workdir/src\interpreter.c:775
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:934
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:877
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:877
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:877
ijl_toplevel_eval at C:/workdir/src\toplevel.c:943 [inlined]
ijl_toplevel_eval_in at C:/workdir/src\toplevel.c:985
eval at .\boot.jl:385 [inlined]
eval at .\Base.jl:88 [inlined]
repleval at c:\Users\matth\.vscode\extensions\julialang.language-julia-1.79.2\scripts\packages\VSCodeServer\src\repl.jl:229
#112 at c:\Users\matth\.vscode\extensions\julialang.language-julia-1.79.2\scripts\packages\VSCodeServer\src\repl.jl:192
unknown function (ip: 000002007f00bd3b)
with_logstate at .\logging.jl:515
with_logger at .\logging.jl:627 [inlined]
#111 at c:\Users\matth\.vscode\extensions\julialang.language-julia-1.79.2\scripts\packages\VSCodeServer\src\repl.jl:193
unknown function (ip: 000002007f00ba5b)
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
jl_f__call_latest at C:/workdir/src\builtins.c:812
#invokelatest#2 at .\essentials.jl:892 [inlined]
invokelatest at .\essentials.jl:889
unknown function (ip: 000002007f00a68b)
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
do_apply at C:/workdir/src\builtins.c:768
#64 at c:\Users\matth\.vscode\extensions\julialang.language-julia-1.79.2\scripts\packages\VSCodeServer\src\eval.jl:34
unknown function (ip: 000002007efeb474)
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
start_task at C:/workdir/src\task.c:1238
Allocations: 88375548 (Pool: 88171395; Big: 204153); GC: 158
Note: get_Hetblock.jl
is the code file which contains the function that makes Julia crash. I again removed the specific path on my PC.