Skip to content

tensorflow 2.0.0 crashes with protobuf 3.10.1 on macOS #3104

@essandess

Description

@essandess

Using MacPorts with the latest up-to-date versions (tensorflow 2.0.0, protobuf 3.10.1),

python3 -c 'import tensorflow'

[libprotobuf ERROR google/protobuf/descriptor_database.cc:394] Invalid file descriptor data passed to EncodedDescriptorDatabase::Add().
[libprotobuf FATAL google/protobuf/descriptor.cc:1359] CHECK failed: GeneratedDatabase()->Add(encoded_file_descriptor, size): 
libc++abi.dylib: terminating with uncaught exception of type google::protobuf::FatalException: CHECK failed: GeneratedDatabase()->Add(encoded_file_descriptor, size): 
Abort trap: 6

This is reported and closed in #2985, but the issue persists.

A workaround is pip-3.7 install protobuf==3.8, but this doesn't work with system-level, up-to-date library installs like with MacPorts. Also see: https://trac.macports.org/ticket/59826

Is this an issue with TF, or with protobuf?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions