You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
When map is used inside DialogFragment, NativeDestroy freezes and never completes. The sample I have created is using SupportMapFragment inside DialogFragment, but I have also tried to extend Fragment and inmplement map logic inside. The same result.
I have found similar issues here: #11153#10809
Hey @androideveloper, thanks for reporting the issue. I understand, that you're calling MapView#onDestroy from fragment's #onDestroyView and still running into a freeze, right? Could you compare your setup to this example? Do you spot any differences?
Right. Actually I'm using SupportMapFragment inside my dialog as a child fragment. That's the main difference between these setups. But I have imported your code into my sample project and still get freeze! The only difference as I can see is that I have changed your example Fragments from v4 to AndroidX version.
When map is used inside DialogFragment, NativeDestroy freezes and never completes. The sample I have created is using SupportMapFragment inside DialogFragment, but I have also tried to extend Fragment and inmplement map logic inside. The same result.
I have found similar issues here: #11153 #10809
Steps to reproduce
Mapdox Crash Demo (insert your map key in strings.xml)
Expected behavior
mapView.onDestroy() completes without issue
Actual behavior
Call to destroy freezes thread
Configuration
Android versions: 9.0, 8.1
Device models: Xiaomi mi a2 lite, Moto g5 plus
Mapbox SDK versions: v7.2.0
The text was updated successfully, but these errors were encountered: