getsentry / sentry-javascript

Official Sentry SDKs for JavaScript
https://sentry.io
MIT License
7.77k stars 1.52k forks source link

InvalidStateError: Failed to execute 'createImageBitmap' on 'Window': The ImageBitmap could not be allocated. #10271

Closed bruno-garcia closed 5 months ago

bruno-garcia commented 5 months ago

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/browser

SDK Version

7.88.0

Framework Version

sentry.javascript.angular-ivy

Link to Sentry event

https://nugettrends.sentry.io/issues/4761409755/?project=1266321&query=release%3A95a5751&referrer=release-issue-stream

SDK Setup

https://github.com/dotnet/nuget-trends/blob/95a5751f5bd389e5c713ec52cdc0b063e1b4a419/src/NuGetTrends.Web/Portal/src/app/app.module.ts#L28-L79

Steps to Reproduce

Just live on the site and I got only 1 error so far.

Expected Result

not error

Actual Result

error. 1 instance, on Chrome Mobile iOS 107.0.5304

bruno-garcia commented 5 months ago

Also reported here:

billyvg commented 5 months ago

Not sure what's causing this (from looking at blink src, it looks like a buffer is overflowing or it's in invalid bitmap image), but the reason this is bubbling to the user is that we do not set a errorHandler for the canvas manager (needed since it is code-split from record()).

billyvg commented 5 months ago

Related sentry issues: JAVASCRIPT-2QDR JAVASCRIPT-2QWW

rohaldb commented 5 months ago

We are also seeing this. Sentry issue: https://flagship-74.sentry.io/issues/4930523480/events/e8daaf63204741b38974bf4b40a49e12/?project=4505009275469824&referrer=replay-errors

ryanlonstein commented 5 months ago

I work with @rohaldb - if it helps we are using the next.js sentry client. We unfortunately had to rollback the change enabling canvas recording as the errors (in sentry) were too noisy

billyvg commented 5 months ago

This is merged, but won't be fixed until the next SDK release.