-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ConstraintLayout 1.1.0-alpha12 "Width (0) and height (0) cannot be <= 0" error or font resource loading error or empty screenshot issue #1054
Comments
Also seen on CashApp although with a different library version bump, investigating |
I had this issue a bit randomly on my CI, I didn't commit some flaky screenshots that didn't fail the build locally. After generating all the snapshots and pushing them to remote, the errors went away. It may not resolve your issue, but thought it would be nice adding my feedback. Edit: I am still having this issue on a new PR, but the previous fix didn't work |
Managed to make it work only rebuilding the PR from the same commit. So it's flaky |
Having some trouble repro'ing this issue, has anyone found a recipe? |
I didn't find what exactly is causing the issue but disabling cache with |
Together with @ivannarino, we've dug more into the issue and found out that there's some caching issue when using the new resource loading mechanism. We've noticed that snapshot verification only fails when output for the task After checking that Paparazzi
and with the legacy mechanism, everything is working ok. Hopefully, this will help find the root cause of this issue. Also, let me know If I can provide any more details. |
I'm adding a couple more findings that helped me reproduce the issue on my local machine (with some manual modifications)
Originally I was getting those exceptions only on CI, never on my local machine so I assume this could be somehow related to the Gradle cache state on the CI. |
Update: I've spent considerable time investigating this and I think this was ultimately a Gradle caching bug, addressed here: #1226 Can someone try reproducing with the latest snapshot (@mrmike, @alashow) and confirm that this is now solved? I'd much appreciate it. In the meantime, I'll move this into the next milestone as I'd like to move forward with a release. |
Hi @jrodbx I was trying to reproduce the issue using the latest version of Paparazzi but I've encountered different exception
I think this might be somehow related to the Guava version bump but I'll need to spend more time to investigate this exception. |
With the workaround applied I was not able to reproduce the issue. Thanks @TWiStErRob for providing the link :) |
Closing as fixed! |
Sorry for coming to this late, but I'm still seeing this issue with 1.3.2. @mrmike Were you still seeing width/height issues before upgrading to 1.3.2? Because for me 1.3.2 only introduced #1054 (comment) issue, and the workaround was only for guava. |
Apparently now this problem shows up even with composeBom version |
Description
When upgrading from
androidx.constraintlayout:constraintlayout-compose:1.1.0-alpha05
to1.1.0-alpha-12
(or any versions in between), screenshot tests start failing (even the tests that don't use constraintlayout)Steps to Reproduce
Apply
androidx.constraintlayout:constraintlayout-compose:1.1.0-alpha12
dependencyScreenshot tests fail with different reasons:
or Variant 3, empty rendering:
(Interestingly enough, for empty ones it keeps/renders background color from theme)
Expected behavior
Screenshot tests to not break
Additional information:
Screenshots
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered: