iOS14 WKWebView crash when long press on image, createGraphicsContext()

Viewed 114

My app is using WKWebView to show some html content. But on iOS 14.4.2, it crashes when I long press on an image when it about to trigger the preview popup. And it's wired that:

  1. For now I can only reproduce it on one specific image with size of 16.5MB
  2. Test with other image, it would not run into the crash.

The crash stack trace here

video of how it crash

Please see the stack trace below, our app doesn't handle the long press gesture. And the stack trace is all about UIKit & WebKit. I assume this would be a iOS bug.

Please let me know if you have any thoughts or you ran into the similar issue too.

0 Answers
Related