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

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

Moderators: XnTriq, helmut, xnview, Dreamer

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 »

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: 43357
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 »

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 »

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: 43357
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 »

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 »

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: 43357
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 »

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 »

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: 43357
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 »

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 »

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: 43357
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 »

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.
ebmaster
Posts: 7
Joined: Sat Feb 12, 2022 5:55 pm

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

Post by ebmaster »

Hello from 2022! Have the same problem with latest 0.99.7 64bit.
I have a big folder with a lot of downloaded images. And no one open without long hanging (20 seconds for example)
Tried "disable settings>View>Misc>Read" with no result.
If I start XnView's browser, and open an image - there is no problem. Any ideas? Thanks!
User avatar
xnview
Author of XnView
Posts: 43357
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 »

ebmaster wrote: Sat Feb 12, 2022 6:04 pm I have a big folder with a lot of downloaded images. And no one open without long hanging (20 seconds for example)
If I start XnView's browser, and open an image - there is no problem. Any ideas? Thanks!
when you start XnView's browser in this folder, no delay?
Pierre.
ebmaster
Posts: 7
Joined: Sat Feb 12, 2022 5:55 pm

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

Post by ebmaster »

xnview wrote: Mon Feb 14, 2022 9:43 am
ebmaster wrote: Sat Feb 12, 2022 6:04 pm I have a big folder with a lot of downloaded images. And no one open without long hanging (20 seconds for example)
If I start XnView's browser, and open an image - there is no problem. Any ideas? Thanks!
when you start XnView's browser in this folder, no delay?
There is delay, but no so huge, if i open image from windows explorer.
User avatar
xnview
Author of XnView
Posts: 43357
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 »

ebmaster wrote: Mon Feb 14, 2022 10:11 am There is delay, but no so huge, if i open image from windows explorer.
how many files or/and subfolder do you have in this folder? Is it a jpeg file?
Pierre.
ebmaster
Posts: 7
Joined: Sat Feb 12, 2022 5:55 pm

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

Post by ebmaster »

xnview wrote: Mon Feb 14, 2022 11:51 am
ebmaster wrote: Mon Feb 14, 2022 10:11 am There is delay, but no so huge, if i open image from windows explorer.
how many files or/and subfolder do you have in this folder? Is it a jpeg file?
This folder contains 34 jpg files, 2 png and 1 gif, but this this junk Download folder 64Gb size, ~341 files and 40 folders. In total it have ~ 1350 folders and subfolders and ~15K files in it. I tried to transfer all my 37 files in new dir and they open instantly. Maybe XnView trying to build some type of directory tree?
Post Reply