Simulator crashing/freezing on sprite creation

Hi,

I’ve observed the simulator repeatedly crashing/freezing when the below code is executed.

let sprTest = sprites.create(image.create(screen.width, screen.height / 1.3), 0)

On testing further, I observed the same code working fine for another set of values:
let sprTest2 = sprites.create(image.create(screen.width / 8, screen.height / 2), 0)
OR
let sprTest2 = sprites.create(image.create(screen.width / 8, screen.height / 1.5), 0)

I’ve since realized that this happens whenever a non-whole number is supplied as an argument to image.create(). I can get around the issue by using a math.round() wrapper for the arguments, but I guess this should be default behavior for image.create()?

It took me a couple of hours to figure out what was originally causing the issue, I hope this helps anyone else who runs into the issue.

This is a good find. We should be cleaning up the input in the create api!