Unable to terminate workers in 3.0.0
See original GitHub issueWell 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:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@dannyrb I can confirm that is working fine and dandy !!!
Submitted https://github.com/cornerstonejs/cornerstoneWADOImageLoader/pull/278. 👍