Crash was caused by non-initialized original index passing to compareDrawOptions callback. Due to in some cases it's enough to know indices of faces in final DM (like for comparing if the same texture used for mesh drawing) assume this callback receives index in final DM and if it's needed it will make conversion to original index itself. This should help reaching extra speed if textured object is affected by bevel modifiers, i.e.