Thanks. The error still exits when I start julia with julia --project=. --threads=1,0 --check-bounds=yes. So it’s not likely due to the use of @inbounds.
But when under this starting configuration, the error message is too informative to be intercepted (my VSCode has a maximum scroll back of 10000 lines, yet cannot contain that full error message). It just flushes my screen rapidly.
That runtime was derived under a large-scale test (while in my small-scaled script, S=3), it’s likely less than 20 seconds.
Overall I think this is a serious issue worth looking into carefully. Just by running a single line of code in julia REPL, it can completely crash my bash terminal—the error message is printed rapidly and endlessly. The exact line of Error is definitely
mst = General.model!(sub, t, T, tks, Line.P, F, WD, LD, GD, uH, xH, pAH)
(It works normally on a first-time run. But crashes steadily on the second run if you overwrite all the script beforehand).
That line was about building some new JuMP models—I cannot figure out where is wrong.
As clarified above, the issue persists under --threads=1,0 --check-bounds=yes. So it’s probably not caused by a “race condition”.