mapbox-gl-native icon indicating copy to clipboard operation
mapbox-gl-native copied to clipboard

Fatal signal 6 (SIGABRT) weak global reference table overflow (max=51200)

Open anthony-skr opened this issue 8 years ago • 8 comments

Steps to reproduce

I just started to manipulate the sdk, in a very basic way, just playing with location layer. Then I got a native crash, just like that, when app was idling, in foreground, screen on.

Crash

I'm not used to native crash, but got a long trace, hope it will help you : https://gist.github.com/anthony-skr/8c61e41c10e243d6e3eda8d373ce5723

Configuration

Android versions: 7.1.2 (LineageOS) Device models: Samsung Galaxy S7 (herolte) Mapbox SDK versions: android-sdk 6.6.0-beta.1

anthony-skr avatar Oct 16 '18 11:10 anthony-skr

Hey @anthony-skr! Is the issue reproducible on demand? If yes, could you provide a reproducible example?

LukasPaczos avatar Oct 24 '18 12:10 LukasPaczos

Hey, I'm not able to reproduce it on demand, it happens randomly. If I find any clue I'll let you know

anthony-skr avatar Oct 29 '18 08:10 anthony-skr

Hi @LukasPaczos

I experience the same issue as described by @anthony-skr, and the error causes the app to crash. It seems to occur when the LocationComponent follows the device position and updates the location indicator. I have tried several Mapbox versions, including android-v7.0.0-alpha.3

I have made a sample application here

Steps to reproduce: Start the app and take a drive (or simulate driving) so that the map follows the user location. After a few minutes, the error occurs. Eventually the app crashes!

Raw error log here

My device: Lenovo Tablet TB-X704L Android version: 7.1.1

Hope this issue can be solved fast!

kjellhaaland avatar Dec 06 '18 14:12 kjellhaaland

For information I do not experience those crashs anymore (without having upgraded mapbox).

The @kjellhaaland's analysis is closed to a refactoring I did around LocationEngine instances. I think before I was using 2 instances and I finally ended with :

var mapbox: MapboxMap
...
mapbox.locationComponent.activateLocationComponent(context, engine)

Before I was using (old?) LocationLayerPlugin and it's possible I have mess-up with location engines.

Sorry for not providing sample project or more clues, it was so random that I missed the commit when they did stop!

anthony-skr avatar Dec 14 '18 12:12 anthony-skr

This bug still exists. For me it occurred two times now. In both cases while I was zooming out facing a marker rendered with a SymbolLayer.

spiekermax avatar Apr 11 '19 19:04 spiekermax

Hey, The bug is consistent and it happening after 1-2 minutes. here's the gist: https://gist.github.com/omerbn/f78be5b1f4d137f22a47eb486b947285

omerbn avatar May 11 '19 21:05 omerbn

We have same issue on 7.4.0 and all previous ones.

AryaNyx avatar May 22 '19 10:05 AryaNyx

any update on this? i have the same issues on 9.6.1.

razvantmzz avatar Apr 04 '21 18:04 razvantmzz