Page 1 of 1

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

Posted: Tue May 16, 2023 7:46 pm
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.

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

Posted: Thu May 25, 2023 7:33 am
by xnview
The folder of original filename should be readable

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

Posted: Fri May 26, 2023 8:23 pm
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.

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

Posted: Sat May 27, 2023 8:20 am
by xnview
yes but folder of file need to be readable

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

Posted: Sat May 27, 2023 2:31 pm
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?

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

Posted: Sun May 28, 2023 6:23 am
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

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

Posted: Tue May 30, 2023 8:59 pm
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?