NativeDestroy freezes and never completes
Platform:
Android SDK 24
Mapbox SDK version:
v5.4.0
onDestroy of the mapnativeDestroy never completesmapView.onDestroy() completes without issue
Call to destroy freezes thread, if another thread is used it causes a native crash later in the process.
Thank you for reaching out. Are you using a fragment? If not, can you add some sample code? We haven't seen this issue on our end only when calling Mapview#onDestroy from Fragment#onDestroy while it should be hooked in from Fragment#onDestroyView
@tobrun ah yep. Fragment#onDestroyView was the key. Thanks
Most helpful comment
Thank you for reaching out. Are you using a fragment? If not, can you add some sample code? We haven't seen this issue on our end only when calling Mapview#onDestroy from Fragment#onDestroy while it should be hooked in from Fragment#onDestroyView