1# Image Error Codes 2 3 4> **NOTE** 5> 6> This topic describes only module-specific error codes. For details about universal error codes, see [Universal Error Codes](../errorcode-universal.md). 7 8## 501 API Call Failed 9 10**Error Message** 11 12Resource unavailable. 13 14**Possible Cause** 15 16The image is transferred across threads, and the original object cannot call the API. 17 18**Solution** 19 20Check the image and follow the instructions to decode it. 21 22## 62980096 Operation Failed 23 24**Error Message** 25 26Transaction operation failed. 27 28**Possible Cause** 29 301. An exception occurs during image upload. 312. Other operations are performed during decoding. 323. Image decoding is not performed as instructed. 334. The memory of the device is insufficient. 345. The processing on the decoding library fails. 35 36**Solution** 37 38Check the image and follow the instructions to decode it. 39 40## 62980097 PixelMap Serialization Failed 41 42**Error Message** 43 44RPC error. 45 46**Possible Cause** 47 481. An exception occurs during image upload. 492. Other operations are performed during decoding. 503. Image decoding is not performed as instructed. 514. The memory of the device is insufficient. 52 53**Solution** 54 55Check the image and follow the instructions to decode it. 56 57## 62980098 Shared Memory Error 58 59**Error Message** 60 61Shared memory does not exist. 62 63**Possible Cause** 64 651. The size of the shared memory is insufficient. 662. It is out-of-bounds access to the shared memory. 673. An invalid pointer is used. 68 69**Solution** 70 71Check the memory usage or restart the device. 72 73## 62980099 Data Error in the Shared Memory 74 75**Error Message** 76 77Shared memory data abnormal. 78 79**Possible Cause** 80 811. The synchronization operation is not correctly performed when data is read from or written to the shared memory. 822. It is out-of-bounds access to the shared memory. 833. An invalid pointer is used. 84 85**Solution** 86 87Restart the device. 88 89## 62980100 Image Decoding Error 90 91**Error Message** 92 93Image decoding abnormal. 94 95**Possible Cause** 96 971. An exception occurs during image upload. 982. Other operations are performed during decoding. 993. Image decoding is not performed as instructed. 1004. The memory of the device is insufficient. 101 102**Solution** 103 104Check the image and follow the instructions to decode it. 105 106## 62980101 Incorrect Input Image Data 107 108**Error Message** 109 110The image data is abnormal. 111 112**Possible Cause** 113 1141. The input image data is incorrect. 1152. The format of the image is incorrect. 1163. The size of the image is incorrect. 117 118**Solution** 119 120Use a valid image. 121 122## 62980102 Memory Allocation Error for Images 123 124**Error Message** 125 126Image malloc abnormal. 127 128**Possible Cause** 129 130The device memory is insufficient or occupied. 131 132**Solution** 133 134Clear the memory and try again. 135 136## 62980103 Unsupported Image Type 137 138**Error Message** 139 140Image types are not supported. 141 142**Possible Cause** 143 144The input image type is not supported. 145 146**Solution** 147 148Change the image type and try again. 149 150## 62980104 Image Initialization Error 151 152**Error Message** 153 154Image initialization abnormal. 155 156**Possible Cause** 157 1581. The image type is not supported. 1592. The image size is not supported. 1603. An error occurs during initialization. 161 162**Solution** 163 164Correct the parameters or user another image. 165 166## 62980105 Failure in Obtaining Image Data 167 168**Error Message** 169 170Failed to get the image data. 171 172**Possible Cause** 173 1741. The device does not support the image type. 1752. Image data is lost. 176 177**Solution** 178 179Correct the image data or use another image. 180 181## 62980106 Too Large Image Data 182 183**Error Message** 184 185The image data is too large. 186 187**Possible Cause** 188 189The image is too large. 190 191**Solution** 192 193Use a smaller image. 194 195## 62980107 Image Conversion Error 196 197**Error Message** 198 199Image conversion abnormal. 200 201**Possible Cause** 202 2031. Image conversion stops unexpectedly. 2042. Encoding parameters are incorrectly set. 205 206**Solution** 207 208Correct the encoding parameters or use another image. 209 210## 62980108 Image Color Conversion Error 211 212**Error Message** 213 214Image color conversion is abnormal. 215 216**Possible Cause** 217 2181. Color conversion is not supported for the image type. 2192. The device is faulty. 220 221**Solution** 222 223Try again or change the image type. 224 225## 62980109 Cropping Error 226 227**Error Message** 228 229Cropping exceptions. 230 231**Possible Cause** 232 2331. Cropping parameters are incorrectly set. 2342. The image data is incorrect. 235 236**Solution** 237 238Correct the cropping parameters or image data. 239 240## 62980110 Incorrect Image Source Data 241 242**Error Message** 243 244The image source data is abnormal. 245 246**Possible Cause** 247 248The image source data is missing or incorrect. 249 250**Solution** 251 252Check the operation procedure or use another image. 253 254## 62980111 Incomplete Image Source Data 255 256**Error Message** 257 258The image source data is incomplete. 259 260**Possible Cause** 261 262The image source data is missing. 263 264**Solution** 265 266Check the operation procedure or use another image. 267 268## 62980112 Image Format Mismatch 269 270**Error Message** 271 272The image format does not match. 273 274**Possible Cause** 275 276The image format does not match. 277 278**Solution** 279 280Use an image in a matched format. 281 282## 62980113 Unknown Image Format 283 284**Error Message** 285 286Unknown image format. 287 288**Possible Cause** 289 290The image format is not supported. 291 292**Solution** 293 294Use another image. 295 296## 62980114 Image Source Not Parsed 297 298**Error Message** 299 300Image source not parsed. 301 302**Possible Cause** 303 304The image source data is incorrect. 305 306**Solution** 307 308Correct the image source data. 309 310## 62980115 Invalid Image Parameter 311 312**Error Message** 313 314Invalid image parameter. 315 316**Possible Cause** 317 318An input parameter is invalid. 319 320**Solution** 321 322Correct the input parameter. 323 324## 62980116 Decoding Failure 325 326**Error Message** 327 328Decoding failed. 329 330**Possible Cause** 331 3321. The decoding process exits abnormally. 3332. The image format is not supported. 3343. No image is read. 335 336**Solution** 337 338Ensure that the image is read or use another image. 339 340## 62980117 Plugin Registration Failure 341 342**Error Message** 343 344Failed to register the plugin. 345 346**Possible Cause** 347 3481. No decoding or encoding plugin of the corresponding format is found. 3492. The data passed in is incorrect. 350 351**Solution** 352 353Correct the input data or use another image. 354 355## 62980118 Plugin Creation Failure 356 357**Error Message** 358 359Failed to create the plugin. 360 361**Possible Cause** 362 3631. No decoding or encoding plugin of the corresponding format is found. 3642. The data passed in is incorrect. 365 366**Solution** 367 368Correct the input data or use another image. 369 370## 62980119 Image Encoding Failure 371 372**Error Message** 373 374Image encoding failed. 375 376**Possible Cause** 377 3781. The encoding format is not supported. 3792. The data passed in is incorrect. 380 381**Solution** 382 383Correct the input data or use another image. 384 385## 62980120 Failure in Adding Pixel Mappings 386 387**Error Message** 388 389Failed to add the pixel mappings. 390 391**Possible Cause** 392 3931. Adding pixel mappings is not supported. 3942. An exception occurs during the addition of the pixel mapping. 395 396**Solution** 397 398Check the operation procedure or use another image. 399 400## 62980121 Hardware Decoding Not Supported 401 402**Error Message** 403 404Image hardware decoding is not supported. 405 406**Possible Cause** 407 408Image hardware decoding is used. 409 410**Solution** 411 412Use another decoding mode. 413 414## 62980122 Failure in Decoding the Image Header 415 416**Error Message** 417 418Failed to decode the image header. 419 420**Possible Cause** 421 4221. An exception occurs during the decoding of the image header. 4232. The image header does not meet the decoding requirements. 424 425**Solution** 426 427Correct the image data or use another image. 428 429## 62980123 EXIF Decoding Not Supported 430 431**Error Message** 432 433The image does not support EXIF decoding. 434 435**Possible Cause** 436 437The image does not support EXIF decoding. 438 439**Solution** 440 441Use another image. 442 443## 62980124 Missing Image Property 444 445**Error Message** 446 447The image property does not exist. 448 449**Possible Cause** 450 4511. The image property is missing. 4522. The image is modified improperly. 453 454**Solution** 455 456Use another image. 457 458## 62980133 Image Property Value Out of Range 459 460**Error Message** 461 462The EXIF data is out of range. 463 464**Possible Cause** 465 466The value of the image property is out of range. 467 468**Solution** 469 470Change the image or check the length of the image property value. 471 472## 62980135 Invalid Image Property Value 473 474**Error Message** 475 476The EXIF value is invalid. 477 478**Possible Cause** 479 480The image property is missing. 481 482**Solution** 483 484Correct the image data or use another image. 485 486## 62980137 Invalid Image Operation 487 488**Error Message** 489 490Invalid media operation. 491 492**Possible Cause** 493 494The current image format does not support this operation. 495 496**Solution** 497 498Use another image. 499 500## 62980146 Failed to Write Image Property Values to the File 501 502**Error Message** 503 504The EXIF data failed to be written to the file. 505 506**Possible Cause** 507 508The property values of the image are abnormal. 509 510**Solution** 511 512Use another image. 513 514## 62980149 Invalid Image Parameter 515 516**Error Message** 517 518Invalid MIME type for the image source. 519 520**Possible Cause** 521 522The current image format does not support this operation. 523 524**Solution** 525 526Use another image. 527 528## 62980172 Failed to Encode ICC 529 530**Error Message** 531 532Failed to encode icc. 533 534**Possible Cause** 535 536The image ICC information is incorrect. 537 538**Solution** 539 540Check the image data or use another image. 541 542## 62980173 DMA Memory Space Error 543 544**Error Message** 545 546The DMA memory does not exist. 547 548**Possible Cause** 549 5501. The size of the shared memory is insufficient. 5512. Out-of-bounds memory access occurs. 5523. An invalid pointer is used. 553 554**Solution** 555 556Check the memory usage or restart the device. 557 558## 62980174 Abnormal DMA Memory Data 559 560**Error Message** 561 562The DMA memory data is abnormal. 563 564**Possible Cause** 565 5661. The synchronization operation is not correctly performed when data is read from or written to the shared memory. 5672. Out-of-bounds memory access occurs. 5683. An invalid pointer is used. 569 570**Solution** 571 572Restart the device. 573 574## 62980177 Abnormal API Environment 575 576**Error Message** 577 578Abnormal API environment. 579 580**Possible Cause** 581 582The environment where the API is used is incorrect. 583 584**Solution** 585 586Check the SDK version. 587 588## 62980178 Failure in Creating a PixelMap 589 590**Error Message** 591 592Failed to create the PixelMap. 593 594**Possible Cause** 595 5961. Input parameters are incorrect. For example, the region size exceeds the upper limit or an invalid value is passed in. 5972. The instance is incorrectly released in advance. 598 599**Solution** 600 601Check whether the input parameters are correct and whether the instance is released in advance. 602 603## 62980179 Abnormal Buffer Size 604 605**Error Message** 606 607Abnormal buffer size. 608 609**Possible Cause** 610 611Input parameters are incorrect. For example, the region size exceeds the upper limit or an invalid value is passed in. 612 613**Solution** 614 615Check the input parameters. 616 617## 62980180 File Descriptor Mapping Failed 618 619**Error Message** 620 621FD mapping failed. 622 623**Possible Cause** 624 625The input file descriptor is incorrect. 626 627**Solution** 628 629Pass a correct file descriptor. 630 631## 62980246 Failure in Reading the PixelMap 632 633**Error Message** 634 635Failed to read the pixel map. 636 637**Possible Cause** 638 6391. The PixelMap data is incorrect. 6402. You do not have the permission to read the PixelMap. 641 642**Solution** 643 644Re-create the PixelMap or change the read permission. 645 646## 62980247 Failure in Writing the PixelMap 647 648**Error Message** 649 650Failed to write the pixel map. 651 652**Possible Cause** 653 6541. The PixelMap data is incorrect. 6552. You do not have the permission to write the PixelMap. 656 657**Solution** 658 659Re-create the PixelMap or change the read permission. 660 661## 62980248 No Modification to the PixelMap 662 663**Error Message** 664 665PixelMap does not allow modification. 666 667**Possible Cause** 668 669Users try to modify a PixelMap. 670 671**Solution** 672 673Do not modify the PixelMap. 674 675## 62980252 Failed to Create a Surface 676 677**Error Message** 678 679Failed to create surface. 680 681**Possible Cause** 682 683An error occurred when requesting memory for image encoding. 684 685**Solution** 686 687Try again or use another image. 688 689## 62980259 Incorrect Configuration 690 691**Error Message** 692 693Configuration error. 694 695**Possible Cause** 696 697The configuration is incorrect. 698 699**Solution** 700 701Correct the configuration. 702 703## 62980274 Failed to Convert Images 704 705**Error Message** 706 707The conversion failed. 708 709**Possible Cause** 710 7111. Image conversion stops unexpectedly. 7122. Encoding parameters are incorrectly set. 713 714**Solution** 715 716Correct the encoding parameters or use another image. 717 718## 62980276 Unsupported Image Conversion Target Type 719 720**Error Message** 721 722The type to be converted is an unsupported target pixel format. 723 724**Possible Cause** 725 726The conversion to the target type is not supported. 727 728**Solution** 729 730Use another image or change the target type. 731 732## 62980286 Failed to Set a Memory Identifier for a PixelMap 733 734**Error Message** 735 736Memory format not supported. 737 738**Possible Cause** 739 7401. The memory type of the PixelMap does not match. 7412. The FD of the PixelMap is invalid. 7423. Unknown kernel error. 743 744**Solution** 745 746Check whether the PixelMap instance has been released. Check whether the memory type matches. 747 748## 62980302 Memory Copy Failed 749 750**Error Message** 751 752Memory copy failed. 753 754**Possible Cause** 755 7561. The memory type does not match. 7572. The FD is invalid. 7583. Unknown kernel error. 759 760**Solution** 761 762Check whether the instance to be copied has been released. Check whether the memory type matches. 763 764## 7600201 Unsupported Operation 765 766**Error Message** 767 768Unsupported operation. 769 770**Possible Cause** 771 772The operation is not supported. 773 774**Solution** 775 776Use a supported operation. 777 778## 7600202 Unsupported Metadata Read/Write Operation 779 780**Error Message** 781 782Unsupported metadata. Possible causes: Unsupported metadata type. 783 784**Possible Cause** 785 786The metadata read/write operation is not supported. For example, the Exif field to read or write is not supported, or users attempt to obtain specific data from an auxiliary picture of an incorrect type (for example, attempt to obtain GainmapMetadata of a depth map). 787 788**Solution** 789 790Check whether the auxiliary picture type corresponds to the metadata type, and then perform the read and write operations. 791 792## 7600301 Memory Allocation Failure 793 794**Error Message** 795 796Memory alloc failed. 797 798**Possible Cause** 799 800The device memory is insufficient or occupied. 801 802**Solution** 803 804Clear the memory and try again. 805 806## 7600302 Memory Copy Failure 807 808**Error Message** 809 810Memory copy failed. 811 812**Possible Cause** 813 814The memory to copy does not exist, or the device memory is insufficient. 815 816**Solution** 817 818Check whether the memory to copy exists. Clear the memory and try again. 819 820## 7600901 Unknown Error 821 822**Error Message** 823 824Unknown error. 825 826**Possible Cause** 827 828Errors caused by unknown reasons. 829 830**Solution** 831 832Locate the cause based on logs. 833 834## 7700101 Abnormal Image Source 835 836**Error Message** 837 838Bad source. 839 840**Possible Cause** 841 8421. The device does not support the image type. 8432. Image decoding is not performed as instructed. 844 845**Solution** 846 847Check the image data or use another image. 848 849## 7700102 Unsupported MIME Type 850 851**Error Message** 852 853Unsupported mimetype. 854 855**Possible Cause** 856 857The device does not support the image type. 858 859**Solution** 860 861Check the image data or use another image. 862 863## 7700103 Image Oversized 864 865**Error Message** 866 867Image too large. 868 869**Possible Cause** 870 871The image size exceeds the upper limit. 872 873**Solution** 874 875Check the image data or use another image. 876 877## 7700201 Unsupported Memory Allocation Type 878 879**Error Message** 880 881Unsupported allocator type, e.g., use share memory to decode a HDR image as only DMA supported hdr metadata. 882 883**Possible Cause** 884 885No memory allocation type is specified, or an incorrect memory allocation type is specified. For example, an error occurs when an HDR image is decoded in shared memory mode, because only the DMA mode supports HDR metadata. 886 887**Solution** 888 889Use a correct memory allocation type. 890 891## 7700203 Unsupported Options 892 893**Error Message** 894 895Unsupported options, e.g, cannot convert image into desired pixel format. 896 897**Possible Cause** 898 899Some parameters are incorrectly configured, or the operation required by the options is not supported. 900 901**Solution** 902 903Check the parameter settings. 904 905## 7700301 Decoding Failure 906 907**Error Message** 908 909Decode failed. 910 911**Possible Cause** 912 9131. The memory of the device is insufficient. 9142. The device does not support the image type. 9153. Image decoding is not performed as instructed. 916 917**Solution** 918 919Check the image data or use another image. 920 921## 7700302 Memory Allocation Failed 922 923**Error Message** 924 925Memory allocation failed. 926 927**Possible Cause** 928 9291. The memory of the device is insufficient. 9302. Image decoding is not performed as instructed. 931 932**Solution** 933 934Check the device memory or input data. 935 936## 7800201 Unsupported Options 937 938**Error Message** 939 940Unsupported options. 941 942**Possible Cause** 943 944Some parameters are incorrectly configured, or the operation required by the options is not supported. 945 946**Solution** 947 948Check the parameter settings. 949 950## 7800301 Encoding Failure 951 952**Error Message** 953 954Encode failed. 955 956**Possible Cause** 957 9581. The encoding format is not supported. 9592. The data passed in is incorrect. 960 961**Solution** 962 963Correct the input data or use another image. 964