title: Can't represent a size of 214748364 in Constraints
body: <p>I just created a simple Composable and wished to render it using a <code>Layout</code>, but while implementing the solution, I stumbled upon this error in the measurement phase.</p>
  <pre><code>java.lang.IllegalArgumentException: Can't represent a size of 214748364 in Constraints
          at androidx.compose.ui.unit.Constraints$Companion.bitsNeedForSize(Constraints.kt:408)
          at androidx.compose.ui.unit.Constraints$Companion.createConstraints-Zbe2FdA$ui_unit_release(Constraints.kt:368)
          at androidx.compose.ui.unit.ConstraintsKt.Constraints(Constraints.kt:438)
          at androidx.compose.ui.unit.ConstraintsKt.Constraints$default(Constraints.kt:423)
          at com.gmarsk.aiare.MainActivity$InstructionsScreen$DisplayCard$1.measure-3p2s80s(MainActivity.kt:514)
          at androidx.compose.ui.node.InnerPlaceable.measure-BRTryo0(InnerPlaceable.kt:54)
  </code></pre>
  <p>This was when I tried this</p>
  <pre><code>val sampleComposable = measurables[1].measure(
                  Constraints(
                      minHeight = constraints.maxHeight * 7 / 10,
                  )
              )
  </code></pre>
  <p>Anyone stumble upon this before? What's the solution if it is not a bug, in which case please let me know.</p>
  <p>Now, the issue here I think is the fact that I am nesting two <code>Layout</code> Composables,</p>
  <pre><code>Layout(
  content = {
   Dummy1()
   Dummy2()
   NestedLayoutComposable() // It contains a Layout Composable itself
  }{ measurables, constraints -&gt;
   val nlc = measurables[2].measure(
    Constraints(
     minHeight = constraints.maxHeight * 7/10
    )
   )
   layout(constraints.maxWidth, constraints.maxHeight){
    nls.place(0, 0)
   }
  }
  )
  </code></pre>
  <p>Where The nestedLayoutComposable again has a Layout and that is where the crash occurs, it is at this line</p>
  <pre><code>            Layout(
                  content = {
                      Text(text = &quot;Random&quot;)
                      Box {
                          Image(painter = AppUtils.getRandomImagePainter(), contentDescription = &quot;&quot;)
                      }
                  }
              ) { measurables, constraints -&gt;
                  val text = measurables[0].measure(constraints)
  /*This line --&gt;*/   val image = measurables[1].measure(
                      Constraints(
                          maxWidth = constraints.maxWidth * 90 / 100,
                          minHeight = constraints.maxHeight * 7 / 10
                      )
                  )
  
                  layout(constraints.maxWidth, constraints.maxHeight) {
                      instruction.place(
                          (constraints.maxWidth - instruction.width) / 2,
                          0
                      )
                      illustration.place(
                          (constraints.maxWidth - illustration.width) / 2,
                          illustration.height / 2
                      )
                  }
              }
  
  </code></pre>
  <p>So I know that the issue is with the <code>Layout</code> Composable being nested within one another but that still doesn't explain WHY the error occurs, and HOW to resolve it, and so those are the prime queries of this post, and that is what I expect the answers to include, thank you.</p>