New 1,100-export limit (replica f80a8c35b50d) breaks already-installed C++/WASI canisters

All our existing C++ canisters are breaking.

Is it possible to apply this limit to new canisters only? We can then address it by a patch to icpp-pro to remove some symbols.

Let me look into it. What subnet are you on with your canisters?

Thanks Stefan! Two subnets so far. Both moved to f80a8c35b50d today, and our canisters on them stopped answering:

• qxesv-zoxpm-vc64m-zxguk-5sj74-35vrb-tbgwg-pcird-5gr26-62oxl-cae (verified application), upgraded 09:19 UTC. Canister ylycl-yaaaa-aaaab-aheba-cai: every call fails with “The total number of exported items is 2313 which exceeds 1100”. A reinstall with a fixed version was refused with 2337.
• re2t4-faa75-v3vhk-kdmdr-uyrkl-aik2l-ixd6u-p3fyr-zlfkc-6c5af-zae (application, SEV), upgraded 13:04 UTC. Canister qcxx3-nyaaa-aaaay-aaexq-cai: it passed our checks yesterday evening; since the upgrade every call fails with 2337 exports.

The same wasm as qcxx3-… still runs fine on 5kdm2-62fc6-fwnja-hutkz-ycsnm-4z33i-woh43-4cenu-ev7mi-gii6t-4ae, which is still on 5215023a9d81 (canister qjse4-caaaa-aaaad-qmosq-cai). We expect it to break with that subnet’s next upgrade.

Our LLM canisters (llama_cpp_canister, about 3,500 exports) run on several other subnets and will hit the same limit as those subnets upgrade. We paused the app that uses them for now.

The upgrade is stopped, and your first subnet has downgraded. Your canisters should work again. The second subnet will downgrade shortly.

Thank you so much for reverting this upgrade so quickly

The new icpp-pro v7.1.0 fixes the problem.

Everyone who has C++ canisters, please upgrade and rebuild the wasm and upgrade.

https://icpp-pro.onicai.com/release-notes.html

With this update the number of exports in wasm goes down from 2000+ to about 60 in a typical C++canister.