It happened during sifting with automatic sorting on. Chances are it happened at the moment of receiving a bigger gem. Maybe it is related to the gem not being in the cache before.
I have hazy suspicions that there is more bugs related to things not being in the cache as I had other cases of crashing when I got something new.