Using KonfettiView (View-based, not Compose) and a long enough running emitter, if the app is paused for a significant amount of time, then resumed, the view will attempt to create enough confetti to cover the interval between paused and resumed, resulting in a crash.
Steps to reproduce:
Create an emitter with length 0 (which represent infinite length in this implementation), or Long.MAX_VALUE (effectively infinite)
Background the app overnight, this length of time may depend on device. On a Pixel 2 running Android 11, the shortest I tested was 15 hours
Open the app in the morning, it will crash with an OutOfMemoryError
Using KonfettiView (View-based, not Compose) and a long enough running emitter, if the app is paused for a significant amount of time, then resumed, the view will attempt to create enough confetti to cover the interval between paused and resumed, resulting in a crash.
Steps to reproduce:
Long.MAX_VALUE
(effectively infinite)