Topic locked

Crash on strlen() function

June 30, 2021 - 11:34pm #1

Hello. Just updated my app.  now on firebase i can see crashes that is connected with Vuforia

here is log from firebase that shows where it is crashed. (package name hidden by me with '*')

Caused by java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

Version '2020.3.4f1 (0abb6314276a)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'

Build fingerprint: 'OPPO/CPH2015/OP4C7D:9/PPR1.180610.011/1615042516:user/release-keys'

Revision: '0'

ABI: 'arm64'

Timestamp: 2021-07-01 09:49:58+0700

pid: 9160, tid: 9280, name: UnityMain  >>> com.****.****<<<

uid: 10140

signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x7d69037060

    x0  0000007d69037060  x1  0000007d69037060  x2  0000007d9e34c09b  x3  0000000000000000

    x4  0000000000000060  x5  0000008080808080  x6  0030003200300032  x7  0000000000000020

    x8  0101010101010101  x9  000000000000007d  x10 0000007d990e52b4  x11 000000000000004f

    x12 0000000000000018  x13 000000000000000d  x14 0000007d9e200000  x15 aaaaaaaaaaaaaaab

    x16 0000007d98ed72f0  x17 0000007f0cf22350  x18 0000007f0cfff000  x19 0000007e69a44da0

    x20 0000007d69037060  x21 0000007e69a46588  x22 0000007e673636f0  x23 0000000000000002

    x24 0000007e69a46588  x25 0000007d8045ee50  x26 0000007e67ca6e90  x27 0000000000000cf4

    x28 0000007e00058ee8  x29 0000007e69a44ee0

    sp  0000007e69a44d70  lr  0000007d978dbf10  pc  0000007f0cf22360


      #00 pc 000000000001e360  /system/lib64/ (strlen+16) (BuildId: 50fe11b9d556e088ce72bbd1db5f587d)

      #01 pc 000000000012ff0c  /data/app/com.****.****opa-V1fgBkpAykrept6EhBNOYg==/lib/arm64/ (BuildId: 2c42305a2e35fed2e309caf0a00ed92a35618eb5)

      #02 pc 00000000001515bc  /data/app/com.****.****-V1fgBkpAykrept6EhBNOYg==/lib/arm64/ (BuildId: 2c42305a2e35fed2e309caf0a00ed92a35618eb5)

      #03 pc 000000000015128c  /data/app/com.****.****-V1fgBkpAykrept6EhBNOYg==/lib/arm64/ (BuildId: 2c42305a2e35fed2e309caf0a00ed92a35618eb5)

      #04 pc 0000000000151a9c  /data/app/com.****.****-V1fgBkpAykrept6EhBNOYg==/lib/arm64/ (Vuforia::setHint(unsigned int, int)+384) (BuildId: 2c42305a2e35fed2e309caf0a00ed92a35618eb5)

      #05 pc 00000000<truncated: 2851 chars>

       at libc.strlen(strlen:16)

       at libVuforia.0x12ff0c()

       at libVuforia.0x1515bc()

       at libVuforia.0x15128c()

       at libVuforia.Vuforia::setHint(unsigned int, int)(setHint:384)

       at libVuforiaWrapper.setApplicationEnvironment(setApplicationEnvironment:56)

       at libil2cpp.0x9f9ba4()

       at libil2cpp.0x9fcb30()

       at libil2cpp.0x8d4594()

       at libil2cpp.0xdd45d0()

       at libil2cpp.0x7c1918()

       at libil2cpp.0x6e6480()

       at libunity.0x608314()

       at libunity.0x615b68()

       at libunity.0x61f1d8()

       at libunity.0x61edb8()

       at libunity.0x471e44()

       at libunity.0x52dc70()

       at libunity.0x52dca4()

       at libunity.0x52dee8()

       at libunity.0x682f5c()

       at libunity.0x698820()

       at base.0x582bc()

Crash on strlen() function

July 7, 2021 - 1:21am #4

Got some news. 

Build new version to get more information about crash. 

the reason for crash seems to be Vuforia Init problem

when you dont give permission. 

Vuforia initialization failed : Vuforia.VuforiaRuntime:CheckInitStatus(InitError) Vuforia.VuforiaRuntime:UpdateInitialization() Vuforia.VuforiaARController:Start() System.Delegate:DynamicInvokeImpl(Object[]) Vuforia.DelegateHelper:InvokeDelegate(Delegate, Object[])

Also some other crashes 



NullReferenceException: Object reference not set to an instance of an object. : Vuforia.AndroidUnityPlayer.Dispose () (at <00000000000000000000000000000000>:0) Vuforia.VuforiaRuntime.Deinit () (at <00000000000000000000000000000000>:0) Vuforia.VuforiaRuntime.DeinitVuforia () (at <00000000000000000000000000000000>:0) System.Action.Invoke () (at <00000000000000000000000000000000>:0)


Crash on strlen() function

July 6, 2021 - 12:23am #3

Hi, No, not only on Oppo.

Here is the ordered list of devices with most crashes : Xiaomi, Huawei, Samsung, Oppo,  Vivo, Lenovo, Motorola...

1) Unity 2020.3.4,  Vuforia 9.8.8(also same on 9.8.5)

2) Scanner and Markerless mode(for devices which not supporting ARCore, otherwise im using  scene with ARfoundation)

3) should i use this on my device(not crashing on mine).  If not then im afraid i can't use it, because crashes data is in Firebase(from real user), and all devices what i have works perfectly without crash. 

Today I planned to add some try-catch block on Vuforia Init and Enabling functions. Will it help to handle/block crash? 

Here is more information for you: this issue happens on Android 8,9,10(didnt find any lower), But on Android 11 it has different name

libc.strlen_default (strlen_default:16)


Crash on strlen() function

July 5, 2021 - 6:09am #2


Is the issue reproducible on the Oppo device?

If yes, would it be possible to confirm the following:

1. Unity/Vuforia Engine version?

2. Which Vuforia Engine features are you using?

3. logcat dump using $ adb logcat AR:D Unity:D *:S

Thank you.

Vuforia Engine Support

Topic locked