laptop and a wrench

不具合

A .Net MAUI app crashes if a map that is tracking the current location on iOS devices is continuously refreshed.

ArcGIS Maps SDK for .NET
不具合 ID 番号 BUG-000173442
送信されましたJanuary 7, 2025
最終更新日June 29, 2025
適用対象ArcGIS Maps SDK for .NET
見つかったバージョン200.5
オペレーティング システムApple iOS
オペレーティング システムのバージョン16.x
ステータスAs Designed

参考情報

After looking into how GeoView behaves in your app and comparing it with the sample code, here’s what we have found: Every time you hit Refresh, the app is pushing a brand new page onto the navigation stack. The old pages (and their map views) are not being disposed of when this happens. Because of this, each refresh leaves the previous map view in memory, even though you can’t see it anymore. After 25–30 refreshes, the app ends up with 25–30 pages and map views still sitting in memory. This is what causes the memory usage to shoot up. `await Shell.Current.Navigation.PushAsync(new MainPage(), false);` This line creates a new MainPage every time but doesn’t remove the old one from memory. Since each page has a MapView, and those aren’t being disposed until the page itself is disposed, memory keeps growing. This is not actually a bug in the GeoView or MapView. It is more about how the navigation is set up in your .NET MAUI app. The app keeps stacking up pages without cleaning up the old ones, which is why memory keeps increasing.

対処法

None.

再現の手順

不具合 ID: BUG-000173442

ソフトウェア:

  • ArcGIS Maps SDK for .NET

バグのステータスが変更されたときに通知を受け取る

Esri Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動