-
Notifications
You must be signed in to change notification settings - Fork 269
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
dlib-android crashes when built locally #13
Comments
Hi @stefan-girlich , My build environment is as below: OS used for build
Android device
Do you know what's your ndk version? If you connect to your devices, and execut |
Unfortunately 20160714_dlib-android_test_fail_r10e.txt |
@stefan-girlich I never compiled it on OSX 10.11.4 before. |
@tzutalin @stefan-girlich Experiencing the same issue in this build env: OS used for build
Android device
Building and running app attached to Android Studio
Same exception thrown on |
Simply not throwing the corresponding exception is feasible as a workaround, see comment in original discussion. Of course, this is means modifying dlib with unknown side effects. |
I am wondering why it won't happen on ubuntu with ndk-linux. It happens on OSX with ndk-darwin |
This is really quite mysterious, especially since I could also reproduce the crash when building on Debian GNU/Linux (see my original comment above). Please note that I created a StackOverflow question for increased visibility: https://stackoverflow.com/questions/38391746/dlib-dlib-android-crashes-at-runtime-when-built-on-osx |
Big thanks to @e-fominov for providing a fix on StackOverflow! In a nutshell: Set NDK_DEBUG=0 in build_push.py:35. @tzutalin , can you confirm that fix and the original issue on your local machine? |
@stefan-girlich @e-fominov, If someone would like to build it with debug build, they need to specify "--debug" argument. e.g. I have merged the change and verified it, and there is no error. |
I am currently trying to use dlib-android (rev d6e48c1) after building it via the default build command:
python build_push.py --android_project ../dlib-android-app/dlib/src/main/jniLibs/
(
dlib-android-app
is dlib-android-app at d6e48c1)When not building dlib-android manually, the app behaves as expected. However, the app behaves as following after performing a (successful) build as shown above:
Do you have any idea what could be the difference between your original build and my local one?
The original dlib board has an (unresolved) thread regarding this issue that relates to Android and possibly to dlib-android: https://sourceforge.net/p/dclib/discussion/442518/thread/b3ef5401/
Thanks a lot!
Crash log
Full log: 20160713_dlib-android_crash.txt
OS used for build
Android device
The text was updated successfully, but these errors were encountered: