• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# PerfTest 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## 32400001 Initialization Failed
8
9**Error Message**
10
11Initialization failed.
12
13**Description**
14
15The framework fails to be initialized.
16
17**Possible Causes**
18
19The bundle name of the application cannot be obtained.
20
21**Solution**
22
23Run the **ps** command to check whether the application process exists. Ensure that the application process exists.
24
25## 32400002 Internal Error
26**Error Message**
27
28Internal error.
29
30**Description**
31
32An internal error occurs in the framework.
33
34**Possible Causes**
35
361. IPC transmission fails.
372. The **PerfTest** object does not exist.
38
39**Solution**
40
411. Retry the IPC transmission.
422. Check whether the **PerfTest** object has been destroyed. If yes, create a **PerfTest** object again. For details, see the [create](js-apis-perftest.md#create) API.
43
44## 32400003 Parameter Verification Failed
45**Error Message**
46
47Parameter verification failed.
48
49**Description**
50
51Parameter verification failed.
52
53**Possible Causes**
54
55The parameter type is incorrect or the parameter value is out of the specified range.
56
57**Solution**
58
59Check whether the input parameters of the API meet the requirements.
60
61## 32400004 Failed to Execute the Callback
62**Error Message**
63
64Failed to execute the callback.
65
66**Description**
67
68Failed to execute the callback.
69
70**Possible Causes**
71
721. An exception is thrown in the callback.
732. The callback execution times out.
74
75**Solution**
76
77Check the internal logic of the callback to ensure that no exception is thrown and that the callback execution does not time out.
78
79## 32400005 Failed to Collect Performance Data
80**Error Message**
81
82Failed to collect metric data.
83
84**Description**
85
86Failed to collect performance data.
87
88**Possible Causes**
89
90The application process does not exist during performance data collection.
91
92**Solution**
93
94Run the **ps** command to check whether the application process exists during performance data collection. Ensure that the application process exists.
95
96## 32400006 Failed to Obtain Performance Data
97**Error Message**
98
99Failed to obtain the measurement result.
100
101**Description**
102
103Failed to obtain the test data of the specified performance metric.
104
105**Possible Causes**
106
107The data collection is not complete.
108
109**Solution**
110
111Ensure that the [PerfTest.run](js-apis-perftest.md#run) API has been executed and no exception is thrown. Ensure that the data collection is complete before obtaining the specified data.
112
113## 32400007 API Does Not Support Concurrent Calls
114**Error Message**
115
116The API does not support concurrent calls.
117
118**Description**
119
120The API does not support concurrent calls.
121
122**Possible Causes**
123
124The async API does not use **await** to wait until the asynchronous execution is complete. As a result, the API is called concurrently.
125
126**Solution**
127
128Use **await** to wait until the asynchronous function execution is complete.
129