ESC doesn't work properly

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

Moderators: helmut, XnTriq, xnview, Dreamer

literakr
Posts: 16
Joined: Wed Aug 31, 2022 7:27 pm

ESC doesn't work properly

Post 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.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: ESC doesn't work properly

Post by xnview »

when you press ESC, another picture file is loaded?
Pierre.
literakr
Posts: 16
Joined: Wed Aug 31, 2022 7:27 pm

Re: ESC doesn't work properly

Post 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).
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: ESC doesn't work properly

Post by xnview »

What the steps to reproduce?
- Click on a file
- F11
- ESC
Pierre.
literakr
Posts: 16
Joined: Wed Aug 31, 2022 7:27 pm

Re: ESC doesn't work properly

Post 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.
literakr
Posts: 16
Joined: Wed Aug 31, 2022 7:27 pm

Re: ESC doesn't work properly

Post 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.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: ESC doesn't work properly

Post 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?
Pierre.
literakr
Posts: 16
Joined: Wed Aug 31, 2022 7:27 pm

Re: ESC doesn't work properly

Post 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).
literakr
Posts: 16
Joined: Wed Aug 31, 2022 7:27 pm

Re: ESC doesn't work properly

Post 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.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: ESC doesn't work properly

Post by xnview »

i can't reproduce, as soon as i press ESC, the tab is closed
Pierre.
literakr
Posts: 16
Joined: Wed Aug 31, 2022 7:27 pm

Re: ESC doesn't work properly

Post 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.
literakr
Posts: 16
Joined: Wed Aug 31, 2022 7:27 pm

Re: ESC doesn't work properly

Post 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.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: ESC doesn't work properly

Post by xnview »

Tabs are visible? are you sure that you have not saved the current session when quitting?
Pierre.
literakr
Posts: 16
Joined: Wed Aug 31, 2022 7:27 pm

Re: ESC doesn't work properly

Post 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).
Attachments
xnview.ini.7z
Settings
(5.53 KiB) Downloaded 20 times
Screenshot
Screenshot
DenalB
Posts: 32
Joined: Fri Oct 14, 2022 1:28 pm
Location: Germany

Re: ESC doesn't work properly

Post by DenalB »

Maybe this happens when you open more than one images?

I can reproduce this in Windows 11 Pro 22H2 as follows:
  1. Open an image.
  2. Go back into the browser by clicking the browser icon in the Toolbar or the browser tab.
  3. Open another image.
  4. Again, go back into the browser.
  5. Open a third image.
  6. Now press ESC and you should see the second image.
  7. Press ESC again and you should see the first opened image.
  8. Pressing ESC for the third time should bring you back into the browser.
You should see what happens when enabling to show the tabs.
Tabs.jpg
Is this what you mean?
Post Reply