laptop and a wrench

Bug

Running multiple RouteTasks consumes 50% to 100% of the CPU performance.

Zuletzt veröffentlicht: June 22, 2021 ArcGIS Runtime SDK
Bug-ID-Nummer BUG-000139394
EingereichtApril 27, 2021
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS Runtime SDK
Gefunden in Version100.11
BetriebssystemWindows OS
Betriebssystemversion10.0 64 Bit
StatusKnown Limit

Zusätzliche Informationen

This issue is specific Garbage Collection in conjunction with the x86/32-bit architecture, .NET Framework, and the pattern in which the API is used. 1. Avoid closing the MobileMapPackage between each call to RouteTask.SolveRouteAsync() (in the reproducer this is in the ProcessLocations function). e.g. ``` streetMapPremiumPackage.Close(); // Remove this call. ``` 2. Call GC.Collect/GC.WaitForPendingFinalizers before the call to streetMapPremiumPackage.Close(): When it is necessary to close the MobileMapPackage between each call to SolveRouteAsync, assign the RouteTask to null and call GC.Collect/GC.WaitForPendingFinalizers before the call to streetMapPremiumPackage.Close();. e.g. ``` solveRouteTask = null; GC.Collect(); GC.WaitForPendingFinalizers(); streetMapPremiumPackage.Close(); ``` 3. Target x64: This issue is only reproducible when the application is compiled as 32-bit (or AnyCPU + Prefer 32-bit), and not when the application is compiled as x64 (or AnyCPU and running on a x64 machine). 4. Update from .NET Framework to .NET 6: The issue was no longer reproducible after updating the repro app to .NET 6. https://docs.microsoft.com/en-us/dotnet/core/porting/upgrade-assistant-overview

Schritte zur Reproduzierung

Bug-ID: BUG-000139394

Software:

  • ArcGIS Runtime SDK

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln