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

SIGSEGV crash on Arm64 MacOS in notify.cpp example #263

Open
Maxung opened this issue Oct 5, 2023 · 0 comments
Open

SIGSEGV crash on Arm64 MacOS in notify.cpp example #263

Maxung opened this issue Oct 5, 2023 · 0 comments

Comments

@Maxung
Copy link

Maxung commented Oct 5, 2023

When running the notify example in C++ and connecting to an Adafruit Feather M0 board, the characteristics are correctly listed but subscribing to the specific temperature characteristic results in Exception: EXC_BAD_ACCESS (code=1, address=0x20). Running the notify example in Python works correctly though. The error seems to result from setting the callback for a specific characteristic.

Machine: M1 Macbook Pro
OS: macOS Sonoma (14.0)
Git tag: 311386e

Stack trace:

std::__function::__value_func::swap[abi:v160006](std::__function::__value_func<…> &) function.h:518
std::function::swap(std::function<…> &) function.h:1149
std::function::operator=(const std::function<…> &) function.h:1113
-[PeripheralBaseMacOS notify:characteristic_uuid:callback:] PeripheralBaseMacOS.mm:388
SimpleBLE::PeripheralBase::notify(const std::string &, const std::string &, std::function<…>) PeripheralBase.mm:155
SimpleBLE::Peripheral::notify(const std::string &, const std::string &, std::function<…>) Peripheral.cpp:134
main main.cpp:71
start 0x000000018d91d058
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