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

"Container is less than required fields number. Deserialization failed" error #252

Open
cooked opened this issue Nov 6, 2021 · 1 comment
Assignees
Labels
bug Something isn't working grpc QtGrpc related issues
Projects

Comments

@cooked
Copy link

cooked commented Nov 6, 2021

Hi,
I'm getting the following error while I'm trying to deserialize a proto containing a repeated value

terminate called after throwing an instance of 'std::out_of_range'
  what():  Container is less than required fields number. Deserialization failed 

The application is running fine for 20-30 seconds, correctly deserializing messages, then the error occurs.

I confirmed that the proto is the same used to generate code on both ends (Qt and C++)

message Telemetry {
  Chip chip = 1;
  Channel channel = 2;
  repeated int32 value = 3;
}

What is the workflow, and points to look into, to find the root cause of the issue?

Thanks,
Stef

@cooked cooked added the question Further information is requested label Nov 6, 2021
@semlanik
Copy link
Owner

semlanik commented Nov 7, 2021

Looks like bug to me. If you could run your application in debug mode and send the stack trace(at least QtProtobuf related part), I would appreciate.

@semlanik semlanik added bug Something isn't working grpc QtGrpc related issues and removed question Further information is requested labels Nov 7, 2021
@semlanik semlanik added this to ToDo in Qt Protobuf via automation Nov 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working grpc QtGrpc related issues
Projects
Qt Protobuf
  
ToDo
Development

No branches or pull requests

2 participants