question-mark
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.

Webworker not working [chrome 84.0.4147.125/linux]

See original GitHub issue

image

canvasSize.maxArea({
  useWorker: true,
  onError(width, height, benchmark) {
    console.log('Error', width, height, benchmark);
  },
  onSuccess(width, height, benchmark) {
    console.log('Success', width, height, benchmark);
  }
});

Using the webworker option as documented ends up throwing the error specified above.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
jhildenbiddlecommented, Nov 12, 2020

Hey again, @KimCalvin.

Fixed in 1.2.1.

Turned out to be an issue with Terser’s mangle option. Disabling this option or reserving the canvasTest name in the Terser config resolves the issue. If you’re still having issues, let me know.

Thanks!

0reactions
KimCalvincommented, Nov 25, 2020

Thank you very much, my bad for not responding to you earlier. I somehow had my notifications for Github setup incorrectly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chrome not loading latest version of web worker script (runs a ...
On my Linux Chrome I have to right click (or long click) the reload button and select "Empty Cache and Hard Reload" to...
Read more >
179940 - chrome.socket not working on WebWorker - Monorail
I'm guessing that the problem is that the worker is being created with a Blob URL which winds up with an anonymous origin,...
Read more >
Breakpoints in Web worker don't work - Google Groups
I just tried the debugger in a web worker and it works fine, except: I cannot set any ... So it doesn't seem...
Read more >
Worker - Web APIs - MDN Web Docs
Chrome Edge Worker Full support. Chrome4. Toggle history Full support. Edge... Worker() constructor Full support. Chrome4. Toggle history Full support. Edge... Support for ECMAScript modules Full...
Read more >
Run Holistic in a Web Worker · Issue #2506 · google/mediapipe
Problems: 1. Loading path is not respected. Despite setting up the model this way: model = new ...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found