harmony 鸿蒙backgroundTaskManager Error Codes

  • 2022-12-05
  • 浏览 (760)

backgroundTaskManager Error Codes

NOTE

This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.

9800001 Memory Operation Failure

Error Message

Memory operation failed.

Possible Causes

  1. A memory leak occurs.
  2. The system memory is insufficient.

Solution

  1. Release the memory.
  2. Check whether memory leak occurs.

9800002 Parcel Operation Failure

Error Message

Parcel operation failed.

Possible Causes

An exception occurs when invoking the MessageParcel object to read or write an object.

Solution

Try again later or restart the device.

9800003 IPC Failure

Error Message

Inner transact failed.

Possible Causes

IPC fails.

Solution

Try again later or restart the device.

9800004 System Service Failure

Error Message

System service operation failed.

Possible Causes

  1. The system service is not started.
  2. The system service is abnormal.

Solution

Try again later or restart the device.

9800005 Continuous Task Verification Failure

Error Message

Background task verification failed.

Possible Causes

  1. The application repeatedly requests a continuous task.
  2. The application repeatedly cancels a continuous task.
  3. The value of bgMode is invalid because no continuous task type is configured for backgroundModes in the application’s configuration file.
  4. A non-PC device requests the continuous task KEEPING_TASK, which is available only for PCs.

Solution

  1. Check the application code.
  2. Check whether the application has the system permissions.
  3. Check the type of the device where the application is located.
  4. Check the value of backgroundModes.

9800006 Notification Verification Failure

Error Message

Notification verification failed.

Possible Causes

  1. The continuous task resources cached in the resource subsystem fail to be loaded.
  2. The notification subsystem functions abnormally.

Solution

  1. Check for the continuous task resources ohos.backgroundtaskmgr.resources.
  2. Try again later or restart the device.

9800007 Continuous Task Storage Failure

Error Message

Task storage failed.

Possible Causes

  1. Failed to create a file to store the task information.
  2. Failed to obtain the file path.
  3. Failed to open the file that stores the task information.

Solution

  1. Check the /data/service/el1/public/background_task_mgr/running_task file.
  2. Try again later or restart the device.

9900001 Caller Information Verification Failure for a Transient Task

Error Message

Caller information verification failed.

Possible Causes

  1. Failed to obtain the UID or PID of the caller.
  2. Failed to obtain the bundle name of the caller.
  3. The request ID passed in the API used to cancel the transient task is invalid.

Solution

  1. Check whether the application UID exists.
  2. Check whether the application has requested a transient task.
  3. Try again later or restart the device.

9900002 Continuous Task Verification Failure

Error Message

Background task verification failed.

Possible Causes

  1. The callback passed in requestSuspendDelay() already exists.
  2. The callback passed in cancelSuspendDelay() does not exist.
  3. The application attempts to request a transient task 5 seconds after it switches to the background.
  4. The application has already requested three transient tasks.
  5. The application’s daily quota for transient tasks is used up.

Solution

  1. Check the application code.
  2. The application should cancel transient tasks immediately after they are complete.

18700001 Caller Information Verification Failure for an Energy Resource Request

Error Message

Caller information verification failed.

Possible Causes

  1. Failed to obtain the UID or PID of the caller.
  2. The value of **resourceTypes **for requesting energy resources exceeds the upper limit.

Solution

Check the input parameters.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Error Codes

harmony 鸿蒙Event Error Codes

harmony 鸿蒙DeviceUsageStatistics Error Codes

harmony 鸿蒙DistributedNotificationService Error Codes

harmony 鸿蒙Distributed Scheduler Error Codes

harmony 鸿蒙Ability Error Codes

harmony 鸿蒙Access Control Error Codes

harmony 鸿蒙Accessibility Error Codes

harmony 鸿蒙Account Management Error Codes

harmony 鸿蒙Animator Error Codes

0  赞