matlab-lmdb icon indicating copy to clipboard operation
matlab-lmdb copied to clipboard

File already exists error

Open swamiviv opened this issue 9 years ago • 1 comments

Hi,

Sometimes I get the following error when I try to read from a db, following which matlab crashes:

[libprotobuf ERROR google/protobuf/descriptor_database.cc:57] File already exists in database: caffe.proto [libprotobuf FATAL google/protobuf/descriptor.cc:954] CHECK failed: generated_database_->Add(encoded_file_descriptor, size):

Any ideas as to why this is happening ?

swamiviv avatar Sep 24 '15 16:09 swamiviv

@swamiviv This is perhaps due to loading caffe.proto file more than once in different MEX file, i.e., using Caffe matlab interface together with matlab-lmdb. See the comment by @jiayuzhou in https://gist.github.com/kyamagu/31a4b6f782670a28098b

The workaround is not to use Caffe matlab interface together, or integrate them into one MEX file like @jiayuzhou did https://github.com/illidanlab/caffe/commit/a7397da70ba75d0ba4cef5c680058e2b0d5a4812

kyamagu avatar Sep 24 '15 21:09 kyamagu