This was caused by hair subpass growing the subpass vector but not adding anything to the sorting_values_ vector. This means the indices that was return by `sub_passes_.append_and_get_index` were dereferencing the `sorting_values_` vector out of bounds on this line: `float a_val = sorting_values_[a.index];`