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

Error building program-examples/basics/account-data/native: Stack offset of 4584 exceeded max offset of 4096 #66

Open
ksolana opened this issue Feb 18, 2024 · 2 comments

Comments

@ksolana
Copy link
Contributor

ksolana commented Feb 18, 2024

$cd program-examples/basics/account-data/native
$bash cicd.sh

Error: Function _ZN112_$LT$solana_program..instruction..InstructionError$u20$as$u20$solana_frozen_abi..abi_example..AbiEnumVisitor$GT$13visit_for_abi17hd07a5f9ab7b9f369E Stack offset of 4584 exceeded max offset of 4096 by 488 bytes, please minimize large stack variables
@jim4067
Copy link

jim4067 commented Apr 6, 2024

The most likely reason is that you are using an older version of solana CLI. With 1.18.2 this issue seems to be resolved

ref solana-labs/solana#35003

Also, use the stack exchange for any solana related query

@XuananLe
Copy link

XuananLe commented Jul 3, 2024

You can delete the target folder and then try to anchor build again. When you first deploy your program, you are only allocated twice as much as the space needed. When your new program get upgraded, the space is not enough.

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

3 participants