Skip to content

Conversation

dobesv
Copy link
Contributor

@dobesv dobesv commented Oct 2, 2020

Description

Sometimes we are getting errors logged and reported with the vague error message "null is not an object (evaluating r.save)".

I traced it to this line.

It seems there was already a similar check & error in CanvasProvider so I copied that error here.

Although this does not prevent the problem, it at least will give us a clearer error when the problem occurs.

As for why a 2D context cannot be created, we are still looking into it. Maybe the device (iPad) is running out of graphics memory?

@dobesv dobesv force-pushed the check-canvas-null branch from 0bc1f56 to 695ec61 Compare October 2, 2020 17:39
@dobesv
Copy link
Contributor Author

dobesv commented Oct 2, 2020

I believe I found the cause of the issue that led me to this: https://bugs.webkit.org/show_bug.cgi?id=195325

Just a side-note for anyone running into this issue. This PR does not fix that issue, it just makes the error message clearer when it does happen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant