google-research / falken

Falken provides developers with a service that allows them to train AI that can play their games
Apache License 2.0
253 stars 35 forks source link

Exception deserializing request!. Error code: 13. #25

Open Jurys22 opened 3 years ago

Jurys22 commented 3 years ago

Hello, we encounter this error while creating the brain and we are contacting you, as it says.

Can you please give any hints to solve this? Thanks

`[2021.11.04-14.09.46:691][491]LogTemp: Warning: Brain display name: HF_Brain
[2021.11.04-14.09.47:192][491]LogTemp: Brain id: H?7??
[Falken] ERROR: Failed to create a new session for brain HF_Brain (H˜7Á©): Error message: Exception deserializing request!. Error code: 13. If the error persists, please contact Falken for further assistance..`
hmoraldo commented 3 years ago

Based on what you mention in the other ticket, I assume the demos all work well. Would you please also verify tests pass?

As for this particular issue, I suggest to follow the methodology mentioned in https://github.com/google-research/falken/issues/24 for testing the initial changes. If you do that, you'll be able to see which specific lines, when changed, produce this error. That'll make it a lot easier to debug it.

Pikachuxxxx commented 3 years ago
[libprotobuf ERROR D:\a\falken\falken\build\protobuf\src\google\protobuf\wire_format_lite.cc:577] String field 'falken.proto.SessionSpec.brain_id' contains invalid UTF-8 data when serializing a protocol buffer. Use the 'bytes' type if you intend to send raw bytes.
[Falken] ERROR: Failed to create a new session for brain HFG_Brain (╕Z?F¶): Error message: Exception deserializing request!. Error code: 13. If the error persists, please contact Falken for further assistance..

I'm trying to write a custom wrapper around falken implementation and call the functions from GDScript in godot engine but this won't let me do anything, all the samples work perfectly in my custom c++ engine and I have used the same working action observation pair while creating the brain.

What am I missing here? Looks like the brain id isn't being casted properly to a string from raw bytes and it's causing this error?

After a while I got this

[Falken] ERROR: Failed to create a new session for brain   (XV▀+ö): Error message: Deadline Exceeded. Error code: 4. If the error persists, please contact Falken for further assistance..
hmoraldo commented 3 years ago

What am I missing here? Looks like the brain id isn't being casted properly to a string from raw bytes and it's causing this error?

This sounds likely; e.g. something in the GDScript -> C++ interface may be not doing what you expect. I suggest logging (eg. to a file) the arguments that are being passed into the library to ensure they are what you expect.

I also suggest checking the service logs as well (or adding logs there too if needed); the service may not be receiving any of the gRPC calls and if that's the case, it'd be good to know. Or it may be receiving the calls but not with the arguments you expect.