Large Libreoffice Writer Doc Can't Save? (Error Saving Document)?

I’m writing a letter to my host family in Japan, and I want to include a lot of the high-res images and some videos that I took along the trip.

The problem is that I’m on page 13 and after adding a decent sized video, the document is unable to save.

I keep getting the error “Error saving the document Letter to Takeshi”:
Write error.
Error in writing sub-document content.xml

There is more than enough disk space for it to write, and I’m using an SSD, so it does it decently fast if it were to go through.

Is this some kind of buffer overrun? It is 16 pages so far, and all have images.

I’m on Kubuntu Linux 19.04 (Kernel 5.0.0-20, using LibreOffice 6.2.4.2.

Here is an image of what happens:

It also sometimes says:

Is it possible to resolve this problem? Am I doing something wrong?

@CompSciSarah Your problem can have many causes. The likelihood that it is due to the high-resolution images and the videos is reasonably high. You did not mention how big your document should be (number of pages). But if there are problems with 16 pages, you should ask yourself if this is the right way to pass on the information. One possibility would be to create everything in multiple documents, e.g. separated according to the locations of your recordings or topics, maybe max. 10 pages. You should try it.

Alternatively, you could create an overall video from your pictures and videos and put them somewhere in a cloud after completion.

Thanks for the answer, but why is this is a problem? If I have the RAM/Disk to be able to do this, shouldn’t the program be able to complete the task.

I broke it up into sub-documents. Perhaps a video or slide show would have been more appropriate. Seems kind of strange though.

So what exactly is happening? Buffer overflow?

I can not explain it to you exactly. But you can sometimes scour the issues here regarding files with large images or videos. It could be because an office program can basically work in this regard. It is always recommended to reduce the size of the images to be used in the document beforehand. For the actual darting of an image in a file, much smaller sizes are required. You can take a look at some of the LibreOffice documentaries, which usually use a relatively large number of images.