You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Possible fix:
It seems like there is missing initialization of private fields gv.encodingStrategy (and gv.decodingStrategy). The fields are initialized in InitGoVector, but not in InitGoVectorMultipleExecutions (which is what I am using). Attached is a proposed fix.
Your fix seems fine. Does it get past the panic with your fix? (i.e., does it resolve the problem)
There is a SetEncoderDecoder function that can be used for initializing (though I don't see it being used..); maybe we should update existing code to use it?
Yes, the changes submitted in the above patch seemed to fix the problem, and the code got past the panic.
Furthermore, I have a bigger code example in which I actually use the result of PrepareSend(...) to pass over the network, followed by UnpackReceive(...) and the logs are generated correctly. I can attach the bigger code example here if you would like.
As per your suggestion, I created another patch, using SetEncoderDecoder in InitGoVector and InitGoVectorMultipleExecutions. However, I have not ran any internal tests that this repository provides with this change (I'm not sure how to).
Code I am using:
Problem:
I get the following error
Possible fix:
It seems like there is missing initialization of private fields gv.encodingStrategy (and gv.decodingStrategy). The fields are initialized in InitGoVector, but not in InitGoVectorMultipleExecutions (which is what I am using). Attached is a proposed fix.
patch.diff.txt
The text was updated successfully, but these errors were encountered: