[haiku-bugs] [Haiku] #17803: ShowImage will show an old file after overwriting it if a window stays open

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Wed, 15 Jun 2022 04:23:53 -0000

#17803: ShowImage will show an old file after overwriting it if a window stays 
open
------------------------------------+-----------------------------
 Reporter:  fatigatti               |       Owner:  leavengood
     Type:  bug                     |      Status:  new
 Priority:  normal                  |   Milestone:  Unscheduled
Component:  Applications/ShowImage  |     Version:  R1/Development
 Keywords:                          |  Blocked By:
 Blocking:                          |    Platform:  All
------------------------------------+-----------------------------
 To reproduce, you need (say) three image files, namely file1.png,
 file2.png and file3.png.

 1) Open file1.png with ShowImage and leave that window open.
 2) Open file2.png, see what's the content, close this window.
 3) Delete or rename file2.png and then rename file3.png to file2.png.
 4) Double click file2.png in Tracker. ShowImage will show the old file
 instead of the current one.

 This doesn't happen if no ShowImage window stays open, so it's probably
 some kind of caching. Note that file1.png doesn't even need to be in the
 same folder (at first I tought it was caching the entire folder contents
 so it seemed "logical", if a little strange). As long as there's a
 ShowImage process running you can reproduce the bug.

 How I run into this? I was trying to export a genealogy tree to png and I
 didn't frame it right the first time, so I simply overwrote the file and
 for some reason I had a ShowImage already opened. Definitely a common use
 case (i.e. you edit an image, don't get it right, overwrite, open to see
 the new one).
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/17803>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: