That can loop indefinitely if the mask does not have at least `sparse_init` non-zeros in column `i`.