Skip to content

what(): read: End of file, Segmentation Fault on running client_read_test #54

@DevnathNair

Description

@DevnathNair

As referenced in #43, I'm unable to get client_read_test and any of the examples to run.

I'm using a HGLRCF722 running BTFL 4.2.8.
I've tried the same with different FCs on different versions of BTFL 4.x but can't get it to work.

Below is the output while running the executable with log_level_ (DEBUG):

sending message - ID 100
sending: 100 |
packed: 24 4d 3c 0 64 64
write complete: 6 vs 6
processOneMessage on 0 bytes
buffer returned EOF; reading char directly from port
terminate called after throwing an instance of 'std::system_error
what(): read: End of file
Aborted (core dumped)

I've tried other projects such as pymultiwii, YAMSpy and the official configurator and all of them talk to the FC with no issues.

From my crude understanding, it seems like the issue seems to be that processOneMessage tries to parse an empty message and fails, I'd really appreciate some help on debugging this and getting it working

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