Skip to content

With draco (v7.0.0), No working buffers available error when sending a TBL_LOAD command #892

@sgemme-csa

Description

@sgemme-csa

Getting the following error when sending a TBL_LOAD command:

EVS Port1 1980-012-14:04:38.03530 66/1/CFE_TBL 60: LoadFile,app=CFE_TBL,tbl=SAMPLE_APP.ExampleTable:No working buffers available, stat=0xffffffffcc00000f

Repro steps:

git checkout v7.0.0
git sudmodule init && git submodule update
cp -r cfe/cmake/sample_defs/ sample_defs
cp cfe/cmake/Makefile.sample Makefile

make SIMULATION=native prep
make install
cd build/exe/cpu1
./core-cpu1

Run the following script:

from spacepackets import SpacePacket, SpacePacketHeader, PacketType
import socket


def main():
    # Create a command with mid
    sec_header = bytearray([0x02, 0x00])
    tbl_name = "/cf/sample_app_tbl.tbl"
    payload = f"{tbl_name:\x00<64}".encode("utf-8")
    header = SpacePacketHeader(
        PacketType.TC, 0x1804 & 0x7FF, 0, len(sec_header) + len(payload) - 1, True
    )
    pkt = SpacePacket(header, sec_header, payload)

    sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
    n = sock.sendto(pkt.pack(), ("127.0.0.1", 1234))
    print(f"Sent {n} bytes")
    pass


if __name__ == "__main__":
    main()

The following error appears in the logs:
EVS Port1 1980-012-14:04:38.03530 66/1/CFE_TBL 60: LoadFile,app=CFE_TBL,tbl=SAMPLE_APP.ExampleTable:No working buffers available, stat=0xffffffffcc00000f

On draco-rc5, the command works and the following line shows up in the logs:

EVS Port1 1980-012-14:03:22.14521 66/1/CFE_TBL 12: Successful load of '/cf/sample_app_tbl.tbl' into 'SAMPLE_APP.SampleAppTable' working buffer

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions