DrawableDescriptor Error Codes

NOTE

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

111001 Internal Error

Error Message

resource loading failed.

Description

This error code is reported when resource loading fails.

Possible Causes

The path does not exist, the resource does not exist, or the file is corrupted.

Solution

Check whether the resource exists or whether the file is corrupted.

111002 Resource Released

Error Message

The native memory referenced by the drawableDescriptor has been released.

Description

This error code is reported when the native memory referenced by DrawableDescriptor has been released. This error occurs when getPixelMap, getForeground, getBackground, getMask, loadSync, or load is called after release is called to release resources.

Possible Causes

After calling release to release the resource of DrawableDescriptor, other APIs of the object are called.

Solution

  1. Before calling APIs such as getPixelMap, use isReleased to check whether the object has been released.
  2. Do not use the DrawableDescriptor object after calling release.