Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] Maps crashing in UWP #12878

Closed
theescapers opened this issue Nov 17, 2020 · 15 comments
Closed

[Bug] Maps crashing in UWP #12878

theescapers opened this issue Nov 17, 2020 · 15 comments
Labels
a/maps 🌐 blocker Issue blocks next stable release. Prioritize fixing and reviewing this issue. i/high Completely doesn't work, crashes, or is unusably slow, has no obvious workaround; occurs less often p/UWP t/bug 🐛

Comments

@theescapers
Copy link

Description

Since this morning, my app with a Map embedded crashing when map is shown, this is only affecting UWP maps, so assumed to be a Bing maps specific issue.

It's affecting an app that was shipped over a year ago, so maybe Bing Maps backend has changed and is causing the crash?

If wifi is turned off, the crash does not occur.

Steps to Reproduce

  1. Download and run https://github.com/xamarin/xamarin-forms-samples/tree/master/WorkingWithMaps
  2. Use one of the options to open a map.
  3. Crash.

Expected Behavior

Doesn't crash.

Actual Behavior

Crashes

Basic Information

  • Version with issue:
  • Last known good version:
  • IDE:
  • Platform Target Frameworks:
    • iOS:
    • Android:
    • UWP:
  • Android Support Library Version:
  • Nuget Packages:
  • Affected Devices: All Windows devices, tested on 5 different ones..

Screenshots

Reproduction Link

https://github.com/xamarin/xamarin-forms-samples/tree/master/WorkingWithMaps

Workaround

Currently no, other than to disable the map for UWP devices.

@theescapers theescapers added s/unverified New report that has yet to be verified t/bug 🐛 labels Nov 17, 2020
@samhouts samhouts added this to New in Triage Nov 17, 2020
@theescapers
Copy link
Author

Investigating a little more... This may me a UWP or Maps backend issue, as this UWP/C# (not Xamarin) sample also exhibits the same problem.

https://docs.microsoft.com/en-us/samples/microsoft/windows-universal-samples/mapcontrol/

@KirstyLH
Copy link

Been getting the same problem in our UWP app on Xamarin.Forms today. Only started today - we haven't made a code change in a couple of months. Completely crashes the app with no useful error messages.

@jsuarezruiz jsuarezruiz added a/maps 🌐 p/UWP i/high Completely doesn't work, crashes, or is unusably slow, has no obvious workaround; occurs less often labels Nov 17, 2020
@jsuarezruiz jsuarezruiz moved this from New to Needs Estimate in Triage Nov 17, 2020
@jsuarezruiz jsuarezruiz added the blocker Issue blocks next stable release. Prioritize fixing and reviewing this issue. label Nov 17, 2020
@jsuarezruiz jsuarezruiz added this to To do in vNext+1 (5.0.0) via automation Nov 17, 2020
@jsuarezruiz jsuarezruiz removed the s/unverified New report that has yet to be verified label Nov 17, 2020
@premiaware
Copy link

I have same problem with my pure UWP App, the App crash if i zoom inside map, is a disaster all customers is blocked!!!!!
any of you have any suggestions?

@ptripathi-svmx-zz
Copy link

Facing same app crash issue with our UWP app as well. App crashes on accessing any feature that uses bing maps (primarily location related).

@Russc0
Copy link

Russc0 commented Nov 17, 2020

Same issue here. Not Forms specific as many non forms apps are crashing also.
If you use satellite mode it works fine.
Seems to be since latest windows update.
Microsoft's own Map Stylesheet editor app is also not working.

@shabroek
Copy link

Same issue here. An empty mapcontrol works, as soon as we try to interact with it, it crashes

@jordyvanderpoel
Copy link

We're also affected by this issue. It seems to crash when changing the zoom level with MapType = street

@DaanTul
Copy link

DaanTul commented Nov 17, 2020

Does not seem to limit to Xamarin.Forms. It is a general issue with UWP MapControl

@premiaware
Copy link

ok but ms can't block apps like this bugs, i work with my app.
It is unacceptable that it does not work. Who can we write to to solve this problem quickly?

@DaanTul
Copy link

DaanTul commented Nov 17, 2020

Multiple issues opened on the component itself:

microsoft/microsoft-ui-xaml#3614

https://github.com/microsoft/microsoft-ui-xaml/issues

@jsuarezruiz
Copy link
Contributor

This issue started to happen a few hours ago, out of nowhere (Nov 17th midnight UTC).

The UWP MapControl is launching an exception: fail_fast_fatal_app_exit_c0000409_bingmaps.dll!mapcontrol::detailtexturesource::begingettexture

Affects to Xamarin.Forms.Maps in UWP but also, using the MapControl directly in an UWP App.

As @DaanTul mentioned, there are several issues opened in Microsoft UI XAML and will try to move the issue as quickly as possible.

@KliffCo
Copy link

KliffCo commented Nov 17, 2020

Issue can be recreated by creating a new UWP app and adding the 2 following lines to the xaml in the appropriate places:
xmlns:maps="using:Windows.UI.Xaml.Controls.Maps"
maps:MapControl

Will crash either straight away or as you zoom in. different zoom levels from different DPI monitors.
Going offline or changing to Aerial maps stops the crash.. though this isn't a valid option for us. I have been trying to make a MapStyleSheet that might fix it with no luck. Even tried setting visible=false to all elements in the css. I guess rastered maps work but not vectors. though the vector roads work on Aerial mode

@SBI-
Copy link

SBI- commented Nov 17, 2020

Can anyone else confirm that just the default Maps App by itself also crashes as of today? We're seeing a bunch of clients with Maps instantly crashing, regardless of calling with a xamarin component or without. I can reproduce the same behavior by launching map components from our app as well as just starting the Maps app.

@DaanTul
Copy link

DaanTul commented Nov 17, 2020

@SBI- microsoft/microsoft-ui-xaml#3614

@dunclaw
Copy link

dunclaw commented Nov 17, 2020

A maps data service was returning invalid data. This has been mitigated and the map control should be working normally.

Triage automation moved this from Needs Estimate to Closed Nov 18, 2020
vNext+1 (5.0.0) automation moved this from To do to Done Nov 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a/maps 🌐 blocker Issue blocks next stable release. Prioritize fixing and reviewing this issue. i/high Completely doesn't work, crashes, or is unusably slow, has no obvious workaround; occurs less often p/UWP t/bug 🐛
Projects
Triage
  
Closed
Development

No branches or pull requests