TC QuickView hangs with large pdf and xlsx files

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
nn1k3
Member
Member
Posts: 136
Joined: 2007-02-06, 16:59 UTC

TC QuickView hangs with large pdf and xlsx files

Post by *nn1k3 »

Quickview (ctrl+Q) allows me to quickly preview each of a long list of files as I tap the down-arrow. But when I move the cursor to a large pdf file I have to wait a minute before the down-arrow becomes responsive again. That happens only with large (50MB) pdf and excel files.

Windows File-Explorer's preview shows no such delay.

I have these ListerPlugins:
0 LinkInfo.wlx; 1 ulister.wlx; 2 mmedia.wlx64; 3 htmlview.wlx; 4 Office2007.wlx; 5 pdfview.wlx; 6 SWFView.wlx

Suggestions welcome.
User avatar
petermad
Power Member
Power Member
Posts: 14743
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: TC QuickView hangs with large pdf and xlsx files

Post by *petermad »

Since both ulister and pdfview can show pdf files, and since both ulister and Office2007 can show xlsx files I recommend that you move ulister below the two other plugins in TC Lister plugin list, to see if that makes a difference.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: TC QuickView hangs with large pdf and xlsx files

Post by *Horst.Epp »

I have Slister with SumatraPDF installed
and there is no delay at all to view PDFs above 75MB in Quick View.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
nn1k3
Member
Member
Posts: 136
Joined: 2007-02-06, 16:59 UTC

Re: TC QuickView hangs with large pdf and xlsx files

Post by *nn1k3 »

Dear Horst.Epp: If you want to experiment, you can find a troublesome large pdf file by googling these words: "simpson strongtie wood construction" and downloading the while catalog. I think the problem is not so much that the pdf is large but that it is complicated.

Dear Petermad: I found that Office2007.wlx was much worse than Ulister.wlx with my large xslx file. Also, I couldn't get pdfview.wlx to recognize Ghostscript. So now I am only using one Lister plugin: Ulister.wlx.

My problem is that when I accidentally quickview a troublesome pdf file I have to quit TC and start over. I wish I could tell Ulister to stop working so hard.

FYI, my ulister.ini file contains these default words: noloadtypes=1999; nopreviewtypes=1999; keepinmemory=1

I see the options for Ulister when I right-click in the preview pane, but none of the options there tell Ulister when to quit probing complicated files.

Should I post my issue in the Forum thread "Trouble with uLister and Oracle files?"
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: TC QuickView hangs with large pdf and xlsx files

Post by *Horst.Epp »

nn1k3 wrote: 2021-10-26, 01:31 UTC Dear Horst.Epp: If you want to experiment, you can find a troublesome large pdf file by googling these words: "simpson strongtie wood construction" and downloading the while catalog. I think the problem is not so much that the pdf is large but that it is complicated.
I have downloaded the full catalog, its about 40MB and 356 pages.
It loads without problems and without any delay in SLister with SumatraPDF.
Also TC Quick View has no problem to disply it and page thru it (uses SLister of course).
SumatraPDF is version 3.3.3 from
https://www.sumatrapdfreader.org/download-free-pdf-viewer
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
nn1k3
Member
Member
Posts: 136
Joined: 2007-02-06, 16:59 UTC

Re: TC QuickView hangs with large pdf and xlsx files

Post by *nn1k3 »

Dear Horst.Epp: Thank you for showing that slister and SumatraPDF have no trouble quick-viewing my "troublesome" pdf file.

I do not know why I cannot get slister to view pdf files.

1. I disabled all my wlx files using plugman.
2. I downloaded and installed "wlx64_sLister_1.1.2.zip."
3. I modified slister.ini to point to the SumatraPDF.exe that came bundled with slister:
path="c:\Program Files\totalcmd\plugins\wlx\slister\SumatraPDF.exe"
4. FYI, Wincmd.ini contains these lines:

Code: Select all

[ListerPlugins]
0=%COMMANDER_PATH%\plugins\wlx\slister\slister.wlx64
0_detect=MULTIMEDIA& (EXT="PDF" | EXT="DJVU" | EXT="DJV"| EXT="XPS" | EXT="CBZ" | EXT="CBR" )
[ListerPlugins64]
$checksum$=3811191297
0=1
1=1
5. That did not work, so I tried installing a newer version "SumatraPDF-3.3.3-64-install.exe"
6. I modified slister.ini to point to the newer version of SumatraPDF.exe
path="C:\Program Files\totalcmd\plugins\wlx\slister\SumatraPDF\SumatraPDF.exe"

No luck with any pdf or xps files.
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3854
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Re: TC QuickView hangs with large pdf and xlsx files

Post by *sqa_wizard »

[ListerPlugins]
0=%COMMANDER_PATH%\plugins\wlx\slister\slister.wlx64
AFAIK the settings require the extension wlx and NOT wlx64 regardless of the finally used one.
Try

Code: Select all

[ListerPlugins]
0=%COMMANDER_PATH%\plugins\wlx\slister\slister.wlx
0_detect=MULTIMEDIA& (EXT="PDF" | EXT="DJVU" | EXT="DJV"| EXT="XPS" | EXT="CBZ" | EXT="CBR" )
[ListerPlugins64]
$checksum$=3811191297
0=1
1=1
#5767 Personal license
User avatar
petermad
Power Member
Power Member
Posts: 14743
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: TC QuickView hangs with large pdf and xlsx files

Post by *petermad »

2sqa_wizard
AFAIK the settings require the extension wlx and NOT wlx64 regardless of the finally used one.
No, that is not the case - especially not with slister that comes in separate 64bit and 32bit intalller packages - so you might not even have slister.wlx

For me it works fine with %COMMANDER_PATH%\plugins\wlx\slister\slister.wlx64


EDIT: TC did have the problem that it could not find wlx64 plugins, if there was not also a wlx plugin installed, but that was fixed in TC 8.0b14 - see: viewtopic.php?t=32868&start=17
Last edited by petermad on 2021-10-27, 01:56 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
petermad
Power Member
Power Member
Posts: 14743
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: TC QuickView hangs with large pdf and xlsx files

Post by *petermad »

2nn1k3
path="c:\Program Files\totalcmd\plugins\wlx\slister\SumatraPDF.exe"
.
.
path="C:\Program Files\totalcmd\plugins\wlx\slister\SumatraPDF\SumatraPDF.exe"
Maybe the it is because you have installed TC in C:\Program Files\ - both the old and the new version of SumatraPDF.exe needs to write to the folder of the SumatraPDF.exe file (the old version writes a dir: sumatrapdfcache and the new version writes a file: SumatraPDF-settings.txt).

The user usually do not have write privileges to folders in the C:\Program Files\ directory - so you have to either give write permission to the C:\Program Files\totalcmd\plugins\wlx\slister\ directory and it's subfolders, or move SumatraPDF.exe to a directory where you have write permission.

You can try and run your current TC as administrator - if slister works then, it it most certainly missing write permissions that is your problem.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: TC QuickView hangs with large pdf and xlsx files

Post by *Horst.Epp »

My environment with TC and its plugins under c:\tools\wincmd.

SumatraPDF is installed in Program files.
SumatraPDF writes its config under
C:\Users\horst\AppData\Local\SumatraPDF\

The SLister.ini file points to the SumatraPDF
[slister]
path=c:\Program Files\SumatraPDF\SumatraPDF.exe

So PDF viewing works with and without Admin rights.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
petermad
Power Member
Power Member
Posts: 14743
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: TC QuickView hangs with large pdf and xlsx files

Post by *petermad »

2Horst.Epp

I haven't installed Sumatra SumatraPDF.exe, I have just unpacked the SumatraPDF.exe file to C:\totalcmd\plugins\wlx\slister\ - and here both SumaratPDf 1.9 that came with the plugin, and SumatraPDF-3.3.3-64.exe from https://kjkpubsf.sfo2.digitaloceanspaces.com/software/sumatrapdf/rel/SumatraPDF-3.3.3-64.zip writes its data in C:\totalcmd\plugins\wlx\slister\ - which is possible since I have write priviliges to c:\totalcmd\.

Horst.Epp wrote: SumatraPDF is installed in Program files.
SumatraPDF writes its config under
C:\Users\horst\AppData\Local\SumatraPDF\
This must be because you have used the installer < https://kjkpubsf.sfo2.digitaloceanspaces.com/software/sumatrapdf/rel/SumatraPDF-3.3.3-64-install.exe >, which have set it up like this in the registry (i guess) and since C:\Users\horst\AppData\Local\SumatraPDF\ does not require Admin rights for writing, you have no problems.

But if nn1k3 has done like me, just downloaded the portable version https://kjkpubsf.sfo2.digitaloceanspaces.com/software/sumatrapdf/rel/SumatraPDF-3.3.3-64.zip , but has unpacked it to C:\Program Files\totalcmd\plugins\wlx\slister\SumatraPDF\ - then he is in trouble because writing in subdirs to C:\Program Files\ requires Admin rights by default.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Dalai
Power Member
Power Member
Posts: 9366
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: TC QuickView hangs with large pdf and xlsx files

Post by *Dalai »

2petermad
When launched directly, SumatraPDF.exe write its cache and settings to its program folder, correct. But the plugin doesn't make SumatraPDF.exe do that, at least not on my system, which admittedly used an older version of SumatraPDF (version 3.1.2).

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
petermad
Power Member
Power Member
Posts: 14743
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: TC QuickView hangs with large pdf and xlsx files

Post by *petermad »

2Dalai
When I use my TC installed in c:\totalcmd with UseIniInProgramDir=7 and plugins installed in c:\totalcmd\plugins\ - then I have this scenario:

I have 2 versions of SumatraPDF.exe - one that came with the slister plugin and has version 1.9. When I open a pdf file in Lister using this version a sumatrapdfcache\ directory is made in the slister directory.

Then I have a downloaded SumatraPDF-3.3.3-64.exe (portable) also placed in slister's directory. If I use path=%COMMANDER_PATH%\PLUGINS\wlx\slister\SumatraPDF-3.3.3-64.exe in slister.ini and open a pdf file in Lister, then this version of SumatarPDF is used and a SumatraPDF-settings.txt file is written in the slister plugin directory.
_______________________________

If I use my TC installed in c:\Program Files\totalcmd\ with setting files in %APPDATA%\Ghisler\ and plugins installed in c:\Program Files\totalcmd\plugins\ then I have this scenario:

The ulister plugin w reads its slister.ini from either c:\Program Files\totalcmd\plugins\\wlx\slister\ or from %APPDATA%\Ghisler\ with preference of c:\Program Files\totalcmd\plugins\\wlx\slister\ if both exist.

The 1.9 version SumatraPDF.exe in this situation writes it's cache to %USERPROFILE%\AppData\Roaming\SumatraPDF\sumatrapdfcache\
The SumatraPDF-3.3.3-64.exe writes its SumatraPDF-settings.txt file to %USERPROFILE%\AppData\Local\SumatraPDF\

In all 4 cases the slister plugin works without problems - so I am without any idea now of why it does not work for nn1k3 - without knowing how and where he has installed his TC adn where he has his plugins installed.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply