confirmed that writing to the canvas with the pixel data causes the crash