harmony 鸿蒙backgroundTaskManager Error Codes
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.
Description
This error code is reported when a memory operation fails.
Possible Causes
- A memory leak occurs.
- The system memory is insufficient.
Solution
- Release the memory.
- Check whether memory leak occurs.
9800002 Parcel Operation Failure
Error Message
Parcel operation failed.
Description
This error code is reported when the read or write operation fails during IPC.
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
Internal transaction failed.
Description
This error code is reported when IPC fails.
Possible Causes
IPC fails.
Solution
Try again later or restart the device.
9800004 System Service Failure
Error Message
System service operation failed.
Description
This error code is reported when the client process fails to obtain the system service.
Possible Causes
- The system service is not started.
- The system service is abnormal.
Solution
Try again later or restart the device.
9800005 Continuous Task Verification Failure
Error Message
Continuous task verification failed.
Description
This error code is reported when continuous task verification fails.
Possible Causes
- The application repeatedly requests a continuous task.
- The application repeatedly cancels a continuous task.
- The value of bgMode is invalid because no continuous task type is configured for backgroundModes in the application’s configuration file.
- Only specific devices can request continuous tasks of the KEEPING_TASK type.
Solution
- Check the application code.
- Check whether the application has the system permissions.
- Check the type of the device where the application is located.
- Check the value of backgroundModes.
9800006 Notification Verification Failure for a Continuous Task
Error Message
Notification verification failed for a continuous task.
Description
This error code is reported when notification verification in a continuous task fails.
Possible Causes
- The continuous task resources cached in the resource subsystem fail to be loaded.
- The notification subsystem functions abnormally.
Solution
- Check for the continuous task resources ohos.backgroundtaskmgr.resources.
- Try again later or restart the device.
9800007 Continuous Task Storage Failure
Error Message
Continuous task storage failed.
Description
This error code is reported when information storage in a continuous task fails.
Possible Causes
- Failed to create a file to store the task information.
- Failed to obtain the file path.
- Failed to open the file that stores the task information.
Solution
- Check the /data/service/el1/public/background_task_mgr/running_task file.
- Try again later or restart the device.
9900001 Caller Information Verification Failure for a Transient Task
Error Message
Caller information verification failed for a transient task.
Description
This error code is reported when caller information verification in a transient task fails.
Possible Causes
- Failed to obtain the UID or PID of the caller.
- Failed to obtain the bundle name of the caller.
- The request ID passed in the API used to cancel the transient task is invalid.
Solution
- Check whether the application UID exists.
- Check whether the application has requested a transient task.
- Try again later or restart the device.
9900002 Transient Task Verification Failure
Error Message
Transient task verification failed.
Description
This error code is reported when transient task verification fails.
Possible Causes
- The callback passed in requestSuspendDelay() already exists.
- The callback passed in cancelSuspendDelay() does not exist.
- The application attempts to request a transient task 5 seconds after it switches to the background.
- The application has already requested three transient tasks.
- The application’s daily quota for transient tasks is used up.
Solution
- Check the application code.
- 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 for an energy resource request.
Description
This error code is reported when caller information verification in an energy resource request fails.
Possible Causes
- Failed to obtain the UID or PID of the caller.
- The value of resourceTypes for requesting energy resources exceeds the upper limit.
Solution
Check the input parameters.
你可能感兴趣的鸿蒙文章
harmony 鸿蒙Background Tasks Kit
harmony 鸿蒙BackgroundProcessManager
harmony 鸿蒙TransientTask_DelaySuspendInfo
harmony 鸿蒙background_process_manager.h
harmony 鸿蒙DeviceUsageStatistics Error Codes
harmony 鸿蒙reminderAgentManager Error Codes
harmony 鸿蒙workScheduler Error Codes
harmony 鸿蒙@ohos.WorkSchedulerExtensionAbility (Deferred Task Scheduling Callbacks)
harmony 鸿蒙@ohos.resourceschedule.backgroundProcessManager (Background Child Process Management)
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦