Skip to content

LoadProhibited Exception in readBmpHeader #260

@michaelotto

Description

@michaelotto

I run three Inkplates pretty much since the beginning and have been getting spontaneous reboots from time to time (every few hours). I never bothered much but today I took the time to debug. I traced it down to this:

Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.

Core 1 register dump:
PC : 0x400d8187 PS : 0x00060b30 A0 : 0x800d8775 A1 : 0x3ffb1b40
A2 : 0x3ffc4e34 A3 : 0x00000000 A4 : 0x3ffb1fa0 A5 : 0xb1cf72f9
A6 : 0x3ffb1d68 A7 : 0x3ffb1d78 A8 : 0x800df4ca A9 : 0x3ffb1cb0
A10 : 0x00000000 A11 : 0x00000000 A12 : 0x00000000 A13 : 0xfffffff5
A14 : 0x00000000 A15 : 0x3ffb1d08 SAR : 0x00000018 EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000001 LBEG : 0x4008b774 LEND : 0x4008b78a LCOUNT : 0xffffffff

Backtrace: 0x400d8184:0x3ffb1b40 0x400d8772:0x3ffb1f70 0x400d8aca:0x3ffb1fe0 0x400d8083:0x3ffb2020 0x400d286a:0x3ffb2060 0x400d2c2e:0x3ffb2080 0x400d3065:0x3ffb20b0 0x4017c093:0x3ffb21f0 0x400e346d:0x3ffb2210 0x400d32e1:0x3ffb2260 0x400e6fdd:0x3ffb2290

PC: 0x400d8187: is in Image::readBmpHeader(unsigned char*, bitmapHeader*) (.../Arduino/libraries/InkplateLibrary/src/include/ImageBMP.cpp:88).
EXCVADDR: 0x00000001

Decoding stack results
0x400d8184: is in Image::readBmpHeader(unsigned char*, bitmapHeader*) (.../Arduino/libraries/InkplateLibrary/src/include/ImageBMP.cpp:87).
0x400d8772: is in Image::drawBitmapFromBuffer(unsigned char*, int, int, bool, bool) (...Arduino/libraries/InkplateLibrary/src/include/ImageBMP.cpp:281).
0x400d8aca: is in Image::drawBitmapFromWeb(char const*, int, int, bool, bool) (.../Arduino/libraries/InkplateLibrary/src/include/ImageBMP.cpp:225).
0x400d8083: is in Image::drawImage(char const*, int, int, bool, bool) (.../Arduino/libraries/InkplateLibrary/src/include/Image.cpp:84).
...

(the rest is my sketch).

So there seems to be a unauthorized buffer access problem in this method. This is totally plausible, because I'm exclusively using BMP bitmap files.

BTW: Using 10.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions