After upgrading Android Intercom SDK from 5.5.0 to 14.0.4 we observe a new crash in our app on various Android versions and devices reported in Firebase Crashlytics. Can you help us understand what is wrong here? | Community
Skip to main content

Fatal Exception: java.lang.IllegalStateException: ViewTreeLifecycleOwner not found from android.widget.FrameLayout{9f9fb51 V.E...... ......ID 0,0-1080,2131 #7f0a04a1 app:id/intercom_overlay_root}

at androidx.compose.ui.platform.WindowRecomposer_androidKt.createLifecycleAwareWindowRecomposer(WindowRecomposer.android.kt:349)

at androidx.compose.ui.platform.WindowRecomposer_androidKt.createLifecycleAwareWindowRecomposer$default(WindowRecomposer.android.kt:324)

at androidx.compose.ui.platform.WindowRecomposerFactory$Companion$LifecycleAware$1.createRecomposer(WindowRecomposer.android.kt:168)

at androidx.compose.ui.platform.WindowRecomposerPolicy.createAndInstallWindowRecomposer$ui_release(WindowRecomposer.android.kt:224)

at androidx.compose.ui.platform.WindowRecomposer_androidKt.getWindowRecomposer(WindowRecomposer.android.kt:299)

at androidx.compose.ui.platform.AbstractComposeView.resolveParentCompositionContext(ComposeView.android.kt:242)

at androidx.compose.ui.platform.AbstractComposeView.ensureCompositionCreated(ComposeView.android.kt:249)

at androidx.compose.ui.platform.AbstractComposeView.createComposition(ComposeView.android.kt:194)

at androidx.compose.ui.platform.ComposeView.setContent(ComposeView.android.kt:420)

at io.intercom.android.sdk.m5.notification.InAppNotificationCardKt.addTicketHeaderToCompose(InAppNotificationCard.kt:55)

at io.intercom.android.sdk.overlay.StackableSnippet.setViewData(StackableSnippet.java:101)

at io.intercom.android.sdk.overlay.StackableSnippet.display(StackableSnippet.java:49)

at io.intercom.android.sdk.overlay.InAppNotificationPresenter.addNewNotifications(InAppNotificationPresenter.java:184)

at io.intercom.android.sdk.overlay.InAppNotificationPresenter.displayNotificationsAfterAttach(InAppNotificationPresenter.java:90)

at io.intercom.android.sdk.overlay.InAppNotificationPresenter$1.run(InAppNotificationPresenter.java:79)

at io.intercom.android.sdk.utilities.ViewUtils$1.onGlobalLayout(ViewUtils.java:30)

at android.view.ViewTreeObserver.dispatchOnGlobalLayout(ViewTreeObserver.java:1087)

at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:3745)

at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:2618)

at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:9971)

at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1010)

at android.view.Choreographer.doCallbacks(Choreographer.java:809)

at android.view.Choreographer.doFrame(Choreographer.java:744)

at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:995)

at android.os.Handler.handleCallback(Handler.java:938)

at android.os.Handler.dispatchMessage(Handler.java:99)

at android.os.Looper.loop(Looper.java:246)

at android.app.ActivityThread.main(ActivityThread.java:8653)

at java.lang.reflect.Method.invoke(Method.java)

at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)

 

Hey @corey v​! Daniel from Customer Support Engineering here 🔧 

 

V5.5.0 is a very outdated SDK version, so it is likely that you just need to update your implementation to follow the latest documentation! Take your time to revise your current code, and if you believe that you should not be experiencing any crashes after making the relevant changes, feel free to contact us via the Messenger 🙌


Reply