Open samvmisti opened 4 years ago
@samvgorode how often do you see this behaviour? Do you have steps to reproduce?
@NazarKacharaba in my application I can reproduce it every time. I need to know what can be a reason.
@samvgorode could you create code sample and share it with us so we can reproduce and fix it?
@NazarKacharaba UPD. It happens on different devices. Main step to reproduce - create a very long route (f.e. Los Angeles - New York) and launch guidance.
@NazarKacharaba seems like I've found a real reason for this ANR. Starting MapDataPrefetcher.fetchData(route: Route)
with a very long route as a parameter causes this problem.
How to start a big route with prefetching properly? Maybe there are any tips & tricks?
Are you waiting until route fetching is finished before starting navigation with this route?
No. Just start navigation immediately. Should I wait until fetching is done?
Yes, you should wait until fetching is finished.
Thank you. I will try on Monday and let you know the result.
This method causes ANR in case of passing ROADVIEW as a parameter.
Here android SDK versionName="3.15.2"
Full log (without our app package name):