Error Code
Overview
Note
The error code has 7 digits: XX-XXXXX, the first two digits indicate the error type, and the last 5 digits indicate the specific error description.
Explanation of Common Error Codes
| Error Code | Possible Causes | Response Measures |
|---|---|---|
| HB_UCP_INVALID_ARGUMENT | The imported parameters of the interface are illegal, such as cases where a pointer imported parameter is set to null or parameter validation fails | Please conduct troubleshooting based on the used interfaces and their corresponding error logs |
| HB_UCP_API_USE_ERROR | Incorrect use of the interface, a task that has already been submitted is submitted again | Please check for incorrect usage of duplicate task submissions |
| HB_UCP_UNKNOWN_ERROR | Internal unknown issue | Please keep the relevant logs or environment properly and contact Horizon technical support staff for analysis |
| HB_UCP_TASK_NUMBER_EXCEED_LIMIT | The number of tasks created within the process and not released exceeds the pool's upper limit | Please ensure that the task release interface is correctly invoked. If it meets expectations, the upper limit of the quantity can be adjusted by setting the environment variable HB_UCP_MAX_TASK_NUM |
| HB_UCP_TASK_TIMEOUT | Timeout caused by a short timeout setting for the task or high hardware load | Can try increasing the task timeout or reducing the load |
| Virtual memory leak causes model inference timeout | Can check whether there is a virtual memory leak in the system | |
| Model instruction freeze causes inference timeout | When it is confirmed that the process has not exited, you can check the status of BPU tasks by running cat /sys/devices/system/bpu/bpu0/task_running. If the same task persists and its p_time keeps increasing, it indicates that the model has not completed for a long time | |
| Other | Please keep the relevant logs or environment properly and contact Horizon technical support staff for analysis | |
| HB_UCP_TASK_RUN_FAILED | The task is not completed. Calling to release the task in advance will return this error code in the waiting interface or callback function | Please check whether the behavior of the early release task meets expectations |
| The ROI of the Resizer input model does not meet the restrictions | Please add a legality check for ROI before creating a task | |
| Internal issues | Please keep the relevant logs or environment properly and contact Horizon technical support staff for analysis | |
| HB_UCP_TASK_HANDLE_INVALID | The task handle of the imported parameter of the model inference interface is illegal, not output by hbDNNInferV2, or has already been released | Please check the correctness of the task handle object or the interface usage |
| The task handle of the operator task's imported parameter is illegal and must be a null pointer or point to a null pointer | Please check the imported parameter of the task handle of the interface | |
| HB_UCP_OP_NOT_REGISTER | DSP custom operator is not registered | Please check the registration interface call on the DSP side or confirm whether the custom operator CMD value is consistent with the registered value on the DSP side |
| HB_UCP_MEM_ALLOC_FAIL | Memory allocation failed | Please check whether there is a memory leak or excessive memory requirements |
| HB_UCP_MEM_MAP_FAIL | Model inference memory mapping failed | Please check whether the tensor address information used for inference, including the start address and size, is included within the applied hbmem memory space |
| HB_UCP_FILE_OPEN_FAILED | The file used for model loading cannot be opened | Please confirm that the model file exists and is readable |
| HB_UCP_MODEL_INVALID | Model loading failed, content verification failed | Please check the correctness of the hbm model file or its content |
| HB_UCP_MODEL_INCOMPATIBLE | The model architecture is incompatible with the operating environment | Please check whether the march parameter of the hbm compile settings is consistent with the operating environment |
| HB_UCP_DSP_UNAVAILABLE | DSP communication is unavailable | Please check if the DSP has started normally |
| HB_UCP_DSP_XV_ALLOC_FAIL | DSP side failed to apply for TCM memory | Please check if the DSP has memory leaks or excessive memory requirements |
| HB_UCP_DSP_MMAP_FAIL | DSP memory mapping failed | Please check if the address information belongs to hbmem. If there are still issues, please contact Horizon technical support staff for analysis |
| HB_UCP_CODEC_OPERATION_NOT_ALLOWED | Codec status anomaly causes operation failure, usually due to an illegal state | Please contact Horizon technical support staff for analysis |
| HB_UCP_CODEC_INSUFFICIENT_RES | Insufficient system memory causes quota failure | Please check and release idle memory resources |
| HB_UCP_CODEC_NO_FREE_INSTANCE | The number of Context instances has reached the upper limit | Please release idle instances before creating new ones |
| HB_UCP_CODEC_IS_INUSE | Tasks are still occupied when Context is released | Please release all associated tasks first and then release the Context |
Tip
When analyzing error codes, it is recommended to combine them with error logs. Additionally, you can adjust the UCP log level through environment variables to help troubleshoot issues based on more detailed log information.
