Open keithjlee opened 1 year ago
It seems the error is the same on both cases, do you have at least an open source reproducer? It doesn't need to be minimal to start with.
Yes, the repository is here, and an example file can be found here.
Again, the first time running the script will be fine, but for example: modifying the values in the meta parameters defined at the top, or rerunning the optimization multiple times will inevitably lead to the same error.
Appreciate the help.
I've tested a different optimization package (Nonconvex.jl), with similar fatal errors after multiple optimization runs, however, with a different error message:
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 0x7ffb14fd76a2 -- jl_object_id__cold at C:/workdir/src\builtins.c:417
in expression starting at none:0
jl_object_id__cold at C:/workdir/src\builtins.c:417
type_hash at C:/workdir/src\jltypes.c:1332
typekey_hash at C:/workdir/src\jltypes.c:1344
jl_precompute_memoized_dt at C:/workdir/src\jltypes.c:1409
inst_datatype_inner at C:/workdir/src\jltypes.c:1731
jl_inst_arg_tuple_type at C:/workdir/src\jltypes.c:1826
arg_type_tuple at C:/workdir/src\gf.c:2100 [inlined]
jl_lookup_generic_ at C:/workdir/src\gf.c:2884
ijl_apply_generic at C:/workdir/src\gf.c:2936
getvariables at c:\Users\keithjl\.vscode\extensions\julialang.language-julia-1.47.2\scripts\packages\VSCodeServer\src\trees.jl:295
unknown function (ip: 0000026bdc7246c8)
jl_apply at C:/workdir/src\julia.h:1879 [inlined]
jl_f__call_latest at C:/workdir/src\builtins.c:774
#invokelatest#2 at .\essentials.jl:816 [inlined]
invokelatest at .\essentials.jl:813 [inlined]
repl_getvariables_request at c:\Users\keithjl\.vscode\extensions\julialang.language-julia-1.47.2\scripts\packages\VSCodeServer\src\trees.jl:269
unknown function (ip: 0000026bdc6d685a)
dispatch_msg at c:\Users\keithjl\.vscode\extensions\julialang.language-julia-1.47.2\scripts\packages\JSONRPC\src\typed.jl:67
dispatch_msg at c:\Users\keithjl\.vscode\extensions\julialang.language-julia-1.47.2\scripts\packages\VSCodeServer\src\VSCodeServer.jl:100
unknown function (ip: 0000026bdc6d3f99)
macro expansion at c:\Users\keithjl\.vscode\extensions\julialang.language-julia-1.47.2\scripts\packages\VSCodeServer\src\VSCodeServer.jl:148 [inlined]
macro expansion at .\task.jl:476 [inlined]
macro expansion at c:\Users\keithjl\.vscode\extensions\julialang.language-julia-1.47.2\scripts\packages\VSCodeServer\src\VSCodeServer.jl:142 [inlined]
#214 at .\task.jl:514
unknown function (ip: 0000026bdc6d02f3)
jl_apply at C:/workdir/src\julia.h:1879 [inlined]
start_task at C:/workdir/src\task.c:1092
Allocations: 160804215 (Pool: 160725627; Big: 78588); GC: 228
I get a very similar error message.
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 0x7fff73ce76ef -- jl_object_id__cold at C:/workdir/src\builtins.c:417
in expression starting at none:0
jl_object_id__cold at C:/workdir/src\builtins.c:417
type_hash at C:/workdir/src\jltypes.c:1332
typekey_hash at C:/workdir/src\jltypes.c:1344
jl_precompute_memoized_dt at C:/workdir/src\jltypes.c:1409
inst_datatype_inner at C:/workdir/src\jltypes.c:1731
jl_inst_arg_tuple_type at C:/workdir/src\jltypes.c:1826
arg_type_tuple at C:/workdir/src\gf.c:2100 [inlined]
jl_lookup_generic_ at C:/workdir/src\gf.c:2884
ijl_apply_generic at C:/workdir/src\gf.c:2936
getvariables at c:\Users\lpaiola\.vscode\extensions\julialang.language-julia-1.65.2\scripts\packages\VSCodeServer\src\trees.jl:295
unknown function (ip: 00000206ba471e28)
jl_apply at C:/workdir/src\julia.h:1880 [inlined]
jl_f__call_latest at C:/workdir/src\builtins.c:774
#invokelatest#2 at .\essentials.jl:819 [inlined]
invokelatest at .\essentials.jl:816 [inlined]
repl_getvariables_request at c:\Users\lpaiola\.vscode\extensions\julialang.language-julia-1.65.2\scripts\packages\VSCodeServer\src\trees.jl:269
unknown function (ip: 00000206ba3f646a)
dispatch_msg at c:\Users\lpaiola\.vscode\extensions\julialang.language-julia-1.65.2\scripts\packages\JSONRPC\src\typed.jl:67
dispatch_msg at c:\Users\lpaiola\.vscode\extensions\julialang.language-julia-1.65.2\scripts\packages\VSCodeServer\src\VSCodeServer.jl:100
unknown function (ip: 00000206ba3f3ba9)
macro expansion at c:\Users\lpaiola\.vscode\extensions\julialang.language-julia-1.65.2\scripts\packages\VSCodeServer\src\VSCodeServer.jl:151 [inlined]
macro expansion at .\task.jl:476 [inlined]
macro expansion at c:\Users\lpaiola\.vscode\extensions\julialang.language-julia-1.65.2\scripts\packages\VSCodeServer\src\VSCodeServer.jl:145 [inlined]
#224 at .\task.jl:514
unknown function (ip: 00000206ba3efe13)
jl_apply at C:/workdir/src\julia.h:1880 [inlined]
start_task at C:/workdir/src\task.c:1092
Allocations: 1535351292 (Pool: 1535310202; Big: 41090); GC: 2641
with versioninfo()
Julia Version 1.9.4
Commit 8e5136fa29 (2023-11-14 08:46 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: 20 × 12th Gen Intel(R) Core(TM) i7-12700H
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-14.0.6 (ORCJIT, alderlake)
Threads: 1 on 20 virtual cores
My usecase is similar aswell, I have a very not MWE code which repeatedly solves a nonlinear equation with SimpleNonlinearSolve.jl and whenever I run the code in the REPL too many times the process crashes. This error appears both in Windows (the error I posted) and on Manjaro stable. @keithjlee did you manage to find a workaround ?
Sorry for the late response.
I've yet to find a solution for this. Same problem occurs in 1.10, but (maybe?) less often?
Like you, a MWE is very difficult to put together, and because of the random nature of the error, it's hard to even deduce whether this will occur or not in a given script.
I'm running into strange segmentation errors while testing an optimization package under development, with different error messages depending on whether I am at my laptop (M1 Macbook Pro) or my desktop (Win 11).
A MWE is slightly difficult as there are a lot of custom structs passing information to each other, but in general the following workflow is used:
Model
AbstractVariable
s for an optimization problemAbstractOptParams
from the model and variablesWhen I run test scripts, this process works fine and the results are as expected, but rerunning the script (with or without small changes) multiple times eventually leads to a fatal crash with the following error (in Windows):
And on my MacBook:
Julia was installed using juliaup for both computers. I can't say I have a firm grasp on the inner workings of Julia to make sense of this, so any guidance would be greatly appreciated.