Open antoniomacri opened 2 years ago
Maybe related to #654?
I digged a bit deeper. There are two kind of problems:
ShouldResemble
, which is unreliable.About the first problem I opened another issue (#664).
Regarding the second problem, the call to Printf
causes x.String()
to be called. This in turn initializes the state
and its atomicMessageInfo
field on the proto message. Therefore, as stated here, via atomicMessageInfo
there may be a problem like a cycle.
Upgrading protobuf to v1.33.0 can solve this issue
Consider this:
When I run this test (I actually used GoLand), it starts allocating memory until I kill it.
The problem seems to be in this function (
render.go
):