1.4.4: XnView MP freezes when SMB share (file) is unreachable

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

Moderators: XnTriq, helmut, xnview, Dreamer

HumanEntity
Posts: 8
Joined: Sat Nov 13, 2021 2:49 pm

1.4.4: XnView MP freezes when SMB share (file) is unreachable

Post by HumanEntity »

XnView: MP 1.4.4 - 64 bit
OS: Windows 10

XnView MP completely freezes for a certain amount of time when the file that's currently opened, is unreadable.

Effect: XnView MP is completely unresponsive. It's so bad, that the window itself cannot be interacted with. After about 30 seconds or so, it 'restores' itself. Even if the file is no longer readable.

To reproduce:

This is probably the easiest way to do it. There might be other ways.
- Open a file on a network share in XnView MP
- Disconnect from the share. e.g. disable your ethernet adapter.
- XnView MP should freeze completely. This is especially noticable when recovering from standby, and being disconnected from the network. This can easily happen when moving a laptop around.

______________________________________________________

Actual behaviour (bug): XnView MP becomes unresponsive for an certain amount of time.
______________________________________________________

Expected behaviour: XnView MP should stay responsive, and keep the file buffered. (and not re-read it)

Thanks in advance.
User avatar
xnview
Author of XnView
Posts: 43132
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: 1.4.4: XnView MP freezes when SMB share (file) is unreachable

Post by xnview »

The folder of original filename should be readable
Pierre.
HumanEntity
Posts: 8
Joined: Sat Nov 13, 2021 2:49 pm

Re: 1.4.4: XnView MP freezes when SMB share (file) is unreachable

Post by HumanEntity »

Hi,

This issue happens when the file already has been opened (and thus read) in XnView. If for whatever reason the file becomes 'unreadable' when the program is open, the program freezes.
User avatar
xnview
Author of XnView
Posts: 43132
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: 1.4.4: XnView MP freezes when SMB share (file) is unreachable

Post by xnview »

yes but folder of file need to be readable
Pierre.
HumanEntity
Posts: 8
Joined: Sat Nov 13, 2021 2:49 pm

Re: 1.4.4: XnView MP freezes when SMB share (file) is unreachable

Post by HumanEntity »

I understand, but this behavior is not intended, right? I'm not interacting with the program (or the window of it, for that matter. It's minimized), but it just ends up in a buggy state, until either 30 seconds or so have passed, or the file becomes readable.

The better question is: why does XnView MP tries to re-read a file when the window is interacted with?
User avatar
xnview
Author of XnView
Posts: 43132
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: 1.4.4: XnView MP freezes when SMB share (file) is unreachable

Post by xnview »

HumanEntity wrote: Sat May 27, 2023 2:31 pm The better question is: why does XnView MP tries to re-read a file when the window is interacted with?
XnView need to access the folder of source images, for example to check changes or next/previous file
Pierre.
HumanEntity
Posts: 8
Joined: Sat Nov 13, 2021 2:49 pm

Re: 1.4.4: XnView MP freezes when SMB share (file) is unreachable

Post by HumanEntity »

xnview wrote: Sun May 28, 2023 6:23 am
HumanEntity wrote: Sat May 27, 2023 2:31 pm The better question is: why does XnView MP tries to re-read a file when the window is interacted with?
XnView need to access the folder of source images, for example to check changes or next/previous file
That does make sense. Can the program delay that action, until it's really interacted with? e.g. pressing the arrow keys on the window to change file. This is probably a lot of work, but can it otherwise perform this action, asynchronously?