1# Window 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## 1300001 Repeated Operation 8**Error Message** 9 10Repeated operation. 11 12**Description** 13 14This error code is reported when a repeated operation is performed. 15 16**Possible Causes** 17 18The window to create already exists. 19 20**Solution** 21 22Before creating a window, check whether the window already exists. If it already exists, use it directly. 23 24## 1300002 Abnormal Window State 25**Error Message** 26 27This window state is abnormal. 28 29**Description** 30 31This error code is reported when you operate a window in an abnormal state, for example, a window that is not created yet or has been destroyed. 32 33**Possible Causes** 34 35The window to operate is not created or has been destroyed. 36 37**Solution** 38 39Operate the window that exists. 40 41## 1300003 Abnormal Window Manager Service 42**Error Message** 43 44This window manager service works abnormally. 45 46**Description** 47 48This error code is reported when the window manager service is abnormal. 49 50**Possible Causes** 51 52The internal services of the window are not started normally. 53 54**Solution** 55 56Try again later or restart the device. 57 58## 1300004 Unauthorized Operation 59**Error Message** 60 61Unauthorized operation. 62 63**Description** 64 65This error code is reported when the API does not have the required permissions to operate an object. 66 67**Possible Causes** 68 69The window object of another process is operated. 70 71**Solution** 72 73Check whether unauthorized operations are performed on the object of another process. If yes, delete the operations. 74 75## 1300005 Abnormal Window Stage 76**Error Message** 77 78This window stage is abnormal. 79 80**Description** 81 82This error code is reported when you operate a window stage in the abnormal state, for example, a window stage that has been destroyed. 83 84**Possible Causes** 85 86The window stage has been destroyed when being operated. 87 88**Solution** 89 90Before operating a window stage, check whether it exists. 91 92## 1300006 Abnormal Window Context 93**Error Message** 94 95This window context is abnormal. 96 97**Description** 98 99This error code is reported when you operate a window context in the abnormal state, for example, a window context that has been destroyed. 100 101**Possible Causes** 102 103The window context has been destroyed when being operated. 104 105**Solution** 106 107Before operating the window context, check whether it exists. 108 109## 1300007 Application Startup Failure by WindowExtensionAbility 110 111**Error Message** 112 113Failed to start the ability. 114 115**Description** 116 117This error code is reported when a WindowExtensionAbility fails to start an application. 118 119**Possible Causes** 120 121Incorrect parameters are passed into the API used by the WindowExtensionAbility to start the application. 122 123**Solution** 124 125Pass in the correct parameters. 126 127## 1300008 Display Device Exception 128 129**Error Message** 130 131The display device is abnormal. 132 133**Description** 134 135This error code is reported when the display device is abnormal. 136 137**Possible Causes** 138 1391. The display device is not ready. 1402. The display device is removed. 1413. The display device is damaged. 142 143**Solution** 144 145Ensure that the display device is normal. 146 147## 1300009 Invalid Parent Window 148 149**Error Message** 150 151The parent window is invalid. 152 153**Description** 154 155This error code is reported when the parent window is invalid. 156 157**Possible Causes** 158 1591. No parent window is bound. 1602. The parent window bound is abnormal. For example, the parent window has been destroyed. 161 162**Solution** 163 1641. Ensure that the subwindow is bound to the parent window. 1652. Ensure that the status of the parent window is normal. 166 167## 1300010 Unsupported Operation in the Current Window Mode 168 169**Error Message** 170 171The operation in the current window status is invalid. 172 173**Description** 174 175This error code is reported when the operation is not supported in the current window mode. 176 177**Possible Causes** 178 1791. Perform the move operation in the full-screen or split-screen window. 1802. Perform the resize operation in the full-screen or split-screen window. 181 182**Solution** 183 1841. Do not move the full-screen or split-screen window. 1852. Do not resize the full-screen or split-screen window. 186 187## 1300011 Failure in Destroying a PiP Window 188 189**Error Message** 190 191Failed to destroy the PiP window. 192 193**Description** 194 195This error code is reported when destroying a PiP window fails. 196 197**Possible Causes** 198 199The pointer to the PiP window is null. 200 201**Solution** 202 203No action is required. 204 205## 1300012 Abnormal PiP Window Status 206 207**Error Message** 208 209The PiP window state is abnormal. 210 211**Description** 212 213This error code is reported when the PiP window status is abnormal. 214 215**Possible Causes** 216 217The PiP window status is abnormal. 218 219**Solution** 220 221No action is required. 222 223## 1300013 Failure in Creating a PiP Window 224 225**Error Message** 226 227Failed to create the PiP window. 228 229**Description** 230 231This error code is reported when creating a PiP window fails. 232 233**Possible Causes** 234 2351. Incorrect parameters are passed in to create the PiP window. 2362. You attempt to start PiP in a non-full-screen window. 237 238**Solution** 239 2401. Correct the input parameters. 2412. Do not start PiP in a non-full-screen window. 242 243## 1300014 PiP Internal Error 244 245**Error Message** 246 247PiP internal error. 248 249**Description** 250 251This error code is reported when an internal error occurs in PiP. 252 253**Possible Causes** 254 255An internal error occurs. 256 257**Solution** 258 259No action is required. 260 261## 1300015 Repeated PiP Operations 262 263**Error Message** 264 265Repeated PiP operation. 266 267**Description** 268 269This error code is reported when a repeated PiP operation is performed. 270 271**Possible Causes** 272 273You attempt to start PiP when it is already started or stop it when it is already stopped. 274 275**Solution** 276 277Do not start or stop PiP repeatedly. 278 279## 1001 Window Null Pointer Exception<sup>(deprecated)</sup> 280**Error Message** 281 282A window null pointer occurs. 283 284**Description** 285 286This error code is reported when you operate a window pointed to by a null pointer. 287 288**Possible Causes** 289 290A null pointer is used. 291 292**Solution** 293 294Operate the window that exists. 295 296## 1002 Invalid Window Type<sup>(deprecated)</sup> 297**Error Message** 298 299This window type is invalid. 300 301**Description** 302 303This error code is reported when the window type is invalid. 304 305**Possible Causes** 306 307An invalid window type is used. For details about valid window types, see [WindowType](js-apis-window.md#windowtype7). 308 309**Solution** 310 311Use a window type supported. 312 313## 1003 Invalid Window Parameter<sup>(deprecated)</sup> 314**Error Message** 315 316This window parameter is invalid. 317 318**Description** 319 320This error code is reported when a window parameter is invalid. 321 322**Possible Causes** 323 324Invalid parameters are passed in. 325 326**Solution** 327 328Correct the parameters. 329 330## 1004 Ability Service Exception<sup>(deprecated)</sup> 331**Error Message** 332 333This system ability service works abnormally. 334 335**Description** 336 337This error code is reported when the ability service is abnormal. 338 339**Possible Causes** 340 341When the window is destroyed, the proxy fails to be initialized. 342 343**Solution** 344 345Restart the device and try again. 346 347## 1005 IPC Failure<sup>(deprecated)</sup> 348**Error Message** 349 350This window IPC failed. 351 352**Description** 353 354This error code is reported when IPC fails. 355 356**Possible Causes** 357 358The window parameters fail to be transferred. 359 360**Solution** 361 362Before operating a window, ensure that the client and server services in the window are normal. 363 364## 1007 Application Startup Failure by WindowExtensionAbility<sup>(deprecated)</sup> 365**Error Message** 366 367Failed to start the ability. 368 369**Description** 370 371This error code is reported when a WindowExtensionAbility fails to start an application. 372 373**Possible Causes** 374 375Incorrect parameters are passed into the API used by the WindowExtensionAbility to start the application. 376 377**Solution** 378 379Pass in the correct parameters. 380