Chromecast crashes when using serviceWorkers?
See original GitHub issueAre serviceWorkers disabled on the chromecast, the app instantly crashed when called:
try {
if ('serviceWorker' in navigator) {
navigator.serviceWorker.getRegistrations().then(function(registrations) {
for(let registration of registrations) {
registration.unregister();
console.log('Unregister', registration)
}
})
navigator.serviceWorker.register('sw.js', {scope: './'}).then(function() {
console.log('Success!')
}).catch(function(err) {
console.log(err);
});
} else {
console.log('Service worker not supported')
}
} catch (err) {
console.log(err)
}
Issue Analytics
- State:
- Created 4 years ago
- Comments:19 (11 by maintainers)
Top Results From Across the Web
Chromecast crashes when using serviceWorkers? · Issue #2205
Are serviceWorkers disabled on the chromecast, the app instantly crashed when called: try { if ('serviceWorker' in navigator) { navigator.
Read more >Chromecast Keeps Crashing – The Most Common Fixes - Alphr
You're using an outdated version of the “Google Home” app or Chrome browser. The Chromecast device is not receiving sufficient power to stream....
Read more >Why Does My Chromecast Keep Crashing? - Lifewire
A Chromecast that randomly disconnects, restarts, or crashes, can be hard to diagnose if you're not sure what's causing it to happen.
Read more >3be933e393ec8c03ad16d48f0cc...
service worker : Bypass main thread for subresource loader ... update loader factories for service worker when the network service crashes.
Read more >102 messages from Google Code
Re: Issue 573565 in chromium: Chrome does not use GpuVideoDecoder when h264 ... Re: Issue 584052 in chromium: Service worker crashes upon ...
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
Yes, all of our networking capabilities are in terms of our plugin interface. For example, see:
Those are implementations of the scheme plugin interface for http/https and data URIs respectively.
@joeyparrish , unfortunately nobody responded to the issue yet. https://issuetracker.google.com/issues/143057613 https://support.google.com/chromecast/thread/17509737?hl=en
To make sure it’s not on my end, I looked for multiple receiver snippets on github that also used service workers. I tried to run them on my receiver and I can confirm they also crashed, the newest repository using service workers on a receiver was 12 months old.
You said in issue 2205
Can you confirm that shaka player executes the
function on the receiver end?
If this is the case, this means it’s not the actual function call that makes the chromecast crash.
I also found this on the chromium forum, I’m not sure if it has anything to do with the serviceWorker support on the chromecast:
Chromecast devtools API fixes. (issue 505393002) Side by Side Diff: chromecast/shell/browser/devtools/cast_dev_tools_delegate.cc
I’m not giving up 😉, maybe you could shine some extra light on this matter.