gapu / google-cast-sdk

Automatically exported from code.google.com/p/google-cast-sdk
0 stars 0 forks source link

Cast Game Manager Fails Sending Player Available Response #595

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Connect to a receiver device from the iOS Cast Game Manager (e.g. 
application id 2371D547)
2. Wait for the ChannelDidConnect response
3. Send a Player Available Request

What is the expected output? What do you see instead?
I would expect a requestDidFail or requestDidSucceed. 
Instead, the request times out due to a javascript error while sending the 
response.

What version of the product are you using? On what operating system?
I'm using the latest public version of the cast game manager for the receiver 
and iOS.

Please provide any additional information below.
I should note that the GameDebugUI does update to show the new player, and 
shows a success in the response event. The error appears to occur while sending 
the response to the sender. Below is the javascript log, and I've attached a 
screenshot of the debug ui.

 [ 59.643s] [cast.receiver.IpcChannel] Received message: {"data":"{\"type\":1100,\"requestId\":1}","namespace":"urn:x-cast:com.google.cast.games","senderId":"219:C97BEC14-B8AF-4BD1-855A-C55CEED51E43"}
cast_receiver.js:37  [ 59.650s] [cast.receiver.CastMessageBus] Dispatching 
CastMessageBus message
cast_receiver.js:37  [ 59.669s] [cast.receiver.IpcChannel] IPC message sent: 
{"namespace":"urn:x-cast:com.google.cast.games","senderId":"219:C97BEC14-B8AF-4B
D1-855A-C55CEED51E43","data":"{\"type\":1,\"requestId\":1,\"playerToken\":null,\
"statusCode\":0,\"errorDescription\":\"\",\"gameplayState\":1,\"lobbyState\":1,\
"players\":[{\"playerId\":\":0\",\"playerState\":1,\"playerData\":null}],\"gameD
ata\":null,\"gameStatusText\":\"\",\"gameManagerConfig\":{\"applicationName\":\"
Code Cast\",\"maxPlayers\":2,\"version\":\"1.0.0\"},\"extraMessageData\":null}"}
cast_receiver.js:37  [ 59.689s] [cast.receiver.IpcChannel] Received message: 
{"data":"{\"type\":1,\"requestId\":2}","namespace":"urn:x-cast:com.google.cast.g
ames","senderId":"219:C97BEC14-B8AF-4BD1-855A-C55CEED51E43"}
cast_receiver.js:37  [ 59.696s] [cast.receiver.CastMessageBus] Dispatching 
CastMessageBus message
cast_games_receiver.js:220 Uncaught TypeError: Cannot read property 'call' of 
undefined cast_games_receiver.js:220 b.Zbcast_games_receiver.js:221 
l.f.EventTarget.dkcast_games_receiver.js:218 
b.dispatchEventcast_games_receiver.js:261 Qcast_games_receiver.js:255 
cast.receiver.games.j.Clcast_receiver.js:22 ybcast_receiver.js:21 
g.dispatchEventcast_receiver.js:33 R.gbcast_receiver.js:22 
ybcast_receiver.js:21 g.dispatchEventcast_receiver.js:31 
g.hbcast_receiver.js:22 ybcast_receiver.js:21 
g.dispatchEventcast_receiver.js:28 g.hb 

Original issue reported on code.google.com by JeffreyK...@gmail.com on 15 Jun 2015 at 6:41

Attachments:

GoogleCodeExporter commented 9 years ago
The Stack Overflow question you submitted related to this ticket has been 
addressed: 
http://stackoverflow.com/questions/30852173/google-cast-game-manager-receiver

Original comment by jonathan...@google.com on 16 Jun 2015 at 4:46