flutter_mapbox_navigation icon indicating copy to clipboard operation
flutter_mapbox_navigation copied to clipboard

App crash when exit navigation on android

Open samderlust opened this issue 2 years ago • 2 comments

When click on ending navigation. app crash/go to background with the logs below


I/Mapbox  ( 5112): [maps-android\Mbgl-RenderThread]: destroy
I/Mapbox  ( 5112): [maps-android\Mbgl-RenderThread]: destroy: waiting until all resources will be cleaned up...
I/Mapbox  ( 5112): [maps-android\Mbgl-RenderThread]: Native renderer destroyed.
I/Mapbox  ( 5112): [maps-android\Mbgl-EglCore]: EGL surface was already destroyed before.
I/LOC Status( 5112): Response status : 200
I/Mapbox  ( 5112): [maps-android\Mbgl-RenderThread]: destroy: all resources were cleaned up.
I/AudioManager( 5112): In isBluetoothScoOn(), calling application: ca.codifyconsulting.vizzn
W/Mapbox  ( 5112): [maps-android\Mbgl-MapboxMap]: MapboxMap object (accessing getStyle) should not be stored and used after MapView is destroyed.
W/Mapbox  ( 5112): [maps-android\Mbgl-Style]: Style object (accessing styleLayerExists) should not be stored and used after MapView is destroyed or new style has been loaded.
W/Mapbox  ( 5112): [maps-android\Mbgl-Style]: Style object (accessing addPersistentStyleLayer) should not be stored and used after MapView is destroyed or new style has been loaded.
W/Mapbox  ( 5112): [maps-android\Mbgl-MapboxMap]: MapboxMap object (accessing getStyle) should not be stored and used after MapView is destroyed.
W/Mapbox  ( 5112): [maps-android\Mbgl-Style]: Style object (accessing removeStyleLayer) should not be stored and used after MapView is destroyed or new style has been loaded.
W/Mapbox  ( 5112): [maps-android\Mbgl-MapboxMap]: MapboxMap object (accessing getStyle) should not be stored and used after MapView is destroyed.
2
W/Mapbox  ( 5112): [maps-android\Mbgl-Style]: Style object (accessing styleSourceExists) should not be stored and used after MapView is destroyed or new style has been loaded.
W/Mapbox  ( 5112): [maps-android\Mbgl-Style]: Style object (accessing styleLayerExists) should not be stored and used after MapView is destroyed or new style has been loaded.
I/chatty  ( 5112): uid=10741(ca.codifyconsulting.vizzn) identical 2 lines
W/Mapbox  ( 5112): [maps-android\Mbgl-Style]: Style object (accessing styleLayerExists) should not be stored and used after MapView is destroyed or new style has been loaded.
2
W/Mapbox  ( 5112): [maps-android\Mbgl-Style]: Style object (accessing styleSourceExists) should not be stored and used after MapView is destroyed or new style has been loaded.
2
W/Mapbox  ( 5112): [maps-android\Mbgl-Style]: Style object (accessing setStyleGeoJSONSourceData) should not be stored and used after MapView is destroyed or new style has been loaded.
2
W/Mapbox  ( 5112): [maps-android\Mbgl-MapboxMap]: MapboxMap object (accessing cameraState) should not be stored and used after MapView is destroyed.
W/Mapbox  ( 5112): [maps-android\Mbgl-MapboxMap]: MapboxMap object (accessing removeOnStyleLoadedListener) should not be stored and used after MapView is destroyed.
I/Mapbox  ( 5112): [nav-sdk]: [CarAppLifecycleOwner] LifecycleOwner (com.mapbox.navigation.dropin.NavigationView{2229a0c V.E...... .......D 0,0-1079,2153 #7f0a0243 app:id/navigationView}) onDestroy
I/Mapbox  ( 5112): [nav-sdk]: [MapboxNavigationOwner] onStop
I/Mapbox  ( 5112): [nav-sdk]: [MapboxTripSession] routes update (reason: ROUTES_UPDATE_REASON_CLEAN_UP, route IDs: []) - starting
I/Mapbox  ( 5112): [nav-native]: Stopping online route requests in a loop as routes are null
I/Mapbox  ( 5112): [nav-native]: RouteAlternativesControllerImpl::setRoutes isAlternativesChanged. alternatives=[ ], removed=[ ]
W/Mapbox  ( 5112): [valhalla]: No metadata found for tiles
I/Mapbox  ( 5112): [nav-native]: Ride session reset
I/Mapbox  ( 5112): [nav-sdk]: [MapboxNavigation] Trip session reset
I/Mapbox  ( 5112): [nav-sdk]: [CarAppLifecycleOwner] changeState CREATED
I/Mapbox  ( 5112): [maps-android\Mbgl-RenderThread]: destroy
I/Mapbox  ( 5112): [maps-android\Mbgl-RenderThread]: destroy: waiting until all resources will be cleaned up...
I/Mapbox  ( 5112): [maps-android\Mbgl-RenderThread]: destroy: all resources were cleaned up.
E/BufferQueueConsumer( 5112): disconnect by : ca.codifyconsulting.vizzn my_pid = 5112
W/FlutterSurfaceView( 5112): detachFromRenderer() invoked when no FlutterRenderer was attached.
E/BufferQueueConsumer( 5112): disconnect by : ca.codifyconsulting.vizzn my_pid = 5112
D/LeakCanary( 5112): Watching instance of io.flutter.embedding.android.FlutterSplashView (io.flutter.embedding.android.FlutterFragment received Fragment#onDestroyView() callback (references to its views should be cleared to prevent leaks)) with key 7c8ac9de-5f79-4d1e-9222-0b4dae50593d
D/LeakCanary( 5112): Watching instance of io.flutter.embedding.android.FlutterFragment (io.flutter.embedding.android.FlutterFragment received Fragment#onDestroy() callback) with key b93ffd28-8048-4e7a-b275-23fd6f139f14
D/FileSaver( 5112): Detached From Activity
D/FileSaver( 5112): Detached From Engine
I/Mapbox  ( 5112): [maps-android\Mbgl-RenderThread]: Renderer paused
I/Mapbox  ( 5112): [events_service]: Queue is empty, nothing to flush
W/Mapbox  ( 5112): [maps-android\Mbgl-MapboxMap]: MapboxMap object (accessing removeOnCameraChangeListener) should not be stored and used after MapView is destroyed.
I/Mapbox  ( 5112): [maps-android\Mbgl-RenderThread]: destroy
I/Mapbox  ( 5112): [events_service]: Queue is empty, nothing to flush
I/flutter ( 5112): VizznApp||:: INFO: 2023-11-20 22:59:14.055698: I am current state : AppLifecycleState.detached
2
I/Mapbox  ( 5112): [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=false). Waiting for new one.
I/Choreographer( 5112): Skipped 32 frames!  The application may be doing too much work on its main thread.
D/OnePlusJankManager( 5112):  Chor uploadMDM JANK_TYPE_ONCE mViewTitle = ca.codifyconsulting.vizzn/ca.codifyconsulting.vizzn.activities.MainActivity--- jank level = 3
I/Mapbox  ( 5112): [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=false). Waiting for new one.
2
D/ForegroundOnlyLocationService( 5112): User checked-in: true

samderlust avatar Nov 20 '23 16:11 samderlust

Same error

did you end up figuring out a fix?

samargy avatar Jan 18 '24 02:01 samargy

same issue

marcoberetta96 avatar Jan 25 '24 11:01 marcoberetta96

Same problem here

InesRodAlo avatar Jan 29 '24 09:01 InesRodAlo

Stale issue message

eopeter avatar Mar 30 '24 01:03 eopeter

Is this going to be fixed?

samargy avatar Mar 30 '24 02:03 samargy

Why is this marked as completed?? The issue is not resolved

samargy avatar Apr 07 '24 02:04 samargy