Folder tree very slow to load

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

Moderators: XnTriq, helmut, xnview

gothate
Posts: 20
Joined: Wed Dec 22, 2004 2:16 am

Folder tree very slow to load

Post by gothate »

Hey, I haven't seen this issue on the forums. For some reason, recently Xnview has been freezing for about 45 seconds when I start it up in Browse mode, or go to browse mode from a picture. It will show about 11 folders/items immediately, and then hang for 45 seconds and then the rest of the folders will appear. After that initial loading everything seems fine and quick.

This happens with a clean install of xnview, and fresh preferences.
Windows 7
Xnview 1.97.2

It didn't do this a couple months ago so I'm wondering if I installed something that is messing it up?
User avatar
XnTriq
Moderator & Librarian
Posts: 6402
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Folder tree very slow to load

Post by XnTriq »

XnTriq ([url=http://newsgroup.xnview.com/viewtopic.php?p=84025#p84025]crash when opening folder on D drive[/url]) wrote:
bobby70 wrote:But there is an issue whenever the file browser within XnView comes into play. When I click around in the folder structure, sooner or later XnView will "hang". Hourglass symbol is visible, XnView window frozen, program is not using CPU time any more, no response any more, apparently in some kind of "wait" state. Contrary to what I believed first, this issue isn't limited to partition D, but may also show on other partitions.
This can occur, if XnView tries to generate a thumbnail for an HTML file which has images embedded in it whose URLs are pointing to MSIE's Internet Security Zone.
User avatar
xnview
Author of XnView
Posts: 45193
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Folder tree very slow to load

Post by xnview »

If you start XnView in browser mode, you have such freeze?
Pierre.
gothate
Posts: 20
Joined: Wed Dec 22, 2004 2:16 am

Re: Folder tree very slow to load

Post by gothate »

xnview wrote:If you start XnView in browser mode, you have such freeze?
Yeah, it freezes if I start it in browse mode, and if I start it in view mode and switch to browse the first time.

@XnTriq: I'll try and see if there's some sort of HTML file somewhere hanging it up, it happens very consistently and regardless of the start folder.
User avatar
xnview
Author of XnView
Posts: 45193
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Folder tree very slow to load

Post by xnview »

Could you try to rename xnview.ini, xnview.db & categroy.db?
Pierre.
gothate
Posts: 20
Joined: Wed Dec 22, 2004 2:16 am

Re: Folder tree very slow to load

Post by gothate »

Okay, tried renaming all of those files but it didn't seem to have any effect. Also Xnview has not recreated any of those files either after they were renamed.
User avatar
xnview
Author of XnView
Posts: 45193
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Folder tree very slow to load

Post by xnview »

gothate wrote:Okay, tried renaming all of those files but it didn't seem to have any effect. Also Xnview has not recreated any of those files either after they were renamed.
In windows explorer, it's not long?
Pierre.
gothate
Posts: 20
Joined: Wed Dec 22, 2004 2:16 am

Re: Folder tree very slow to load

Post by gothate »

Not sure what you mean? Windows Explorer by itself is very quick.
User avatar
xnview
Author of XnView
Posts: 45193
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Folder tree very slow to load

Post by xnview »

gothate wrote:Not sure what you mean? Windows Explorer by itself is very quick.
And if you start in an empty folder?
Pierre.
gothate
Posts: 20
Joined: Wed Dec 22, 2004 2:16 am

Re: Folder tree very slow to load

Post by gothate »

I opened it at the root of C: which has no images, but regardless of which folder it starts I have the same issue (also tried various other folders, including completely empty ones). I took some screenshots, perhaps they will help? The first screenshot is when it is loading the folder tree. The second is after it has finally loaded _45 seconds later.

http://img156.imageshack.us/i/xnview1.png/
http://img443.imageshack.us/i/xnview2.png/
User avatar
oops66
XnThusiast
Posts: 2005
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Re: Folder tree very slow to load

Post by oops66 »

gothate wrote:Okay, tried renaming all of those files but it didn't seem to have any effect. Also Xnview has not recreated any of those files either after they were renamed.
FI: Maybe you have deleted (renamed) these files but in a wrong folder (not the active one for xnview) , maybe ?
(xnview.ini, xnview.db & category.db)
XnViewMP Linux X64 - Debian - X64
gothate
Posts: 20
Joined: Wed Dec 22, 2004 2:16 am

Re: Folder tree very slow to load

Post by gothate »

oops66 wrote:FI: Maybe you have deleted (renamed) these files but in a wrong folder (not the active one for xnview) , maybe ?
(xnview.ini, xnview.db & category.db)
Hmm. I renamed all the files in the C:\Users\*username*\AppData\Roaming\XnView directory.

My Xnview options are currently:
Options > System Integration > Save options > *as INI in folder - XnView

When I changed it to
Options > System Integration > Save options > *as INI in folder - User
it saved the xnview.ini file in the aforementioned directory. Which leads me to think that maybe the files I renamed in there were just left over from a previous installation. However, I have no idea where the "as INI in folder - Xnview" setting actually puts the INI, since I don't see it in the Program Files/Xnview directory. It does however still remember settings between sessions, so it's saving them somewhere.
User avatar
oops66
XnThusiast
Posts: 2005
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Re: Folder tree very slow to load

Post by oops66 »

Hello,
If you rename the good files, so they should be recreated after the next xnview restart, if not, these files are not the good ones.
...My Xnview options are currently:
Options > System Integration > Save options > *as INI in folder - XnView ...
So with xp the files are usually located here : C:\Program Files\xnview\

FI: For Windows seven, I don't know but you can try to find them with the windows file manager with the search function ...
XnViewMP Linux X64 - Debian - X64
gothate
Posts: 20
Joined: Wed Dec 22, 2004 2:16 am

Re: Folder tree very slow to load

Post by gothate »

Okay, I found where it keeps the files if you have it set to Options > System Integration > Save options > *as INI in folder - XnView. The files are kept in:
C:\Users\*username*\AppData\Local\VirtualStore\Program Files\XnView
This webpage explains why (if you're curious): http://zone.ni.com/devzone/cda/tut/p/id/5538#toc3
For example, take a legacy software application that attempts to write to a configuration INI file located in:

C:\Program Files\<application>\Setup.ini

Windows Vista automatically detects that you do not have permission to save to that location. Windows Vista then copies the file (if it already exists) to:

C:\Users\<your_account>\AppData\Local\VirtualStore\Program Files\<application>\Setup.ini

Windows Vista then allows the write operation to succeed at the new file in the VirtualStore folder. Subsequent read and write operations for that file will always use the file copy located in the VirtualStore folder. However, the application will continue to believe that it is accessing the Program Files directory (see Figure 4).
I did rename all 3 files and upon the next startup of xnview it behaved like a first startup, but the delay is still there.
User avatar
xnview
Author of XnView
Posts: 45193
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Folder tree very slow to load

Post by xnview »

gothate wrote: I did rename all 3 files and upon the next startup of xnview it behaved like a first startup, but the delay is still there.
You have no network drive?
Pierre.