https://kotlinlang.org logo
#compose
Title
# compose
r

robnik

12/02/2021, 3:47 PM
Should I report bugs in the following situation: I released an app, and I see Crashlytics crash reports with a stack trace in Compose, but no frames from my code. I can't reproduce the crash. My guess is there are some bugs in Compose causing it, but is a stack trace and message not enough for a report? Example in thread.
1
Fatal Exception: java.lang.IllegalStateException  Compose assumes that all pointer ids in MotionEvents are first provided alongside ACTION_DOWN or ACTION_POINTER_DOWN. This appears not to have been the case
Copy code
androidx.compose.ui.input.pointer.MotionEventAdapter.createPointerInputEventData (MotionEventAdapter.java:126)
androidx.compose.ui.input.pointer.MotionEventAdapter.convertToPointerInputEvent$ui_release (MotionEventAdapter.java:86)
androidx.compose.ui.platform.AndroidComposeView.dispatchTouchEvent (AndroidComposeView.java:858)
arrow_right
android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:3863)
android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:3492)
android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:3863)
android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:3492)
android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:3863)
android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:3492)
Fatal Exception: java.lang.IllegalArgumentException  Can't represent a size of 2147483520 in Constraints
Copy code
androidx.compose.ui.node.MeasureAndLayoutDelegate.access$getPostponedMeasureRequests$p (MeasureAndLayoutDelegate.java:38)
androidx.compose.ui.node.MeasureAndLayoutDelegate.measureAndLayout (MeasureAndLayoutDelegate.java:207)
androidx.compose.ui.platform.AndroidComposeView.measureAndLayout (AndroidComposeView.java:510)
androidx.compose.ui.platform.AndroidComposeView.dispatchDraw (AndroidComposeView.java:666)
arrow_right
android.view.View.draw (View.java:22353)
android.view.View.updateDisplayListIfDirty (View.java:21226)
s

Stylianos Gakis

12/04/2021, 11:18 AM
Could it be this? Same constraints number in the exception.
I meant to link this too https://github.com/google/accompanist/issues/847 omg 🤦‍♂️
👍 1
r

robnik

12/07/2021, 2:51 PM
Could be. I'm using the HorizontalPager and Accompanist latest stable (0.20.2)
s

Stylianos Gakis

12/07/2021, 2:57 PM
We are avoiding this by using 0.18.0 for now. But if you’re feeling adventurous, use 0.21.4-beta instead as Andrey Kulikov suggests it might be fixed there from this PR most likely.
r

robnik

12/07/2021, 4:23 PM
Thanks. I'll try the beta, or wait for that version to be stable.
10 Views