sumatrapdfreader / sumatrapdf

SumatraPDF reader
http://www.sumatrapdfreader.org
GNU General Public License v3.0
13.55k stars 1.72k forks source link

Taking 3-4 seconds to load with all files when opening. The prev version did not take any time in loading. #2669

Open RayReddingtonx opened 2 years ago

RayReddingtonx commented 2 years ago

I keep about 9 files opened in my Sumatra for procrastination reasons. The new version is taking 3-4 seconds to load all, whereas the prev version did not take any time, it was absolutely instant.

GitHubRulesOK commented 2 years ago

@RayReddingtonx Helps to know something about the version your using 3.4.4 or current pre-release

Also what file types/sizes, so are they 9 ginormous compressed ePub or PDF as both types generally need full decompression to see their contents, thus larger less compressed files oddly can be quicker to load and show.

RayReddingtonx commented 2 years ago

3.4.4 and now 5. All files are small regular pdf ones. Earlier it used to take zero seconds to open/load all files.

GitHubRulesOK commented 2 years ago

ok perhaps try logging the opening from closed so copy a SumatraPDF shortcut (may or may not have" at the end, keep them if it does) and add with the space -log image image

start SumatraPDF and then open an explorer window or any search / addressbar image

type in %LocalAppData% and enter should show you the folder where the logfile is with timings

image

!! LoadDocument: 870.93 ms, 362 pages for 'C:\Users\WDAGUtilityAccount\Desktop\SandBox\books\books.fb2'

RayReddingtonx commented 2 years ago

In the appdata>Local> SumatraPDF folder, there are only dll, and two text setting files, and a cache, and the start icon. How to open that target file option to register the log file? You didnt mention it. There is no log text. Even your log shows it takes 4 seconds, so isn't it a problem? Wasn't the previous one taking no time to load?

GitHubRulesOK commented 2 years ago

The file is not inside SumatraPDF folder (that may not always exist) so it is in main AppData Local the folder as %LocalAppData%

those are not 4 seconds they are 4/1000 seconds 870 ms = 0.9 seconds and that was after a much longer sequence.

RayReddingtonx commented 2 years ago

thanks, you didn't tell me about editing the shortcut file from its properties and adding "-log" to do this trick to work. This is my log and long errors of the font. I guess the loading time is only due to the font error. It's very long. Tell me how to fix it. It's not a problem with a particular Greek font in pdf coz there are other Greek font pdf which is showing no time in loading. Even after removing this first pdf from the tab, it is taken the same or worse time.

OpenEmbeddedFilesArchive: opened archive prefs::Load() took 1.17 ms ParseTranslationsTxt: 19128 lines, nStrings: 357 LoadDocument: 27.50 ms, 387 pages for 'C:\Users\C..Downloads\Learn New Testament Greek by John H. Dobson (z-lib.org).pdf' DisplayModel::BuildPagesInfo started DisplayModel::BuildPagesInfo took 0.02 ms StartMonitoringDirForChangesAPC() C:\Users\CORSAIR\Downloads couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' LoadDocument: 581.12 ms, 193 pages for 'C:\Users\CORSAIR\Downloads\Gwynnes grammar the ultimate introduction to grammar and the writing of good English definitions, explanations and illustrations of the parts of speech, and of the other most important technical terms (z-lib.org).epub' DisplayModel::BuildPagesInfo started DisplayModel::BuildPagesInfo took 0.01 ms LoadDocument: 16.58 ms, 57 pages for 'C:\Users..\Downloads\The Elements of Style (2011) by William Strunk, Chris Hong (z-lib.org).mobi' DisplayModel::BuildPagesInfo started DisplayModel::BuildPagesInfo took 0.00 ms LoadDocument: 15.65 ms, 297 pages for 'C:\Users\CORSAIR\Downloads\Greek An Essential Grammar by David Holton, Peter Mackridge, Irene Philippaki-Warburton (z-lib.org).pdf' DisplayModel::BuildPagesInfo started DisplayModel::BuildPagesInfo took 0.02 ms couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif' couldn't find system font 'serif'

GitHubRulesOK commented 2 years ago

@kjk looks like serif is causing a delay should that not be fallback to Roman Times ( or better Gregorian Timing)

RayReddingtonx commented 2 years ago

I am sure, I deleted some fonts from the windows system fonts foldwer, thinking them as useless, I did shift+delete, and that's what causing this error: couldn't find system font 'serif' and DejavuSerif ..

Update: Now its loading perfectly in 3.3 but does the same delay and show same Font errors during the log opening, which is a copy of the shortcut. When I am opening it through original shortcut or my usual pinned one, its opening perfectly like before, no time. I am sticking with this 3.4.3 version now. I was worried which font caused this, i only downloaded I didnt do anything wrong with the fonts. I am not gonna update this now. huhh. If it aint broken dont try to fix it.