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 Attribute
444
445**Error Message**
446
447The image property does not exist.
448
449**Possible Cause**
450
4511. The image attribute is missing.
4522. The image is modified improperly.
453
454**Solution**
455
456Use another image.
457
458## 62980133 Image Attribute 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 attribute is out of range.
467
468**Solution**
469
470Change the image or check the length of the image attribute value.
471
472## 62980135 Invalid Image Attribute Value
473
474**Error Message**
475
476The EXIF value is invalid.
477
478**Possible Cause**
479
480The image attribute 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## 62980149 Invalid Image Parameter
501
502**Error Message**
503
504Invalid MIME type for the image source.
505
506**Possible Cause**
507
508The current image format does not support this operation.
509
510**Solution**
511
512Use another image.
513
514## 62980178 Failure in Creating a PixelMap
515
516**Error Message**
517
518Failed to create the PixelMap.
519
520**Possible Cause**
521
5221. Input parameters are incorrect. For example, the region size exceeds the upper limit or an invalid value is passed in.
5232. The instance is incorrectly released in advance.
524
525**Solution**
526
527Check whether the input parameters are correct and whether the instance is released in advance.
528
529## 62980246 Failure in Reading the PixelMap
530
531**Error Message**
532
533Failed to read the pixel map.
534
535**Possible Cause**
536
5371. The PixelMap data is incorrect.
5382. You do not have the permission to read the PixelMap.
539
540**Solution**
541
542Re-create the PixelMap or change the read permission.
543
544## 62980247 Failure in Writing the PixelMap
545
546**Error Message**
547
548Failed to write the pixel map.
549
550**Possible Cause**
551
5521. The PixelMap data is incorrect.
5532. You do not have the permission to write the PixelMap.
554
555**Solution**
556
557Re-create the PixelMap or change the read permission.
558
559## 62980248 No Modification to the PixelMap
560
561**Error Message**
562
563PixelMap does not allow modification.
564
565**Possible Cause**
566
567Users try to modify a PixelMap.
568
569**Solution**
570
571Do not modify the PixelMap.
572
573## 62980259 Incorrect Configuration
574
575**Error Message**
576
577Configuration error.
578
579**Possible Cause**
580
581The configuration is incorrect.
582
583**Solution**
584
585Correct the configuration.
586
587## 62980286 Failed to Set a Memory Identifier for a PixelMap
588
589**Error Message**
590
591Memory format not supported.
592
593**Possible Cause**
594
5951. The memory type of the PixelMap does not match.
5962. The FD of the PixelMap is invalid.
5973. Unknown kernel error.
598
599**Solution**
600
601Check whether the PixelMap instance has been released. Check whether the memory type matches.
602
603## 7600201 Unsupported Operation
604
605**Error Message**
606
607Unsupported operation.
608
609**Possible Cause**
610
611The operation is not supported.
612
613**Solution**
614
615Use a supported operation.
616
617## 7600202 Unsupported Metadata Read/Write Operation
618
619**Error Message**
620
621Unsupported metadata. Possible causes: Unsupported metadata type.
622
623**Possible Cause**
624
625The 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).
626
627**Solution**
628
629Check whether the auxiliary picture type corresponds to the metadata type, and then perform the read and write operations.
630
631## 7600301 Memory Allocation Failure
632
633**Error Message**
634
635Memory alloc failed.
636
637**Possible Cause**
638
639The device memory is insufficient or occupied.
640
641**Solution**
642
643Clear the memory and try again.
644
645## 7600302 Memory Copy Failure
646
647**Error Message**
648
649Memory copy failed.
650
651**Possible Cause**
652
653The memory to copy does not exist, or the device memory is insufficient.
654
655**Solution**
656
657Check whether the memory to copy exists. Clear the memory and try again.
658
659## 7600901 Unknown Error
660
661**Error Message**
662
663Unknown error.
664
665**Possible Cause**
666
667Errors caused by unknown reasons.
668
669**Solution**
670
671Locate the cause based on logs.
672
673## 7700301 Decoding Failure
674
675**Error Message**
676
677Decode failed.
678
679**Possible Cause**
680
6811. The memory of the device is insufficient.
6822. The device does not support the image type.
6833. Image decoding is not performed as instructed.
684
685**Solution**
686
687Check the image data or replace the image.
688
689## 7800301 Encoding Failure
690
691**Error Message**
692
693Encode failed.
694
695**Possible Cause**
696
6971. The encoding format is not supported.
6982. The data passed in is incorrect.
699
700**Solution**
701
702Correct the input data or use another image.
703