Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.0.9] App crashing on Android when using MapboxGL.Camera #625

Closed
emin93 opened this issue Jan 17, 2020 · 6 comments
Closed

[7.0.9] App crashing on Android when using MapboxGL.Camera #625

emin93 opened this issue Jan 17, 2020 · 6 comments

Comments

@emin93
Copy link

emin93 commented Jan 17, 2020

Describe 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
@lgzajac
Copy link
Contributor

lgzajac commented Jan 18, 2020

there was one fix lately on android native lib (8.6.1 is latest, 8.6.0 is currently used), it maybe related.
mapbox/mapbox-gl-native#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

@ferdicus
Copy link
Member

thanks for the hint @lgzajac!
I've updated the dependency and it's merged in master.

@emin93, can you test and confirm if that helps?

Thanks

@emin93
Copy link
Author

emin93 commented Jan 21, 2020

@ferdicus Thanks for the update. Have you released a new version or should I install the new changes via master branch?

@ferdicus
Copy link
Member

Nah, via master, this should do it:

"@react-native-mapbox-gl/maps": "git+https://github.com/react-native-mapbox-gl/maps.git#master"

@emin93
Copy link
Author

emin93 commented Jan 21, 2020

Confirming, that the issue has been resolved! 🎉

@emin93 emin93 closed this as completed Jan 21, 2020
@ferdicus
Copy link
Member

Great, thanks for the quick reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants