[prev in list] [next in list] [prev in thread] [next in thread] 

List:       haiku-bugs
Subject:    [haiku-bugs] Re: [Haiku] #17803: ShowImage will show an old file after overwriting it if a window st
From:       "Haiku" <trac () haiku-os ! org>
Date:       2022-07-29 18:05:51
Message-ID: 060.87f064248919497cb9eab48a5b723abf () haiku-os ! org
[Download RAW message or body]

--===============7942232007017410572==
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

#17803: ShowImage will show an old file after overwriting it if a window st=
ays open
-------------------------------------+----------------------------
  Reporter:  fatigatti               |      Owner:  leavengood
      Type:  bug                     |     Status:  new
  Priority:  normal                  |  Milestone:  Unscheduled
 Component:  Applications/ShowImage  |    Version:  R1/Development
Resolution:                          |   Keywords:
Blocked By:                          |   Blocking:
  Platform:  All                     |
-------------------------------------+----------------------------
Comment (by leavengood):

 I'll test to reproduce but this is likely due to the caching as ttcoder
 deduced. If you have the actual file being replaced open then the node
 monitoring should update it. But I am fairly sure the caching code just
 loads the file and caches the bytes so that when you go to the next file
 with the arrow keys you don't have to wait for it to load. So if the file
 changes underneath it still has the old bytes. It also obviously uses the
 cache if you open a file that is already cached, which is this bug in
 question. But I think it would also is a bug if you replaced file2.png and
 then moving to it in the slideshow showed the old file (and I assume that
 is indeed what happens now.)

 I think the solution will be to have the caching code do node monitoring
 and reload on change. Though that might get tricky and I feel like this
 code may already have some data races.

 I've been wanting to fix some issues in ShowImage for many years but
 haven't had Haiku dev time for a while but I should finally have a dev
 setup again soon.
-- =

Ticket URL: <https://dev.haiku-os.org/ticket/17803#comment:4>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.
--===============7942232007017410572==--

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic