0.84: Very slow startup on Win7 x64

*** Please report new bugs here! ***

Moderator: Dreamer

Post Reply
dough
Posts: 1
Joined: Sun Mar 19, 2017 8:12 am

0.84: Very slow startup on Win7 x64

Post by dough » Sun Mar 19, 2017 8:55 am

XnView: MP 0.84 - 64 bit
OS: Windows 7 - 64bit

xnviewmp.exe always takes at least 6-9 seconds to start up, regardless of whether I execute .exe directly, open an associated file from Explorer or do it in some other way.

Disabling opening file browser on startup, disabling update checking, enabling opening files in tabs instead of separate windows, changing the location of the settings and cache (program directory/user directory/registry) and using different versions (I have tried all portable and non-portable x32 and x64 versions from MP 0.81 to 0.84) do not affect the problem in any way.

In comparison, non-MP XnView (2.39), builtin Windows image viewer and my custom viewer (C++ with modified Qt) launch instantaneously (in less than a second).

Effect: It is impossible to work with large amounts of files from Explorer because of huge delays on opening every file.

To reproduce:
1. Install XnView MP 0.84 on Windows 7 x64 PC.
2. Try to run xnviewmp.exe.
3. The startup will take at least 6 seconds.
Actual behaviour (bug): Startup takes 6+ seconds

Expected behaviour: Instant startup, like with non-MP XnView version

User avatar
xnview
Author of XnView
Posts: 32499
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.84: Very slow startup on Win7 x64

Post by xnview » Sun Mar 19, 2017 3:46 pm

Do you have tried with a clean xnview.ini? to rename the .db files? Which path i used for xnview.ini?
Pierre.

CameronD
Posts: 305
Joined: Wed Aug 01, 2007 1:28 pm
Location: Australia

Re: 0.84: Very slow startup on Win7 x64

Post by CameronD » Mon Mar 27, 2017 2:52 pm

This may or may not be related, but I have been noticing some very slow startup with 0.85b2.

I do not see any problem with v0.84, but v0.85b2 seem to take more like 20 seconds to fire up occasionally.

As far as I can tell, it happens the first time after I resume from hibernation, and sometimes after as well, but most of the time it starts within 1-2 seconds, the same as v0.84

When it starts slowly, the total CPU usage gradually creeps up until it is about 50% and kernel cpu usage is about 1/4 of that. When it starts normally, the cpu usage gives a tiny spike.

Program startup completes in about 15000 page faults whether it starts fast or slowly: when fast it is about 8000 faults per second.
When it starts slowly it can be anything from 100 down to 2 page faults per second.

It does no significant I/O in that time.

The event logs show nothing unusual.

phaolo
Posts: 69
Joined: Tue Dec 29, 2015 11:40 pm

Re: 0.84: Very slow startup on Win7 x64

Post by phaolo » Mon Mar 27, 2017 3:26 pm

Mm, so far I didn't notice any startup slowdown with XnView MP 0.84 on Win7 x64.

CameronD
Posts: 305
Joined: Wed Aug 01, 2007 1:28 pm
Location: Australia

Re: 0.84: Very slow startup on Win7 x64

Post by CameronD » Tue Mar 28, 2017 10:47 pm

In my case, it seems to be MsMpEng.exe (part of the MS antimalware service) that is chewing up all the cpu.

Slow startup time is around 35 seconds :!:

At a guess, it might be related to the fact that my test install is not under "Program Files", so the scanner assumes less, or it might be some weird set of conditions that cause it to do far more than necessary.

User avatar
helmut
Posts: 8176
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: 0.84: Very slow startup on Win7 x64

Post by helmut » Tue Mar 28, 2017 10:55 pm

CameronD wrote:In my case, it seems to be MsMpEng.exe (part of the MS antimalware service) that is chewing up all the cpu. ...
Good that you found out more about the slow startup. So in your case it's not a problem of XnView MP, right? (BTW, I had observed the very slow reaction also once on my computer when I didn't use XnView MP for a longer while. I'm still not sure what was going on, then).

arspr
Posts: 76
Joined: Sat Mar 25, 2017 12:25 pm

Re: 0.84: Very slow startup on Win7 x64

Post by arspr » Sat Apr 01, 2017 11:41 am

I've also suffered it with 0.85 beta versions in Windows 10

At least with these beta versions, the problem seems to be that they are not "signed" or whatever. The very first time I tried to run them after install (copying them, I mean) I got a serious warning from Windows Defender about (I don't exactly remember the exact text) a possible harmful program, bla, bla, bla,...

After this very first time, then every first run after power on, it took quite a lot of time for the program to launch. Subsequent runs were "normal" till next power off/on cycle.

Adding XnView to Windows Defender exceptions solved the issue.

So, yes, it seems a problem with MS antivirus/antimalware software.

User avatar
helmut
Posts: 8176
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: 0.84: Very slow startup on Win7 x64

Post by helmut » Sat Apr 01, 2017 10:34 pm

arspr wrote:...
Adding XnView to Windows Defender exceptions solved the issue.

So, yes, it seems a problem with MS antivirus/antimalware software.
O.k., let's see whether the slow startup still occurs with 0.85 final.

Post Reply