-
-
Notifications
You must be signed in to change notification settings - Fork 871
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[android] Crash when remove bookmark #6217
Comments
@rtsisyk regression for R8? |
Not, I'm able to reproduce on 2023.03.22-27-Google |
It doesn't look related to R8, rather a some logical issue caused by refactoring of PlacePage. The problem that exists for 7 months and doesn't cause widespread pain shouldn't block the release. I will take a look if @arnaudvergnet is busy. |
Reproduced during navigation when I remove POI from list bookmarks and the place page is opened
|
Aha, so in navigation it is possible to open Place Page and then open Bookmarks and delete the selected bookmark. Interesting, does Place Page in C++ keeps a pointer to the bookmark that is deleted? Or is it Java code that keeps a pointer to the already deleted bookmark? |
App crashes when removing bookmark and returning to map after pressing POI and bottom menu bookmarks at the same time. The crash happens because after the delete, the app tries to find the deleted bookmark id, which does not exist. The best solution I found, is to make so if the app wants to use the getBookmark function and it doesnt find it, to get the last bookmark present in the container, this eliminates the bug but only if there are more than one bookmarks present on the container. fixes organicmaps#6217 Signed-off-by: Francisco Nael Salgado <francisco.nael.salgado@tecnico.ulisboa.pt>
POI and bottom menu bookmarks at the same time. The crash happens because after the delete, the app tries to find the deleted bookmark id, which does not exist. The best solution I found, is to make so if the app wants to use the getBookmark function and it doesnt find it, to get the last bookmark present in the container, this eliminates the bug but only if there are more than one bookmarks present on the container. fixes organicmaps#6217 Signed-off-by: Francisco Nael Salgado <francisco.nael.salgado@tecnico.ulisboa.pt>
POI and bottom menu bookmarks at the same time. The crash happens because after the delete, the app tries to find the deleted bookmark id, which does not exist. The best solution I found, is to make so if the app wants to use the getBookmark function and it doesnt find it, to get the last bookmark present in the container, this eliminates the bug but only if there are more than one bookmarks present on the container. fixes organicmaps#6217 Signed-off-by: Francisco Nael Salgado <francisco.nael.salgado@tecnico.ulisboa.pt>
App crashes when removing bookmark and returning to map after pressing POI and bottom menu bookmarks at the same time. The crash happens because after the delete, the app tries to find the deleted bookmark id, which does not exist. The best solution I found, is to make so if the app wants to use the getBookmark function and it doesnt find it, to get the last bookmark present in the container, this eliminates the bug but only if there are more than one bookmarks present on the container. fixes organicmaps#6217 Signed-off-by: Francisco Nael Salgado <francisco.nael.salgado@tecnico.ulisboa.pt>
App crashes when removing bookmark and returning to map after pressing POI and bottom menu bookmarks at the same time. The crash happens because after the delete, the app tries to find the deleted bookmark id, which does not exist. The best solution I found, is to make so if the app wants to use the getBookmark function and it doesnt find it, to get the last bookmark present in the container, this eliminates the bug but only if there are more than one bookmarks present on the container. fixes organicmaps#6217 Signed-off-by: Francisco Nael Salgado <francisco.nael.salgado@tecnico.ulisboa.pt>
Steps to reproduce
System information:
The text was updated successfully, but these errors were encountered: