Error Codes

The sgui_app_report_error callback function reports the error occuring at run time in the Sparklet engine. The below table provides detailed descriptions of these errors that will provide an insight to the underlying issue.

S .No .

Error Code

Value

Sub Code

Value

Description

1

SGUI_ERR_MEM_ALLOC

11

Error while allocating memory

2

SGUI_ERR_FILE_OPEN

12

Error while opening file.

3

SGUI_ERR_MISC

13

Error Miscellaneous

4

SGUI_ERR_INSTANTIATE_WIDGET

14

Error related to instantiating widget control.Failing widget ID

5

SGUI_ERR_PLACEHOLDER

15

Failing Placeholder ID

Error related to placeholders

6

SGUI_ERR_SPRITE

16

Sprite size- if size exceeds allocation, No. of HW layers - If count exceeds allocation

Error related to sprite.

7

SGUI_ERR_TRANSITION

17

Failed index

Error related to transition.

8

SGUI_ERR_JPEG

18

Stage of decoding as below

Error related to jpeg decoder.

SGUI_ERR_JPEG_INIT

Error with JPEG decoder init

SGUI_ERR_JPEG_OPEN

Error with JPEG decoder open.

SGUI_ERR_JPEG_CLOSE

Error with JPEG decoder close.

SGUI_ERR_JPEG_DEINIT

Error with JPEG decoder deinit.

SGUI_ERR_JPEG_START

Error with JPEG decoder start.

SGUI_ERR_JPEG_TIMEOUT

Error with JPEG decoder timeout.

9

SGUI_ERR_GPU_OP

19

Error related to GPU operation.

10

SGUI_ERR_MEM_POOL

20

Num Mem pools being used

Error related to Memory pool

11

SGUI_ERR_DATA

21

Target data type

Error with data conversion

12

SGUI_ERR_MEM_ALLOC_BUF

22

Buffer size

Error related to memory buffer allocation

13

SGUI_ERR_INVALID_VALUE

23

Error related to invalid value during draw

SGUI_INVALID_ERR_PIXEL_TYPE

1

Error with draw pixel type.

SGUI_INVALID_ERR_PIXEL_POS_X

2

Error with draw pixel x position.

SGUI_INVALID_ERR_PIXEL_POS_Y

3

Error with draw pixel y position.

SGUI_INVALID_ERR_PIXEL_ALPHA

4

Error with draw pixel alpha.

SGUI_INVALID_ERR_ANGLE_TYPE

5

Error with draw pixel angle type.

14

SGUI_ERR_BMALLOC

24

Pool Index

Error related to Bmalloc failure.

15

SGUI_ERR_MEM_ALLOC _STATE_MACHINE

25

Size requested

Error while allocating state machine memory.

16

SGUI_ERR_MEM_ALLOC_IMAGES

26

Size requested

Error while allocating image area memory.

17

SGUI_ERR_MEM_ALLOC_WIDGET_LOOKUP

27

Size requested

Error while allocating widget lookup table.

18

SGUI_ERR_INVALID_IMAGE_TYPE

28

Failed Image Type

Error with image type.

19

SGUI_ERR_MEM_ALLOC_IMAGE_IN_RAM

29

Pool requested

Error while allocating image load area memory in RAM.

20

SGUI_ERR_MEM_FRAME_BUF

30

Pool requested

Error while allocating frame buffer.

21

SGUI_ERR_SPARKLET_TRIAL_VERSION

101

Sparklet trial version expiry.