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

Invalid perception sent to agent #44

Open
xtuc opened this issue Jan 5, 2018 · 0 comments
Open

Invalid perception sent to agent #44

xtuc opened this issue Jan 5, 2018 · 0 comments
Labels

Comments

@xtuc
Copy link
Member

xtuc commented Jan 5, 2018

ba train -map labyrinth --agent sven
  ├ version: dev-2018-01-05_08:29:41
  └ Failed to send perception
    ├ agent: 0e91acc7-71f7-424f-b47a-d501c4d86471
    └ write tcp4 192.168.1.55:36085->172.17.0.2:40152: write: broken pipe

The agent unexpectedly disconnected (because it crashed, see following log)

Agent log:

[agent] [sven:latest] undefined:1
[agent] [sven:latest] {"method":"perception","payload":{"score":0,"energy":0,"velocity":[0,1.25],"azimuth":0.6159502219252506,"vision":[{"tag":"obstacle","nearedge":[13.836839917699558,2.439808205234344],"center":[7.15276183843132,24.12687101970846],"faredge":[0.4686837591630814,45.81393383418258],"velocity":[0,0]},{"tag":"obstacle","nearedge":[0,2.152650407040147],"center":[0,15.52964688272233],"faredge":[0,28.906643358404516],"velocity":[0,0]},{"tag":"obstacle","nearedge":[0,28.906643358404516],"center":[0,38.12063086119268],"faredge":[0,47.33461836398085],"velocity":[0,0]},{"tag":"obstacle","nearedge":[-4.381310039920868e-13,47.33461836308098],"center":[-4.381310039920868e-13,47.33461836308098],"faredge":[-4.381310039920868e-13,47.33461836308098],"velocity":[0,0]},{"tag":"obstacle","nearedge":[NaN,NaN],"center":[NaN,NaN],"faredge":[NaN,NaN],"velocity":[0,0]},{"tag":"obstacle","nearedge":[0,47.33461836398085],"center":[0,62.43351807102066],"faredge":[0,77.53241777806046],"velocity":[0,0]},{"tag":"obstacle","nearedg
[agent] [sven:latest]
[agent] [sven:latest] SyntaxError: Unexpected token N in JSON at position 786
[agent] [sven:latest]     at JSON.parse (<anonymous>)
[agent] [sven:latest]     at Interface.onGameServerData (/usr/app/node_modules/bytearena-sdk-comm/lib/index.js:68:24)
[agent] [sven:latest]     at emitOne (events.js:96:13)
[agent] [sven:latest]     at Interface.emit (events.js:191:7)
[agent] [sven:latest]     at Interface._onLine (readline.js:241:10)
[agent] [sven:latest]     at Interface._normalWrite (readline.js:384:12)
[agent] [sven:latest]     at Socket.ondata (readline.js:101:10)
[agent] [sven:latest]     at emitOne (events.js:96:13)
[agent] [sven:latest]     at Socket.emit (events.js:191:7)
[agent] [sven:latest]     at readableAddChunk (_stream_readable.js:178:18)

The agent logged undefined might be a hint here.

@xtuc xtuc added the bug label Jan 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant