Page 1 of 1

Invalid (or chinese?) labelFont causes XnView to start slowly

Posted: Thu Oct 24, 2024 6:44 pm
by fireattack
Main bug: if you have an invalid labelFont setting, e.g.

Code: Select all

[Appearance]
labelFont=@Variant(\0\0\0@\0\0\0\b_\xae\x8fo\x96\xc5\x9e\xd1@\"\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x32\x10)
(In my case, my front name is inherited from a different language Windows, so the font name is not recognized in my new English Windows.)

It causes XnViewMP to start noticeably slowly.

Also, since 1.8.1, the behavior of this slowdown changes when you start xnviewmp.exe with a dir argument.

Steps to reproduce:
1. Create a xnview.ini with the above settings.
2. Run

Code: Select all

xnviewmp.exe .
(notice the dot for opening CWD.)

In 1.4.x~1.8.0, it will immediately show an blank window and then loads after 2 seconds.
In 1.8.1~now, it will only show the program in the taskbar but no window is showing (blank or not), until after2 seconds.

Re: Invalid (or chinese?) labelFont causes XnView to start slowly

Posted: Sun Oct 27, 2024 8:41 am
by xnview
same, i can't reproduce. Is it windows english?

Re: Invalid (or chinese?) labelFont causes XnView to start slowly

Posted: Sun Oct 27, 2024 2:26 pm
by fireattack
Yes, it is English Win10.