-
-
Notifications
You must be signed in to change notification settings - Fork 119
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
Crash inside AnimatedVisibility() #710
Comments
Hello! Thanks for the report. We’ve followed the reproduction instructions and tried several other setups, but unfortunately, we haven’t been able to reproduce the crash. Could you share a minimal reproducible example? Two extra notes:
|
Hey Patrick! Thank you very much for taking the time to look at this. I rolled back to yesterday's version of the app and tried to find what was causing the issue, and I figured it out. This is an extremely specific case: my BottomSheetScaffold( |
Hello @fuadenergyom, please provide a self-contained MRE. The code you've shared contains unknown references. |
Closing due to no MRE. |
How to reproduce
I searched through closed issues and this was addressed in this issue: #200
I have created a CartesianChartHost that works fine inside any layout. However, when put inside an AnimatedVisibility(), it crashes when the visibility becomes true. In the old issue you mentioned it would get fixed in 1.6.5, and I am currently using 2.0.0-alpha.19
How to Reproduce:
Create a CartesianChartHost with CartesianChart with LineCartesianLayer. Use it inside an AnimatedVisibility() block.
Observed behavior
Crashes as soon as visibility becomes true. coerceIn() method causes the crash, because of 0 value of bounds.height().toInt() (in BaseDynamicShader.kt:43).
Expected behavior
Normally render the chart, even with initial height of 0.
Vico version(s)
Latest unstable version
Android version(s)
Android 14 (Virtual Device)
Additional information
The text was updated successfully, but these errors were encountered: