Skip to content

Executing the test case results in MemOutOfBound error, and debug logs are not printed #129

@gpBlockchain

Description

@gpBlockchain

env: Capsule 0.10.1 25fd7d4

cargo install cross --git https://github.com/cross-rs/cross
cargo install ckb-capsule --git https://github.com/quake/capsule.git --branch quake/ckb-0.111

contranct :https://github.com/gpBlockchain/ckb-test-contracts/blob/main/rust/acceptance-contracts/contracts/spawn_demo/src/spawn_out_of_memory.rs#L45
test_code: https://github.com/gpBlockchain/ckb-test-contracts/blob/main/rust/acceptance-contracts/tests/src/test_contract_type.rs#L119-L122

step:

capsule test test_contract_type::test_spawn_out_of_memory
running 1 test
thread 'test_contract_type::test_spawn_out_of_memory' panicked at 'pass verification: Error { kind: Script, inner: TransactionScriptError { source: Inputs[0].Lock, cause: VM Internal Error: MemOutOfBound } }', src/test_contract_type.rs:295:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
test test_contract_type::test_spawn_out_of_memory - should panic ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 47 filtered out; finished in 0.13s

not found debug log in the test

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions