Skip to content

Crashes after calling btstack_cyw43_deinit#2446

Merged
kilograham merged 1 commit intoraspberrypi:developfrom
peterharperuk:fix_btstack_exit
May 1, 2025
Merged

Crashes after calling btstack_cyw43_deinit#2446
kilograham merged 1 commit intoraspberrypi:developfrom
peterharperuk:fix_btstack_exit

Conversation

@peterharperuk
Copy link
Contributor

You can deinitialise cyw43 and btstack by calling btstack_cyw43_deinit but its pending and timeout workers are not removed which means they can keep running, which causes a crash.

Add a btstack_run_loop_async_context_deinit method and call this from btstack_cyw43_deinit.

You can deinitialise cyw43 and btstack by calling btstack_cyw43_deinit
but its pending and timeout workers are not removed which means they can
keep running, whcih causes a crash.

Add a btstack_run_loop_async_context_deinit method and call this from
btstack_cyw43_deinit.
@kilograham kilograham merged commit 0de8847 into raspberrypi:develop May 1, 2025
4 checks passed
@kilograham
Copy link
Contributor

bit weird that the run loop itself doesnt have a deinit hook; oh well

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

Successfully merging this pull request may close these issues.

2 participants