There are quite a few crashes.
Cause is ref->f being NULL.
ref->f
I haven't been able to reproduce it.