1.6.2: Hangs on startup

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

Moderators: XnTriq, helmut, xnview, Dreamer

PolaricEntropy
Posts: 4
Joined: Fri Nov 24, 2023 1:46 pm

1.6.2: Hangs on startup

Post by PolaricEntropy »

XnView: MP 1.6.2 - 64 bit
OS: Windows 11 22H2 - 64bit

The application is totally non-functional since it hangs on startup.<Short description of the problem.>

Effect: XnView hangs

To reproduce:
1. Install XnView 1.6.2 (either on top of an existing installation or freshly)
2. Launch the application from the installer or afterward from Start.

Actual behavior (bug): The main window opens but is white. Eventually, Windows modified the window title and added "(Not Responding)" :bug:

Expected behavior: XnView opens correctly in the browser view.

Analyzing the wait chain in Task Manager seems that xnviewmp.exe is waiting for another process (svchost.exe). I'm attaching the Windows Error Report from one instance of where it hangs since it might contain useful information.
You do not have the required permissions to view the files attached to this post.
User avatar
xnview
Author of XnView
Posts: 44461
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: 1.6.2: Hangs on startup

Post by xnview »

no problem with previous version?
Pierre.
PolaricEntropy
Posts: 4
Joined: Fri Nov 24, 2023 1:46 pm

Re: 1.6.2: Hangs on startup

Post by PolaricEntropy »

The previous version works fine, at least I haven't noticed anything like this in the past.
However, it seems that if I open an image with XnView it works as expected and displays the image. If I then close XnView and try to open it again from Start, then it loads fine, some of the time. It seems intermittent, and I'm sure it has to do with loading up an empty browser window. I'm guessing it has to iterate through all of the drives and folders and that it could hang at that point?

For instance I have problems with browsing through OneDrive folders (but that's not really new with this release), since my files are "on demand", so XnView attempts to access the file and thus has to wait for OneDrive to download it. Maybe it's connected? Could the iteration of files/folders/drives be done async so the application doesn't freeze just cause it can't access the specific item at the moment?
You do not have the required permissions to view the files attached to this post.
User avatar
xnview
Author of XnView
Posts: 44461
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: 1.6.2: Hangs on startup

Post by xnview »

PolaricEntropy wrote: Sat Nov 25, 2023 4:10 pm The previous version works fine, at least I haven't noticed anything like this in the past.
You have the problem only when opening files from onedrive folders? In previous you had not same problem?
Pierre.
PolaricEntropy
Posts: 4
Joined: Fri Nov 24, 2023 1:46 pm

Re: 1.6.2: Hangs on startup

Post by PolaricEntropy »

xnview wrote: Sun Nov 26, 2023 7:27 am
PolaricEntropy wrote: Sat Nov 25, 2023 4:10 pm The previous version works fine, at least I haven't noticed anything like this in the past.
You have the problem only when opening files from onedrive folders? In previous you had not same problem?
No. What I'm saying is that in 1.6.2 and previous versions I've noticed that the application hangs when browsing OneDrive folders (usually with large files), since XnView tries to load up all the files in the folder, and has to wait until OneDrive downloads the files so they are available.

The new problem is that just opening the application to the file browser sometimes makes it hang.

What I'm thinking is that it could be the same underlying problem. XnView tries to read resources and gets some sort of wait from the filesystem and thus the entire application hangs.

I also tried to launch XnViewMP.exe from WinDbg and I see some warnings regarding libpng, maybe it's related.
You do not have the required permissions to view the files attached to this post.
PolaricEntropy
Posts: 4
Joined: Fri Nov 24, 2023 1:46 pm

Re: 1.6.2: Hangs on startup

Post by PolaricEntropy »

Could you please provide me with a download link for 1.6.1 so I could see if the problem occurs there. As far as I can see I can't find the old installer anywhere.
User avatar
xnview
Author of XnView
Posts: 44461
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: 1.6.2: Hangs on startup

Post by xnview »

PolaricEntropy wrote: Sun Nov 26, 2023 1:48 pm Could you please provide me with a download link for 1.6.1 so I could see if the problem occurs there. As far as I can see I can't find the old installer anywhere.
https://download.xnview.com/old_versions/
Pierre.