There is currently an issue on Android 4.1.x and some 4.2.x stock browsers where the canvas clearRect function doesn’t work correctly sometimes. The issue occurs predominantly when using clearRect in a setTimeout or in the request animation frame. The solution that has been suggested is to use is canvas.width = canvas.width; This works but also causes some browsers to crash especially if used in a
![Android 4.1.x Stock Browser Canvas Solution](https://cdn-ak-scissors.b.st-hatena.com/image/square/e0b4d1e6255af01a9a168b5c9e048a25287e8981/height=288;version=1;width=512/https%3A%2F%2Fdnqgz544uhbo8.cloudfront.net%2F_%2Ffp%2Fimg%2Fdefault-preview-image.IsBK38jFAJBlWifMLO4z9g.png)