Closed diamog closed 3 years ago
I noticed this issue while I was doing my testing. I was able to track down the location of this bug to an out-of-bounds error on this reference to the active mask.
I've tracked the issue to occur when the first chunk of the SCS is empty. Working on a fix now
I assume full sorting must be disabled for that to happen?
Yes, the error in the test is only occurring in the no sort test when all particles are places in the later elements. This is why the error seemed like a race condition as it was dependent on the random assignment of particles.
The above commit fixes the issue when any number of the first chunks are empty.
We also have a new getFirstValue(view)
function... Maybe I should have just made a getIndex
function, but oh well.
Error output for test:
First noticed on commit 61bc5cc0712ca3af9b8527a4c7da9344c76fa5f7