Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
3 tasks done
bruno-garcia opened this issue Jan 19, 2024 · 6 comments · Fixed by #10445
Closed
3 tasks done
Labels
Package: browser Issues related to the Sentry Browser SDK Package: replay Issues related to the Sentry Replay SDK Type: Bug

Comments

@bruno-garcia
Copy link
Member

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

@github-actions github-actions bot added the Package: browser Issues related to the Sentry Browser SDK label Jan 19, 2024
@bruno-garcia
Copy link
Member Author

Also reported here:

@lforst lforst added the Package: replay Issues related to the Sentry Replay SDK label Jan 23, 2024
@billyvg
Copy link
Member

billyvg commented Jan 29, 2024

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
Copy link
Member

billyvg commented Jan 30, 2024

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

@rohaldb
Copy link

rohaldb commented Jan 31, 2024

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

@ryanlonstein
Copy link

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 added a commit that referenced this issue Jan 31, 2024
Fixes an issue where errors from `CanvasManager` were being captured into our clients's Sentry.

Closes #10271
billyvg added a commit that referenced this issue Jan 31, 2024
Fixes an issue where errors from `CanvasManager` were being captured into our clients's Sentry.

Closes #10271
billyvg added a commit that referenced this issue Jan 31, 2024
Fixes an issue where errors from `CanvasManager` were being captured
into our clients's Sentry.

Closes #10271
onurtemizkan pushed a commit that referenced this issue Feb 4, 2024
Fixes an issue where errors from `CanvasManager` were being captured
into our clients's Sentry.

Closes #10271
@billyvg
Copy link
Member

billyvg commented Feb 5, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: browser Issues related to the Sentry Browser SDK Package: replay Issues related to the Sentry Replay SDK Type: Bug
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

6 participants