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
Scroll NaN rounding bug, desktop version #304
Comments
I'm seeing the same thing, sadly it freezes the entire UI with no explanation to the user. My strack trace is a little different, posting it here in case it's helpful: Stack trace
Compose 0.4.0-build182, JDK 16, Ubuntu 20.10. |
I am also experiencing this issue. From what I can see, this is triggered by the position of the sliderAdapter being NaN in Scrollbar.desktop.kt at line 296 (compose 0.3.2), where |
Should be fixed in 0.4.0-build190 |
…when it waits for release event (JetBrains#304) Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
Hi folks.
There is a divide by zero bug in androidx.compose.foundation.SliderAdapter class
During scrollScale calculation it is possible that contentSize would be equal to containerSize, as result we get NaN in scrollScale and "Cannot round NaN value." exception in the end.
Steps to reproduce:
Scroll scale calculation code fragment:
private val scrollScale get() = (containerSize - size) / (contentSize - containerSize)
You can find exception text in attachment.
NaN_exception.txt
The text was updated successfully, but these errors were encountered: