# Error codes

This page summarizes QNN API error codes.

- QNN\_SUCCESS 0

    - Global value indicating success.

- enum QnnCommon\_Error\_t

    - An enum which defines error codes commonly used across API components.

*Values:*

- enumerator QNN\_COMMON\_MIN\_ERROR = 1000

    - 

- enumerator QNN\_COMMON\_ERROR\_NOT\_SUPPORTED = 1000 + 0

    - API or feature is not supported by implementation.

- enumerator QNN\_COMMON\_ERROR\_MEM\_ALLOC = 1000 + 2

    - Memory allocation related error.

- enumerator QNN\_COMMON\_ERROR\_SYSTEM = 1000 + 3

    - System level error, such as related to platform / OS services.

- enumerator QNN\_COMMON\_ERROR\_INVALID\_ARGUMENT = 1000 + 4

    - Invalid function argument.

- enumerator QNN\_COMMON\_ERROR\_OPERATION\_NOT\_PERMITTED = 1000 + 5

    - Illegal operation or sequence of operations.

- enumerator QNN\_COMMON\_ERROR\_PLATFORM\_NOT\_SUPPORTED = 1000 + 6

    - Attempt to use QNN API on an unsupported platform.

- enumerator QNN\_COMMON\_ERROR\_SYSTEM\_COMMUNICATION = 1000 + 7

    - Communication errors with platform / OS service (service is recoverable)

- enumerator QNN\_COMMON\_ERROR\_INCOMPATIBLE\_BINARIES = 1000 + 8

    - Loaded libraries are of incompatible versions.

- enumerator QNN\_COMMON\_ERROR\_LOADING\_BINARIES = 1000 + 9

    - Attempt to reload library already loaded in this process.

- enumerator QNN\_COMMON\_ERROR\_RESOURCE\_UNAVAILABLE = 1000 + 10

    - Resource allocation related error.

- enumerator QNN\_COMMON\_ERROR\_SYSTEM\_COMMUNICATION\_FATAL = 1000 + 11

    - Communication errors with platform / OS service (service is non-recoverable)

- enumerator QNN\_COMMON\_ERROR\_GENERAL = 1000 + 100

    - General error, which has not been identified as any other error type.

- enumerator QNN\_COMMON\_MAX\_ERROR = 1999

    - 

- enumerator QNN\_COMMON\_ERROR\_UNDEFINED = 0x7FFFFFFF

    -

- enum QnnProperty\_Error\_t

    - QNN Property API result / error codes.

*Values:*

- enumerator QNN\_PROPERTY\_MIN\_ERROR = 2000

    - 

- enumerator QNN\_PROPERTY\_NO\_ERROR = 0

    - 

- enumerator QNN\_PROPERTY\_SUPPORTED = 0

    - Property in question is supported.

- enumerator QNN\_PROPERTY\_NOT\_SUPPORTED = [QNN\_COMMON\_ERROR\_NOT\_SUPPORTED](https://docs.qualcomm.com/doc/80-63442-10/topic/api_error_codes.html#_CPPv4N17QnnCommon_Error_t30QNN_COMMON_ERROR_NOT_SUPPORTEDE)

    - Property in question not supported.

- enumerator QNN\_PROPERTY\_ERROR\_UNKNOWN\_KEY = 2000 + 0

    - Backend did not recognize the property key.

- enumerator QNN\_PROPERTY\_MAX\_ERROR = 2999

    - 

- enumerator QNN\_PROPERTY\_ERROR\_UNDEFINED = 0x7FFFFFFF

    -

- enum QnnOpPackage\_Error\_t

    - QNN OpPackage API result / error codes.

*Values:*

- enumerator QNN\_OP\_PACKAGE\_MIN\_ERROR = 3000

    - 

- enumerator QNN\_OP\_PACKAGE\_NO\_ERROR = 0

    - 

- enumerator QNN\_OP\_PACKAGE\_ERROR\_UNSUPPORTED\_FEATURE = [QNN\_COMMON\_ERROR\_NOT\_SUPPORTED](https://docs.qualcomm.com/doc/80-63442-10/topic/api_error_codes.html#_CPPv4N17QnnCommon_Error_t30QNN_COMMON_ERROR_NOT_SUPPORTEDE)

    - There is optional API component that is not supported yet. See QnnProperty.

- enumerator QNN\_OP\_PACKAGE\_ERROR\_LIBRARY\_ALREADY\_INITIALIZED = 3000 + 0

    - Op package library was already initialized.

- enumerator QNN\_OP\_PACKAGE\_ERROR\_LIBRARY\_NOT\_INITIALIZED = 3000 + 1

    - Attempt to call a function in an uninitialized op package library.

- enumerator QNN\_OP\_PACKAGE\_ERROR\_INVALID\_HANDLE = 3000 + 2

    - An invalid op package handle was provided.

- enumerator QNN\_OP\_PACKAGE\_ERROR\_INVALID\_INFRASTRUCTURE = 3000 + 100

    - Invalid infrastructure object used in initializing op package.

- enumerator QNN\_OP\_PACKAGE\_ERROR\_INVALID\_INFO = 3000 + 101

    - Invalid op package info object used in initializing op package.

- enumerator QNN\_OP\_PACKAGE\_ERROR\_VALIDATION\_FAILURE = 3000 + 110

    - Op configuration failed validation.

- enumerator QNN\_OP\_PACKAGE\_ERROR\_INVALID\_ARGUMENT = 3000 + 200

    - Invalid function argument.

- enumerator QNN\_OP\_PACKAGE\_ERROR\_GENERAL = [QNN\_COMMON\_ERROR\_GENERAL](https://docs.qualcomm.com/doc/80-63442-10/topic/api_error_codes.html#_CPPv4N17QnnCommon_Error_t24QNN_COMMON_ERROR_GENERALE)

    - Indicates an error has occurred due to a condition unforeseen by QNN, and possibly meaningful only in the context of the particular op package. Unless otherwise noted, any op package function may return this error.

- enumerator QNN\_OP\_PACKAGE\_MAX\_ERROR = 3999

    - 

- enumerator QNN\_OP\_PACKAGE\_ERROR\_UNDEFINED = 0x7FFFFFFF

    -

- enum QnnBackend\_Error\_t

    - QNN Backend API result / error codes.

*Values:*

- enumerator QNN\_BACKEND\_MIN\_ERROR = 4000

    - 

- enumerator QNN\_BACKEND\_NO\_ERROR = 0

    - Qnn Backend success.

- enumerator QNN\_BACKEND\_ERROR\_MEM\_ALLOC = [QNN\_COMMON\_ERROR\_MEM\_ALLOC](https://docs.qualcomm.com/doc/80-63442-10/topic/api_error_codes.html#_CPPv4N17QnnCommon_Error_t26QNN_COMMON_ERROR_MEM_ALLOCE)

    - General error relating to memory allocation in Backend API.

- enumerator QNN\_BACKEND\_ERROR\_UNSUPPORTED\_PLATFORM = [QNN\_COMMON\_ERROR\_PLATFORM\_NOT\_SUPPORTED](https://docs.qualcomm.com/doc/80-63442-10/topic/api_error_codes.html#_CPPv4N17QnnCommon_Error_t39QNN_COMMON_ERROR_PLATFORM_NOT_SUPPORTEDE)

    - Backend attempted to be created on an unsupported platform.

- enumerator QNN\_BACKEND\_ERROR\_CANNOT\_INITIALIZE = 4000 + 0

    - Backend failed to initialize.

- enumerator QNN\_BACKEND\_ERROR\_TERMINATE\_FAILED = 4000 + 2

    - Failed to free allocated resources during termination.

- enumerator QNN\_BACKEND\_ERROR\_NOT\_SUPPORTED = 4000 + 3

    - Backend does not support requested functionality.

- enumerator QNN\_BACKEND\_ERROR\_INVALID\_ARGUMENT = 4000 + 4

    - Invalid function argument.

- enumerator QNN\_BACKEND\_ERROR\_OP\_PACKAGE\_NOT\_FOUND = 4000 + 5

    - Could not find specified op package.

- enumerator QNN\_BACKEND\_ERROR\_OP\_PACKAGE\_IF\_PROVIDER\_NOT\_FOUND = 4000 + 6

    - Could not load interface provider from op package library.

- enumerator QNN\_BACKEND\_ERROR\_OP\_PACKAGE\_REGISTRATION\_FAILED = 4000 + 7

    - Failed to register op package.

- enumerator QNN\_BACKEND\_ERROR\_OP\_PACKAGE\_UNSUPPORTED\_VERSION = 4000 + 8

    - Backend does not support the op config’s interface version.

- enumerator QNN\_BACKEND\_ERROR\_OP\_PACKAGE\_DUPLICATE = 4000 + 9

    - An Op with the same package name and op name was already registered.

- enumerator QNN\_BACKEND\_ERROR\_INCONSISTENT\_CONFIG = 4000 + 10

    - Inconsistent backend configuration.

- enumerator QNN\_BACKEND\_ERROR\_INVALID\_HANDLE = 4000 + 11

    - Invalid backend handle.

- enumerator QNN\_BACKEND\_ERROR\_INVALID\_CONFIG = 4000 + 12

    - Invalid config.

- enumerator QNN\_BACKEND\_MAX\_ERROR = 4999

    - 

- enumerator QNN\_BACKEND\_ERROR\_UNDEFINED = 0x7FFFFFFF

    -

- enum QnnContext\_Error\_t

    - QNN Context API result / error codes.

*Values:*

- enumerator QNN\_CONTEXT\_MIN\_ERROR = 5000

    - 

- enumerator QNN\_CONTEXT\_NO\_ERROR = 0

    - Qnn context success.

- enumerator QNN\_CONTEXT\_ERROR\_UNSUPPORTED\_FEATURE = [QNN\_COMMON\_ERROR\_NOT\_SUPPORTED](https://docs.qualcomm.com/doc/80-63442-10/topic/api_error_codes.html#_CPPv4N17QnnCommon_Error_t30QNN_COMMON_ERROR_NOT_SUPPORTEDE)

    - There is optional API component that is not supported yet. See QnnProperty.

- enumerator QNN\_CONTEXT\_ERROR\_MEM\_ALLOC = [QNN\_COMMON\_ERROR\_MEM\_ALLOC](https://docs.qualcomm.com/doc/80-63442-10/topic/api_error_codes.html#_CPPv4N17QnnCommon_Error_t26QNN_COMMON_ERROR_MEM_ALLOCE)

    - Context-specific memory allocation/deallocation failure.

- enumerator QNN\_CONTEXT\_ERROR\_INVALID\_ARGUMENT = 5000 + 0

    - An argument to QNN context API is deemed invalid by a backend.

- enumerator QNN\_CONTEXT\_ERROR\_CTX\_DOES\_NOT\_EXIST = 5000 + 1

    - A QNN context has not yet been created in the backend.

- enumerator QNN\_CONTEXT\_ERROR\_INVALID\_HANDLE = 5000 + 2

    - Invalid/NULL QNN context handle.

- enumerator QNN\_CONTEXT\_ERROR\_NOT\_FINALIZED = 5000 + 3

    - Attempting an operation when graphs in a context haven’t been finalized.

- enumerator QNN\_CONTEXT\_ERROR\_BINARY\_VERSION = 5000 + 4

    - Attempt to access context binary with an incompatible version.

- enumerator QNN\_CONTEXT\_ERROR\_CREATE\_FROM\_BINARY = 5000 + 5

    - Failure to create context from binary.

- enumerator QNN\_CONTEXT\_ERROR\_GET\_BINARY\_SIZE\_FAILED = 5000 + 6

    - Failure to get size of a QNN serialized context.

- enumerator QNN\_CONTEXT\_ERROR\_GET\_BINARY\_FAILED = 5000 + 7

    - Failure to generate a QNN serialized context.

- enumerator QNN\_CONTEXT\_ERROR\_BINARY\_CONFIGURATION = 5000 + 8

    - Invalid context binary configuration.

- enumerator QNN\_CONTEXT\_ERROR\_SET\_PROFILE = 5000 + 9

    - Failure to set profile.

- enumerator QNN\_CONTEXT\_ERROR\_INVALID\_CONFIG = 5000 + 10

    - Invalid config.

- enumerator QNN\_CONTEXT\_ERROR\_BINARY\_SUBOPTIMAL = 5000 + 11

    - Attempt to create a context from suboptimal binary.

- enumerator QNN\_CONTEXT\_ERROR\_ABORTED = 5000 + 12

    - Call aborted early due to a QnnSignal\_trigger call issued to the observed signal object.

- enumerator QNN\_CONTEXT\_ERROR\_TIMED\_OUT = 5000 + 13

    - Call aborted early due to a QnnSignal timeout.

- enumerator QNN\_CONTEXT\_ERROR\_INCREMENT\_INVALID\_BUFFER = 5000 + 14

    - Incremental Binary Buffer was not allocated by backend.

- enumerator QNN\_CONTEXT\_MAX\_ERROR = 5999

    - 

- enumerator QNN\_CONTEXT\_ERROR\_UNDEFINED = 0x7FFFFFFF

    -

- enum QnnGraph\_Error\_t

    - QNN Graph API result / error codes.

*Values:*

- enumerator QNN\_GRAPH\_MIN\_ERROR = 6000

    - 

- enumerator QNN\_GRAPH\_NO\_ERROR = 0

    - Qnn Graph success.

- enumerator QNN\_GRAPH\_ERROR\_UNSUPPORTED\_FEATURE = [QNN\_COMMON\_ERROR\_NOT\_SUPPORTED](https://docs.qualcomm.com/doc/80-63442-10/topic/api_error_codes.html#_CPPv4N17QnnCommon_Error_t30QNN_COMMON_ERROR_NOT_SUPPORTEDE)

    - There is optional API component that is not supported yet. See QnnProperty.

- enumerator QNN\_GRAPH\_ERROR\_MEM\_ALLOC = [QNN\_COMMON\_ERROR\_MEM\_ALLOC](https://docs.qualcomm.com/doc/80-63442-10/topic/api_error_codes.html#_CPPv4N17QnnCommon_Error_t26QNN_COMMON_ERROR_MEM_ALLOCE)

    - General error relating to memory allocation in processing graph API.

- enumerator QNN\_GRAPH\_ERROR\_GENERAL = [QNN\_COMMON\_ERROR\_GENERAL](https://docs.qualcomm.com/doc/80-63442-10/topic/api_error_codes.html#_CPPv4N17QnnCommon_Error_t24QNN_COMMON_ERROR_GENERALE)

    - General type of graph error, which has not been identified as any other error type. Any Graph API can return this error code.

- enumerator QNN\_GRAPH\_ERROR\_INVALID\_ARGUMENT = 6000 + 0

    - An argument to QNN API is deemed invalid by a backend.

- enumerator QNN\_GRAPH\_ERROR\_INVALID\_HANDLE = 6000 + 1

    - Invalid graph handle.

- enumerator QNN\_GRAPH\_ERROR\_GRAPH\_DOES\_NOT\_EXIST = 6000 + 2

    - No graph with specified info is registered in the backend.

- enumerator QNN\_GRAPH\_ERROR\_INVALID\_NAME = 6000 + 3

    - Invalid or duplicate graph name.

- enumerator QNN\_GRAPH\_ERROR\_INVALID\_TENSOR = 6000 + 4

    - Invalid or NULL QNN tensor.

- enumerator QNN\_GRAPH\_ERROR\_INVALID\_OP\_CONFIG = 6000 + 5

    - Some elements in the op config data are invalid.

- enumerator QNN\_GRAPH\_ERROR\_SET\_PROFILE = 6000 + 6

    - Failure to set profile.

- enumerator QNN\_GRAPH\_ERROR\_UNCONNECTED\_NODE = 6000 + 7

    - Node added before its dependent node(s)

- enumerator QNN\_GRAPH\_ERROR\_CREATE\_FAILED = 6000 + 20

    - Failure in creating graph with specified configuration.

- enumerator QNN\_GRAPH\_ERROR\_OPTIMIZATION\_FAILED = 6000 + 21

    - Graph couldn’t be optimized with specified list of ops or config.

- enumerator QNN\_GRAPH\_ERROR\_FINALIZE\_FAILED = 6000 + 22

    - Graph finalize failed.

- enumerator QNN\_GRAPH\_ERROR\_GRAPH\_NOT\_FINALIZED = 6000 + 23

    - Attempt to execute graph before finalizing it.

- enumerator QNN\_GRAPH\_ERROR\_GRAPH\_FINALIZED = 6000 + 24

    - Attempt to modify graph after finalizing it.

- enumerator QNN\_GRAPH\_ERROR\_EXECUTION\_ASYNC\_FIFO\_FULL = 6000 + 25

    - FIFO queue cannot register any more async execution requests.

- enumerator QNN\_GRAPH\_ERROR\_SIGNAL\_IN\_USE = 6000 + 30

    - A control signal object was provided to a call, but that signal object is already in-use by another call.

- enumerator QNN\_GRAPH\_ERROR\_ABORTED = 6000 + 31

    - Call aborted early due to a QnnSignal\_trigger call issued to the observed signal object.

- enumerator QNN\_GRAPH\_ERROR\_PROFILE\_IN\_USE = 6000 + 32

    - Attempt to bind to a graph a profile handle that is already in-use by another graph.

- enumerator QNN\_GRAPH\_ERROR\_TIMED\_OUT = 6000 + 33

    - Call aborted early due to a QnnSignal timeout.

- enumerator QNN\_GRAPH\_ERROR\_SUBGRAPH = 6000 + 34

    - Operation not permitted on a subgraph.

- enumerator QNN\_GRAPH\_ERROR\_DISABLED = 6000 + 35

    - Graph is not enabled.

- enumerator QNN\_GRAPH\_ERROR\_DYNAMIC\_TENSOR\_SHAPE = 6000 + 36

    - Dynamic tensor shape error.

- enumerator QNN\_GRAPH\_ERROR\_TENSOR\_SPARSITY = 6000 + 37

    - Tensor sparsity error.

- enumerator QNN\_GRAPH\_ERROR\_EARLY\_TERMINATION = 6000 + 38

    - Early termination error.

- enumerator QNN\_GRAPH\_ERROR\_INVALID\_CONTEXT = 6000 + 39

    - Invalid context error.

- enumerator QNN\_GRAPH\_MAX\_ERROR = 6999

    - 

- enumerator QNN\_GRAPH\_ERROR\_UNDEFINED = 0x7FFFFFFF

    -

- enum QnnTensor\_Error\_t

    - QNN Tensor API result / error codes.

*Values:*

- enumerator QNN\_TENSOR\_MIN\_ERROR = 7000

    - 

- enumerator QNN\_TENSOR\_NO\_ERROR = 0

    - Success.

- enumerator QNN\_TENSOR\_ERROR\_INVALID\_HANDLE = 7000 + 1

    - Invalid context/graph handle in creating tensor.

- enumerator QNN\_TENSOR\_ERROR\_DOES\_NOT\_EXIST = 7000 + 2

    - Tensor with specified credentials not registered with a context/graph.

- enumerator QNN\_TENSOR\_ERROR\_ALREADY\_EXISTS = 7000 + 3

    - (deprecated) Tensor has already been registered with backend.

- enumerator QNN\_TENSOR\_ERROR\_INVALID\_TENSOR\_PARAM = 7000 + 4

    - Invalid tensor param.

- enumerator QNN\_TENSOR\_ERROR\_UNSUPPORTED\_TENSOR\_PARAM = 7000 + 5

    - This tensor param is currently unsupported.

- enumerator QNN\_TENSOR\_ERROR\_NAME\_HASH\_COLLISION = 7000 + 6

    - (deprecated) A hash collision has occurred with a previously registered tensor’s name.

- enumerator QNN\_TENSOR\_ERROR\_INCOMPATIBLE\_TENSOR\_UPDATE = 7000 + 7

    - Tensor provided for update is invalid.

- enumerator QNN\_TENSOR\_ERROR\_UNSUPPORTED\_FEATURE = [QNN\_COMMON\_ERROR\_NOT\_SUPPORTED](https://docs.qualcomm.com/doc/80-63442-10/topic/api_error_codes.html#_CPPv4N17QnnCommon_Error_t30QNN_COMMON_ERROR_NOT_SUPPORTEDE)

    - There is optional API component that is not supported yet. See QnnProperty.

- enumerator QNN\_TENSOR\_MAX\_ERROR = 7999

    - 

- enumerator QNN\_TENSOR\_ERROR\_UNDEFINED = 0x7FFFFFFF

    -

- enum QnnMem\_Error\_t

    - QNN Mem(ory) API result / error codes.

*Values:*

- enumerator QNN\_MEM\_MIN\_ERROR = 8000

    - 

- enumerator QNN\_MEM\_NO\_ERROR = 0

    - Qnn Memory success.

- enumerator QNN\_MEM\_ERROR\_NOT\_SUPPORTED = [QNN\_COMMON\_ERROR\_NOT\_SUPPORTED](https://docs.qualcomm.com/doc/80-63442-10/topic/api_error_codes.html#_CPPv4N17QnnCommon_Error_t30QNN_COMMON_ERROR_NOT_SUPPORTEDE)

    - Backend does not support requested functionality.

- enumerator QNN\_MEM\_ERROR\_INVALID\_ARGUMENT = 8000 + 0

    - Invalid function argument.

- enumerator QNN\_MEM\_ERROR\_INVALID\_HANDLE = 8000 + 1

    - Invalid memory handle.

- enumerator QNN\_MEM\_ERROR\_ALREADY\_REGISTERED = 8000 + 2

    - Provided memory has already been registered.

- enumerator QNN\_MEM\_ERROR\_MAPPING = 8000 + 3

    - Error in memory mapping.

- enumerator QNN\_MEM\_ERROR\_INVALID\_SHAPE = 8000 + 4

    - Invalid memory shape based on a backend’s memory restrictions (e.g. alignment incompatibility)

- enumerator QNN\_MEM\_ERROR\_UNSUPPORTED\_MEMTYPE = 8000 + 5

    - Backend does not support requested memory type.

- enumerator QNN\_MEM\_MAX\_ERROR = 8999

    - 

- enumerator QNN\_MEM\_ERROR\_UNDEFINED = 0x7FFFFFFF

    -

- enum QnnSignal\_Error\_t

    - QNN Signal API result / error codes.

*Values:*

- enumerator QNN\_SIGNAL\_MIN\_ERROR = 9000

    - 

- enumerator QNN\_SIGNAL\_NO\_ERROR = 0

    - 

- enumerator QNN\_SIGNAL\_ERROR\_UNSUPPORTED = [QNN\_COMMON\_ERROR\_NOT\_SUPPORTED](https://docs.qualcomm.com/doc/80-63442-10/topic/api_error_codes.html#_CPPv4N17QnnCommon_Error_t30QNN_COMMON_ERROR_NOT_SUPPORTEDE)

    - Backend does not support the requested functionality.

- enumerator QNN\_SIGNAL\_ERROR\_SIGNAL\_IN\_USE = 9000 + 0

    - Attempt to reconfigure, free, or supply to a second QNN function call a signal object that is already in use.

- enumerator QNN\_SIGNAL\_ERROR\_SIGNAL\_IDLE = 9000 + 1

    - Signal object is idle and not being used by an outstanding function call.

- enumerator QNN\_SIGNAL\_ERROR\_INVALID\_ARGUMENT = 9000 + 2

    - Invalid configuration error.

- enumerator QNN\_SIGNAL\_ERROR\_INVALID\_HANDLE = 9000 + 3

    - NULL or unrecognized signal handle error.

- enumerator QNN\_SIGNAL\_ERROR\_TIMEOUT = 9000 + 4

    - Timeout error.

- enumerator QNN\_SIGNAL\_ERROR\_INCOMPATIBLE\_SIGNAL\_TYPE = 9000 + 5

    - API supplied with incompatible signal type.

- enumerator QNN\_SIGNAL\_ERROR\_MEM\_ALLOC = [QNN\_COMMON\_ERROR\_MEM\_ALLOC](https://docs.qualcomm.com/doc/80-63442-10/topic/api_error_codes.html#_CPPv4N17QnnCommon_Error_t26QNN_COMMON_ERROR_MEM_ALLOCE)

    - 

- enumerator QNN\_SIGNAL\_MAX\_ERROR = 9999

    - 

- enumerator QNN\_SIGNAL\_ERROR\_UNDEFINED = 0x7FFFFFFF

    -

- enum QnnLog\_Error\_t

    - QNN Log API result / error codes.

*Values:*

- enumerator QNN\_LOG\_MIN\_ERROR = 11000

    - 

- enumerator QNN\_LOG\_NO\_ERROR = 0

    - Qnn Log success.

- enumerator QNN\_LOG\_ERROR\_MEM\_ALLOC = [QNN\_COMMON\_ERROR\_MEM\_ALLOC](https://docs.qualcomm.com/doc/80-63442-10/topic/api_error_codes.html#_CPPv4N17QnnCommon_Error_t26QNN_COMMON_ERROR_MEM_ALLOCE)

    - General error relating to memory allocation in Log API.

- enumerator QNN\_LOG\_ERROR\_INITIALIZATION = 11000 + 2

    - Unable to initialize logging.

- enumerator QNN\_LOG\_ERROR\_INVALID\_ARGUMENT = 11000 + 3

    - Invalid argument passed.

- enumerator QNN\_LOG\_ERROR\_INVALID\_HANDLE = 11000 + 4

    - Invalid log handle passed.

- enumerator QNN\_LOG\_MAX\_ERROR = 11999

    - 

- enumerator QNN\_LOG\_ERROR\_UNDEFINED = 0x7FFFFFFF

    -

- enum QnnProfile\_Error\_t

    - QNN Profile API result / error codes.

*Values:*

- enumerator QNN\_PROFILE\_MIN\_ERROR = 12000

    - 

- enumerator QNN\_PROFILE\_NO\_ERROR = 0

    - Qnn Profile success.

- enumerator QNN\_PROFILE\_ERROR\_UNSUPPORTED = [QNN\_COMMON\_ERROR\_NOT\_SUPPORTED](https://docs.qualcomm.com/doc/80-63442-10/topic/api_error_codes.html#_CPPv4N17QnnCommon_Error_t30QNN_COMMON_ERROR_NOT_SUPPORTEDE)

    - Backend does not support requested functionality.

- enumerator QNN\_PROFILE\_ERROR\_INVALID\_ARGUMENT = [QNN\_COMMON\_ERROR\_INVALID\_ARGUMENT](https://docs.qualcomm.com/doc/80-63442-10/topic/api_error_codes.html#_CPPv4N17QnnCommon_Error_t33QNN_COMMON_ERROR_INVALID_ARGUMENTE)

    - Invalid function argument.

- enumerator QNN\_PROFILE\_ERROR\_MEM\_ALLOC = [QNN\_COMMON\_ERROR\_MEM\_ALLOC](https://docs.qualcomm.com/doc/80-63442-10/topic/api_error_codes.html#_CPPv4N17QnnCommon_Error_t26QNN_COMMON_ERROR_MEM_ALLOCE)

    - General error relating to memory allocation in Profile API.

- enumerator QNN\_PROFILE\_ERROR\_INVALID\_HANDLE = 12000 + 0

    - Invalid/NULL QNN profile handle.

- enumerator QNN\_PROFILE\_ERROR\_HANDLE\_IN\_USE = 12000 + 1

    - Attempt to free or reconfigure a profile handle that is in-use.

- enumerator QNN\_PROFILE\_ERROR\_INCOMPATIBLE\_EVENT = 12000 + 2

    - Event is incompatible with API.

- enumerator QNN\_PROFILE\_MAX\_ERROR = 12999

    - 

- enumerator QNN\_PROFILE\_ERROR\_UNDEFINED = 0x7FFFFFFF

    -

- enum QnnSystemContext\_Error\_t

    - QNN System Context API result / error codes.

*Values:*

- enumerator QNN\_SYSTEM\_CONTEXT\_MINERROR = 30000

    - 

- enumerator QNN\_SYSTEM\_CONTEXT\_NO\_ERROR = [QNN\_SYSTEM\_COMMON\_NO\_ERROR](https://docs.qualcomm.com/doc/80-63442-10/topic/api-rst_file_include_QNN_System_QnnSystemCommon_h.html#_CPPv4N23QnnSystemCommon_Error_t26QNN_SYSTEM_COMMON_NO_ERRORE)

    - Qnn System Context success.

- enumerator QNN\_SYSTEM\_CONTEXT\_ERROR\_UNSUPPORTED\_FEATURE = [QNN\_SYSTEM\_COMMON\_ERROR\_UNSUPPORTED\_FEATURE](https://docs.qualcomm.com/doc/80-63442-10/topic/api-rst_file_include_QNN_System_QnnSystemCommon_h.html#_CPPv4N23QnnSystemCommon_Error_t43QNN_SYSTEM_COMMON_ERROR_UNSUPPORTED_FEATUREE)

    - There is optional API component that is not supported yet.

- enumerator QNN\_SYSTEM\_CONTEXT\_ERROR\_INVALID\_HANDLE = [QNN\_SYSTEM\_COMMON\_ERROR\_INVALID\_HANDLE](https://docs.qualcomm.com/doc/80-63442-10/topic/api-rst_file_include_QNN_System_QnnSystemCommon_h.html#_CPPv4N23QnnSystemCommon_Error_t38QNN_SYSTEM_COMMON_ERROR_INVALID_HANDLEE)

    - QNN System Context invalid handle.

- enumerator QNN\_SYSTEM\_CONTEXT\_ERROR\_INVALID\_ARGUMENT = [QNN\_SYSTEM\_COMMON\_ERROR\_INVALID\_ARGUMENT](https://docs.qualcomm.com/doc/80-63442-10/topic/api-rst_file_include_QNN_System_QnnSystemCommon_h.html#_CPPv4N23QnnSystemCommon_Error_t40QNN_SYSTEM_COMMON_ERROR_INVALID_ARGUMENTE)

    - One or more arguments to a System Context API is/are NULL/invalid.

- enumerator QNN\_SYSTEM\_CONTEXT\_ERROR\_OPERATION\_FAILED = [QNN\_SYSTEM\_CONTEXT\_MINERROR](https://docs.qualcomm.com/doc/80-63442-10/topic/api_error_codes.html#_CPPv4N24QnnSystemContext_Error_t27QNN_SYSTEM_CONTEXT_MINERRORE) + 2

    - Generic Failure in achieving the objective of a System Context API.

- enumerator QNN\_SYSTEM\_CONTEXT\_ERROR\_MALFORMED\_BINARY = [QNN\_SYSTEM\_CONTEXT\_MINERROR](https://docs.qualcomm.com/doc/80-63442-10/topic/api_error_codes.html#_CPPv4N24QnnSystemContext_Error_t27QNN_SYSTEM_CONTEXT_MINERRORE) + 10

    - Malformed context binary.

- enumerator QNN\_SYSTEM\_CONTEXT\_MAXERROR = 49999

    -

- enum QnnInterface\_Error\_t

    - QNN Interface API result / error codes.

*Values:*

- enumerator QNN\_INTERFACE\_MIN\_ERROR = 60000

    - 

- enumerator QNN\_INTERFACE\_NO\_ERROR = 0

    - 

- enumerator QNN\_INTERFACE\_ERROR\_NOT\_SUPPORTED = [QNN\_COMMON\_ERROR\_NOT\_SUPPORTED](https://docs.qualcomm.com/doc/80-63442-10/topic/api_error_codes.html#_CPPv4N17QnnCommon_Error_t30QNN_COMMON_ERROR_NOT_SUPPORTEDE)

    - 

- enumerator QNN\_INTERFACE\_ERROR\_INVALID\_PARAMETER = [QNN\_COMMON\_ERROR\_INVALID\_ARGUMENT](https://docs.qualcomm.com/doc/80-63442-10/topic/api_error_codes.html#_CPPv4N17QnnCommon_Error_t33QNN_COMMON_ERROR_INVALID_ARGUMENTE)

    - 

- enumerator QNN\_INTERFACE\_MAX\_ERROR = 60999

    -

## Backend specific error codes

- [DSP](https://docs.qualcomm.com/doc/80-63442-10/topic/dsp_api_error_codes.html)
- [HTP](https://docs.qualcomm.com/doc/80-63442-10/topic/htp_api_error_codes.html)
- [HTA](https://docs.qualcomm.com/doc/80-63442-10/topic/hta_api_error_codes.html)

Last Published: Jun 04, 2026

[Previous Topic
Supported Capabilities](https://docs.qualcomm.com/bundle/publicresource/80-63442-10/topics/supported_capabilities.md) [Next Topic
Glossary](https://docs.qualcomm.com/bundle/publicresource/80-63442-10/topics/general_glossary.md)