Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR) on asyncBeginLoad(createdAsset)
Hi,
I use your SDK to display a gltf model in a small SceneView that is placed in a corner of the screen over a ARCore session.
So, I have got 2 loops that update the UI:
- a onDrawFrameSceneForm loop where I update the SceneView (SceneForm)
- a onDrawFrame loop relative to ARCore where I update the ARCore view
In the onDrawFrameSceneForm loop, I call :
objContainerNode.setRenderable(modelCompletableFuture);
when I have a generated a new GLTF file and want to display it in the SceneView.
My problem is that I have the following random crash: (can happen after 2 seconds or 30 seconds)
A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x716b4ab8d0 in tid 26543
2022-03-22 13:40:31.189 27005-27005/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2022-03-22 13:40:31.189 27005-27005/? A/DEBUG: Build fingerprint: 'samsung/xxx:user/release-keys'
2022-03-22 13:40:31.189 27005-27005/? A/DEBUG: Revision: '22'
2022-03-22 13:40:31.189 27005-27005/? A/DEBUG: ABI: 'arm64'
2022-03-22 13:40:31.189 27005-27005/? A/DEBUG: Timestamp: 2022-03-22 13:40:30.650485403+0100
2022-03-22 13:40:31.189 27005-27005/? A/DEBUG: Process uptime: 21s
2022-03-22 13:40:31.189 27005-27005/? A/DEBUG: Cmdline: com.myproject
2022-03-22 13:40:31.189 27005-27005/? A/DEBUG: pid: 26543, tid: 26543, name: myproject >>> com.myproject <<<
2022-03-22 13:40:31.189 27005-27005/? A/DEBUG: uid: 10746
2022-03-22 13:40:31.189 27005-27005/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x716b4ab8d0
2022-03-22 13:40:31.189 27005-27005/? A/DEBUG: x0 0000006f9e27b640 x1 000000003f2d81e0 x2 000000003f323b15 x3 000000003dac7000
2022-03-22 13:40:31.189 27005-27005/? A/DEBUG: x4 0000006f9e285198 x5 0000000000000004 x6 0000000000063063 x7 0000000000063063
2022-03-22 13:40:31.189 27005-27005/? A/DEBUG: x8 0000000000001500 x9 0000000000000000 x10 0000000000000000 x11 0000006f9e3cb790
2022-03-22 13:40:31.189 27005-27005/? A/DEBUG: x12 0000006f7de738d0 x13 0000000000000002 x14 000000000000000c x15 0000000034000000
2022-03-22 13:40:31.189 27005-27005/? A/DEBUG: x16 000000716b4ab8d0 x17 00000070a4321d60 x18 0000006cddb21540 x19 0000006dfdcdb280
2022-03-22 13:40:31.189 27005-27005/? A/DEBUG: x20 0000006f9e36b730 x21 0000006f9e27b640 x22 0000000000009b58 x23 0000006f9e27b640
2022-03-22 13:40:31.189 27005-27005/? A/DEBUG: x24 0000000000000cf2 x25 0000006f9e28b650 x26 0000006f7de738d0 x27 0000000000006790
2022-03-22 13:40:31.190 27005-27005/? A/DEBUG: x28 0000006eaddec2a0 x29 0000000000000000
2022-03-22 13:40:31.190 27005-27005/? A/DEBUG: lr 0000006d861838e8 sp 0000007fdb10ac90 pc 0000006d86183ac8 pst 0000000080001000
2022-03-22 13:40:31.190 27005-27005/? A/DEBUG: backtrace:
2022-03-22 13:40:31.190 27005-27005/? A/DEBUG: #00 pc 000000000015fac8 /data/app/~~adpC-FaWyd-ngiX8N13TXQ==/com.myproject-BudGCgiRyw==/base.apk!libfilament-jni.so (BuildId: db9a82a46ae74d)
This crash happens on this line of code:
renderableData.resourceLoader.asyncBeginLoad(createdAsset);
in this class : https://github.com/SceneView/sceneform-android/blob/bdc7ea9c0403e689ad5e915895c0ae6391f7303a/core/src/main/java/com/google/ar/sceneform/rendering/RenderableInstance.java
I found no solution to avoid this crash. Any help would be greatly appreciated!
Thanks a lot.