Unable to get image data from canvas

DrawImage video source data to canvas and then getImageData from canvas. The safari throws the error "Unable to get image data from canvas. Requested size was 1080 x 1920 ". // videoElement.readyState = 4 ctx.drawImage(videoElement,0,0,1080,1920,0,0,1080,1920); const imageData = ctx.getImageData(0,0,1080,1920);"

iphone 11, ios 15.5

The step to reproduce this issue is not clear to me. When the issue has been triggered before, it is more easily reproduced until the safari is restart

Unable to get image data from canvas
 
 
Q