Skip to content

[Crash] GoogleMapsFragment.setCompassPadding #3760

Description

@andreia-ferreira
Fatal Exception: java.lang.ClassCastException: android.view.View cannot be cast to android.widget.ImageView
       at org.groundplatform.android.ui.map.gms.GoogleMapsFragment.setCompassPadding(GoogleMapsFragment.kt:122)
       at org.groundplatform.android.ui.map.gms.GoogleMapsFragment.onApplyWindowInsets(GoogleMapsFragment.kt:115)
       at org.groundplatform.android.ui.map.gms.GoogleMapsFragment.onCreateView$lambda$0$0(GoogleMapsFragment.kt:144)
       at org.groundplatform.android.ui.map.gms.GoogleMapsFragment.$r8$lambda$nm5oaAsrsP-usKKEj792EH97_ks()
       at org.groundplatform.android.ui.map.gms.GoogleMapsFragment$$ExternalSyntheticLambda1.onApplyWindowInsets(D8$$SyntheticClass)
       at androidx.core.view.ViewCompat$Api21Impl$1.onApplyWindowInsets(ViewCompat.java:5322)
       at android.view.View.dispatchApplyWindowInsets(View.java:10599)
       at android.view.ViewGroup.dispatchApplyWindowInsets(ViewGroup.java:7441)
       at android.view.ViewGroup.brokenDispatchApplyWindowInsets(ViewGroup.java:7466)
       at android.view.ViewGroup.dispatchApplyWindowInsets(ViewGroup.java:7456)
       at android.view.ViewGroup.brokenDispatchApplyWindowInsets(ViewGroup.java:7466)
       at android.view.ViewGroup.dispatchApplyWindowInsets(ViewGroup.java:7456)
       at androidx.core.view.ViewCompat$Api20Impl.dispatchApplyWindowInsets(ViewCompat.java:5793)
       at androidx.core.view.ViewCompat.dispatchApplyWindowInsets(ViewCompat.java:3024)
       at androidx.fragment.app.FragmentContainerView.dispatchApplyWindowInsets(FragmentContainerView.kt:218)
       at android.view.ViewGroup.brokenDispatchApplyWindowInsets(ViewGroup.java:7466)
       at android.view.ViewGroup.dispatchApplyWindowInsets(ViewGroup.java:7456)
       at android.view.ViewGroup.brokenDispatchApplyWindowInsets(ViewGroup.java:7466)
       at android.view.ViewGroup.dispatchApplyWindowInsets(ViewGroup.java:7456)
       at androidx.core.view.ViewCompat$Api20Impl.dispatchApplyWindowInsets(ViewCompat.java:5793)
       at androidx.core.view.ViewCompat.dispatchApplyWindowInsets(ViewCompat.java:3024)
       at androidx.fragment.app.FragmentContainerView.dispatchApplyWindowInsets(FragmentContainerView.kt:218)
       at androidx.core.view.ViewCompat$Api20Impl.dispatchApplyWindowInsets(ViewCompat.java:5793)
       at androidx.core.view.ViewCompat.dispatchApplyWindowInsets(ViewCompat.java:3024)
       at androidx.fragment.app.FragmentContainerView.dispatchApplyWindowInsets(FragmentContainerView.kt:218)
       at android.view.ViewGroup.brokenDispatchApplyWindowInsets(ViewGroup.java:7466)
       at android.view.ViewGroup.dispatchApplyWindowInsets(ViewGroup.java:7456)
       at android.view.ViewGroup.brokenDispatchApplyWindowInsets(ViewGroup.java:7466)
       at android.view.ViewGroup.dispatchApplyWindowInsets(ViewGroup.java:7456)
       at android.view.ViewGroup.brokenDispatchApplyWindowInsets(ViewGroup.java:7466)
       at android.view.ViewGroup.dispatchApplyWindowInsets(ViewGroup.java:7456)
       at android.view.ViewGroup.brokenDispatchApplyWindowInsets(ViewGroup.java:7466)
       at android.view.ViewGroup.dispatchApplyWindowInsets(ViewGroup.java:7456)
       at android.view.ViewGroup.brokenDispatchApplyWindowInsets(ViewGroup.java:7466)
       at android.view.ViewGroup.dispatchApplyWindowInsets(ViewGroup.java:7456)
       at android.view.ViewGroup.brokenDispatchApplyWindowInsets(ViewGroup.java:7466)
       at android.view.ViewGroup.dispatchApplyWindowInsets(ViewGroup.java:7456)
       at android.view.ViewRootImpl.dispatchApplyInsets(ViewRootImpl.java:2102)
       at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2371)
       at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1876)
       at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:8167)
       at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1057)
       at android.view.Choreographer.doCallbacks(Choreographer.java:875)
       at android.view.Choreographer.doFrame(Choreographer.java:776)
       at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1042)
       at android.os.Handler.handleCallback(Handler.java:900)
       at android.os.Handler.dispatchMessage(Handler.java:103)
       at android.os.Looper.loop(Looper.java:219)
       at android.app.ActivityThread.main(ActivityThread.java:8349)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1055)

FinalizerDaemon:
       at java.lang.Object.wait(Object.java)
       at java.lang.Object.wait(Object.java:442)
       at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:190)
       at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:211)
       at java.lang.Daemons$FinalizerDaemon.runInternal(Daemons.java:271)
       at java.lang.Daemons$Daemon.run(Daemons.java:137)
       at java.lang.Thread.run(Thread.java:929)

FinalizerWatchdogDaemon:
       at java.lang.Thread.sleep(Thread.java)
       at java.lang.Thread.sleep(Thread.java:443)
       at java.lang.Thread.sleep(Thread.java:359)
       at java.lang.Daemons$FinalizerWatchdogDaemon.sleepForMillis(Daemons.java:383)
       at java.lang.Daemons$FinalizerWatchdogDaemon.waitForFinalization(Daemons.java:411)
       at java.lang.Daemons$FinalizerWatchdogDaemon.runInternal(Daemons.java:323)
       at java.lang.Daemons$Daemon.run(Daemons.java:137)
       at java.lang.Thread.run(Thread.java:929)

ReferenceQueueDaemon:
       at java.lang.Object.wait(Object.java)
       at java.lang.Object.wait(Object.java:442)
       at java.lang.Object.wait(Object.java:568)
       at java.lang.Daemons$ReferenceQueueDaemon.runInternal(Daemons.java:215)
       at java.lang.Daemons$Daemon.run(Daemons.java:137)
       at java.lang.Thread.run(Thread.java:929)

Crash has been happening since v 0.3.6.
Crashlytics link

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions