I think it’s very unlikely to crash.
either add a local so that local j = selected_elements[i],
or add a @lock to output_report[j,6] = classifier(orbit_array[j,:,:]).
Otherwise I cannot figure out a reason to crash—you didn’t give the runnable code. And the only multithreading part is the @threads for.