Error description: Permissions not granted.
Possible cause: Necessary permissions are not granted, such as the camera permission, the acceleration sensor permission, or the gyroscope sensor permission.
Troubleshooting: 1. Check whether your app has been granted the camera permission. If not, click here to learn how to request user authorization. 2. Check whether your app has been granted the acceleration sensor permission and the gyroscope sensor permission. For details, please refer to Applying for Permissions.
Error description: Invalid parameters.
Possible cause: The input parameter is empty or invalid.
Troubleshooting: Check whether the input parameter is empty or invalid.
Error description: Device incompatibility occurs.
Possible cause: The device is incompatible.
Troubleshooting: Check whether the current device is in the Supported Device List.
Error description: API calling failure.
Possible causes: The session/frame/list of trackable objects fails to be created.
Troubleshooting: Submit a ticket online. Huawei technical support will handle it in time.
Error description: Session paused.
Possible cause: The current session is paused or is not resumed.
Troubleshooting: Call HMS_AREngine_ARSession_Resume to resume the session.
Error description: Session not paused.
Possible cause: The current session is running.
Troubleshooting: Call HMS_AREngine_ARSession_Pause to pause the current session.
Error description: The session is not in the tracking state during the process of obtaining the target anchor or plane information
Possible cause: The current session is abnormal.
Troubleshooting: Check whether the current session object (of the AREngine_ARSession type) is empty.
Error description: GL texture not set.
Possible cause: The GL texture used for rendering is not set.
Troubleshooting: Check whether HMS_AREngine_ARSession_SetCameraGLTexture() is used to set the correct GL texture.
Error description: OpenGL context missing.
Possible cause: The current thread lacks the OpenGL context. Calling eglGetCurrentContext() returns EGL_NO_CONTEXT.
Troubleshooting: Check whether HMS_AREngine_ARSession_Update() is called in the OpenGL rendering thread.
Error description: The SDK does not support the current configuration.
Possible cause: The preview size is not supported.
Troubleshooting: Call OH_CameraManager_GetSupportedCameraOutputCapability to check whether the preview size is supported.
Error description: The memory is exhausted.
Possible cause: Failed to allocate memory due to memory shortage.
Troubleshooting: Check whether the memory is sufficient. If not, prompt the user to clear the memory. If the memory is sufficient, submit a ticket online. Huawei technical support will handle it in time.
Error description: Service unavailable.
Possible cause: The device is not supported.
Troubleshooting: Check whether the device is in the Supported Device List. If so, submit a ticket online. Huawei technical support will handle it in time.
Error description: Camera unavailable.
Possible cause: AR Engine cannot open the camera as it is occupied by other processes.
Troubleshooting: Check whether the camera is occupied by other processes when your app calls AR Engine. If not, submit a ticket online. Huawei technical support will handle it in time.