目录

Error Codes

201: Permissions Not Granted

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.

401: Invalid Parameters

Error description: Invalid parameters.

Possible cause: The input parameter is empty or invalid.

Troubleshooting: Check whether the input parameter is empty or invalid.

801: Device Incompatibility

Error description: Device incompatibility occurs.

Possible cause: The device is incompatible.

Troubleshooting: Check whether the current device is in the Supported Device List.

1009200001: Failure

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.

1009200002: Session Paused

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.

1009200003: Session Not Paused

Error description: Session not paused.

Possible cause: The current session is running.

Troubleshooting: Call HMS_AREngine_ARSession_Pause to pause the current session.

1009200004: Not Tracking

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.

1009200005: Texture Not Set

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.

1009200006: GL Context Missing

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.

1009200007: Configuration Not Supported

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.

1009200008: Resource Exhausted

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.

1009200009: Service Unavailable

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.

1009200010: Camera Unavailable

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.