This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

JPEG 2000 codec crash while reading file

Other Parts Discussed in Thread: SYSBIOS

When I was trying the jpeg2k demo,

system crash happened when the "while" line below was excuting for the first time in function "ParseContent"


    // Stage one: Generate an argc/argv-type list in items[],without comments
    //  and whitespace.
    // This is context insensitive and could be done most easily with lex(1).

    while ((unsigned char*)ptr < (unsigned char*)bufend)
    {
        switch (*ptr)
        {
            /* Procss whitespace */
        case ' ':

.........



the output of console is here:



[C66xx_0]
[C66xx_0]
[C66xx_0] JPEG2000 Encoder: CLASS_C66X
[C66xx_0] 7c0 A7=0x20687470
A8=0x4 A9=0x831094
A10=0x81c818 A11=0x65647400
A12=0x0 A13=0x2
A14=0x65647400 A15=0x0
A16=0x800c24 A17=0x0
A18=0x800bf4 A19=0x20
A20=0x0 A21=0x0
A22=0x0 A23=0x0
A24=0x0 A25=0x7a000000
A26=0x95a56bbc A27=0x95000000
A28=0x95a56bc0 A29=0x4
A[C66xx_0] 30=0x1 A31=0x802230
B0=0x800000 B1=0x834fe8
B2=0x0 B3=0xc048c28
B4=0x15000103 B5=0x4003
B6=0xc0356e4 B7=0x0
B8=0x0 B9=0x0
B10=0x4003 B11=0x834fe8
B12=0x0 B13=0x83
B14=0x835308 B15=0x834fe8
B16=0x61526369 B17=0x2065676e
B18=0x0 B19=0x822128
B20=0x0 B21=0x80[C66xx_0] 19c0
B22=0xf B23=0x0
B24=0x0 B25=0x3000
B26=0x9c B27=0x54
B28=0x5c B29=0x8312a8
B30=0x0 B31=0x831808
NTSR=0x1020d
ITSR=0xf
IRP=0xc0356e4
SSR=0x0
AMR=0x0
RILC=0x0
ILC=0x0
Exception at 0x835050
EFR=0x2 NRP=0x835050
Internal exception: IERR=0x10
Resource conf[C66xx_0] lict exception
ti.sysbios.family.c64p.Exception: line 248: E_exceptionMin: pc = 0x0c0356e4, sp = 0x00834fe8.
To see more exception detail, use ROV or set 'ti.sysbios.family.c64p.Exc[C66xx_0] eption.enablePrint = true;'
xdc.runtime.Error.raise: terminating execution

  • Hi,

    Check if both the pointers (ptr and bufend) falls under valid address range as seen by the CPU.

  • Thank you Radhesh,

    I checked both and one of them is inpropriate. This is a demo provided by TI, I don't know why

    Anyway I overcome that issue and now this one happens:

    [C66xx_0]
    [C66xx_0] JPEG2000 Encoder: CLASS_C66X
    [C66xx_0] Processing ..\..\..\Test\TestVecs\Input\orig01_bird_vga.ppm ...Process retuned with error code : 49192

    Do you know what is the 49192 error?

  • Good that you were able to resolve the crash issue.

    Lucifar He said:

    [C66xx_0] Processing ..\..\..\Test\TestVecs\Input\orig01_bird_vga.ppm ...Process retuned with error code : 49192

    Do you know what is the 49192 error?

    This might be from the codec library, you may have to refer to the codec userguide to understand the error code.