Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

java.lang.Error: FATAL EXCEPTION [UnityMain]

Discussion in 'Android' started by wduj123, Aug 30, 2019.

  1. wduj123

    wduj123

    Joined:
    Jun 26, 2019
    Posts:
    12
    FATAL EXCEPTION: UnityMain
    java.lang.Error: FATAL EXCEPTION [UnityMain]
    Unity version : 2019.2.1f1
    Device model : samsung GT-I9300
    Device fingerprint: samsung/m0xx/m0:4.3/JSS15J/I9300XXUGMK6:user/release-keys
    Caused by: java.lang.Error: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0000002a
    Build fingerprint: 'samsung/m0xx/m0:4.3/JSS15J/I9300XXUGMK6:user/release-keys'
    Revision: '12'
    pid: 11771, tid: 12372, name: Thread-1078 >>> com.pwg.pplcrushnew <<<
    r0 00000000 r1 659f9058 r2 72bcf9e8 r3 72bcfad8
    r4 72bcfad8 r5 00000000 r6 00000000 r7 72bcf9e8
    r8 00000003 r9 6ebcff14 sl 6ae41ad8 fp 72bcfb0c
    ip 30544001 sp 72bcf998 lr 6462560b pc 65a29648 cpsr 6bf0fa88
    at libil2cpp.002c3648(Native Method)
    at libunity.00276609(Native Method)
    at libunity.0026ab71(Native Method)
    at libunity.003bbe13(Native Method)
    at libdvm.dvmPlatformInvoke(dvmPlatformInvoke:112)
    at libdvm.dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)(dvmCallJNIMethod:398)
    at libdvm.00027860(Native Method)
    at libdvm.dvmInterpret(Thread*, Method const*, JValue*)(dvmInterpret:184)
    at libdvm.dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)(dvmCallMethodV:292)
    at libdvm.dvmCallMethod(Thread*, Method const*, Object*, JValue*, ...)(dvmCallMethod:20)
    at libdvm.0006e4ab(Native Method)
    at libdvm.00027860(Native Method)
    at libdvm.dvmInterpret(Thread*, Method const*, JValue*)(dvmInterpret:184)
    at libdvm.dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)(dvmCallMethodV:292)
    at libdvm.dvmCallMethod(Thread*, Method const*, Object*, JValue*, ...)(dvmCallMethod:20)
    at libdvm.0005582b(Native Method)
    at libc.__thread_entry(__thread_entry:72)
    at libc.pthread_create(pthread_create:208)
     
  2. wduj123

    wduj123

    Joined:
    Jun 26, 2019
    Posts:
    12
    I use the addr2line tool and get this result,but still do not know why, any help ,think you.

    zxcdeMBP:~ zxc$ addr2line -C -f -e libil2cpp.so.debug 002c3648

    il2cpp::vm::Method::GetParamCount(MethodInfo const*)

    /Applications/Unity/Unity.app/Contents/il2cpp/libil2cpp/vm/Method.cpp:77



    zxcdeMBP:~ zxc$ addr2line -C -f -e libunity.sym.so 00276609 0026ab71 003bbe13

    scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool)

    ??:?

    ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool)

    ??:?

    UnityJavaProxy_invoke(_JNIEnv*, _jobject*, long long, _jstring*, _jobjectArray*)

    ??:?
     
  3. wduj123

    wduj123

    Joined:
    Jun 26, 2019
    Posts:
    12
    the device info:

    Galaxy S3
    RAM
    1024 MB
    Samsung
    OpenGL ES
    2.0
    Android 4.3
    armeabi-v7a
    en_US
    CPU
    Exynos 4412
     
  4. Tufail2106

    Tufail2106

    Joined:
    May 23, 2018
    Posts:
    4
    I am facing same issue. Can anyone help?
     
  5. Tufail2106

    Tufail2106

    Joined:
    May 23, 2018
    Posts:
    4
    Is that because of Unity problem or code problem?
     
  6. Somshekar

    Somshekar

    Joined:
    Dec 16, 2016
    Posts:
    10
    Try..
    Code (CSharp):
    1. PlayerSettings > Configuration > Scripting Backend: IL2CPP
    2. PlayerSettings > Configuration > Target Architecture : ARMv7 (unchecked)
    3. ARM64 (checked)
     
    unity_5pqJgUzpBlVd8w likes this.
  7. fkilius

    fkilius

    Joined:
    Jan 22, 2019
    Posts:
    16
    Hello we are facing the same issue. Does anyone find a solution? I Believe that if we change the player settings like @Somshekar suggest will loose compatibility with some active devices, am i wrong?
    Best regards