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
Which is calling a matchRoute every 500ms, i can see the memory rising really fast then the app crashes.
I tried to profile with Android Studio and i did not see any leak on the java side.
However the native side clearly reported leaks but the report does not help much. It talks about "ERROR 1" and i cant find what it is.
I would say the leak in on valhalla side. Which leads me to the work i started to upgrade valhalla to 3.2. As i merged the source i realised that some "cache" code was disabled and not disposed. Not sure if this could be related.
I am not done with 3.2 as it build but valhalla complains about not finding route so something failed in the merge ;) (mostly carto hack changes as most of them were removed by the merge)
The text was updated successfully, but these errors were encountered:
Interesting, can you reproduce it on iOS also? The issue with Android is that due to the way SDK objects are wrapped, Java garbage collector may see the routing objects as very lightweight, though they are connected to really large native objects.
Regarding Valhalla 3.2, I think most the 'CARTO hacks' can be removed, as I introduced them to fix crashes coming from missing tiles in pre-3.0 Valhalla. But I think most of those (if not all) had been already fixed in 3.1.
@mtehver you are talking about the string representation of the routing result? I don't think this is it in the sense that the profiler does not report a memory leak on string. It talks about that "Error" thing which I am not sure what it is. I ll dig deeper and try to see if can reproduce on iOS
if i do something like this:
Which is calling a matchRoute every 500ms, i can see the memory rising really fast then the app crashes.
I tried to profile with Android Studio and i did not see any leak on the java side.
However the native side clearly reported leaks but the report does not help much. It talks about "ERROR 1" and i cant find what it is.
I would say the leak in on valhalla side. Which leads me to the work i started to upgrade valhalla to 3.2. As i merged the source i realised that some "cache" code was disabled and not disposed. Not sure if this could be related.
I am not done with 3.2 as it build but valhalla complains about not finding route so something failed in the merge ;) (mostly carto hack changes as most of them were removed by the merge)
The text was updated successfully, but these errors were encountered: