BUG - Web Socket transport is blocked when a message box is shown

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
InterKOT Offline
Junior Member
Posts: 7
Joined: Jul 2015
Reputation: 0
Post: #1
While a message box is displayed on top of the GUI, such as, for example:

"Playback failed. One or more items failed to play. Check the log for more information about this message"
[ OK ]

at this moment it is impossible to send a command via the WS transport( ws://ipaddress:9090/jsonrpc ) - no acknowledge, taken action or response ever received even when trying to remotely close
this box with this command: {"jsonrpc":"2.0","method":"Input.Back","id":1}

The only way to revive the WS transport is to send the "Input.Back" command through the http transport:

URL: http://ipaddress:8080/jsonrpc
Content-Type: application/json
Data: {"jsonrpc":"2.0","method":"Input.Back","id":1}

Is it possible to fix it so that WS transport does not get blocked?

Kodi Version: 15.1 Git:2015-08-22-234ccf8. Android TV box
(This post was last modified: 2015-10-28 18:40 by InterKOT.)
find quote
alanchow Offline
Junior Member
Posts: 19
Joined: Sep 2008
Reputation: 0
Post: #2
I have replicated this on both the webserver and json-rpc server (9090). WIth the JSON-RPC port it will still have an open socket but will not respond to commands sent to it until the dialog box is closed.

It seems to only freeze that one server (whether it be webserver or json-rpc).
find quote
kycok_6o6pa Offline
Junior Member
Posts: 4
Joined: Mar 2016
Reputation: 0
Post: #3
Guys, any news about this bug?
find quote
kycok_6o6pa Offline
Junior Member
Posts: 4
Joined: Mar 2016
Reputation: 0
Post: #4
I'm not able to reproduce this bug anymore.
Tested it in all ways.

One thing: when user interaction iface (popup, input popup, etc.) shown, than responses may be much slower.

Plese, take it in consideration, when implementing your own JSON-RPC Websockets client.

My Kodi and OS versions: https://snag.gy/1Gx5li.jpg.

I'm tested with official build for Windows, downloaded from https://kodi.tv/download.
(This post was last modified: 2017-04-11 15:54 by kycok_6o6pa.)
find quote