Crash on attachments, Android 9 | Community
Skip to main content
Answered

Crash on attachments, Android 9

  • Nov 27, 2024 1:16 PM UTC
  • 5 replies
  • 322 views

   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)

 

Best answer by Anonymous

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? 

View original

5 replies

  • Answer
  • Dec 2, 2024 4:56 AM UTC

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? 


  • Author
  • New Participant
  • Dec 2, 2024 2:17 PM UTC

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


  • Dec 30, 2024 12:15 AM UTC

Thanks for confirming, are you still seeing this? If so, I can go ahead and escalate this further. 


  • New Participant
  • Jan 1, 2025 8:35 AM UTC

Thanks for confirming, are you still seeing this? If so, I can go ahead and escalate this further. 

Still having this issue, I’m using react native SDK version: 8.1.0


  • New Participant
  • Jan 4, 2025 1:28 PM UTC

Have the same issue! Whats wrong with android developers at intercom?

Every release — a lot of crashes & problems! Ios works fine! Dislike!