Skip to content

Crash after write to service characteristic #200

@codewitch-honey-crisis

Description

@codewitch-honey-crisis

I'm getting a crash on core 0 (the system core, not the one my code is running on) shortly after my other application writes to the NimBLE characteristic I've exposed. The crash happens every time.

This remains true even if I do not set any callback for the service characteristic. It does not happen unless I tell the other side to do a write to this characteristic.

If I do set a callback, usually the code in the onWrite() callback will finish running before it crashes. Occasionally it will not.

I can't debug on this one because I can't use a WROVER for this because I need the pins, and for some reason Espressif never released a properly debuggable WROOM development board to my knowledge.

I know writing to a characteristic usually doesn't crash because I do it elsewhere in my code (under a different runtime configuration) and it doesn't crash, but I can't figure out what the major difference is here.

This is a long shot, but what things could I be doing that would be causing a crash after the other app writes?

Guru Meditation Error: Core  0 panic'ed (StoreProhibited). Exception was unhandled.
Core 0 register dump:
PC      : 0x400d1d0e  PS      : 0x00060f30  A0      : 0x800d4929  A1      : 0x3ffc9ba0
A2      : 0x3ffca008  A3      : 0x3ffc9fc8  A4      : 0x3ffc9c84  A5      : 0x3ffc187c  
A6      : 0x00000213  A7      : 0x00000000  A8      : 0x00000000  A9      : 0x00000000
A10     : 0x00000000  A11     : 0x00000430  A12     : 0xfeb70988  A13     : 0xfeb70988  
A14     : 0x3ffc2af4  A15     : 0x00000000  SAR     : 0x0000001f  EXCCAUSE: 0x0000001d
EXCVADDR: 0x00000000  LBEG    : 0x400014fd  LEND    : 0x4000150d  LCOUNT  : 0xfffffff9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions