Skip to content
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

MapControl sample crashes at startup #1259

Closed
mattiferg opened this issue Nov 17, 2020 · 7 comments
Closed

MapControl sample crashes at startup #1259

mattiferg opened this issue Nov 17, 2020 · 7 comments
Labels

Comments

@mattiferg
Copy link

This is the map control sample.
Commit hash 1ad51db
No changes from committed source.
Visual Studio 2019 v16.7.3
Windows 10 build 18363.1198

The app, built in debug mode starts and then immediately the app crashes. There is an option to attach a debugger, but it fails to connect to anything.

I suspect this might be a problem with the mapping control, since if I remove it from the Xaml then I can launch the app without this issue.

The Windows log reports the following:-

Faulting application name: MapControlSample.exe, version: 1.0.0.0, time stamp: 0x5bb6a248
Faulting module name: ucrtbase.dll, version: 10.0.18362.1110, time stamp: 0xb4cacc38
Exception code: 0xc0000409
Fault offset: 0x000000000006dace
Faulting process ID: 0x3a98
Faulting application start time: 0x01d6bcca61154993
Faulting application path: C:\Development\OSS\Github\Microsoft\Windows-universal-samples\Samples\MapControl\cs\bin\x64\Debug\AppX\MapControlSample.exe
Faulting module path: C:\WINDOWS\System32\ucrtbase.dll
Report ID: f0fc79e9-e723-4923-a894-3ae7b4a83bd1
Faulting package full name: Microsoft.SDKSamples.MapControlSample.CS_1.0.0.0_x64__8wekyb3d8bbwe
Faulting package-relative application ID: App

@mattiferg mattiferg added the bug label Nov 17, 2020
@Kaliumhexacyanoferrat
Copy link

Kaliumhexacyanoferrat commented Nov 17, 2020

This seems to be a general issue with the MapControl. The following minimal UWP example will reproduce the crash:

<Page
    x:Class="MapCrash.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:maps="using:Windows.UI.Xaml.Controls.Maps">

    <maps:MapControl />

</Page>

The issue does not occur if we are in airplane mode, so this seems to be related to the response sent by the Microsoft servers. Is there a bug tracker for the UWP component itself that we can use?

image

See also:

@BobbyCannon
Copy link

This is a HUGE problem for me and my company. Our app which has been stable for months is now crashing on startup. We really need someone on this ASAP.

@BobbyCannon
Copy link

// Works
await Map.TrySetViewAsync(new Geopoint(location));

// All these fails if I try to use any overload on TrySetViewAsync
await Map.TrySetViewAsync(new Geopoint(location), request.View.Zoom);
await Map.TrySetViewAsync(new Geopoint(location, AltitudeReferenceSystem.Terrain), request.View.Zoom, request.View.CameraHeading, request.View.CameraPitch, request.Animation);

I also get the issue when manually zooming the app
image

@BobbyCannon
Copy link

I have verified that going offline the MapControl will not exception. I also noticed that going offline allows everything to work but the moment you come back online the MapControl will exception.

@oldnewthing
Copy link
Member

This appears to be a question about the feature itself, not a question about the sample. You can follow the instructions on Windows developer support for support options. (Click "Forums and community".)

(I will informally alert the feature team, but going through developer support will make sure the issue is tracked.)

@BobbyCannon
Copy link

See also microsoft/microsoft-ui-xaml#3614

@oldnewthing
Copy link
Member

Team has informed me that the issue has been fixed on the server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants