Freezing on zoom in/out after updating to 3.0.0
See original GitHub issueHi, I’m running into issues with the map control freezing/taking a long time to load tiles after 3.0.0. I’m getting a bunch of complaints about that. 3.0.0-rc4 was ok, but I’m noticing this too, here’s a YT video:
https://www.youtube.com/watch?v=R2E4g9qh4rA
I’m scrolling out with the mouse wheel, you can see it kinda freezes and then continues. I’m not seeing any spikes in CPU usage; I haven’t changed my map code. I am using WPF. My init code is pretty simple, it’s just this, simplified:
public class MapConfig {
public static PlayerMapLayers playerMapLayers;
public static RemoteMapLayers remoteMapLayers;
/// <summary>
///
/// </summary>
/// <returns></returns>
public static Mapsui.Map ConfigureMap()
{
var map = new Mapsui.Map { CRS = "EPSG:3857" };
map.Home = MapHome;
Mapsui.Logging.Logger.LogDelegate += (level, message, ex) => {
if (ex != null)
System.Diagnostics.Debug.WriteLine($"APP message: {message} | Exception: {ex?.Message}");
};
ConfigureTileLayers(map);
return map;
}
/// <summary>
/// Logic for map centering and moving into the right place
/// </summary>
/// <param name="navigator"></param>
public static void MapHome(INavigator navigator)
{
if (playerMapLayers == null || remoteMapLayers == null) {
return;
}
if (playerMapLayers.FlightPlanBoundingBox != null) {
navigator.NavigateTo(playerMapLayers.FlightPlanBoundingBox);
} else {
// See if there are remote flights to zoom in on
if (remoteMapLayers.RemoteFlightsBoundingBox != null) {
navigator.NavigateTo(remoteMapLayers.RemoteFlightsBoundingBox);
}
}
// Might be resuming, so center on the player
playerMapLayers.CenterOnPlayer();
}
/// <summary>
/// The different map layers
/// </summary>
/// <param name="map"></param>
protected static void ConfigureTileLayers(Mapsui.Map map)
{
map.Layers.Add(OpenStreetMap.CreateTileLayer());
}
}
Removing the MapHome doesn’t make a difference. I can downgrade to the rc and it’s fine.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Troubleshooting Zoom video crashes
Restart your computer. If your screen still freezes or Zoom still crashes after a restart, check if the camera works in a Mac...
Read more >6 Ways to Fix Zoom Crashing or Freezing
6 Ways to Fix Zoom Crashing or Freezing · 1. Check Zoom's Service Status · 2. Update Zoom · 3. Disable Hardware Acceleration...
Read more >Solved: Video freezing since recent update
Hi @SSH Please try adjusting the video settings in Zoom Client -> Settings -> Video -> Advanced -> Uncheck Receiving Video in the...
Read more >How to Fix Zoom Crashing or Freezing
How to Fix Zoom Crashing or Freezing · Check Your Internet Connection · Check Zoom Service Status Online · Update Your Zoom App...
Read more >[Solved] System freezes while using zoom
Hello everyone. Every time I use Zoom, the computer completely freezes after a couple of minutes and I have to force a reboot....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

3.0.1 was released with a fix for this. Please check it out.
Yeah, was just diving into the docs, haven’t used it before. Thanks again!