Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Browser extension not detecting offscreen canvas passed to webworker?

See original GitHub issue

The browser extension doesn’t seem to be detecting my a canvas that I have passed to a webworker

const offscreen = canvas.transferControlToOffscreen();
const worker = new Worker();
    type: "main/canvas-init",
    payload: {
      canvas:  offscreen,
      width: window.innerWidth,
      height: window.innerHeight,
      player: fetchLocalStoragePlayerData(),

Is this supported? Should I manually use the spector.js lib instead?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

sebavancommented, Apr 2, 2020

Feel free that would be perfect, I would say at first we would need to detect the offscreen and be able to record the calls to them by simply disabling the texture captures (who relies on canvas2D internally).

This would be a great start 😃

sebavancommented, Jul 18, 2022

Not at the moment, would would like to give it a try ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Speed up Your Canvas Operations with a Web Worker
The OffscreenCanvas allows to create a canvas that can be rendered off screen. It can also be used in web workers. Avoid jank...
Read more >
Offscreen-Canvas not rendering some of the time
This a known bug: The issue appears when too many OffscreenCanvases are sent to the Worker serially.
Read more >
OffscreenCanvas - Web APIs | MDN
Chrome Edge OffscreenCanvas Full support. Chrome69. Toggle history Full support. Edge79... OffscreenCanvas() constructor Full support. Chrome69. Toggle history Full support. Edge79... contextlost event Full support. Chrome99....
Read more >
Offscreen canvas inside Web Worker
pass canvas into webworker, so we can do all rendering inside it ... Sorry, your browser does not support Offscreen rendering...',
Read more >
html5.h — Emscripten 3.1.26-git (dev) documentation
Fullscreen Events for browser canvas fullscreen modes transitioning. ... This can be used to, for example, pass a pointer to a C++ class...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found