Skip to content

Out of memory error on comparing protobuf types #930

Description

@alexus1024

Currently, attempt to compare protobuf-generated types (from *.protoc files) leads to hang or
fatal error: runtime: out of memory

Maybe, it can be solved by respecting pragma.DoNotCompare during executing assert.Equal and similar requests.

It happens at
File: ../../github.com/stretchr/testify/assert/assertions.go
1567: func diff(expected interface{}, actual interface{}) string ..
and then call for spewConfig.Sdump()

Related issue:
davecgh/go-spew#66

Also, setting spew.ConfigState.MaxDepth to reasonable value helps prevent hanging.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions