DJI-SDK mobile Android Fatal signal 11 (SIGSEGV)
1696 1 2021-5-27
Uploading and Loding Picture ...(0/1)
o(^-^)o
DJI_Orlando
lvl.1

Netherlands
Offline

Hello!

I am following an sdk & application integration tutorial and I am  encountering an error when trying to run the app. The error I get is the  following:


A/libc: Fatal signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr  0xeaec1000 in tid 9830 (om.dji.andronid), pid 9830 (om.dji.andronid)

W/om.dji.andronid: type=1400 audit(0.0:345): avc: denied { execmod } for  path="/apex/com.android.runtime/lib/bionic/libc.so" dev="loop10" ino=17  scontext=u:r:untrusted_app:s0:c158,c256,c512,c768 tcontext=ubject_r:system_lib_file:s0 tclass=file permissive=0 app=com.dji.andronid


Does anyone know what causes this error?

Tutorial link: https://developer.dji.com/mobile-sdk/documentation/android-tutorials/UXSDKDemo.html



  The error seems to be linked with the line Helper.install(MApplication.this)
package applications;

import android.app.Application;
import android.content.Context;

import com.secneo.sdk.Helper;

public class MApplication extends Application {

     private DemoApplication demoApplication;
    @Override
    protected void attachBaseContext(Context paramContext) {
         super.attachBaseContext(paramContext);
        Helper.install(MApplication.this);
        if (demoApplication == null) {
             demoApplication = new DemoApplication();
            demoApplication.setContext(this);
        }
     }

     @Override
    public void onCreate() {
         super.onCreate();
        demoApplication.onCreate();
    }
}


this is my gradle.build(app):

plugins {
id 'com.android.application'
}
apply plugin: 'kotlin-android'

android {
compileSdkVersion 30
    buildToolsVersion "30.0.3"

    defaultConfig {
applicationId "com.dji.andronid"
        minSdkVersion 19
        targetSdkVersion 30
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
buildTypes {
release {
minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
dexOptions {
javaMaxHeapSize "3g"
    }
packagingOptions{
doNotStrip "*/*/libdjivideo.so"
        doNotStrip "*/*/libSDKRelativeJNI.so"
        doNotStrip "*/*/libFlyForbid.so"
        doNotStrip "*/*/libduml_vision_bokeh.so"
        doNotStrip "*/*/libyuv2.so"
        doNotStrip "*/*/libGroudStation.so"
        doNotStrip "*/*/libFRCorkscrew.so"
        doNotStrip "*/*/libUpgradeVerify.so"
        doNotStrip "*/*/libFR.so"
        doNotStrip "*/*/libDJIFlySafeCore.so"
        doNotStrip "*/*/libdjifs_jni.so"
        doNotStrip "*/*/libsfjni.so"
        doNotStrip "*/*/libDJICommonJNI.so"
        doNotStrip "*/*/libDJICSDKCommon.so"
        doNotStrip "*/*/libDJIUpgradeCore.so"
        doNotStrip "*/*/libDJIUpgradeJNI.so"
        doNotStrip "*/*/libDJIWaypointV2Core.so"
        doNotStrip "*/*/libDJIMOP.so"
        doNotStrip "*/*/libDJISDKLOGJNI.so"

        pickFirst 'lib/*/libstlport_shared.so'
        pickFirst 'lib/*/libRoadLineRebuildAPI.so'
        pickFirst 'lib/*/libGNaviUtils.so'
        pickFirst 'lib/*/libGNaviMapex.so'
        pickFirst 'lib/*/libGNaviData.so'
        pickFirst 'lib/*/libGNaviMap.so'
        pickFirst 'lib/*/libGNaviSearch.so'
        exclude 'META-INF/proguard/okhttp3.pro'
        exclude 'META-INF/rxjava.properties'
    }
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.3.0'
    implementation 'com.google.android.material:material:1.3.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
    testImplementation 'junit:junit:4.+'
    androidTestImplementation 'androidx.test.ext:junit:1.1.2'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
    implementation "androidx.core:core-ktx:+"
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

    // SDK dependencies
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0-rc01'
    implementation 'androidx.multidex:multidex:2.0.1'
    implementation 'androidx.recyclerview:recyclerview:1.0.0'
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

    // UXSDK dependencies
    implementation 'androidx.annotation:annotation:1.0.0'
    implementation 'androidx.appcompat:appcompat:1.0.0'
    implementation 'androidx.core:core:1.0.0'
    implementation "androidx.core:core-ktx:1.1.0"


    // UXSDK map dependencies: Only include dependencies for map providers that are used in your app
    // Amap: Do not include if publishing to Google Play Store
    implementation 'com.amap.api:3dmap:6.9.2'
    implementation 'com.amap.api:search:6.9.2'
    implementation 'com.amap.api:location:4.7.0'

    implementation ('com.dji:dji-uxsdk:4.11')
     implementation ('com.dji:dji-sdk-provided:4.11')

}
repositories {
mavenCentral()
}


2021-5-27
Use props
djiuser_aTTdThEDmiIl
lvl.1

Japan
Offline

solved it?
2021-9-10
Use props
Advanced
You need to log in before you can reply Login | Register now

Credit Rules