1# DRM Error Codes
2
3> **NOTE**
4>
5> This topic describes only module-specific error codes. For details about universal error codes, see [Universal Error Codes](../errorcode-universal.md).
6
7## 24700101 Unknown Error
8
9**Error Message**
10
11All unknown errors.
12
13**Description**
14
15An unknown error is returned when the API is called.
16
17**Possible Causes**
18
19The plug-in returns an undefined or custom error.
20
21**Procedure**
22
23Refer to the plug-in document to rectify the fault.
24
25## 24700102 Memory Allocation Failure
26
27**Error Message**
28
29Memory allocation failure.
30
31**Description**
32
33This error code is reported if a memory allocation failure or null pointer occurs when an API is called.
34
35**Possible Causes**
36
371. The system does not have sufficient memory for mapping.
382. Invalid instances are not destroyed in time to release the memory.
39
40**Procedure**
41
421. Destroy the existing instances.
432. Create a new instance. If the creation fails, stop related operations.
44
45## 24700103 Unsupported State
46
47**Error Message**
48
49Unsupported state.
50
51**Description**
52
53This operation is not allowed in the current state.
54
55**Possible Causes**
56
57The status of the device certificate or media key is abnormal.
58
59**Procedure**
60
611. Check whether this operation is supported in the current state.
622. Call the API to request a device certificate or media key in the correct state.
63
64## 24700104 Too Many MediaKeySystem Instances
65
66**Error Message**
67
68Too many MediaKeySystem streams.
69
70**Description**
71
72The number of **MediaKeySystem** instances reaches the upper limit.
73
74**Possible Causes**
75
76Invalid **MediaKeySystem** instances are not released in time.
77
78**Procedure**
79
80Release **MediaKeySystem** instances that are no longer used.
81
82## 24700105 Too Many MediaKeySession Instances
83
84**Error Message**
85
86Too many MediaKeySession streams.
87
88**Description**
89
90The number of **MediaKeySession** instances reaches the upper limit.
91
92**Possible Causes**
93
94Invalid **MediaKeySession** instances are not released in time.
95
96**Procedure**
97
98Release **MediaKeySession** instances that are no longer used.
99
100## 24700201 Service Error
101
102**Error Message**
103
104Fatal service error, for example, service died.
105
106**Description**
107
108The IPC service is abnormal.
109
110**Possible Causes**
111
112The system processing is abnormal, for example, system service restart or IPC exceptions.
113
114**Procedure**
115
116Create the service again.
117