Why Would It Take Long to Open ODT Files That Are

I have ODT files that are 2M in size, 3000+ pages. It takes them three minutes or more to open, if they do. I am always afraid they are getting corrupted. They just hang like about to freeze/crash. You know, when you click another window, the active one’s focus gets blurred. I copied the content to another file, saved it, still opens long. All it is is text. Too many and that matters? Just, two megabytes though. Thank you.

Window$ 11 Pro

Version: 24.8.4.2 (X86_64) / LibreOffice Community
Build ID: bb3cfa12c7b1bf994ecc5649a80400d06cd71002
CPU threads: 20; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

Possibly pagination. Consider dividing into chapters/volumes/parts and creating a Master document to combine them when needed. Working with Master Documents and Subdocuments

A shot in the dark

I remember seeing such slow opening of document a while ago, and spent some time trying to determine the reason. It turned out to be a challenge posed to the pagination process, as @EarnestAl also suggests: Nearly all paragraphs were set to “keep with next”.

The keep-with-next setting made Writer work hard to try to keep everything (100s of pages worth of text) within one page.

This can happen when converting documents from one file type to another. More likely is that the paragraph style was set to e.g. Heading 1, and then the content was manually formatted to appear as text body.

Suggestion

Which procedure is the best way to solve this kind of issue depends on how the formatting was applied in the first place. With a document of the magnitude as indicated, major repagination takes time and may look messy while the process is working. You should leave initial diagnostic measures and testing to experienced users, not attempt to patch up your document in one go.

At best, make a copy of your document where you keep only a few pages, and attach that file to your question here.
An actual odt file is required. A screenshot or pasted text from your document is of no use.

An attached file sample allows us to determine whether this is the cause (and also search for other possible causes), how it may have happened (settings may be applied on several “structural levels”) and consequently, which way it is best to proceed.

“Save as” from Writer will work, but it is easy to make a mistake. In my experience, the safest is to first make a copy within your file manager app.:

  • Right-click your document file
  • Select Copy
  • Right click within folder.
  • Select Paste
    (The file manager should then suggest an alternate name which indicates that this is a copy.)

Then edit the copy, removing most of the content so the file size is reduced, permitting upload here. 5-10 pages should suffice.
Remember that this is a public place, so take care not to upload confidential/sensitive matter.


Keep-with-next is a useful setting for headings and other captioning. In some cases you will want it for list elements, and it also happens to be useful for other content occasionally, but in most cases you don’t need it for text body content.

Another very slow paginating case is one huge multipage table. Splitting it every 50 pages or so (the number is as I seem to recall) would drastically speed it up.

1 Like

I refreshed this page and the comment I made a few days ago not appear. Reposting…

These are journals, so I can not post samples. :slight_smile:

Nothing is in the but all text. Some words italicized. Font Consolas, size 12. Document is setup as Default Paragraph Style. I have this set as default on all new documents.

I never copied/pasted anything in here with other headings, etc. These documents always start fresh. The only times I paste things, is from TXT files and out of habit, I always paste without formatting, so they match the current document. And I also did copy all content of this document, opened a new one and pasted it all in there. Saved. No changes in speed.

It took awhile to find anything with “keep with next.” Was not in options. I found it in the tool bar under FORMAT > PARAGRAPH > TEXT FLOW. “Keep with next” is already unchecked.

Are you saying ever few dozen pages, add returns to the next page or two?