# Start AR Session fails on Galaxy S21+

**URL:** <https://forums.unrealengine.com/t/start-ar-session-fails-on-galaxy-s21/488515>\
**Category:** XR Development\
**Tags:** failing, fatal-error, AR, Mixed-Reality, unreal-engine, Android, question\
**Created:** [September 11, 2021, 7:50pm UTC](https://forums.unrealengine.com/t/start-ar-session-fails-on-galaxy-s21/488515 "2021-09-11T19:50:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![NotADesigner](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NotADesigner](https://forums.unrealengine.com/u/NotADesigner)\
**Post date:** [September 11, 2021, 7:50pm UTC](https://forums.unrealengine.com/t/start-ar-session-fails-on-galaxy-s21/488515/1 "2021-09-11T19:50:16Z")

</div>

I’m trying this on a Samsung Galaxy S21+, I have the ARCore system stuff installed on my device. Other ARCore tools (like Measure) work properly.

The blueprint node “Start AR Session” is called and later when I check the status via “Get AR Session Status” it returns “Fatal Error.” I’ve tried restarting the session and it fails with “Fatal Error” each time. I need some ideas of how to get this working.

Here are the Android ADB logs:

```
UE4 : LogGoogleARCore: Start ARCore session requested.
UE4 : LogGoogleARCore: Pausing ARCore session.
UE4 : LogGoogleARCore: Could not stop ARCore tracking session because there is no running tracking session!
UE4 : LogGoogleARCore: Warning: Reset ARCore session due to fatal error detected.
third_party/arcore/ar/core/android/sdk/session_create.cc: Entering ArSession_create
third_party/arcore/ar/core/android/sdk/session_create.cc: ARCore Version: SDK build name: 1.18
third_party/arcore/ar/core/android/sdk/session_create.cc: ARCore Version: APK version code: 212010383
third_party/arcore/ar/core/android/sdk/session_create.cc: Dynamite load ok.
third_party/arcore/java/com/google/vr/dynamite/client/native/dynamite_client.cc: Attempting to load native library arcore_c from package com.google.ar.core
qmi_secgps_clnt: SECGPS: QMI_SECGPS_AGNSS_CONFIG_MESSAGE_IND_V01 received
DynamiteClient: Failed to load native library [packageName=com.google.ar.core,libraryName=arcore_c] from remote package:
DynamiteClient:
DynamiteClient: java.lang.IllegalStateException: Library arcore_c loaded in the same classloader context as library null
DynamiteClient: at com.google.vr.dynamite.NativeLibraryLoader.initializeAndLoadNativeLibrary(PG:1)
DynamiteClient: at gan.A(PG:6)
DynamiteClient: at agy.onTransact(PG:3)
DynamiteClient: at android.os.Binder.transact(Binder.java:1079)
DynamiteClient: at com.google.a.a.a.a(BaseProxy.java:4)
DynamiteClient: at com.google.vr.dynamite.client.b.initializeAndLoadNativeLibrary(INativeLibraryLoader.java:9)
DynamiteClient: at com.google.vr.dynamite.client.DynamiteClient.loadNativeRemoteLibrary(DynamiteClient.java:35)
third_party/arcore/java/com/google/vr/dynamite/client/native/dynamite_client.cc: Dynamite::LoadNativeRemoteLibrary handle=0
third_party/arcore/ar/core/android/sdk/session_create.cc: Dynamite failed to load remote library
third_party/arcore/ar/core/android/sdk/session_create.cc: LoadSymbolsDynamite returning AR_ERROR_FATAL.
third_party/arcore/ar/core/android/sdk/session_create.cc: LoadSymbols returning status.
UE4 : LogGoogleARCoreAPI: Error: ArSession_create returns with error: -2
```

---

<div class="post-metadata">

**Author:** ![oceanunreal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@oceanunreal](https://forums.unrealengine.com/u/oceanunreal)\
**Post date:** [October 13, 2021, 10:48am UTC](https://forums.unrealengine.com/t/start-ar-session-fails-on-galaxy-s21/488515/2 "2021-10-13T10:48:48Z")

</div>

Hey!  
I get the same error when trying to run on my Samsung Galaxy S20 phone, have you find any solution?

---

<div class="post-metadata">

**Author:** ![punkhumor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@punkhumor](https://forums.unrealengine.com/u/punkhumor)\
**Post date:** [January 17, 2023, 8:13am UTC](https://forums.unrealengine.com/t/start-ar-session-fails-on-galaxy-s21/488515/3 "2023-01-17T08:13:05Z")

</div>

I had the same problem, my Settings were UE427; 29SDK; 21NDK

---

<div class="post-metadata">

**Author:** ![planetsameer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@planetsameer](https://forums.unrealengine.com/u/planetsameer)\
**Post date:** [May 10, 2023, 7:18am UTC](https://forums.unrealengine.com/t/start-ar-session-fails-on-galaxy-s21/488515/4 "2023-05-10T07:18:07Z")

</div>

I kind of found a workaround for this issue . In the tick event whenever I get a Fatal Error I request for a Android Camera permission . This would start my AR session which could have been closed when I flip between applications . So I used the following BP  
I could fix this issue in Blue Prints using the Request Camera permission node of Android . In the Tick event I check if I get a Fatal error I request Android camera permission

I was thinking of proposing this fix in class FGoogleARCoreDevice …What do you guys think
