openlayers / openlayers

OpenLayers
https://openlayers.org
BSD 2-Clause "Simplified" License
11.13k stars 3.01k forks source link

Empty map when returning to tab in Google Chrome? #15839

Open theodol59 opened 2 months ago

theodol59 commented 2 months ago

Good afternoon,

I noticed it only today so maybe it is related with recent Google Chrome or Windows update.. I have some apps using OpenLayers 6.15.1 and some apps using 9.2.1. Bug is reproducible on both versions.

Just open any of your official samples like https://openlayers.org/en/latest/examples/accessible.html in one Google Chrome tab, then open another Google Chrome tab and then come back to first tab which has map. I see blank map canvas instead of map. When I drag empty canvas or zoom it, map reappears. It is not reproducible in Mozilla or Microsoft Edge. Maybe it is related with how much memory Google Chrome uses at this moment. If I start Google Chrome fresh, I don't see problem.

I have Windows 10 Home and Google Chrome Version 125.0.6422.61 (Official Build) (64-bit)

mike-000 commented 2 months ago

Also seeing that in the latest Chrome (updated today) with a large number of tabs open. I cannot reproduce it if I turn off memory saver in chrome://settings/performance

mike-000 commented 2 months ago

I have now seen this happening regardless of the memory saver setting. In https://openlayers.org/en/latest/examples/export-map.html where the map has a 2d context for the vector layer and WebGL for the heatmap layer only the 2d layer is disappearing.

mike-000 commented 2 months ago

See https://issues.chromium.org/issues/328755781