Can web worker be killed off by browser silently?
The following happen in mobile/desktop safari and mobile chrome in iOS
When using pdf.js to render multiple pdfs (it use web worker to download and render the pdf), some web worker gone missing randomly. It happen randomly and , when happen, it happen to different pdf.
Also, when debug in code(we post message back to main thread for debug), found that web worker stop working at different point in code.
This is so hard to track down the problem because
Any advice would be great!
So it looks like there is an issue with the Safari browser. It's recommended to file a bug report with the vendor. There are issues with the Safari like: a worker execution can be terminated by GC (https://bugs.webkit.org/show_bug.cgi?id=153317), due to "excessive" memory use or bug with JIT compilation (https://bugs.webkit.org/show_bug.cgi?id=138038).
The Chrome in iOS is the same Safari browser (https://developer.chrome.com/multidevice/ios/overview), so issues in the former are mostly the same issues.
So answering your question:
Can web worker be killed off by browser silently?
Yes, it can be.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With