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

Piotr Prus

06/09/2021, 9:25 AM
Hi. After upgrading to compose beta08 I have a
measure strategy
loop in my logs and the view is never shown. Unfortunately, the log is not pointing to anything, so I do not know which part has an issue with measuring. Any idea? I will try to turn off component by component to find the one that cause this loop.
a

Albert Chang

06/09/2021, 9:40 AM
👍 1
p

Piotr Prus

06/09/2021, 9:48 AM
Logs:
Copy code
2021-06-09 11:17:18.207 27094-27094/? D/CCL2: Measure strategy 0
2021-06-09 11:17:18.207 27094-27094/? D/CCL2: DW 0
2021-06-09 11:17:18.207 27094-27094/? D/CCL2: ODR true
2021-06-09 11:17:18.207 27094-27094/? D/CCL2: IRH false
2021-06-09 11:17:18.207 27094-27094/? D/CCL: UD false
2021-06-09 11:17:18.207 27094-27094/? D/CCL2: Measure strategy 1
2021-06-09 11:17:18.207 27094-27094/? D/CCL2: DW 0
2021-06-09 11:17:18.207 27094-27094/? D/CCL2: ODR true
2021-06-09 11:17:18.207 27094-27094/? D/CCL2: IRH false
2021-06-09 11:17:18.207 27094-27094/? D/CCL: UD true
2021-06-09 11:17:18.207 27094-27094/? D/CCL2: Measure strategy 2
2021-06-09 11:17:18.207 27094-27094/? D/CCL2: DW 0
2021-06-09 11:17:18.207 27094-27094/? D/CCL2: ODR true
2021-06-09 11:17:18.207 27094-27094/? D/CCL2: IRH false
2021-06-09 11:17:18.207 27094-27094/? D/CCL: UD true
2021-06-09 11:17:18.208 27094-27094/? D/CCL2: Measure strategy 0
2021-06-09 11:17:18.208 27094-27094/? D/CCL2: DW 0
2021-06-09 11:17:18.208 27094-27094/? D/CCL2: ODR true
2021-06-09 11:17:18.208 27094-27094/? D/CCL2: IRH false
2021-06-09 11:17:18.208 27094-27094/? D/CCL: UD false
2021-06-09 11:17:18.208 27094-27094/? D/CCL2: Measure strategy 1
2021-06-09 11:17:18.208 27094-27094/? D/CCL2: DW 0
2021-06-09 11:17:18.208 27094-27094/? D/CCL2: ODR true
2021-06-09 11:17:18.208 27094-27094/? D/CCL2: IRH false
2021-06-09 11:17:18.208 27094-27094/? D/CCL: UD true
2021-06-09 11:17:18.208 27094-27094/? D/CCL2: Measure strategy 2
2021-06-09 11:17:18.208 27094-27094/? D/CCL2: DW 0
2021-06-09 11:17:18.208 27094-27094/? D/CCL2: ODR true
2021-06-09 11:17:18.209 27094-27094/? D/CCL2: IRH false
2021-06-09 11:17:18.209 27094-27094/? D/CCL: UD true
I figured it out. My constraint layout was trying to measure before it got data. I put one if statement and now there is no more issues. Thanks a lot!
10 Views