Skip to content

[Bug]: MeshPocket Device Reboot on UTF-8 Characters in Received Message #8806

Description

@mkeshmirian

Category

Other

Hardware

Other

Is this bug report about any UI component firmware like InkHUD or Meshtatic UI (MUI)?

  • Meshtastic UI aka MUI colorTFT
  • InkHUD ePaper
  • OLED slide UI on any display

Firmware Version

2.6.x and 2.7.16

Description

Description:
Using MeshPocket with the latest firmware (v2.7.16), certain UTF-8 characters in received messages cause the device to reboot.
Root Cause Analysis:
Upon reviewing the source code in AppleFont.cpp, specifically the toUtf32 function, the issue occurs when the input text length exceeds 4. The function calls assert, which triggers a reboot.
Suggested Fix:
Replace the assert statement with:

  • A serial port warning log to indicate the invalid input length.
  • Return a 0 value instead of asserting, to prevent the device from rebooting.

Relevant log output

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions