ESC doesn't work properly
Moderators: helmut, XnTriq, xnview, Dreamer
ESC doesn't work properly
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
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
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.
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
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.
It doesn't occure always, I don't know the details, but it happens quite often.
Re: ESC doesn't work properly
Could you try to disable Settings>View>Misc - Read one image ahead & Keep current image?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.
Pierre.
Re: ESC doesn't work properly
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).xnview wrote: Wed Sep 07, 2022 8:03 amCould you try to disable Settings>View>Misc - Read one image ahead & Keep current image?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.
Re: ESC doesn't work properly
literakr wrote: Fri Sep 09, 2022 7:51 pmOK, 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).xnview wrote: Wed Sep 07, 2022 8:03 amCould you try to disable Settings>View>Misc - Read one image ahead & Keep current image?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.
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
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
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.
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
Tabs are visible? are you sure that you have not saved the current session when quitting?
Pierre.
Re: ESC doesn't work properly
As I said, I am closing it by three different ways: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?
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).
- Attachments
-
- xnview.ini.7z
- Settings
- (5.53 KiB) Downloaded 19 times
Re: ESC doesn't work properly
Maybe this happens when you open more than one images?
I can reproduce this in Windows 11 Pro 22H2 as follows:
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.