Ar template - issue with AR session_create

Hello,

I am trying to run the Ar template on my android device.
I am able to build, package and start the app. However once I click on the button “start scanning”, I get asked for the permission. I accept and after a while the application crash. I use ue4 4.27 with ndk r22b, android-26. I tried rebuild with different ndk and android version but the problem remains.

The stack trace is:

[2021.10.25-13.00.21:624][ 66]LogGoogleARCoreAPI: Error: ArSession_create returns with error: -2
LogPlayLevel: Warning: 10-25 15:00:21.624 25901 25943 D UE4 : [2021.10.25-13.00.21:624][ 66]LogOutputDevice: Warning:
LogPlayLevel: 10-25 15:00:21.624 25901 25943 D UE4 :
LogPlayLevel: 10-25 15:00:21.624 25901 25943 D UE4 : Script Stack (0 frames):
LogPlayLevel: 10-25 15:00:21.624 25901 25943 D UE4 :
LogPlayLevel: 10-25 15:00:21.624 25901 25943 D UE4 : Ensure condition failed: false [File:D:/Build/++UE4/Sync/Engine/Plugins/Runtime/AR/Google/GoogleARCore/Source/GoogleARCoreBase/Private/GoogleARCoreDevice.cpp] [Line: 487]
LogPlayLevel: 10-25 15:00:21.624 25901 25943 D UE4 : Failed to create ARCore session with error status: -2
LogPlayLevel: 10-25 15:00:21.654 25901 25943 D UE4 : [2021.10.25-13.00.21:654][ 66]LogStats: FPlatformStackWalk::StackWalkAndDump - 0.029 s
LogPlayLevel: Error: 10-25 15:00:21.654 25901 25943 D UE4 : [2021.10.25-13.00.21:654][ 66]LogOutputDevice: Error: === Handled ensure: ===
LogPlayLevel: Error: 10-25 15:00:21.654 25901 25943 D UE4 : [2021.10.25-13.00.21:654][ 66]LogOutputDevice: Error:
LogPlayLevel: Error: 10-25 15:00:21.654 25901 25943 D UE4 : [2021.10.25-13.00.21:654][ 66]LogOutputDevice: Error: Ensure condition failed: false [File:D:/Build/++UE4/Sync/Engine/Plugins/Runtime/AR/Google/GoogleARCore/Source/GoogleARCoreBase/Private/GoogleARCoreDevice.cpp] [Line: 487]
LogPlayLevel: Error: 10-25 15:00:21.654 25901 25943 D UE4 : [2021.10.25-13.00.21:654][ 66]LogOutputDevice: Error: Failed to create ARCore session with error status: -2
LogPlayLevel: Error: 10-25 15:00:21.654 25901 25943 D UE4 : [2021.10.25-13.00.21:654][ 66]LogOutputDevice: Error: Stack:

1 Like

Nobody has any idea ? still not able to use arcore.

The problem remains :frowning:

Hello,

Still no lock for me, anyone having similar issue with the Ar template ?

I have the same issue…

In UE5, selecting Begin Scan didn’t cause anything, and when I tried it in UE4, I got this issue…

AR app created in Unity is working correctly, so ARCore should be working fine.

I solved it this way.

  • [Project Settings]-[Platforms]-[Android]
    • UE4.27
      • Uncheck “Support armv7 [aka armeabi-v7a]”
      • Check “Support arm64 [aka arm64-v8a]”
    • UE5.0
      • Uncheck “Support Vulkan”