How to fix a corrupted template

I have a very complicated template (lists, frames, page styles, the works) I use for most of my documents. Now, creating a new document from this template always works.

However, if I modified the template and then try to open a document created from this template (giving me the “update styles” dialog), and I do want to update the styles of course, LibreOffice crashes without any message. Which is a problem, since the template is still a work-in-progress and I modify it a lot.

Does anyone know of a way to know exactly where the error/corruption is in the template? I don’t want to recreate the template from the beginning! (I can edit the XML if such a thing is necessary…)

I do not yet sufficiently understand your problem. What do you mean with: “However, updating from this template doesn’t:” ?