inciteco / tug-of-war

0 stars 0 forks source link

Android devices freeze after sound toggle #19

Closed inciteco closed 7 years ago

inciteco commented 7 years ago
GameService] init
phaser.min.js:3    Phaser CE v2.8.3 | Pixi.js | Canvas | WebAudio     http://phaser.io ♥♥♥
GameService.js:368 [GameService] player ready: Object
s-usc1c-nss-219.firebaseio.com/.lp?dframe=t&id=884217&pw=CfRjfQAIJ3&ns=popeyes-tug-o-war:5 Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.EnvSendPing @ s-usc1c-nss-219.firebaseio.com/.lp?dframe=t&id=884217&pw=CfRjfQAIJ3&ns=popeyes-tug-o-war:5
GameService.js:368 [GameService] findOpponent
GameService.js:368 [GameService] findExistingGame
GameService.js:368 [GameService] most recent game already has a player!
GameService.js:368 [GameService] starting a new new game instead...
GameService.js:368 [GameService] createNewGame
GameService.js:368 [GameService] startGameSession e {repo: t, path: t, ee: t, ne: false}
GameService.js:368 [GameService] gameUpdate Object {player_1: Object, player_1_joined_at: "2017-08-30T19:49:42.510Z", player_1_score: 0}
firebase.js:320 FIREBASE WARNING: Using an unspecified index. Consider adding ".indexOn": "player_2" at /games/2017-08-30 to your security rules for better performance R @ firebase.js:320e.ni @ firebase.js:320(anonymous function) @ firebase.js:320e.vr @ firebase.js:320t.vr @ firebase.js:320t.cr @ firebase.js:320(anonymous function) @ firebase.js:320e.nt @ firebase.js:320e.handleIncomingFrame @ firebase.js:320mySock.onmessage @ firebase.js:320
GameService.js:368 [GameService] createNewGame done! game.key: -KsogIjwlz8W6Ih8uMAk
GameService.js:368 [GameService] gameUpdate Object {player_1: Object, player_1_joined_at: "2017-08-30T19:49:42.510Z", player_1_score: 0, player_2: Object, player_2_joined_at: "2017-08-30T19:49:48.603Z"…}
GameService.js:368 [GameService] setOpponent Object {image: "https://scontent.xx.fbcdn.net/v/t1.0-1/p100x100/15…g?oh=645b580fe1497934010255e053752f84&oe=5A265742", key: "NJ5frkjLH3MYatPybU6q2O2cT4q1", name: "Brett Spackman"}
GameService.js:368 [GameService] remote player arrived: Object {image: "https://scontent.xx.fbcdn.net/v/t1.0-1/p100x100/15…g?oh=645b580fe1497934010255e053752f84&oe=5A265742", key: "NJ5frkjLH3MYatPybU6q2O2cT4q1", name: "Brett Spackman"}
waitforplayer.js:159 Opponent has arrived: Object {image: "https://scontent.xx.fbcdn.net/v/t1.0-1/p100x100/15…g?oh=645b580fe1497934010255e053752f84&oe=5A265742", key: "NJ5frkjLH3MYatPybU6q2O2cT4q1", name: "Brett Spackman"}
GameService.js:368 [GameService] gameUpdate Object {game_end_time: "2017-08-30T19:50:37.060Z", game_start_time: "2017-08-30T19:49:52.060Z", player_1: Object, player_1_joined_at: "2017-08-30T19:49:42.510Z", player_1_score: 0…}
GameService.js:368 [GameService] schedule found!
GameService.js:368 [GameService] starting countdown as host
GameService.js:368 [GameService] countdown started, seconds remaining: 4.984
GameService.js:368 [GameService] no scores found yet
GameService.js:368 [GameService] no scores found yet
GameService.js:368 [GameService] start scheduled
waitforplayer.js:171 Player 2 pic load completed
GameService.js:368 [GameService] onGameplayStart › user should start calling game.makeMove(<Number>) now
waitforplayer.js:119 [WaitForPlayerState]: leaving waitforplayer state
GameService.js:368 [GameService] game end scheduled for 44.741 seconds from now
play.js:158 [PlayState]: onGameplayStart
play.js:229 Uncaught TypeError: String(...).padStart is not a function(…)updateGameCounter @ play.js:229update @ phaser.min.js:3updateTimers @ phaser.min.js:3update @ phaser.min.js:3update @ phaser.min.js:3updateRAF @ phaser.min.js:3window.requestAnimationFrame.forceSetTimeOut._onLoop @ phaser.min.js:3
GameService.js:368 [GameService] gameUpdate Object {game_end_time: "2017-08-30T19:50:37.060Z", game_start_time: "2017-08-30T19:49:52.060Z", last_to_move: 2, player_1: Object, player_1_joined_at: "2017-08-30T19:49:42.510Z"…}
play.js:135 [PlayState]: tug 10
GameService.js:368 [GameService] sending my move to the server: -4.5
GameService.js:368 [GameService] move allowed 43.89 seconds remaining
GameService.js:368 [GameService] gameUpdate Object {game_end_time: "2017-08-30T19:50:37.060Z", game_start_time: "2017-08-30T19:49:52.060Z", last_to_move: 1, player_1: Object, player_1_joined_at: "2017-08-30T19:49:42.510Z"…}
GameService.js:368 [GameService] onPlayerMove: -4
play.js:135 [PlayState]: tug 6
GameService.js:368 [GameService] move synced
GameService.js:368 [GameService] sending my move to the server: 15
GameService.js:368 [GameService] move allowed 43.523 seconds remaining
GameService.js:368 [GameService] gameUpdate Object {game_end_time: "2017-08-30T19:50:37.060Z", game_start_time: "2017-08-30T19:49:52.060Z", last_to_move: 1, player_1: Object, player_1_joined_at: "2017-08-30T19:49:42.510Z"…}
GameService.js:368 [GameService] onPlayerMove: 15
play.js:135 [PlayState]: tug 21
GameService.js:368 [GameService] gameUpdate Object {game_end_time: "2017-08-30T19:50:37.060Z", game_start_time: "2017-08-30T19:49:52.060Z", last_to_move: 1, player_1: Object, player_1_joined_at: "2017-08-30T19:49:42.510Z"…}
play.js:135 [PlayState]: tug 16
GameService.js:368 [GameService] move synced
GameService.js:368 [GameService] sending my move to the server: 15
GameService.js:368 [GameService] move allowed 42.861 seconds remaining
GameService.js:368 [GameService] gameUpdate Object {game_end_time: "2017-08-30T19:50:37.060Z", game_start_time: "2017-08-30T19:49:52.060Z", last_to_move: 1, player_1: Object, player_1_joined_at: "2017-08-30T19:49:42.510Z"…}
GameService.js:368 [GameService] onPlayerMove: 15
play.js:135 [PlayState]: tug 31
GameService.js:368 [GameService] move synced
GameService.js:368 [GameService] gameUpdate Object {game_end_time: "2017-08-30T19:50:37.060Z", game_start_time: "2017-08-30T19:49:52.060Z", last_to_move: 2, player_1: Object, player_1_joined_at: "2017-08-30T19:49:42.510Z"…}
play.js:135 [PlayState]: tug 26
GameService.js:368 [GameService] sending my move to the server: 15
GameService.js:368 [GameService] move allowed 42.404 seconds remaining
GameService.js:368 [GameService] gameUpdate Object {game_end_time: "2017-08-30T19:50:37.060Z", game_start_time: "2017-08-30T19:49:52.060Z", last_to_move: 1, player_1: Object, player_1_joined_at: "2017-08-30T19:49:42.510Z"…}
GameService.js:368 [GameService] onPlayerMove: 15
play.js:135 [PlayState]: tug 41
GameService.js:368 [GameService] move synced
GameService.js:368 [GameService] sending my move to the server: 15
GameService.js:368 [GameService] move allowed 42.056 seconds remaining
GameService.js:368 [GameService] gameUpdate Object {game_end_time: "2017-08-30T19:50:37.060Z", game_start_time: "2017-08-30T19:49:52.060Z", last_to_move: 1, player_1: Object, player_1_joined_at: "2017-08-30T19:49:42.510Z"…}
GameService.js:368 [GameService] onPlayerMove: 15
play.js:135 [PlayState]: tug 56
GameService.js:368 [GameService] move synced
GameService.js:368 [GameService] gameUpdate Object {game_end_time: "2017-08-30T19:50:37.060Z", game_start_time: "2017-08-30T19:49:52.060Z", last_to_move: 2, player_1: Object, player_1_joined_at: "2017-08-30T19:49:42.510Z"…}
play.js:135 [PlayState]: tug 41
GameService.js:368 [GameService] sending my move to the server: 15
GameService.js:368 [GameService] move allowed 41.577 seconds remaining
GameService.js:368 [GameService] gameUpdate Object {game_end_time: "2017-08-30T19:50:37.060Z", game_start_time: "2017-08-30T19:49:52.060Z", last_to_move: 1, player_1: Object, player_1_joined_at: "2017-08-30T19:49:42.510Z"…}
GameService.js:368 [GameService] onPlayerMove: 15
play.js:135 [PlayState]: tug 56
GameService.js:368 [GameService] move synced
GameService.js:368 [GameService] sending my move to the server: 15
GameService.js:368 [GameService] move allowed 41 seconds remaining
GameService.js:368 [GameService] gameUpdate Object {game_end_time: "2017-08-30T19:50:37.060Z", game_start_time: "2017-08-30T19:49:52.060Z", last_to_move: 1, player_1: Object, player_1_joined_at: "2017-08-30T19:49:42.510Z"…}
GameService.js:368 [GameService] onPlayerMove: 15
play.js:135 [PlayState]: tug 71
GameService.js:368 [GameService] move synced
GameService.js:368 [GameService] sending my move to the server: 15
GameService.js:368 [GameService] move allowed 40.686 seconds remaining
GameService.js:368 [GameService] gameUpdate Object {game_end_time: "2017-08-30T19:50:37.060Z", game_start_time: "2017-08-30T19:49:52.060Z", last_to_move: 1, player_1: Object, player_1_joined_at: "2017-08-30T19:49:42.510Z"…}
GameService.js:368 [GameService] onPlayerMove: 15
play.js:135 [PlayState]: tug 86
GameService.js:368 [GameService] move synced
GameService.js:368 [GameService] sending my move to the server: 15
GameService.js:368 [GameService] move allowed 40.432 seconds remaining
GameService.js:368 [GameService] gameUpdate Object {game_end_time: "2017-08-30T19:50:37.060Z", game_start_time: "2017-08-30T19:49:52.060Z", last_to_move: 1, player_1: Object, player_1_joined_at: "2017-08-30T19:49:42.510Z"…}
GameService.js:368 [GameService] onPlayerMove: 15
play.js:135 [PlayState]: tug 101
GameService.js:368 [GameService] endGame called
GameService.js:368 [GameService] final game state:
GameService.js:368 [GameService] - finalScore?: 86
GameService.js:368 [GameService] - tie?: false
GameService.js:368 [GameService] - playingAsPlayer1?: true
GameService.js:368 [GameService] - finalGameState.last_to_move?: 1
GameService.js:368 [GameService] - playerWon?: true
GameService.js:368 [GameService] gameUpdate Object {finalScore: 86, game_end_time: "2017-08-30T19:50:37.060Z", game_ended: true, game_ended_at: "2017-08-30T19:49:56.659Z", game_start_time: "2017-08-30T19:49:52.060Z"…}
GameService.js:368 [GameService] game has ended! playerWon: true
GameService.js:368 [GameService] clearAllTimers
GameService.js:368 [GameService] onGameplayEnd, user won? true
waitforplayer.js:119 [WaitForPlayerState]: leaving waitforplayer state
GameService.js:368 [GameService] user should be taken to results screen
play.js:183 [PlayState]: onGameplayEnd, user won? true true
GameService.js:368 [GameService] endGameSession
GameService.js:368 [GameService] game has ended, aborting updates!
GameService.js:368 [GameService] move synced
GameService.js:368 [GameService] game conclusion saved!
GameService.js:368 [GameService] sending my move to the server: 15
GameService.js:368 [GameService] move allowed 40.228 seconds remaining
GameService.js:368 [GameService] move synced
GameService.js:368 [GameService] sending my move to the server: 15
GameService.js:368 [GameService] move allowed 40.046 seconds remaining
GameService.js:368 [GameService] move synced
GameService.js:368 [GameService] sending my move to the server: 15
GameService.js:368 [GameService] move allowed 39.877 seconds remaining
GameService.js:368 [GameService] move synced
GameService.js:368 [GameService] sending my move to the server: 15
GameService.js:368 [GameService] move allowed 33.119 seconds remaining
GameService.js:368 [GameService] move synced
aaronbuchanan commented 7 years ago

this isn't related to the gameService right?

inciteco commented 7 years ago

no. fixed.