This section describes only module-specific error codes. For details about universal error codes, please refer to Universal Error Codes.
If the error persists, submit a ticket online. Huawei will get back to you as soon as possible.
Error Message
Failure.
Error Description
The API call failed.
Possible Causes
Solution
Error Message
Session paused.
Error Description
The session is paused.
Possible Causes
The current session is paused or is not resumed.
Solution
Call HMS_AREngine_ARSession_Resume to resume the session.
Error Message
Session not paused.
Error Description
The session is not paused.
Possible Causes
The current session is in running status.
Solution
Call HMS_AREngine_ARSession_Pause to pause the current session.
Error Message
Not tracking.
Error Description
The session is not in the tracking state during the process of obtaining the target anchor or plane information
Possible Causes
The current session is abnormal.
Solution
Check whether the current session object (which is of the AREngine_ARSession type) is empty.
Error Message
Texture not set.
Error Description
No GL texture is set.
Possible Causes
The GL texture used for rendering is not set.
Solution
Check whether the HMS_AREngine_ARSession_SetCameraGLTexture() API is used to set the correct GL texture.
Error Message
GL context missing.
Error Description
OpenGL context missing.
Possible Causes
The current thread lacks the OpenGL context. The result obtained by calling the eglGetCurrentContext() API is EGL_NO_CONTEXT.
Solution
Check whether the HMS_AREngine_ARSession_Update() API is called in the OpenGL rendering thread.
Error Message
Configuration not supported.
Error Description
AR Engine does not support the current configuration.
Possible Causes
The preview dimensions are not supported.
Solution
Check whether the preview dimensions are supported by calling OH_CameraManager_GetSupportedCameraOutputCapability.
Error Message
Resource exhausted.
Error Description
The memory is used up.
Possible Causes
Failed to allocate memory due to memory shortage.
Solution
Check whether the memory is sufficient. If not, prompt the user to clear the memory. If so, submit a ticket online. Huawei will get back to you as soon as possible.
Error Message
The number of images added exceeds the maximum.
Error Description
The number of images to be added exceeds the upper limit.
Possible Causes
The number of images added to the tracking image database exceeds the upper limit.
Solution
Check whether the number of images added to the tracking image database exceeds the upper limit.
If ArkTS is used for development, you can obtain the maximum number of images using ARAugmentedImageDatabase.getCapacity and the number of images stored in the database using ARAugmentedImageDatabase.getImageCount.
If C/C++ is used for development, you can obtain the maximum number of images using HMS_AREngine_ARAugmentedImageDatabase_GetCapacity and the number of images stored in the database using HMS_AREngine_ARAugmentedImageDatabase_GetImageCount.
If the number does not exceed the upper limit, submit a ticket online. Huawei will get back to you as soon as possible.
Error Message
Attempted to add an image with insufficient quality to the image database.
Error Description
The image with poor quality is added to the image database.
Possible Causes
Attempts are made to add an image with poor quality to the image database.
Solution
Check whether the app adds an image with poor quality to the image database. For details, please refer to ARAddAugmentedImageReason. If no image with poor quality is added, submit a ticket online. Huawei will get back to you as soon as possible.
Error Message
No valid image database.
Error Description
No valid image database exists.
Possible Causes
The image database is not created.
Solution
Check whether an image database is created using HMS_AREngine_ARAugmentedImageDatabase_Create.
If the number does not exceed the upper limit, submit a ticket online. Huawei will get back to you as soon as possible.
Error Message
The pictures cannot be added when the tracking state is running.
Error Description
Images cannot be added when the tracking state is running.
Possible Causes
The program is in the tracking state.
Solution
Check whether AREngine_ARTrackingState is set to ARENGINE_TRACKING_STATE_PAUSED or ARENGINE_TRACKING_STATE_STOPPED.
Error Message
Failed to create nativeBuffer.
Error Description
Failed to create NativeBuffer.
Possible Causes
The heap memory is exhausted.
Solution
Check the device's memory status and ensure that adequate heap memory is available. If the error persists, restart the device.
Error Message
Failed to write nativeBuffer.
Error Description
Failed to write to NativeBuffer.
Possible Causes
The heap memory is exhausted.
Solution
Check the device's memory status and ensure that adequate heap memory is available. If the error persists, restart the device.
Error Message
The camera service is abnormal.
Error Description
The camera service is abnormal.
Possible Causes
The camera service is abnormal, for example, the service restarts or an IPC exception occurs.
Solution
Create the service again.
Error Message
ARView invalid operation.
Error Description
The ARView operation is not standard.
Possible Causes
The ARViewContext.config/ARViewContext.callback and other related settings are repeatedly performed after ARViewContext is initialized.
Solution
Check whether the sample code is used according to the ARViewContext sample code.
Error Message
Graphics3D AR scene required.
Error Description
The AR scene is missing.
Possible Causes
ARViewContext.scene is not set before ARViewContext is initialized.
Solution
Set the AR scene before initializing ARViewContext. For details, please refer to Managing AR Sessions.
Error Message
AREngine config required.
Error Description
ARViewContext.config is not set.
Possible Causes
ARViewContext.config is not set before ARViewContext is initialized.
Solution
Set ARViewContext.config before initializing ARViewContext. For details, please refer to Managing AR Sessions.
Error Message
AR session setup failed.
Error Description
The AR session fails to be initialized.
Possible Causes
The AR session fails to be initialized because ARViewContext.config is not correctly set.
Solution
Check the error code returned when the related API is called and reset ARViewContext.config as prompted.
Error Message
AR scene camera setup failed.
Error Description
The AR scene camera node fails to be created.
Possible Causes
The camera node fails to be created due to resource exhaustion or repeated camera creation.
Solution
Check whether the ARViewContext API has been called and initialization has been performed, whether the camera has been confirmed, and whether the system has sufficient memory before the app uses ARView. If so, submit a ticket online. Huawei will get back to you as soon as possible.