[chromecast] Chromecast binding freezes openHAB
See original GitHub issueDear Community and binding Maintainers/Developers!
I have an issue with the Chromecast binding and I found similar issues with this binding. However for me this happens “automatically” I don’t have to press anything on Chromecast it happens randomly and freezes the whole openHab. Currently I’m on 2.3.0 stable.
Here is the message I get:
2018-06-15 06:39:33.504 [WARN ] [su.litvak.chromecast.api.v2.Channel ] - Error while reading
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Broken pipe (Write failed)
at sun.security.ssl.SSLSocketImpl.checkEOF(SSLSocketImpl.java:1551) [?:?]
at sun.security.ssl.AppInputStream.read(AppInputStream.java:95) [?:?]
at sun.security.ssl.AppInputStream.read(AppInputStream.java:71) [?:?]
at su.litvak.chromecast.api.v2.Channel.read(Channel.java:411) [217:org.openhab.binding.chromecast:2.3.0]
at su.litvak.chromecast.api.v2.Channel.access$200(Channel.java:50) [217:org.openhab.binding.chromecast:2.3.0]
at su.litvak.chromecast.api.v2.Channel$ReadThread.run(Channel.java:132) [217:org.openhab.binding.chromecast:2.3.0]
Caused by: javax.net.ssl.SSLException: java.net.SocketException: Broken pipe (Write failed)
at sun.security.ssl.Alerts.getSSLException(Alerts.java:208) ~[?:?]
at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1959) ~[?:?]
at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1916) ~[?:?]
at sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1880) ~[?:?]
at sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1825) ~[?:?]
at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:128) ~[?:?]
at java.io.OutputStream.write(OutputStream.java:75) ~[?:?]
at su.litvak.chromecast.api.v2.Channel.write(Channel.java:401) ~[?:?]
at su.litvak.chromecast.api.v2.Channel.write(Channel.java:397) ~[?:?]
at su.litvak.chromecast.api.v2.Channel.write(Channel.java:384) ~[?:?]
at su.litvak.chromecast.api.v2.Channel.access$000(Channel.java:50) ~[?:?]
at su.litvak.chromecast.api.v2.Channel$ReadThread.run(Channel.java:191) ~[?:?]
Caused by: java.net.SocketException: Broken pipe (Write failed)
at java.net.SocketOutputStream.socketWrite0(Native Method) ~[?:?]
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:111) ~[?:?]
at java.net.SocketOutputStream.write(SocketOutputStream.java:155) ~[?:?]
at sun.security.ssl.OutputRecord.writeBuffer(OutputRecord.java:431) ~[?:?]
at sun.security.ssl.OutputRecord.write(OutputRecord.java:417) ~[?:?]
at sun.security.ssl.SSLSocketImpl.writeRecordInternal(SSLSocketImpl.java:886) ~[?:?]
at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:857) ~[?:?]
at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:123) ~[?:?]
at java.io.OutputStream.write(OutputStream.java:75) ~[?:?]
at su.litvak.chromecast.api.v2.Channel.write(Channel.java:401) ~[?:?]
at su.litvak.chromecast.api.v2.Channel.write(Channel.java:397) ~[?:?]
at su.litvak.chromecast.api.v2.Channel.write(Channel.java:384) ~[?:?]
at su.litvak.chromecast.api.v2.Channel.access$000(Channel.java:50) ~[?:?]
at su.litvak.chromecast.api.v2.Channel$ReadThread.run(Channel.java:191) ~[?:?]
2018-06-15 06:39:33.929 [WARN ] [su.litvak.chromecast.api.v2.Channel ] - <-- null payload in message
2018-06-15 06:40:09.570 [WARN ] [me.core.internal.events.EventHandler] - Dispatching event to subscriber 'org.eclipse.smarthome.model.rule.runtime.internal.engine.RuleEngineImpl@136110e' takes more than 5000ms.
2018-06-15 06:40:11.517 [INFO ] [e.smarthome.model.script.radio.rules] - Received command: classHit
2018-06-15 06:40:17.748 [INFO ] [e.smarthome.model.script.radio.rules] - Received command: classHit
2018-06-15 06:40:40.697 [WARN ] [me.core.internal.events.EventHandler] - Dispatching event to subscriber 'org.openhab.io.openhabcloud.internal.CloudService@16167e6' takes more than 5000ms.
I know it seems that something else has a problem, but I had this error so many times, right after this Chromecast exception. So I think Chromecast binding has some bug.
Thanks!
Issue Analytics
- State:
- Created 5 years ago
- Comments:18 (18 by maintainers)
Top Results From Across the Web
[SOLVED] Chromecast binding freezes openHab?
I have opened an issue on Github, because I haven't found any relevant info on this and for me it seems that the...
Read more >Chromecast audiosink SOMETIMES stops working - Bindings
Hi all, I've setup a Google Home Mini using the Chromecast binding. The default audiosink is set to the Google Home Mini.
Read more >Chromecast Binding Log Errors - openHAB Community
I've seen no Chromecast related errors or warnings in the openhab log. Before tonight's changes (new binding, litvak library logging level), ...
Read more >[SOLVED] openHab sometimes freezes on RPi3 - Server
(Usually just openHab freezes, and everything is working fine, however I can't restart the ... [SOLVED] Chromecast binding freezes openHab?
Read more >Chromecast - Bindings - openHAB
Channel Type ID Item Type Description
mute Switch Mute the audio
appName String Name of currently running application
appId String ID of currently running application
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 Free
Top 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

Thanks, I have installed this version (hope so, I haven’t found anywhere in PaperUI the version, but when I see the addons page, the Chromecast binding is not installed there) I will test it and see if I get any freezes now 😃 Thanks for help!
The updated Chromecast library should be part of the next 2.4.0-SNAPSHOT build (i.e. build 1316 or newer, see also https://github.com/openhab/openhab2-addons/pull/3759). So you no longer need to use the JAR from https://github.com/openhab/openhab2-addons/issues/3693#issuecomment-399777267 to get these changes.