Hey, We are getting the following crash on compose...
# compose
m
Hey, We are getting the following crash on compose v 1.1.1. What might be wrong here
Copy code
Fatal Exception: java.lang.IllegalArgumentException: Failed requirement.
       at androidx.compose.ui.node.MeasureAndLayoutDelegate.doRemeasure(MeasureAndLayoutDelegate.kt:177)
       at androidx.compose.ui.node.MeasureAndLayoutDelegate.remeasureAndRelayoutIfNeeded(MeasureAndLayoutDelegate.kt:228)
       at androidx.compose.ui.node.MeasureAndLayoutDelegate.access$remeasureAndRelayoutIfNeeded(MeasureAndLayoutDelegate.kt:38)
       at androidx.compose.ui.node.MeasureAndLayoutDelegate.measureAndLayout(MeasureAndLayoutDelegate.kt:201)
       at androidx.compose.ui.platform.AndroidComposeView.measureAndLayout(AndroidComposeView.android.kt:662)
       at androidx.compose.ui.node.Owner$DefaultImpls.measureAndLayout$default(Owner.kt:182)
       at androidx.compose.ui.platform.AndroidComposeView.dispatchDraw(AndroidComposeView.android.kt:846)
       at android.view.View.draw(View.java:24398)
       at android.view.View.updateDisplayListIfDirty(View.java:23256)
       at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4732)
       at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4704)
       at android.view.View.updateDisplayListIfDirty(View.java:23203)
       at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4732)
       at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4704)
       at android.view.View.updateDisplayListIfDirty(View.java:23203)
       at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4732)
       at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4704)
       at android.view.View.updateDisplayListIfDirty(View.java:23203)
       at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4732)
       at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4704)
       at android.view.View.updateDisplayListIfDirty(View.java:23203)
       at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4732)
       at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4704)
       at android.view.View.updateDisplayListIfDirty(View.java:23203)
       at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4732)
       at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4704)
       at android.view.View.updateDisplayListIfDirty(View.java:23203)
       at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:753)
       at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:759)
       at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:857)
       at android.view.ViewRootImpl.draw(ViewRootImpl.java:5501)
       at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:5194)
       at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:4356)
       at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:2991)
       at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:10665)
       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:8741)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)
🧵 6
a
hey. this bug was fixed in Compose 1.2
c
For future reference, please put stack traces and code blocks as replies in your thread (this is why people are reacting with 🧵 ). Thanks
a
Why are you still using compose 1.1.1, that was released almost a year ago. 🤔
m
We release sdk’s to our partners and increasing compose version also means we have to increase kotlin version which our partners are not fine with. It would be good if in the future compose has backward compatibility for kotlin versions.