-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash on load from within protobuf in precompiled tensorflow 1.1 #26
Comments
Hey, I'm still on 16.04 so I don't know if that is related in any way. Interesting that there's no issue with the older lib. AND that one is a NOPT build (with debug info). I just realised that I didn't provide a NOPT build for TF1.1. I'll try to do this, but I'm travelling these days and could be difficult. Was the crash during a debug build or release? Could you try a release build? Previously I was encountering crashes (segmentation fault) when running a debug build app with the release build lib. However this hasn't been an issue for me lately. |
This comment implies it could be an SSE support issue, and given that the non-optimized version is the one that works on my setup it seems reasonable that it has something to do with that.. I'll continue digging into it. This processor is an old-ish i7-3820. Here's my
|
(Haven't used this project, but chiming in from a TF thread) @admsyn Are you dynamically linking another version of protobuf (either in your program, or possibly in another library you're using). One incredibly sneaky thing that TF's C++ API does is that it requires you to include all of it core internal code which includes TF's protobuf objects in its headers, which causes your program to become implicitly dependent on protobuf. Because of this, if you dynamically load a version of protobuf that is different than the one TF is compiled with somewhere, you get mysterious crashes like these since there is a mismatch between the protobuf your program is using, and the protobuf that is statically linked inside of the TF library. It's possible that this was causing the crash you're experiencing. I've ran into this with a different project, and the workaround seems to be one of:
The core problem is with how TF's C++ API is designed, so there's no real solution for this, but it is something to be aware of when integrating TF in other C++ projects. |
Hey Memo! This is with a fresh Ubuntu 17.04 and OF master (
2c7b719
).example-basic
as wellmake
libtensorflow_cc.so
is fromlib_TF1.1_linux64_OPT_CUDA8.0_CUDNN5.1_2017_05_17.tar.gz
fast-style-transfer
installed and working fine separately (virtual envs, not used in the context of OF or ofxMSATensorFlow)Full linux version:
More on this story as it develops..
EDIT: This does not happen with
lib_TF1.0_linux64_NOPT_CUDA8.0_CUDNN5.1_2017_02_22.tar.gz
, which worksThe text was updated successfully, but these errors were encountered: