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.

Unable to terminate workers in 3.0.0

See original GitHub issue

Well I using the loader in an angular@8.2.4 app, the issue is that

webWorkerManager.terminate();

would yield an error:

print-container.component.html:24 ERROR TypeError: z[e].terminate is not a function
    at Object.terminate (cornerstoneWADOImageLoader.min.js:8)
    at terminateLoader (utils.ts:25)
    at PrintContainerComponent.ngOnDestroy (print-container.component.ts:87)
    at callProviderLifecycles (core.js:32333)
    at callElementProvidersLifecycles (core.js:32292)
    at callLifecycleHooksChildrenFirst (core.js:32274)
    at destroyView (core.js:44497)
    at callWithDebugContext (core.js:45631)
    at Object.debugDestroyView [as destroyView] (core.js:45207)
    at ViewRef_.destroy (core.js:31161)

I tried to do some reverse ingenier stuff, I copied the code from the terminate function with some change:

function terminateLoader() {
    webWorkerManager.webWorkers.forEach(w => w.worker.terminate());
    webWorkerManager.webWorkers.length = 0;

    webWorkerManager.terminate();
}

and this method didn’t work eather (no error was yielded) (the worker log keep showing up)

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
Betaloscommented, Sep 12, 2019

@dannyrb I can confirm that is working fine and dandy !!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Terminate workers error - Microsoft Q&A
Terminate workers error. When I tried to terminate worker this message appears " Specified time is not supported in this calendar.
Read more >
Springfox 3.0.0 is not working with Spring Boot 2.6.0 [duplicate]
Only adding @EnableWebMvc in main class resolved the problem: @EnableWebMvc @SpringBootApplication public class MyApp { public static void ...
Read more >
Migrating AWS Glue jobs to AWS Glue version 3.0
In AWS Glue version 3.0 jobs, you specify the number of workers and worker type, but do not specify a maxCapacity . AWS...
Read more >
AWS ElasticBeanstalk: Early termination of worker [puma ...
When I try to start manually, it is trying to load all the gems from the development-group (which of course aren't available) BUT...
Read more >
Cisco Identity Services Engine Administrator Guide, Release 3.0
Cisco ISE allows you to create and delete repositories through the ... ISE is not working, Cisco ISE raises the NTP Service Failure...
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