100% cpu load on exiting viewing mode

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: helmut, XnTriq, xnview

Post Reply
User avatar
larsen
Posts: 66
Joined: Thu Mar 20, 2008 10:07 am

100% cpu load on exiting viewing mode

Post by larsen »

Hello,

when I open an image via doubleclick in windows explorer (opens fullscreen, no browser) and then press ESC to close XnView I get 100% cpu load, the XnView window opens and it needs several seconds to close. Screenshot: http://i31.tinypic.com/20zyc6r.png

This happens when there are ~100 files (mostly no images) in the directory. It doesn´t happen when the opened image is the only one in that folder. Thumbnail caching is disabled.

Win XP SP2.
Is this a XnView or configuration problem? Which parts should I check?


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

Re: 100% cpu load on exiting viewing mode

Post by xnview »

Could you try to disabled option 'read ahead'?
Pierre.
User avatar
larsen
Posts: 66
Joined: Thu Mar 20, 2008 10:07 am

Post by larsen »

I couldn´t find this option. Where is it?
User avatar
xnview
Author of XnView
Posts: 46255
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

larsen wrote:I couldn´t find this option. Where is it?
Option/View/Misc/Cache
Pierre.
User avatar
larsen
Posts: 66
Joined: Thu Mar 20, 2008 10:07 am

Post by larsen »

Without that option checked, it´s ok. Should XnView read one image ahead when I close the program?
User avatar
xnview
Author of XnView
Posts: 46255
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

larsen wrote:Without that option checked, it´s ok. Should XnView read one image ahead when I close the program?
So xnview is reading a picture when you close, perhaps you have big picture file?
Pierre.
User avatar
larsen
Posts: 66
Joined: Thu Mar 20, 2008 10:07 am

Post by larsen »

The one I have opened has 8kb. There are some PDFs < 60kb and another jpg with 141kb.

I guess it is opening a non-picture file where I have several others (e.g. rar with 35mb).

But why is XnView reading another file when I close the program? I would assume that it only closes the window.
User avatar
xnview
Author of XnView
Posts: 46255
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

larsen wrote: But why is XnView reading another file when I close the program? I would assume that it only closes the window.
No, you open xnview, a thread that reading next picture, you close, so a delay before the thread quit
Pierre.
User avatar
larsen
Posts: 66
Joined: Thu Mar 20, 2008 10:07 am

Post by larsen »

Ah, yes. It´s also ok when I wait 10 seconds (with read ahead enabled). But does XnView read only one image or many? In the first case I wonder why this is so slow regarding the file sizes I already posted.
User avatar
xnview
Author of XnView
Posts: 46255
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

larsen wrote:Ah, yes. It´s also ok when I wait 10 seconds (with read ahead enabled). But does XnView read only one image or many? In the first case I wonder why this is so slow regarding the file sizes I already posted.
When you press PageUp, what is your next picture? A big file?
Pierre.
User avatar
larsen
Posts: 66
Joined: Thu Mar 20, 2008 10:07 am

Post by larsen »

My folder:
1) jpg, 8kb
2) jpg, 138kb
3) other image files

There are several other non-images in that folder. For testing, I open the first one and press ESC.

When I open the second one and press PgUp, it takes some seconds until the first one is shown.
Post Reply