Select to view content in your preferred language

Error on change Basemap

312
1
09-05-2024 09:53 AM
ByronAndres
Occasional Contributor

Hello,

After we migrate from version 100.15.2 to 200.2.0 we start to see this error on our Crashlytics panel: 

SwiftUI/Layout.swift:1439: Fatal error: view origin is invalid: (nan, nan), UnitPoint(x: 0.0, y: 0.0), (160.0, 44.5)
 
We see this error sometimes appears when change Basemap style for the map. Is this error familiar to you? We already inspect the code of our app but not able to find a code related to this error. 
 
Thanks in advance for any response. 
Tags (3)
0 Kudos
1 Reply
Ting
by Esri Contributor
Esri Contributor

This doesn't look familiar to us 🤔 Here are a few random thoughts…

  • Can you try the latest 200.5.0 version of the SDK to see if the error persists?
  • Is your map view in a scroll view?
  • Do you use other views along with the map view?
  • Are you able to create a minimum reproducible example for this crash?

When the basemap style of a map is changed, the map view will redraw. So it looks like the layout offset is somehow nan when that happens… It may take some digging to figure out the root cause.

0 Kudos