Page 1 of 2
ESC doesn't work properly
Posted: Wed Aug 31, 2022 8:03 pm
by literakr
If I am quiting XnView MP by ESC key in whole screen mode with one picture opend, sometimes it ends improperly and some unexpected pictures are displayed after ESC key is pressed.
Re: ESC doesn't work properly
Posted: Thu Sep 01, 2022 9:33 am
by xnview
when you press ESC, another picture file is loaded?
Re: ESC doesn't work properly
Posted: Thu Sep 01, 2022 2:29 pm
by literakr
Yes, exactly. It seems like from the cache or some "similiar" place. And not only one, more pictures. Each ESC press loads another one picture (if exists).
Re: ESC doesn't work properly
Posted: Fri Sep 02, 2022 6:47 am
by xnview
What the steps to reproduce?
- Click on a file
- F11
- ESC
Re: ESC doesn't work properly
Posted: Sat Sep 03, 2022 8:02 am
by literakr
It doesn't appear any time, but simply, yes:
1. Open the file through file manager (I am using FAR Manager).
2. Press ESC key.
The file is closed, by another one appears. Now I can't specify the conditions, when it appears, but I was surprised, because it was not expected behaviour.
Re: ESC doesn't work properly
Posted: Tue Sep 06, 2022 6:21 pm
by literakr
It happened again. I can't reproduce it exactly, but before that I was looking at pictures from some directory. Then I closed XnView and started viewing images from another directory. When I closed it again, suddenly some image from the first directory appeared. As I said the first time, it looks to me like something is left in the memory cache, or just some reference to the history.
It doesn't occure always, I don't know the details, but it happens quite often.
Re: ESC doesn't work properly
Posted: Wed Sep 07, 2022 8:03 am
by xnview
literakr wrote: Tue Sep 06, 2022 6:21 pm
It happened again. I can't reproduce it exactly, but before that I was looking at pictures from some directory. Then I closed XnView and started viewing images from another directory. When I closed it again, suddenly some image from the first directory appeared. As I said the first time, it looks to me like something is left in the memory cache, or just some reference to the history.
It doesn't occure always, I don't know the details, but it happens quite often.
Could you try to disable Settings>View>Misc - Read one image ahead & Keep current image?
Re: ESC doesn't work properly
Posted: Fri Sep 09, 2022 7:51 pm
by literakr
xnview wrote: Wed Sep 07, 2022 8:03 am
literakr wrote: Tue Sep 06, 2022 6:21 pm
It happened again. I can't reproduce it exactly, but before that I was looking at pictures from some directory. Then I closed XnView and started viewing images from another directory. When I closed it again, suddenly some image from the first directory appeared. As I said the first time, it looks to me like something is left in the memory cache, or just some reference to the history.
It doesn't occure always, I don't know the details, but it happens quite often.
Could you try to disable Settings>View>Misc - Read one image ahead & Keep current image?
OK, I'll try it. I have set it, we will see during the time (as I said, it happens randomly, so it requires more time to observe current behaviour).
Re: ESC doesn't work properly
Posted: Tue Oct 04, 2022 7:35 pm
by literakr
literakr wrote: Fri Sep 09, 2022 7:51 pm
xnview wrote: Wed Sep 07, 2022 8:03 am
literakr wrote: Tue Sep 06, 2022 6:21 pm
It happened again. I can't reproduce it exactly, but before that I was looking at pictures from some directory. Then I closed XnView and started viewing images from another directory. When I closed it again, suddenly some image from the first directory appeared. As I said the first time, it looks to me like something is left in the memory cache, or just some reference to the history.
It doesn't occure always, I don't know the details, but it happens quite often.
Could you try to disable Settings>View>Misc - Read one image ahead & Keep current image?
OK, I'll try it. I have set it, we will see during the time (as I said, it happens randomly, so it requires more time to observe current behaviour).
I am using it with disabled cache, but it still appears sometimes. Maybe it's better, but not correct.
Maybe one more observation. It seems to me that the problem occurs when I quickly switch between images.
Re: ESC doesn't work properly
Posted: Thu Oct 06, 2022 6:27 am
by xnview
i can't reproduce, as soon as i press ESC, the tab is closed
Re: ESC doesn't work properly
Posted: Thu Oct 06, 2022 9:24 am
by literakr
xnview wrote: Thu Oct 06, 2022 6:27 am
i can't reproduce, as soon as i press ESC, the tab is closed
I understand, it's a random process, it only occurs sometimes. I don't know the exact procedure how to reproduce it. But sometimes it does occur, really...
I am not using XnView so often, but it appears maybe once a week... (?) Usually, I think, if I am displaying many pictures, from more directories, browsing them forward and backward, repeatedly, has open more instances of the XnView also etc. As I said, it difficult to reproduce it, but I believe, there must be a bug

.
So, OK, I can't tell you more now. I do my best to application has been improved... You can try to play with it as ordinary user, maybe it appears also.
Re: ESC doesn't work properly
Posted: Sat Oct 08, 2022 7:24 am
by literakr
Maybe I have discovered something...
It appears, if I close previous instance of the XnView by Alt+F4 keys.
Try this:
1. Open the viewer by clicking to the image file.
2. Browse the files.
3. Close the application by Alt+F4 keys.
4. Open the viewer again by clicking to the image file.
5. Browse the files.
6. Close the application by ESC key. Now there remains previously last viewed image.
The same behaviour, if I close the application by Close button of the window (step 3). I have turned on cache now again. I guess window closing is improperly handled. Probably last viewed image is not deleted from some cache/temporary space.
The described procedure explains the "randomness" of when the problem appears. Sometimes I closed the application with one procedure, sometimes with the other probably. So it probably has nothing to do with browsing speed, etc. The procedure described is reproducible.
Re: ESC doesn't work properly
Posted: Mon Oct 10, 2022 1:29 pm
by xnview
Tabs are visible? are you sure that you have not saved the current session when quitting?
Re: ESC doesn't work properly
Posted: Fri Oct 14, 2022 6:42 pm
by literakr
xnview wrote: Mon Oct 10, 2022 1:29 pm
Tabs are visible? are you sure that you have not saved the current session when quitting?
As I said, I am closing it by three different ways:
1. ESC key
2. Alt + F4 keys
3. Close button of the application window
I don't save it explicitly (otherwise I don't know). I have attached the screenshot. Also I have attached my settings (INI file).
Re: ESC doesn't work properly
Posted: Fri Oct 14, 2022 7:29 pm
by DenalB
Maybe this happens when you open more than one images?
I can reproduce this in Windows 11 Pro 22H2 as follows:
- Open an image.
- Go back into the browser by clicking the browser icon in the Toolbar or the browser tab.
- Open another image.
- Again, go back into the browser.
- Open a third image.
- Now press ESC and you should see the second image.
- Press ESC again and you should see the first opened image.
- Pressing ESC for the third time should bring you back into the browser.
You should see what happens when enabling to show the tabs.
Is this what you mean?