Open NKosyanchuk opened 1 year ago
I encountered the same issue and I have a possible workaround.
You probably initialise the Emitter using the max()
function.
emitter = Emitter(duration = 1000, TimeUnit.MILLISECONDS).max(2000)
The issue here is an integer division that clips to 0, tough correct would should be 0.5f. This is the problematic line in the EmiterConfig.kt.
Quick Workaround:
The issue does not occur if I use the perSecond()
function to initialise the Emitter.
emitter = Emitter(duration = 1000, TimeUnit.MILLISECONDS).perSecond(1000)
We have this issue even if we use perSecond
emitter = Emitter(duration = 2000, TimeUnit.MILLISECONDS).perSecond(50),
Is it reproducible? If so, did you run the memory profiler? Can you reproduce it in a sample project?
Any info you can provide would be helpful.
I can check for some more details, but we get this in Firebase crash reports
Hi, faced with crash while using compose version of lib:
Here is full stacktrace: