Deep-Image-Analogy icon indicating copy to clipboard operation
Deep-Image-Analogy copied to clipboard

linux : demo crashing free(): invalid pointer: 0x0000000002281d10

Open lulu1315 opened this issue 6 years ago • 1 comments

hello and thanks for the code this is happening on KDE neon user (Ubuntu 16.04) I tried to recompile caffe without cudnn but same problem happens

./demo deep_image_analogy/models/ deep_image_analogy/demo/content.png deep_image_analogy/demo/style.png deep_image_analogy/demo/output/ 0 0.1 2 1
[libprotobuf WARNING google/protobuf/io/coded_stream.cc:537] Reading dangerously large protocol message.  If the message turns out to be larger than 2147483647 bytes, parsing will be halted for security reasons.  To increase the limit (or to disable these warnings), see CodedInputStream::SetTotalBytesLimit() in google/protobuf/io/coded_stream.h.
[libprotobuf WARNING google/protobuf/io/coded_stream.cc:78] The total number of bytes read was 574671192
[libprotobuf WARNING google/protobuf/io/coded_stream.cc:537] Reading dangerously large protocol message.  If the message turns out to be larger than 2147483647 bytes, parsing will be halted for security reasons.  To increase the limit (or to disable these warnings), see CodedInputStream::SetTotalBytesLimit() in google/protobuf/io/coded_stream.h.
[libprotobuf WARNING google/protobuf/io/coded_stream.cc:78] The total number of bytes read was 574671192
Finding nearest neighbor field using PatchMatch Algorithm at layer:conv5_1.
Finding nearest neighbor field using PatchMatch Algorithm at layer:conv4_1.
Finding nearest neighbor field using PatchMatch Algorithm at layer:conv3_1.
Finding nearest neighbor field using PatchMatch Algorithm at layer:conv2_1.
Finding nearest neighbor field using PatchMatch Algorithm at layer:conv1_1.
Refining photo transfer.
Saving flow result.
Finished finding ann. Time : 121.885
*** Error in `./demo': free(): invalid pointer: 0x0000000002281d10 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f00373a67e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7f00373af37a]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7f00373b353c]
/usr/lib/x86_64-linux-gnu/libprotobuf.so.9(_ZN6google8protobuf8internal28DestroyDefaultRepeatedFieldsEv+0x1f)[0x7f002eb5e8af]
/usr/lib/x86_64-linux-gnu/libprotobuf.so.9(_ZN6google8protobuf23ShutdownProtobufLibraryEv+0x8b)[0x7f002eb5db3b]
/usr/lib/x86_64-linux-gnu/libmirprotobuf.so.3(+0x233b9)[0x7f001d3ea3b9]
/lib64/ld-linux-x86-64.so.2(+0x10de7)[0x7f003cdc9de7]
/lib/x86_64-linux-gnu/libc.so.6(+0x39ff8)[0x7f0037368ff8]
/lib/x86_64-linux-gnu/libc.so.6(+0x3a045)[0x7f0037369045]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf7)[0x7f003734f837]
./demo[0x407729]

lulu1315 avatar Jul 12 '18 09:07 lulu1315

Hi,

thanks a lot for your interest on our paper and codes.

I guess although it showed such error information, the results were still saved in a folder. You can try to find them just follow the documentation or the codes.

For the error, I guess it could be caused by the free function, I would check it later.

Thanks for the issue.

Ryan

rozentill avatar Jul 25 '18 05:07 rozentill