C++ AWS SDK built for Android crashes with no meaningfull log #3210
BrunoFigRaymarine
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am building and using the SDK on Android and if I build it for Debug it works fine, however when I build it for Release it keeps crashing as soon as I send a request.
Here is the stackstrace
11-28 13:32:23.368 16890 17269 W MFDApplication: AwsLogger.cpp:50 (vaLog): ctx: Setting ALPN list h2;http/1.1 11-28 13:32:23.498 384 384 F DEBUG : #05 pc 00162e4f /data/app/com.raymarine.axiom.mfd-1/lib/arm/libaws-cpp-sdk-s3.so 11-28 13:32:23.498 384 384 F DEBUG : #06 pc 001625b1 /data/app/com.raymarine.axiom.mfd-1/lib/arm/libaws-cpp-sdk-s3.so 11-28 13:32:23.498 384 384 F DEBUG : #07 pc 00166c73 /data/app/com.raymarine.axiom.mfd-1/lib/arm/libaws-cpp-sdk-s3.so 11-28 13:32:23.498 384 384 F DEBUG : #08 pc 00165d0b /data/app/com.raymarine.axiom.mfd-1/lib/arm/libaws-cpp-sdk-s3.so 11-28 13:32:23.498 384 384 F DEBUG : #09 pc 001613db /data/app/com.raymarine.axiom.mfd-1/lib/arm/libaws-cpp-sdk-s3.so 11-28 13:32:23.498 384 384 F DEBUG : #10 pc 0015b225 /data/app/com.raymarine.axiom.mfd-1/lib/arm/libaws-cpp-sdk-s3.so 11-28 13:32:23.498 384 384 F DEBUG : #11 pc 000bf3f7 /data/app/com.raymarine.axiom.mfd-1/lib/arm/libaws-cpp-sdk-s3.so (_ZN3Aws8Endpoint23DefaultEndpointProviderINS_2S321S3ClientConfigurationENS2_8Endpoint19S3BuiltInParametersENS4_25S3ClientContextParametersEEC1EPKcj+78) 11-28 13:32:23.498 384 384 F DEBUG : #12 pc 0013bfc7 /data/app/com.raymarine.axiom.mfd-1/lib/arm/libaws-cpp-sdk-s3.so (_ZN3Aws2S38Endpoint18S3EndpointProviderC2Ev+10) 11-28 13:32:23.498 384 384 F DEBUG : #13 pc 0013bf5b /data/app/com.raymarine.axiom.mfd-1/lib/arm/libaws-cpp-sdk-s3.so 11-28 13:32:23.498 384 384 F DEBUG : #14 pc 0013bf15 /data/app/com.raymarine.axiom.mfd-1/lib/arm/libaws-cpp-sdk-s3.so (_ZNSt6__ndk110shared_ptrIN3Aws2S38Endpoint18S3EndpointProviderEE15allocate_sharedINS_9allocatorIS4_EEJEEES5_RKT_DpOT0_+32) 11-28 13:32:23.498 384 384 F DEBUG : #15 pc 00100a95 /data/app/com.raymarine.axiom.mfd-1/lib/arm/libaws-cpp-sdk-s3.so (_ZN3Aws10MakeSharedINS_2S38Endpoint18S3EndpointProviderEJEEENSt6__ndk110shared_ptrIT_EEPKcDpOT0_+16) 11-28 13:32:23.498 384 384 F DEBUG : #16 pc 001009c1 /data/app/com.raymarine.axiom.mfd-1/lib/arm/libaws-cpp-sdk-s3.so (_ZN3Aws2S38S3ClientC1ERKNS0_21S3ClientConfigurationENSt6__ndk110shared_ptrINS_8Endpoint20EndpointProviderBaseIS2_NS0_8Endpoint19S3BuiltInParametersENS9_25S3ClientContextParametersEEEEE+288) 11-28 13:32:23.498 384 384 F DEBUG : #17 pc 03ba8a78 /data/app/com.raymarine.axiom.mfd-1/lib/arm/libSystemFunctions_armeabi-v7a.so (_ZNSt6__ndk122__compressed_pair_elemIN3Aws2S38S3ClientELi1ELb0EEC2IJRNS1_6Client19ClientConfigurationEEJLj0EEEENS_21piecewise_construct_tENS_5tupleIJDpT_EEENS_15__tuple_indicesIJXspT0_EEEE+80) 11-28 13:32:23.498 384 384 F DEBUG : #18 pc 03ba4490 /data/app/com.raymarine.axiom.mfd-1/lib/arm/libSystemFunctions_armeabi-v7a.so (_ZN17AwsFileDownloader12DownloadTaskEv+664)
My code works perfectly fine if I build Debug.
Any hints on what to try to debug and fix this issue?
This is how I am compiling it
cmake -DNDK_DIR=$ANDROID_NDK_ROOT \ -DCMAKE_SYSTEM_NAME=Android \ -DTARGET_ARCH=ANDROID \ -DCMAKE_SYSTEM_VERSION=${ANDROID_NDK_PLATFORM#android-} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_ANDROID_ARCH_ABI=$arch \ -DCMAKE_ANDROID_NDK=$ANDROID_NDK_ROOT \ -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_ROOT/build/cmake/android.toolchain.cmake \ -DCMAKE_INSTALL_PREFIX=$installdir \ -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=$outdir/bin \ -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=$outdir/lib \ -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY=$outdir/lib \ -DBUILD_SHARED_LIBS=ON \ -DANDROID_PLATFORM=$ANDROID_NDK_PLATFORM \ -DANDROID_ABI=$arch \ -DANDROID_NDK=$ANDROID_NDK_ROOT \ -DANDROID_LIBRARIES=$srcdir/../../AndroidLibs \ -DANDROID_STL=libc++_static \ -DBUILD_ONLY="s3;core" \ -DUSE_CRT_HTTP_CLIENT=ON \ -DDISABLE_INTERNAL_IMDSV1_CALLS=ON \ -DENABLE_TESTING=OFF \ -llog -ldl \ -DZLIB_INCLUDE_DIR=$ZLIB_INCLUDE_PATH \ -DZLIB_LIBRARY=$ZLIB_LIB_PATH/libz.so \ $srcdir && echo "check: ;" >> Makefile && cp Makefile Makefile.cmake make make install
Beta Was this translation helpful? Give feedback.
All reactions