Skip to content
LogoLogo

Errors

CallError

Defined in src/errors.zig. When Frame.execute() returns any of these errors during vm.call(), CallResult reports success = false, gas_left = 0, output = &.{}, and error_info = @errorName(err).

Core execution never raises MissingJumpDestMetadata, ContractNotFound, AccountNotFound, TruncatedPush, WriteProtection, AllocationError, InvalidJumpDestination, BytecodeTooLarge, or CreateInitCodeSizeLimit. They stay in the set so inspector.formatErrorName can map them to Geth strings.

Execution & gas

ErrorCause
OutOfGasRemaining gas is less than the opcode, memory expansion, or access cost
ExecutionTimeoutEvmConfig.loop_quota step limit reached
RevertExecutionExplicit REVERT execution signal
StaticCallViolationState-modifying opcode attempted inside STATICCALL
WriteProtectionWrite attempted in a read-only / static context

Stack, jump & bytecode

ErrorCause
StackUnderflowOpcode pops more items than currently on the stack
StackOverflowPush would exceed 1024 stack items
InvalidOpcodeUndefined opcode byte or opcode inactive on the active hardfork (e.g., PUSH0 pre-Shanghai, CLZ pre-Osaka)
InvalidJumpJUMP / JUMPI target is not a valid JUMPDEST (0x5b) outside PUSH data
InvalidJumpDestinationDeclared but not raised by core execution; jump handlers return InvalidJump
MissingJumpDestMetadataBytecode jump destination table unavailable
InvalidBytecodeDeployed runtime code starts with 0xEF (EIP-3541, London+)
BytecodeTooLargeDeclared but not raised by core execution; oversized deployed code fails with CreateContractSizeLimit
InitcodeTooLargeRaised by simulation.zig request validation when a Shanghai+ create request exceeds 49,152 bytes. Core execution reports oversized initcode as OutOfGas (CREATE/CREATE2) or InvalidInitCodeSize (top-level create)
CreateInitCodeSizeLimitDeclared but not raised by core execution (see InitcodeTooLarge)
CreateContractSizeLimitDeployed runtime code exceeds max_bytecode_size (default 24,576 bytes, EIP-170, Spurious Dragon+)
CodeStoreOutOfGasRemaining gas cannot pay the code-deposit fee (200 gas per byte); creation fails and consumes all gas
InvalidPushInvalid PUSH instruction size
TruncatedPushIncomplete PUSH immediate
OutOfBoundsBytecode or slice offset out of range

Calls, accounts & precompiles

ErrorCause
CallDepthExceededCREATE / CREATE2 frame depth exceeds max_call_depth (default 1024). Nested calls past the limit fail with error_info = "callDepthExceeded" (lowercase), which is not a CallError member
NonceOverflowCREATE / CREATE2 sender nonce is already 2^64 - 1
InsufficientBalanceValue transfer exceeds caller balance
ContractCollisionCREATE / CREATE2 target already has a non-zero nonce or non-empty code (storage is not checked)
ContractNotFoundTarget contract not found
AccountNotFoundAccount lookup failed
PrecompileErrorBuilt-in or overridden precompile returned an error

Memory, storage & runtime

ErrorCause
MemoryErrorA CALL, CALLCODE, DELEGATECALL or STATICCALL handler finds no active frame. Memory growth past memory_limit fails with OutOfGas instead
StorageErrorPre-warming transaction addresses into the access list failed
OutOfMemoryBacking Zig Allocator returned OutOfMemory
AllocationErrorInternal buffer allocation failed
NoSpaceLeftFixed-capacity output/writer buffer full
NeedAsyncDataAsync StorageInjector cache miss; caught by AsyncExecutor to yield to the host

Parameter validation (also in CallParams.ValidationError)

ErrorCause
GasZeroErrorReserved validation error
InvalidInputSizeCall input.len > 4 MiB
InvalidInitCodeSizeAt Shanghai or later, create init_code.len > config.max_initcode_size (default 49,152 bytes)
InvalidCreateValueReserved create value validation error
InvalidStaticCallValueReserved static call value validation error