Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DevnathNair opened this issue Jul 9, 2021 · 1 comment

Comments

@DevnathNair
Copy link

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

@DevnathNair
Copy link
Author

Looks like it works at random times, serial update rate is set to 100Hz, serial_update_rate_hz = 100

sending message - ID 100
sending: 100 | 
packed: 24 4d 3c 0 64 64 
write complete: 6 vs 6
processOneMessage on 6 bytes
Message v1 with ID 100 is not recognised!
processOneMessage finished
processOneMessage on 28 bytes
unsupported: 100
sending message - ID 101
sending: 101 | 
processOneMessage finished
packed: 24 4d 3c 0 65 65 
processOneMessage on 0 bytes
buffer returned EOF; reading char directly from portwrite complete: 6 vs 6

#Status:
 Cycle time: 125 us
 I2C errors: 7
 Sensors:
    Accelerometer: ON
    Barometer: ON
    Magnetometer: OFF
    GPS: OFF
    Sonar: OFF
 Active Boxes (by ID):
sending message - ID 102
sending: 102 | 
packed: 24 4d 3c 0 66 66 
write complete: 6 vs 6
terminate called after throwing an instance of 'std::system_error'
  what():  read: End of file
Aborted (core dumped)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant