question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Freezing on zoom in/out after updating to 3.0.0

See original GitHub issue

Hi, 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
pauldendulkcommented, Oct 14, 2021

3.0.1 was released with a fix for this. Please check it out.

0reactions
nabeeliocommented, Oct 15, 2021

Yeah, was just diving into the docs, haven’t used it before. Thanks again!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found