0.84: Slide show: Same image shown multiple times

Reported bugs that have been closed and/or resolved

Moderators: XnTriq, helmut, xnview, Dreamer

Post Reply
User avatar
helmut
Posts: 8705
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

0.84: Slide show: Same image shown multiple times

Post by helmut »

<Moderator's note: This topic has been split from another topic>.

For me this works fine in v0.84.

A minor issue which I'd consider a bug:
The random order sometimes selects an image several times after each other. Result is that the images do no always change because an image is shown twice or more times. (e.g. 1-2-2-4-3-3-1-...)

From my point of view, "Random order" should never repeat an image directly.

Other opinions?
User avatar
m.Th.
XnThusiast
Posts: 1663
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: 0.72: Random slideshow gets stuck

Post by m.Th. »

From my point of view, "Random order" should never repeat an image directly.
Agree. It is a glitch. The slideshow seems "stuck" in this way.


It is easy to fix. Instead of

Code: Select all

While True do
begin
  ShowImage(myImages[Random()]);
  if Esc.Pressed then Exit;
end;
have

Code: Select all

nOldCrt:=-1; //init
while true do
begin
  repeat
    nCrt:=Random();
  until nCrt<>nOldCrt;
  nOldCrt:=nCrt;
  ShowImage(myImages[nCrt]);
  if Esc.Pressed then Exit;
end;
  
Note: The actual code should be very different. This is just to show the thing.
m. Th.

- Dark Themed XnViewMP 1.6 64bit on Win11 x64 -
User avatar
helmut
Posts: 8705
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: 0.84: Slide show: Same image shown multiple times

Post by helmut »

Thank you for confirming. It's a minor issue but the little things also count.

:arrow: Reproduced
User avatar
xnview
Author of XnView
Posts: 43442
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.84: Slide show: Same image shown multiple times

Post by xnview »

O.k., thank you, I can also reproduce the problem. Issue 1253 is fixed in next version.
Pierre.
User avatar
xnview
Author of XnView
Posts: 43442
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.84: Slide show: Same image shown multiple times

Post by xnview »

This problem is supposed to be fixed in XnView MP 0.87. Please check and confirm the bug fix here.
Pierre.
HanVroon
Posts: 216
Joined: Thu Jan 28, 2010 7:30 am

Re: 0.84: Slide show: Same image shown multiple times

Post by HanVroon »

Volunteered for testing with 0.87 beta 2. Seems fixed.

Test procedure and result:
Selected 5 images and put them in a new directory.
Numbered them with the Draw tool, 1 through 5.
Settings:
View, Misc. tab, Quick slide show settings: Delay 3000 ms, Direction Random.
Started the Quick slide show with image number one.
Result: 1 5 1 3 5 4 5 4 3 5 4 2 3 1 5 4 2 1 4, pressed Esc.
So, never the same image twice or more.
Post Reply