Skip to content

Internal error from multi-heap allocation #29563

Description

@peterbarker

Bug report

Issue details

An ArduPilot partner running a custom frame configured via scripting is getting internal errors and failure-to-allocate errors.

2025-03-18 12:29:53 PM : PreArm: Internal errors 0x100000 l:58 flow_of_ctrl

That's from this:

    if (heapp->current_heap_usage != 0) {
        // lua should guarantee that there is no memory still
        // allocated when we destroy the heap. Throw an error in SITL
        // if this proves not to be true
        INTERNAL_ERROR(AP_InternalError::error_t::flow_of_control);
    }

Version
stable, "latest" and 4.6.0-beta4

Platform
[ ] All
[ ] AntennaTracker
[ ] Copter
[x] Plane
[ ] Rover
[ ] Submarine

Airframe type
scripted

Hardware type
SITL

Logs
Ask partner

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions