Open davidqge opened 5 days ago
The issue says "This seems to only happen if the value was borrowed earlier". I suspect the cause is not the async run_rmk
.
I did some improvements for run_rmk
: https://github.com/HaoboGu/rmk/pull/76
Still happens,
I committed the larger kinesis keymap, see if you can reproduce it.
My fix, alias esp function can run within 64kb stack.
this is quite strangeš¤, I will take a look later
I checked stack size using -Zemit-stack-sizes
on nrf52840 example, using run_rmk
and initialize_nrf_ble_keyboard_with_config_and_run
emits same stack size. I suspect it's related only to esp32. (I was not able to get stack size for esp :(
run_rmk cause stack protection fault on esp32c6 with 100kb stack.
This article talks about wrapper async function's memory usage rebinding values in an async function can double the memory usage [#96084](https://github.com/rust-lang/rust/issues/96084)