Can't save or open this small file, and takes 3 GB or more of RAM  SOLVED

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Post Reply
asocialis
User
Posts: 40
Joined: Mon Feb 11, 2019 12:29 am

Can't save or open this small file, and takes 3 GB or more of RAM

Post by asocialis »

I successfully saved it once somehow, probably by waiting for more time, but later when I open it it causes bug to appear, freezes and RAM usage increases to few GB. The same happens in this untouched file if I try to save it as PDF (save or save as).
SumatraPDF can open buggy saved file properly tough. Here is link to original file which can be open by app but can't be saved, or can but takes few GB RAM. PDF-XChange Editor Plus 8.0 Build 343.0 (Nov 18 2020). Windows 10 21H1. 8 GB RAM.
What could be the cause? Is there any way to save file? Reason I wanna save it is because I made bookmarks, now until you solve this problem I exported bookmark file so I can import later. But even when I do not touch bookmarks, but just save file, issue is same.

Code: Select all

https://pdfcoffee.com/pravopis-bosanskog-jezika-drugo-izdanje-29-01-2018-pdf-free.html
Even Adobe Acrobat increases RAM usage to over GB just bit slower than your app. As soon as I click bookmarks just to see them, Adobe Acrobat freezes. How can such small simple file damage even the best apps? Is there any way to fix that file, regenerate it maybe?
Last edited by asocialis on Thu Sep 30, 2021 12:32 pm, edited 1 time in total.
Willy Van Nuffel
User
Posts: 2391
Joined: Wed Jan 18, 2006 12:10 pm

Re: Can't save or open this small file, and takes 3 GB or more of RAM

Post by Willy Van Nuffel »

Same experience here with PDF-XChange Editor, latest build 9.1.356.

No idea about the reason.

Optimized PDF (could only be saved after several minutes) still has the same problem.
asocialis
User
Posts: 40
Joined: Mon Feb 11, 2019 12:29 am

Re: Can't save or open this small file, and takes 3 GB or more of RAM

Post by asocialis »

Done some more investigation. It actually can be saved, but very slowly, about 5-10 minutes, and causes RAM to increase to about 4 GB then drops back to normal during saving. However newly saved file, although it has same file size, opens much slower in any app like SumatraPDF and takes almost 1 GB. Normal file (original, without being re saved by your app) when opened in SumatraPDF or any other viewer takes only few MB and opens quickly.

Now I figured exactly what could be wrong. When I open save as optimized PDF dialog box, and click on Font, it freezes and same bug. So it could be something with font. This time it never ends, but tries to find font forever. Saving as txt is without problems. So I will try to convert it to some other format and back to fix this file.

Same issue in Adobe Acrobat last version. Unfortunately Preflight option in Save as A/PDF or X/PDF option reports it did not find any issues.
User avatar
Lzcat - Tracker Supp
Site Admin
Posts: 677
Joined: Thu Jun 28, 2007 8:42 am

Re: Can't save or open this small file, and takes 3 GB or more of RAM

Post by Lzcat - Tracker Supp »

Hi, asocialis

This document has bloated document logical structure (StructTreeRoot dictionary, ParentTree subdictionary). It contains millions of null objects, which must be processed during save, thus saving taking some time. On my PC it takes about 15 seconds only, but it may vary depending on processor, ram speed and capacity and of course SSD/HDD. Can you describe your configuration?

For now we have no proper workaround how to fix this file. Removing all tags and bookmarks fix this issue(and reduce file size, of course), so if this information is not required removing tags and bookmarks may be temporary workaround.

Regarding to SumatraPDF or any other readers - well, it is their problems how do they read PDF documents. Editor open both original ad resaved document fast enough (again, on my fast PC), but also use more memory when opening resaved document.

Kind regards,
Lzcat - Tracker Supp
Victor
Tracker Software
Project manager

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
asocialis
User
Posts: 40
Joined: Mon Feb 11, 2019 12:29 am

Re: Can't save or open this small file, and takes 3 GB or more of RAM

Post by asocialis »

My configuration is:
Installed Physical Memory (RAM): 8,00 GB
Processor: Intel(R) Pentium(R) CPU N3700 @ 1.60GHz, 1601 Mhz, 4 Core(s), 4 Logical Processor(s)
Display: NVIDIA GeForce 920M 1GB VRAM
Display: Intel(R) HD Graphics 1GB VRAM
Resolution: 1366 x 768 x 60 hertz
Windows 10 21H1 x64
Hard disk: ST1000LM014-SSHD-8GB (931 GB)

I don't need bookmarks, I may add new later if document gets fixed.
I successfully exported document to PNG images. I may try to recreate PDF from images, maybe with OCR processing later.
I did not mean completely slow, but just slower like 10 times opening of saved vs original document.
If I save document as pdf (sanitized documents) then file size is 221 MB.
If I save document as pdf (pdf/a, pdf/x, normal) file sizes are 8-10 MB, but almost GB RAM usage and slower opening.
Exporting to word document (docx) size is 5 MB and to txt 2 MB.
I also reported to Adobe this error, will try their suggestions too: https://community.adobe.com/t5/acrobat-discussions/app-not-responding-and-huge-memory-usage-with-specific-file/m-p/12430368

Wait, what do you mean tags? How can I remove them?
User avatar
Lzcat - Tracker Supp
Site Admin
Posts: 677
Joined: Thu Jun 28, 2007 8:42 am

Re: Can't save or open this small file, and takes 3 GB or more of RAM  SOLVED

Post by Lzcat - Tracker Supp »

Hi, asocialis
Wait, what do you mean tags? How can I remove them?
image.png
You need to open Tags pane and simply delete all elements from there.

Kind regards,
Lzcat - Tracker Supp
Victor
Tracker Software
Project manager

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
asocialis
User
Posts: 40
Joined: Mon Feb 11, 2019 12:29 am

Re: Can't save or open this small file, and takes 3 GB or more of RAM

Post by asocialis »

I am sorry, I don't see Tags options, here is how my menu looks like:
Untitled.jpg
Is that something you added in newer version? No mention of Tags in user manual of v8.
User avatar
Lzcat - Tracker Supp
Site Admin
Posts: 677
Joined: Thu Jun 28, 2007 8:42 am

Re: Can't save or open this small file, and takes 3 GB or more of RAM

Post by Lzcat - Tracker Supp »

Hi, asocialis

Yes, you should have at least this version: https://www.pdf-xchange.com/produc ... #9.0.350.0

Kind regards,
Lzcat - Tracker Supp
Victor
Tracker Software
Project manager

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
asocialis
User
Posts: 40
Joined: Mon Feb 11, 2019 12:29 am

Re: Can't save or open this small file, and takes 3 GB or more of RAM

Post by asocialis »

Wow, thanks! Solved all my problems. Did not know that tags are the culprit. Never heard of PDF tags before, and after removing them, saving, reading, editing is ultra fast. Actually used Adobe Acrobat while I was still downloading your app version 9, could not wait, but it performs the same function. Also added my self-made bookmarks from exported bookmarks file, and no problems. Solved!
Post Reply