When interacting with a canister I deployed to ic, I get the following error when trying to update stable memory:
(I am having no issues when running locally)
Error: Call was rejected:
Request ID: eb6...
Reject code: 5
Reject text: Error from Canister 7w3i7-3iaaa-aaaal-qi2iq-cai:
Canister called `ic0.trap` with message: Panicked at
'capacity overflow', library/alloc/src/raw_vec.rs:25:5.
Perhaps am I misstreating stable memory somehow? I am compiling the canister to WASI and am saving some files with fs. Disabled those saves but error remained.
@kristofer would you be able to share a full stack trace? I see the panic isn’t happening in your code-base but I can’t tell in what library exactly.
Thanks, I am not sure I can produce a better stack trace since the panic is happening outside of my codebase. Canister call is terminated and this is returned to the client: