Invalid (or chinese?) labelFont causes XnView to start slowly
Posted: Thu Oct 24, 2024 6:44 pm
Main bug: if you have an invalid labelFont setting, e.g.
(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 (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.
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)
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 .
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.