-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Labels
Description
Summary
Reproducible 100% of the time
APP_VERSION_NAME=6.0.2-debug-main
ANDROID_VERSION=16
STACK_TRACE=java.lang.IllegalStateException: Fragment ExploreMapFragment{acc73f4} (72a4ace3-6d61-416d-8f2f-f1a83acd76d9) not attached to an activity.
at androidx.fragment.app.Fragment.requireActivity(Fragment.java:928)
at fr.free.nrw.commons.explore.map.ExploreMapFragment.isNetworkConnectionEstablished(ExploreMapFragment.kt:482)
at fr.free.nrw.commons.explore.map.ExploreMapPresenter.updateMap(ExploreMapPresenter.kt:36)
at fr.free.nrw.commons.explore.map.ExploreMapFragment.handleLocationUpdate(ExploreMapFragment.kt:476)
at fr.free.nrw.commons.explore.map.ExploreMapFragment.onLocationChangedSlightly(ExploreMapFragment.kt:468)
at fr.free.nrw.commons.location.LocationServiceManager.onLocationChanged(LocationServiceManager.kt:205)
at android.location.LocationListener.onLocationChanged(LocationListener.java:63)
at android.location.LocationManager$LocationListenerTransport$1.operate(LocationManager.java:3303)
at android.location.LocationManager$LocationListenerTransport$1.operate(LocationManager.java:3300)
at com.android.internal.listeners.ListenerExecutor.lambda$executeSafely$0(ListenerExecutor.java:127)
at com.android.internal.listeners.ListenerExecutor$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
at android.os.Handler.handleCallback(Handler.java:1041)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.dispatchMessage(Looper.java:315)
at android.os.Looper.loopOnce(Looper.java:251)
at android.os.Looper.loop(Looper.java:349)
at android.app.ActivityThread.main(ActivityThread.java:9041)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:593)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:929)
Steps to reproduce
Open app
Tap Explore
Tap Map
Press Back
Press Back
Open app again
Expected behaviour
no crash
Actual behaviour
crash
Device name
Pixel
Android version
Android 16
Commons app version
6.0.2-debug-main
Device logs
No response
Screen-shots
No response
Would you like to work on the issue?
None