It's hard to tell with all the optimization in the code, but it looks like the error is here:
Paragraph & CursorSlice::paragraph() const { return text()->getPar(pit_); }and that it's pit_ that is invalid: pit_ is 0, but there's nothing in text(). I think....
rh