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.
With the testapp, I was able to produce a native crash by opening Delete region example and clicking twice on an item to delete it (by accident, very fast after eachother). This resulted in deleting the same region twice. While this could be handled by the UI, I think it would be cleaner to ignore possible crashing updates or call into an onError callback instead.
I investigated this further, and I believe it is an Android-specific crash. The Android wrapper code stores an OfflineRegion object, and calls std::move when deleting:
This means that the OfflineRegion object stored in the unique_ptr is now considered invalid (since we have moved away from it) and shouldn't be used anymore. The Android JNI wrapper should protect against this and return an error (or throw) when attempting to call delete multiple times, or when trying to do other operations on an OfflineRegion object after it has been deleted (like querying information from it, or adding observers).
With the testapp, I was able to produce a native crash by opening
Delete region
example and clicking twice on an item to delete it (by accident, very fast after eachother). This resulted in deleting the same region twice. While this could be handled by the UI, I think it would be cleaner to ignore possible crashing updates or call into an onError callback instead.The text was updated successfully, but these errors were encountered: