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

GoogleMapsFragment.onMapReady - IllegalStateException #3011

Open
anandwana001 opened this issue Jan 17, 2025 · 0 comments
Open

GoogleMapsFragment.onMapReady - IllegalStateException #3011

anandwana001 opened this issue Jan 17, 2025 · 0 comments
Labels
type: bug Something isn't working

Comments

@anandwana001
Copy link
Collaborator

anandwana001 commented Jan 17, 2025

screenName DataCollectionFragment
selectedSurveyId aV9BUsBQVNLWGZbRiHBk
Fatal Exception: java.lang.IllegalStateException: Can't access the Fragment View's LifecycleOwner for GoogleMapsFragment{33885b7} (4beafee1-fc93-4416-b268-ee55e695b650 id=0x7f09014f) when getView() is null i.e., before onCreateView() or after onDestroyView()
       at androidx.fragment.app.Fragment.getViewLifecycleOwner(Fragment.java:390)
       at com.google.android.ground.ui.map.gms.GoogleMapsFragment.onMapReady(GoogleMapsFragment.kt:181)
       at com.google.android.ground.ui.map.gms.GoogleMapsFragment.attachToParent$lambda$2(GoogleMapsFragment.kt:156)
       at com.google.android.ground.ui.map.gms.GoogleMapsFragment.$r8$lambda$ISs5lQcV_FGHNQDpZBQmwCh_A7o()
       at com.google.android.ground.ui.map.gms.GoogleMapsFragment$$ExternalSyntheticLambda1.onMapReady(D8$$SyntheticClass)
       at com.google.android.gms.maps.zzau.zzb(com.google.android.gms:play-services-maps@@19.0.0:1)
       at com.google.android.gms.maps.internal.zzas.zza(com.google.android.gms:play-services-maps@@19.0.0:5)
       at com.google.android.gms.internal.maps.zzb.onTransact(com.google.android.gms:play-services-maps@@19.0.0:3)
       at android.os.Binder.transact(Binder.java:1219)
       at m.axz.c(:com.google.android.gms.policy_maps_core_dynamite@[email protected]:8)
       at com.google.maps.api.android.lib6.impl.bz.run(:com.google.android.gms.policy_maps_core_dynamite@[email protected]:17)
       at android.os.Handler.handleCallback(Handler.java:958)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loopOnce(Looper.java:230)
       at android.os.Looper.loop(Looper.java:319)
       at android.app.ActivityThread.main(ActivityThread.java:8919)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)
        
@anandwana001 anandwana001 added the type: bug Something isn't working label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant