-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[Android] [6.0.0-beta.2] local reference table overflow (max=512) #11212
Comments
cc @osana |
This is related to either change of data structures in mapbox-java: and/or DeleteLocalRef() not being called to delete the local reference that is never used later |
I'm adding the beta blocker label so this can be retested with the beta.3, |
So I've spent some more time on this issue and found following things:
This snippet will lead to the reference table overflow reported in the issue.
This approach, on the other hand, works but does take a lot of time to process. Causing the UI to freeze depending on the size of the GeoJson. I guess the parsing of the String might be the issue here. Nevertheless, it does not cause a crash. I hope this might help a bit :) |
@schachi5000 would you be able to test out the changes from #11222? You can test this with using the 7.0.0-SNAPSHOT dependency: in your root build.gradle add:
and as dependency use:
|
Great. I just did a quick test and the issue seems to be resolved. Is v6.0.0 now obsolete on your end and what's the ETA for v7.0.0-SNAPSHOT? |
@schachi5000 those icon scaling willbe gone with 6.0.0 as well, feel free to test that out with the 6.0.0 snapshot. thank you for validating! |
@tobrun no problem. Glad to be of help 👍 But could you explain what the main difference is between the snapshot of 6 and 7? |
Still seeing this issue while working on To give more context: in
/cc @osana |
sdk 6.0.0-beta.2 is still using MAS 3.0.0-beta.2 |
Fix for this issue landed with #11471. |
Reopening as we're still seeing the issue internally as well as reported by the users on the |
@LukasPaczos We're going to need a way to reproduce this first. Had no luck with this so far. Tried to do so in 9c74aa6, but no matter how much I keep pushing the size, I don't get reference table overflows on my devices (Pixel 2 and Galaxy Nexus). Eventually, they will throw OOM, but that is to be expected at some point. |
Previously reopened due to #11556 similarities, but the issue itself is probably different. I can confirm that I'm unable to reproduce this one on Z3 anymore, therefore, closing. Feel free to reopen if necessary. |
I'm using 6.4.0 on my OnePlus 6 And I got the same error. 09-13 16:45:22.359 17010-19397/com.andreucci.andreuccicodrive A/zygote64: indirect_reference_table.cc:256] JNI ERROR (app bug): weak global reference table overflow (max=51200) |
@ugochirico, all of the reoccurring issues with table overflows should be resolved with the introduction of the jni.hpp |
Platform: Android
Version: 6.0.0-beta.2
I've just tested the new beta version of the Mapbox Android SDK.
In our app we draw routes based on polygons. Since the last update, we get following native crash:
The culprit here seems to be the massive amount of Points we use in a Feature (Polygon).
The worked flawlessly in version 5.4.0.
The text was updated successfully, but these errors were encountered: