Program hangs sometimes when it's started by opening an image.

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

Moderator: Dreamer

Post Reply
Edgarska
Posts: 5
Joined: Tue Sep 25, 2018 5:49 am

Program hangs sometimes when it's started by opening an image.

Post by Edgarska » Tue Sep 25, 2018 6:13 am

If I open an image from the windows explorer by double clicking, sometimes the Xnview MP window will not open. Looking at the task manager, the process is created and cpu use for it remains at around 20%, which is a lot higher than it normally is when an image opens normally, but there is no way to switch to that task, and checking with process explorer reveals that while the process started, a window was not created for it, so switching to it is impossible, it's necessary to kill the process and try again.

PNG images seem to cause this more consistently, specially when they have transparency.

I don't recall when exactly it started happening, but it has happened since at least 0.91.

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

Re: Program hangs sometimes when it's started by opening an image.

Post by xnview » Tue Sep 25, 2018 7:36 am

do you have the 0.92? which windows?
Pierre.

Edgarska
Posts: 5
Joined: Tue Sep 25, 2018 5:49 am

Re: Program hangs sometimes when it's started by opening an image.

Post by Edgarska » Tue Sep 25, 2018 9:56 am

Yes, it's 0.92, system is Windows 8.1.

I looked for a log, but there wasn't any in my temp folder, I guess because it didn't actually crash, is there a way to log everything the program does?

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

Re: Program hangs sometimes when it's started by opening an image.

Post by xnview » Tue Sep 25, 2018 1:29 pm

and which format do you have in the folder that contains the opened images?
Pierre.

Edgarska
Posts: 5
Joined: Tue Sep 25, 2018 5:49 am

Re: Program hangs sometimes when it's started by opening an image.

Post by Edgarska » Tue Sep 25, 2018 1:42 pm

It's not always the same folder, sometimes it's a folder with many other non-image files, sometimes it's just a folder with PNGs and JPGs.

Edit: Just to rule out it being a weird file in the folder, it just happened while opening a PNG image with no transparency, in a folder that had only other PNG images, 242 images at 1920x1080, so it probably wasn't because the folder is too populated.

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

Re: Program hangs sometimes when it's started by opening an image.

Post by xnview » Wed Sep 26, 2018 9:13 am

Edgarska wrote:
Tue Sep 25, 2018 1:42 pm
Edit: Just to rule out it being a weird file in the folder, it just happened while opening a PNG image with no transparency, in a folder that had only other PNG images, 242 images at 1920x1080, so it probably wasn't because the folder is too populated.
could you try on a folder with only this PNG file, and one other PNG?
Pierre.

Edgarska
Posts: 5
Joined: Tue Sep 25, 2018 5:49 am

Re: Program hangs sometimes when it's started by opening an image.

Post by Edgarska » Thu Sep 27, 2018 6:28 am

I just tried to open different images in a folder with other images, with one other image, and a folder with many other images, 50 times each, and the program didn't hang once.
However, after closing the window, sometimes the xnview process would remain open with no window visible, and high CPU usage, which is basically the same thing as the bug I initially reported, but at file close instead of open. CPU usage is hovering at around 20% for the process. If I try to open another image while the process is hung up another process is created and immediately terminated, without a window ever becoming visible.

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

Re: Program hangs sometimes when it's started by opening an image.

Post by xnview » Thu Sep 27, 2018 7:09 am

please try to disable settings>View>Misc>Read ahead?
Pierre.

Edgarska
Posts: 5
Joined: Tue Sep 25, 2018 5:49 am

Re: Program hangs sometimes when it's started by opening an image.

Post by Edgarska » Fri Sep 28, 2018 9:11 pm

I have disabled that option, and so far I haven't had the problem show up again.
Will update if it happens again, thanks.

Edit: It happened again even after the change, a folder with 247 PNG images.

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

Re: Program hangs sometimes when it's started by opening an image.

Post by xnview » Mon Oct 08, 2018 8:31 am

Edgarska wrote:
Fri Sep 28, 2018 9:11 pm
Edit: It happened again even after the change, a folder with 247 PNG images.
If you start XnView's browser, and open an image, you have not this problem?
Pierre.

Post Reply