edrosten / libblepp

Modern clean C++ Bluetooth Low Energy on Linux without the Bluez DBUS API
Other
241 stars 63 forks source link

Low-level I/O connect system call failed by Memory allocation failure. #56

Open mingshi2807 opened 4 years ago

mingshi2807 commented 4 years ago

Hello there,

We have tested several BLE IMU sensors of MbientLab in which libblepp is wrapped in driver level, during these tests, we have encountered systematically one low level I/O problem after about 10-15 min :

Please find below the trace error when the exception is triggered :

error 1591608658.880516: Error on line: 296 (src/blestatemachine.cc): Cannot allocate memory
terminate called after throwing an instance of 'BLEPP::SocketConnectFailed'
what():  Cannot allocate memory
2020-06-08 11:30:58 sigHandler: Unhandled signal 6, terminating

This issue became more frequent and significant in these cases below :

In this context, we would be very grateful if you could perhaps give some help of debugging or responses about this question.

Best regards, Ming