-
Notifications
You must be signed in to change notification settings - Fork 29.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Images do not show updated when changed on disk #7951
Comments
Will add further details later e.g. memory usage, dumps etc.. /cc @bpasero (If you want to track) |
@eByte23 how large are those images? can you attach the files you use? |
@bpasero I can't provide the images as the are client images probably copyrighted also. |
Thanks. And the files you open are all of the same file type and similar size? |
Just varying of all those types, it was happening switch between the biggest file in the list to others very quickly |
There are multiple issues:
I do not have good solutions. If we disable the random number, we easily hit an issue where users would see stale images if they change meanwhile which can be frustrating. The more interesting question is: Can we teach Chrome somehow to release the image resources? I have filed electron/electron#6275 against Electron to find out. |
Since this has been like that since day one, and my proposed solution using a webview is rather large, I am moving this to July to investigate further. |
I pushed a workaround for now to not add a random number to the image URL when showing the image. This has the benefit of keeping the memory pressure low because we avoid loading the same image over and over. It has the downside that the image will not show any changes if it has been updated. I plan to add an explicit refresh action to the image viewer so that you can still force it to repaint. |
Marking as upstream due to electron/electron#6275 |
In gulp there is a |
Verify: images changed outside are reloading in VS Code (both for when the image is active in a tab as well as if inactive and you make it active). |
this is still happening to me |
New description @bpasero
Depends on electron/electron#6275
Old
1- Steps to Reproduce:
2- Steps to Reproduce:
The text was updated successfully, but these errors were encountered: