First startup after windows boot is extremely slow

Ask for help and post your question on how to use XnView MP.

Moderators: XnTriq, helmut, xnview

User avatar
BK201
Posts: 91
Joined: Fri Apr 06, 2012 3:43 pm

First startup after windows boot is extremely slow

Post by BK201 »

This problem exist from like 0.65 when I was using windows 7, no fix yet, I need to find an alternative image viewer if this bug still can't be located

MP version: 0.98.1 (as I tested, 0.98.2 still have the same problem)
config:
xnview.ini.zip
environment:
windows 10 x64 (10.0.19042)
cpu: e3-1230 v2
ram: 16gb (8gx2)

demo:
A1.gif
reproduce:
1. cold reboot pc
2. run xnview
You do not have the required permissions to view the files attached to this post.
User avatar
xnview
Author of XnView
Posts: 44761
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: First startup after windows boot is extremely slow

Post by xnview »

7 seconds is too high, do you have a lot of installed fonts?
Pierre.
User avatar
BK201
Posts: 91
Joined: Fri Apr 06, 2012 3:43 pm

Re: First startup after windows boot is extremely slow

Post by BK201 »

xnview wrote: Tue Mar 02, 2021 12:49 pm 7 seconds is too high, do you have a lot of installed fonts?
Not sure if it's "a lot", I got this from powershell command

Code: Select all

(New-Object System.Drawing.Text.InstalledFontCollection).Families

Code: Select all


Name
----
A Charming Font Expanded
A Charming Font Superexpanded
Adobe Arabic
Adobe Caslon Pro
Adobe Caslon Pro Bold
Adobe Devanagari
Adobe Garamond Pro
Adobe Garamond Pro Bold
Adobe Gothic Std B
Adobe Hebrew
Adobe Myungjo Std M
Adobe Naskh Medium
Adobe 仿宋 Std R
Adobe 宋体 Std L
Adobe 明體 Std L
Adobe 楷体 Std R
Adobe 繁黑體 Std B
Adobe 黑体 Std R
Algerian
Angryblue
Ar-Ciela(Compartment)
Architects Daughter
Argor Brujsh Scaqh
Arial
Arial Black
Arial Narrow
Arial Unicode MS
Bahnschrift
Bahnschrift Condensed
Bahnschrift Light
Bahnschrift Light Condensed
Bahnschrift Light SemiCondensed
Bahnschrift SemiBold
Bahnschrift SemiBold Condensed
Bahnschrift SemiBold SemiConden
Bahnschrift SemiCondensed
Bahnschrift SemiLight
Bahnschrift SemiLight Condensed
Bahnschrift SemiLight SemiConde
Baskerville Old Face
Bauhaus 93
Bell MT
Berlin Sans FB
Berlin Sans FB Demi
Bernard MT Condensed
Birch Std
Blackoak Std
Blade 2
Bodoni MT Poster Compressed
Book Antiqua
Bookman Old Style
Bookshelf Symbol 7
Britannic Bold
Broadway
Brush Script MT
Brush Script Std
Buxton Sketch
Calibri
Calibri Light
Californian FB
Cambria
Cambria Math
Candara
Candara Light
Centaur
Century
Century Gothic
Chaparral Pro
Chaparral Pro Light
Charlemagne Std
Chiller
Colonna MT
Comic Sans MS
Consolas
Consolas Mod
Constantia
Cooper Black
Cooper Std Black
Corbel
Corbel Light
Courier New
Crazy Killer
DD Miraclemoonh2
DFBrushRD-W7
DFGBrushRD-W7
DFGKinBun-W3
DFGMaruGothic-Md
DFKinBun-W3
DFMaruGothic-Md
DFMincho-SU
DFPBrushRD-W7
DFPKinBun-W3
DFPMaruGothic-Md
Diablo
Dragonborn
Ebrima
Footlight MT Light
Franklin Gothic Medium
Freestyle Script
Gabriola
Gadugi
Garamond
Georgia
Giddyup Std
GoodDog Cool
GoodDog Plain
Harlow Solid Italic
Harrington
High Tower Text
HILARIOUS
Hobo Std
HoloLens MDL2 Assets
Hydrogen Whiskey
Hymmnos
Impact
Inconsolata
Informal Roman
Ink Free
In_alphabet
Javanese Text
Jokerman
Juice ITC
Kozuka Gothic Pr6N B
Kozuka Gothic Pr6N EL
Kozuka Gothic Pr6N H
Kozuka Gothic Pr6N L
Kozuka Gothic Pr6N M
Kozuka Gothic Pr6N R
Kozuka Gothic Pro B
Kozuka Gothic Pro EL
Kozuka Gothic Pro H
Kozuka Gothic Pro L
Kozuka Gothic Pro M
Kozuka Gothic Pro R
Kozuka Mincho Pr6N B
Kozuka Mincho Pr6N EL
Kozuka Mincho Pr6N H
Kozuka Mincho Pr6N L
Kozuka Mincho Pr6N M
Kozuka Mincho Pr6N R
Kozuka Mincho Pro B
Kozuka Mincho Pro EL
Kozuka Mincho Pro H
Kozuka Mincho Pro L
Kozuka Mincho Pro M
Kozuka Mincho Pro R
Kristen ITC
Kunstler Script
Lato
Lato Light
Lato Semibold
Leelawadee UI
Leelawadee UI Semilight
Letter Gothic Std
Lithos Pro Regular
Lucida Bright
Lucida Calligraphy
Lucida Console
Lucida Fax
Lucida Grande
Lucida Handwriting
Lucida Sans Unicode
LunacyMore
MadokaLetters
MadokaMusical
MadokaRunes
Magneto
Malgun Gothic
Malgun Gothic Semilight
Marlett
Matura MT Script Capitals
Meiryo
Meiryo UI
Mesquite Std
Microsoft Himalaya
Microsoft JhengHei UI
Microsoft JhengHei UI Light
Microsoft New Tai Lue
Microsoft PhagsPa
Microsoft Sans Serif
Microsoft Tai Le
Microsoft YaHei UI
Microsoft YaHei UI Light
Microsoft Yi Baiti
Minion Pro
Minion Pro Cond
Minion Pro Med
Minion Pro SmBd
Mistral
Modern No. 20
MON3 Anonta 1
Mongolian Baiti
Monotype Corsiva
MS Gothic
MS PGothic
MS Reference Sans Serif
MS Reference Specialty
MS UI Gothic
MT Extra
MV Boli
Myanmar Text
Myriad Arabic
Myriad Hebrew
Myriad Pro
Myriad Pro Cond
Myriad Pro Light
Niagara Engraved
Niagara Solid
Nirmala UI
Nirmala UI Semilight
Nueva Std
Nueva Std Cond
OCR A Std
oktober
Old English Text MT
Onyx
Orator Std
Palatino Linotype
Parchment
PicoBlackAl
PicoWhiteAl
Playbill
Poor Richard
Poplar Std
Prestige Elite Std
Ravie
Rosewood Std Regular
Segoe Marker
Segoe MDL2 Assets
Segoe Print
Segoe Script
Segoe UI
Segoe UI Black
Segoe UI Emoji
Segoe UI Historic
Segoe UI Light
Segoe UI Semibold
Segoe UI Semilight
Segoe UI Symbol
Showcard Gothic
SimSun-ExtB
Sitka Banner
Sitka Display
Sitka Heading
Sitka Small
Sitka Subheading
Sitka Text
SketchFlow Print
Snap ITC
Source Code Pro
Stencil
Stencil Std
Strasua
Sunshiney
Sylfaen
Symbol
Tahoma
Tekton Pro
Tekton Pro Cond
Tekton Pro Ext
Tempus Sans ITC
Times New Roman
TP Hylian - GCN Bold
TP Hylian - GCN Regular
TP Hylian - Wii Bold
TP Hylian - Wii Regular
Trajan Pro
Trebuchet MS
Verdana
Viner Hand ITC
Vivaldi
Vladimir Script
Walt Disney Script v4.1
Webdings
Wide Latin
Wingdings
Wingdings 2
Wingdings 3
Yu Gothic
Yu Gothic Light
Yu Gothic Medium
Yu Gothic UI
Yu Gothic UI Light
Yu Gothic UI Semibold
Yu Gothic UI Semilight
ZITZ
Zpix
书体坊安景臣钢笔行书
书体坊米芾体
仿宋
刘德华字体叶根友仿版
华文中宋
华文仿宋
华文宋体
华文彩云
华文新魏
华文楷体
华文琥珀
华文细黑
华文行楷
华文隶书
宇含 EPSON太行書体
宋体
幼圆
微軟正黑體
微軟正黑體 Light
微软雅黑
微软雅黑 Light
微软雅黑Georgia
新宋体
新細明體-ExtB
方正中倩简体
方正像素12
方正准圆简体
方正姚体
方正粗金陵
方正细金陵简体
方正舒体
方正静蕾简体
明兰
李国夫手写体
楷体
汉仪天真体
汉仪文黑-65W
汉仪粗篆繁
汉仪黛玉体简
等线
等线 Light
筑紫A丸&Sleek
細明體-ExtB
細明體_HKSCS-ExtB
腾祥嘉丽超粗圆繁
草檀斋毛泽东字体
華康金文體W3
華康金文體W3(P)
迷你简凌波
长仿宋体
隶书
雅黑Mini
黑体
User avatar
xnview
Author of XnView
Posts: 44761
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: First startup after windows boot is extremely slow

Post by xnview »

I ask the QT team, is it possible to send you a test program?
Pierre.
User avatar
BK201
Posts: 91
Joined: Fri Apr 06, 2012 3:43 pm

Re: First startup after windows boot is extremely slow

Post by BK201 »

xnview wrote: Mon Mar 08, 2021 9:05 am I ask the QT team, is it possible to send you a test program?
Sure please, if there were log I'll upload it already
User avatar
xnview
Author of XnView
Posts: 44761
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: First startup after windows boot is extremely slow

Post by xnview »

could you try to put this file in XnView MP folder, and start it?
Pierre.
User avatar
BK201
Posts: 91
Joined: Fri Apr 06, 2012 3:43 pm

Re: First startup after windows boot is extremely slow

Post by BK201 »

xnview wrote: Tue Mar 09, 2021 10:10 am could you try to put this file in XnView MP folder, and start it?
It takes like 5 seconds to start in the first run, but I didn't found anything looks like a log, what should I do next?
User avatar
xnview
Author of XnView
Posts: 44761
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: First startup after windows boot is extremely slow

Post by xnview »

BK201 wrote: Tue Mar 09, 2021 10:39 am
xnview wrote: Tue Mar 09, 2021 10:10 am could you try to put this file in XnView MP folder, and start it?
It takes like 5 seconds to start in the first run, but I didn't found anything looks like a log, what should I do next?
So almost the same as XnView MP, right? i'm waiting the QT Team
Pierre.
User avatar
xnview
Author of XnView
Posts: 44761
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: First startup after windows boot is extremely slow

Post by xnview »

xnview wrote: Tue Mar 09, 2021 11:05 am
BK201 wrote: Tue Mar 09, 2021 10:39 am
xnview wrote: Tue Mar 09, 2021 10:10 am could you try to put this file in XnView MP folder, and start it?
It takes like 5 seconds to start in the first run, but I didn't found anything looks like a log, what should I do next?
So almost the same as XnView MP, right? i'm waiting the QT Team
I send you a PM
Pierre.
User avatar
BK201
Posts: 91
Joined: Fri Apr 06, 2012 3:43 pm

Re: First startup after windows boot is extremely slow

Post by BK201 »

xnview wrote: Thu Mar 11, 2021 3:07 pm
xnview wrote: Tue Mar 09, 2021 11:05 am
BK201 wrote: Tue Mar 09, 2021 10:39 am

It takes like 5 seconds to start in the first run, but I didn't found anything looks like a log, what should I do next?
So almost the same as XnView MP, right? i'm waiting the QT Team
I send you a PM
OK it looks like the fix won't land soon, may I ask for a workaround?
Is there any arguments for the exe that I can run it once at windows start but don't show the GUI or close itself automatically, then I will never experience the "first startup"
User avatar
xnview
Author of XnView
Posts: 44761
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: First startup after windows boot is extremely slow

Post by xnview »

BK201 wrote: Tue May 11, 2021 8:58 am Is there any arguments for the exe that I can run it once at windows start but don't show the GUI or close itself automatically, then I will never experience the "first startup"
QT team dont' understand why it's so slow
Pierre.
User avatar
BK201
Posts: 91
Joined: Fri Apr 06, 2012 3:43 pm

Re: First startup after windows boot is extremely slow

Post by BK201 »

xnview wrote: Tue May 11, 2021 1:47 pm
BK201 wrote: Tue May 11, 2021 8:58 am Is there any arguments for the exe that I can run it once at windows start but don't show the GUI or close itself automatically, then I will never experience the "first startup"
QT team dont' understand why it's so slow
So is there any "shadow start" mode? Or at least "no GUI mode" or "auto quit mode"?

Some windows app did like this, run it once in windows start to prevent slow first startup
User avatar
BK201
Posts: 91
Joined: Fri Apr 06, 2012 3:43 pm

Re: First startup after windows boot is extremely slow

Post by BK201 »

Fine, I do it myself, hope it helps anyone

1. Create SaveQtsAss.bat in xnview Installation folder, where xnviewmp.exe is
2. Edit SaveQtsAss.bat with any text editor, copy and paste following code in

Code: Select all

@echo off & cd/d %~dp0
TIMEOUT 7
REM Edit the image location for youself
START /MIN /I xnviewmp.exe "E:\Doc\Pic\PathToAnyImageYouGot.jpg"

:CHECKLOOP
TIMEOUT 1
TASKLIST /fi "ImageName eq xnviewmp.exe" /fo csv 2>NUL | FIND /I "xnviewmp.exe">NUL
IF "%ERRORLEVEL%"=="0" (
	echo ERRORLEVEL=%ERRORLEVEL%
	TIMEOUT 25
	TASKKILL /IM xnviewmp.exe
) ELSE (
	echo ERRORLEVEL=%ERRORLEVEL%
	GOTO CHECKLOOP
)
REM PAUSE
EXIT
3. Create shortcuts of this SaveQtsAss.bat and place it at %appdata%\Microsoft\Windows\Start Menu\Programs\Startup
*optional: 4. Change run type of the shortcut to minimized window in property if you cares
User avatar
BK201
Posts: 91
Joined: Fri Apr 06, 2012 3:43 pm

Re: First startup after windows boot is extremely slow

Post by BK201 »

Nice

With the new version 0.99, the problem is fixed

It's no longer slow startup of the first run

Now it's slow start of EVERY run, "cache" method I mentioned above is not working too

Good job xnview, I finally got the answer of "how things could be worse"
User avatar
xnview
Author of XnView
Posts: 44761
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: First startup after windows boot is extremely slow

Post by xnview »

BK201 wrote: Mon Sep 20, 2021 9:03 am Good job xnview, I finally got the answer of "how things could be worse"
Yes QT team has fixed the problem
Pierre.