[7.0.9] App crashing on Android when using MapboxGL.Camera
See original GitHub issueDescribe the bug
I’m having a very strange issue with the latest version 7.0.9
, which doesn’t occur in 7.0.8
. The app crashes after about 30 seconds when the map gets rendered with a camera that has follow
props enabled. When I remove the MapboxGL.Camera
component or downgrade to 7.0.8
, the app stays alive. This happens only on Android, iOS is not affected by this. I guess it has to be a bug on the native side because it doesn’t even show the red error screen, it just crashes instantly.
To Reproduce
- Render a map like this:
<MapboxGL.MapView
style={styles.map}
styleURL={styleURL}
logoEnabled={false}
attributionEnabled={false}
>
<MapboxGL.UserLocation />
<MapboxGL.Camera
followZoomLevel={16}
followUserLocation={true}
followUserMode={MapboxGL.UserTrackingModes.Follow}
/>
</MapboxGL.MapView>
- Wait for about 30 seconds
- App crashes with following ADB Logcat:
2020-01-17 09:53:58.809 9147-9147/com.demo D/ViewRootImpl@de67328[Toast]: Relayout returned: old=[0,86][1080,2196] new=[348,1872][732,2004] result=0x7 surface={true 475776663552} changed=true
2020-01-17 09:53:58.815 9147-9187/com.demoD/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
2020-01-17 09:53:58.815 9147-9187/com.demo D/OpenGLRenderer: eglCreateWindowSurface = 0x6ec6235100, 0x6ec67fc010
2020-01-17 09:53:58.869 9147-9147/com.demo D/ViewRootImpl@de67328[Toast]: MSG_RESIZED: frame=[348,1872][732,2004] ci=[0,0][0,0] vi=[0,0][0,0] or=1
2020-01-17 09:53:59.039 9147-9380/com.demo E/BufferQueueProducer: [SurfaceTexture-0-9147-0] disconnect: not connected (req=1)
2020-01-17 09:53:59.039 9147-9380/com.demo W/mali_winsys: native_window_api_disconnect failed: -19
2020-01-17 09:53:59.190 9147-9159/com.demo I/.demo: Background concurrent copying GC freed 128181(5MB) AllocSpace objects, 12(464KB) LOS objects, 49% free, 6MB/12MB, paused 1.257ms total 111.636ms
2020-01-17 09:53:59.385 9147-9522/com.demo D/NetworkManagementSocketTagger: tagSocket(125) with statsTag=0xffffffff, statsUid=-1
2020-01-17 09:53:59.422 9147-9520/com.demo I/Mbgl-EGLConfigChooser: In emulator: false
2020-01-17 09:53:59.426 9147-9520/com.demo D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
2020-01-17 09:53:59.432 9147-9147/com.demo V/Mbgl-ConnectivityReceiver: connected - true
2020-01-17 09:53:59.593 9147-9529/com.demo D/NetworkManagementSocketTagger: tagSocket(150) with statsTag=0xffffffff, statsUid=-1
2020-01-17 09:54:00.145 9147-9147/com.demo D/LocationManager: Tick [8.594385, 47.450367]
2020-01-17 09:54:00.146 9147-9147/com.demo D/LocationManager: Listener count 2
2020-01-17 09:54:00.763 9147-9187/com.demo W/libEGL: EGLNativeWindowType 0x6ec67fc010 disconnect failed
2020-01-17 09:54:00.763 9147-9187/com.demo D/OpenGLRenderer: eglDestroySurface = 0x6ec6235100, 0x6ec67fc000
2020-01-17 09:54:00.764 9147-9147/com.demo D/ViewRootImpl@de67328[Toast]: dispatchDetachedFromWindow
2020-01-17 09:54:00.774 9147-9147/com.demo D/InputTransport: Input channel destroyed: fd=146
2020-01-17 09:54:06.213 9147-9147/com.demo D/LocationManager: Tick [8.594385, 47.450367]
2020-01-17 09:54:06.214 9147-9147/com.demo D/LocationManager: Listener count 2
2020-01-17 09:54:11.218 9147-9147/com.demo D/LocationManager: Tick [8.594385, 47.450367]
2020-01-17 09:54:11.219 9147-9147/com.demo D/LocationManager: Listener count 2
2020-01-17 09:54:16.270 9147-9147/com.demo D/LocationManager: Tick [8.594385, 47.450367]
2020-01-17 09:54:16.270 9147-9147/com.demo D/LocationManager: Listener count 2
2020-01-17 09:54:21.258 9147-9147/com.demo D/LocationManager: Tick [8.594385, 47.450367]
2020-01-17 09:54:21.259 9147-9147/com.demo D/LocationManager: Listener count 2
2020-01-17 09:54:22.529 9147-9159/com.demo I/.demo: Background concurrent copying GC freed 17725(6MB) AllocSpace objects, 0(0B) LOS objects, 50% free, 5MB/11MB, paused 255us total 103.498ms
2020-01-17 09:54:22.539 9147-10450/com.demo E/libc++abi: terminating
2020-01-17 09:54:22.543 9147-10450/com.demo A/libc: Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 10450 (Worker 1), pid 9147 (.demo)
Versions (please complete the following information):
- Platfrom: Android
- Device: Samsung Galaxy A40
- OS: Android 9
- SDK Version: 28
- React Native Version: 0.61.5
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:6 (4 by maintainers)
Top Results From Across the Web
[7.0.9] App crashing on Android when using MapboxGL.Camera
9 , which doesn't occur in 7.0.8 . The app crashes after about 30 seconds when the map gets rendered with a camera...
Read more >rnmapbox/Lobby - Gitter
I'm fighting with a crash react-native application on unblocking iPhone which is somehow connected with react-native-mapbox-gl module.
Read more >Source - GitHub
In a nuthsell: * On both android/ios to select mapbox implementation use `RNMapboxMapsImpl`/`$RNMapboxMapsImpl` variable which can be one of (`maplibre` ...
Read more >Qt for Android MapboxGL Application Crashes if I switch ...
I have a simple QML Map App in Android. And if I change the activeMapType when the Internet is Off the App simply...
Read more >@react-native-mapbox-gl/maps: Versions | Openbase
fix(example): update /example project (iOS only) to work with ARM-based Macs (#1703). Note: Repository was moved from ~github.com/react-native-mapbox-gl~ to ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
there was one fix lately on android native lib (8.6.1 is latest, 8.6.0 is currently used), it maybe related. https://github.com/mapbox/mapbox-gl-native/pull/16106
… i have untested branch with updated dependency. maybe it will help https://github.com/lgzajac/maps/tree/upgrading-libs-13.01.20 NOTE: i had some issues with codesigning ios for adhoc, so use it only as test pls, i will split it later and add PR
Great, thanks for the quick reply!