Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught exception "Cannot call write after a stream was destroyed" #10

Open
codahq opened this issue Jul 24, 2019 · 4 comments
Open

Uncaught exception "Cannot call write after a stream was destroyed" #10

codahq opened this issue Jul 24, 2019 · 4 comments

Comments

@codahq
Copy link

codahq commented Jul 24, 2019

I don't know if this needs to go here or back in the original cast-web-api repo so I'm putting it here.

With the 1.2.1 Windows release (and probably all previous versions) there is an issue with frequent crashes. I'm not sure what is happening by looking at the logs either. It appears maybe the API server sends two Callback.send() immediately back to back and the second one crashes the server? I don't know. Here is the log.
short.log

@codahq
Copy link
Author

codahq commented Jul 27, 2019

This is taking down the API web server a few times a day. Where does the desktop installer put the API?

@codahq codahq changed the title Uncaught exception "Cannon call write after a stream was destroyed" Uncaught exception "Cannot call write after a stream was destroyed" Jul 27, 2019
@vervallsweg
Copy link
Owner

I'll look into it, but sadly the desktop app doesn't have robust error handling. See here. I've opened a new issue and will look for fixes as soon as electron adds the features I need.

@crua9
Copy link

crua9 commented Aug 5, 2019

I'm getting the same. But before I'm getting this (I'm taking out the ID for obvious reasons)

playMedia: [{"mediaType":"audio/mp3","mediaUrl":"http://techreviewsandhelp.com/wp-content/uploads/2019/06/Garage-door-open-online-audio-converter.com_.mp3","mediaStreamType":"BUFFERED","mediaTitle":"SmartThings","mediaSubtitle":"SmartThings playback","mediaImageUrl":"https://lh3.googleusercontent.com/nQBLtHKqZycERjdjMGulMLMLDoPXnrZKYoJ8ijaVs8tDD6cypInQRtxgngk9SAXHkA=w300"}]
2019-08-05T11:24:39.032Z [ID] CastReceiver.connect(): exception: TypeError: Cannot read property 'send' of null
message broadcast: true
sessionIdChanged
message broadcast: false
message broadcast: false
message broadcast: false
message broadcast: true
message broadcast: false
message broadcast: false
Uncaught Cannot call write after a stream was destroyed

Oh and this is under the Windows version. The problem seems to happen after 12-24 hours or so of running.

@gpetru1
Copy link

gpetru1 commented Jul 2, 2020

I have this same exact issue. Has there been any updates on this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants