v3rm0n / intercom_flutter

Flutter wrapper for Intercom libraries
95 stars 141 forks source link

Fatal Exception: java.lang.IllegalArgumentException y must be < bitmap.height() #450

Closed Wreos closed 3 months ago

Wreos commented 3 months ago

Hi, everyone. I am experiencing intercom crash using flutter_intercom: 9.0.6

Fatal Exception: java.lang.IllegalArgumentException y must be < bitmap.height()

Logs `Exception java.lang.IllegalArgumentException: y must be < bitmap.height() at android.graphics.Bitmap.checkPixelAccess (Bitmap.java:2022) at android.graphics.Bitmap.getPixel (Bitmap.java:1927) at io.intercom.android.sdk.views.compose.MessageRowKt$MessageMeta$1.invoke (MessageRow.kt:395) at io.intercom.android.sdk.views.compose.MessageRowKt$MessageMeta$1.invoke (MessageRow.kt:392) at androidx.compose.ui.layout.OnGloballyPositionedNode.onGloballyPositioned (OnGloballyPositionedModifier.kt:78) at androidx.compose.ui.node.LayoutNode.dispatchOnPositionedCallbacks$ui_release (LayoutNode.kt:1100) at androidx.compose.ui.node.OnPositionedDispatcher.dispatchHierarchy (OnPositionedDispatcher.kt:72) at androidx.compose.ui.node.OnPositionedDispatcher.dispatchHierarchy (OnPositionedDispatcher.kt:76) at androidx.compose.ui.node.OnPositionedDispatcher.dispatchHierarchy (OnPositionedDispatcher.kt:76) at androidx.compose.ui.node.OnPositionedDispatcher.dispatchHierarchy (OnPositionedDispatcher.kt:76) at androidx.compose.ui.node.OnPositionedDispatcher.dispatchHierarchy (OnPositionedDispatcher.kt:76) at androidx.compose.ui.node.OnPositionedDispatcher.dispatchHierarchy (OnPositionedDispatcher.kt:76) at androidx.compose.ui.node.OnPositionedDispatcher.dispatchHierarchy (OnPositionedDispatcher.kt:76) at androidx.compose.ui.node.OnPositionedDispatcher.dispatchHierarchy (OnPositionedDispatcher.kt:76) at androidx.compose.ui.node.OnPositionedDispatcher.dispatchHierarchy (OnPositionedDispatcher.kt:76) at androidx.compose.ui.node.OnPositionedDispatcher.dispatchHierarchy (OnPositionedDispatcher.kt:76) at androidx.compose.ui.node.OnPositionedDispatcher.dispatchHierarchy (OnPositionedDispatcher.kt:76) at androidx.compose.ui.node.OnPositionedDispatcher.dispatch (OnPositionedDispatcher.kt:63) at androidx.compose.ui.node.MeasureAndLayoutDelegate.dispatchOnPositionedCallbacks (MeasureAndLayoutDelegate.kt:653) at androidx.compose.ui.platform.AndroidComposeView.updatePositionCacheAndDispatch (AndroidComposeView.android.kt:1121) at androidx.compose.ui.platform.AndroidComposeView.onLayout (AndroidComposeView.android.kt:1095) at android.view.View.layout (View.java:24969) at android.view.ViewGroup.layout (ViewGroup.java:6784) at androidx.compose.ui.platform.AbstractComposeView.internalOnLayout$ui_release (ComposeView.android.kt:322) at androidx.compose.ui.platform.AbstractComposeView.onLayout (ComposeView.android.kt:313) at android.view.View.layout (View.java:24969) at android.view.ViewGroup.layout (ViewGroup.java:6784) at android.widget.FrameLayout.layoutChildren (FrameLayout.java:332) at android.widget.FrameLayout.onLayout (FrameLayout.java:270) at android.view.View.layout (View.java:24969) at android.view.ViewGroup.layout (ViewGroup.java:6784) at android.widget.LinearLayout.setChildFrame (LinearLayout.java:1829) at android.widget.LinearLayout.layoutVertical (LinearLayout.java:1673) at android.widget.LinearLayout.onLayout (LinearLayout.java:1582) at android.view.View.layout (View.java:24969) at android.view.ViewGroup.layout (ViewGroup.java:6784) at android.widget.FrameLayout.layoutChildren (FrameLayout.java:332) at android.widget.FrameLayout.onLayout (FrameLayout.java:270) at android.view.View.layout (View.java:24969) at android.view.ViewGroup.layout (ViewGroup.java:6784) at android.widget.LinearLayout.setChildFrame (LinearLayout.java:1829) at android.widget.LinearLayout.layoutVertical (LinearLayout.java:1673) at android.widget.LinearLayout.onLayout (LinearLayout.java:1582) at android.view.View.layout (View.java:24969) at android.view.ViewGroup.layout (ViewGroup.java:6784) at android.widget.FrameLayout.layoutChildren (FrameLayout.java:332) at android.widget.FrameLayout.onLayout (FrameLayout.java:270) at com.android.internal.policy.DecorView.onLayout (DecorView.java:1431) at android.view.View.layout (View.java:24969) at android.view.ViewGroup.layout (ViewGroup.java:6784) at android.view.ViewRootImpl.performLayout (ViewRootImpl.java:4917) at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:4240) at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:3116) at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:10885) at android.view.Choreographer$CallbackRecord.run (Choreographer.java:1301) at android.view.Choreographer$CallbackRecord.run (Choreographer.java:1309) at android.view.Choreographer.doCallbacks (Choreographer.java:923) at android.view.Choreographer.doFrame (Choreographer.java:852) at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:1283) at android.os.Handler.handleCallback (Handler.java:942) at android.os.Handler.dispatchMessage (Handler.java:99) at android.os.Looper.loopOnce (Looper.java:226) at android.os.Looper.loop (Looper.java:313) at android.app.ActivityThread.main (ActivityThread.java:8757) at java.lang.reflect.Method.invoke at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:571) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1067) `

I checked intercom SDK updates and noticed that problem was fixed in 15.10.1

image

Could you update intercom-android sdk to 15.10.1? 15.10.1 It contains crash fix

Flutter doctor Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.22.1, on macOS 14.5 23F79 darwin-arm64, locale en-DE) [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 15.0) [✓] Chrome - develop for the web [✓] Android Studio (version 2024.1) [✓] VS Code (version 1.92.0) [✓] Connected device (5 available) [✓] Network resources
Wreos commented 3 months ago

Fixed after updating ios and android sdk to latest https://github.com/v3rm0n/intercom_flutter/pull/451