Skip to content

IllegalStateException in Explore #6525

@RitikaPahwa4444

Description

@RitikaPahwa4444
USER_COMMENT=I changed the user interface language from Hebrew to English, and the app crashed.
APP_VERSION_CODE=1058
APP_VERSION_NAME=6.0.2
ANDROID_VERSION=15
PHONE_MODEL=SM-S918U
STACK_TRACE=java.lang.IllegalStateException: Fragment ExploreMapFragment{8defdb2} (3bd40f39-f37e-4407-974e-4379c5dacf7e) 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:455)
at fr.free.nrw.commons.explore.map.ExploreMapPresenter.updateMap(ExploreMapPresenter.kt:36)
at fr.free.nrw.commons.explore.map.ExploreMapFragment.handleLocationUpdate(ExploreMapFragment.kt:449)
at fr.free.nrw.commons.explore.map.ExploreMapFragment.onLocationChangedSlightly(ExploreMapFragment.kt:441)

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:3307)
at android.location.LocationManager$LocationListenerTransport$1.operate(LocationManager.java:3304)
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:959)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loopOnce(Looper.java:257)
at android.os.Looper.loop(Looper.java:342)
at android.app.ActivityThread.main(ActivityThread.java:9634)
at java.lang.reflect.Method.invoke(Native Method)

at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:619)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:929)

IS_SILENT=false

Tip

The provider of androidx.fragment:fragment (androidx.fragment:fragment) added this note on Nov 21, 2023:
"Caused by wrong integration: You must be attached to an Activity to call requireActivity()."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions