Skip to main content

   Intercom crashes every time you try to attach any type of content (even embedded gifs) on Android 9

java.lang.NullPointerException
at androidx.compose.ui.node.LayoutNodeDrawScope.drawContent(LayoutNodeDrawScope.kt:49)
at io.intercom.android.sdk.m5.conversation.ui.ConversationScreenKt$ConversationScreenContent$32$1$1.invoke(ConversationScreen.kt:581)
at io.intercom.android.sdk.m5.conversation.ui.ConversationScreenKt$ConversationScreenContent$32$1$1.invoke(ConversationScreen.kt:580)
at androidx.compose.ui.graphics.drawscope.DrawScope$record$1.invoke(DrawScope.kt:1077)
at androidx.compose.ui.graphics.drawscope.DrawScope$record$1.invoke(DrawScope.kt:941)
at androidx.compose.ui.graphics.layer.GraphicsLayer$clipDrawBlock$1.invoke(AndroidGraphicsLayer.android.kt:71)
at androidx.compose.ui.graphics.layer.GraphicsLayer$clipDrawBlock$1.invoke(AndroidGraphicsLayer.android.kt:66)
at androidx.compose.ui.graphics.layer.ViewLayer.dispatchDraw(GraphicsViewLayer.android.kt:592)
at android.view.View.draw(View.java:20210)
at android.view.View.updateDisplayListIfDirty(View.java:19082)
at android.view.View.draw(View.java:19935)
at android.view.ViewGroup.drawChild(ViewGroup.java:4333)
at androidx.compose.ui.graphics.layer.view.DrawChildContainer.drawChild$ui_graphics_release(ViewLayerContainer.android.kt:118)
at androidx.compose.ui.graphics.layer.GraphicsViewLayer.draw(GraphicsViewLayer.android.kt:465)
at androidx.compose.ui.graphics.layer.GraphicsLayer.draw$ui_graphics_release(AndroidGraphicsLayer.android.kt:548)
at androidx.compose.ui.graphics.layer.LayerSnapshotV28$GraphicsLayerPicture.draw(LayerSnapshot.android.kt:73)
at android.view.RecordingCanvas.drawPicture(RecordingCanvas.java:292)
at android.graphics.Bitmap.createBitmap(Bitmap.java:1248)
at android.graphics.Bitmap.createBitmap(Bitmap.java:1205)
at androidx.compose.ui.graphics.layer.LayerSnapshotV28.toBitmap(LayerSnapshot.android.kt:47)
at androidx.compose.ui.graphics.layer.GraphicsLayer.toImageBitmap(AndroidGraphicsLayer.android.kt:864)
at io.intercom.android.sdk.m5.conversation.ui.ConversationScreenKt$ConversationScreenContent$32$2$1.invokeSuspend(ConversationScreen.kt:592)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
at androidx.compose.ui.platform.AndroidUiDispatcher.performTrampolineDispatch(AndroidUiDispatcher.android.kt:81)
at androidx.compose.ui.platform.AndroidUiDispatcher.access$performTrampolineDispatch(AndroidUiDispatcher.android.kt:41)
at androidx.compose.ui.platform.AndroidUiDispatcher$dispatchCallback$1.run(AndroidUiDispatcher.android.kt:57)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6669)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

 

Hey Shaq with the Support Engineering team here at Intercom! 🙂

I’ve received reports of this in the past but we’re not currently investigating any widespread issues related to this. Can you confirm which version of the SDK you’re using and upgrade to the latest version found here if you aren’t already? 


Hey Shaq with the Support Engineering team here at Intercom! 🙂

I’ve received reports of this in the past but we’re not currently investigating any widespread issues related to this. Can you confirm which version of the SDK you’re using and upgrade to the latest version found here if you aren’t already? 

Hello. We use latest sdk version: 15.11.2


Reply