Bug 254974

Summary: OffscreenCanvas - draw crashes Safari
Product: WebKit Reporter: Tzvetelin Vassilev <tzvetelin.vassilev>
Component: CanvasAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: ap, dino, mattwoodrow
Priority: P2    
Version: Safari 16   
Hardware: iPhone / iPad   
OS: iOS 16   
Attachments:
Description Flags
MacOS process monitor console log output
none
MacOS process monitor console log output - unfiltered none

Description Tzvetelin Vassilev 2023-04-03 23:54:25 PDT
Created attachment 465759 [details]
MacOS process monitor console log output

The problem is observed with OffscreenCanvas only under iOS. I'm using iOS 16.4. After a few draws Safari crash and restarts itself. This is not observed with canvas element.
Comment 1 Alexey Proskuryakov 2023-04-04 09:11:54 PDT
Thank you for the report! The attached log filtered on MobileSafari only tells us that the com.apple.WebKit.WebContent process crashed, nothing more.

Could you please provide a reproducible test case? And if that's not possible, a crash log and console log filtered on WebContent could help.
Comment 2 Tzvetelin Vassilev 2023-04-04 09:46:07 PDT
Created attachment 465763 [details]
MacOS process monitor console log output - unfiltered
Comment 3 Tzvetelin Vassilev 2023-04-04 09:50:02 PDT
The case is inking, after a few seconds input rendering crash happens. Reproducible test case is not very easy to provide. Are this logs helps?
Comment 4 Alexey Proskuryakov 2023-04-04 10:20:00 PDT
This log may be helpful in addition to a crash log, but probably not on its own. Please see https://developer.apple.com/documentation/xcode/acquiring-crash-reports-and-diagnostic-logs

We don't have to use a minimized test; any steps that reproduce this on a public website, or on a website that you can share with us in private, would work.
Comment 5 Tzvetelin Vassilev 2023-04-05 06:02:12 PDT
I know about Analytics data but it doesn't provide any information about what happens. I'll have working example tomorrow, I'll share it when is accessible.
Comment 6 Tzvetelin Vassilev 2023-04-06 02:19:48 PDT
You can access the sample on https://willtech.wacom.com/ink-canvas
Draw constantly 2-3 times for a few seconds and browser will crash.
Comment 7 Matt Woodrow 2023-04-06 11:07:37 PDT
We're crashing due to running out of memory in the WebContent process.

Tested locally, and this is a duplicate of 253927.

*** This bug has been marked as a duplicate of bug 253927 ***