FuelLabs/fuel-indexer

`Enity::find` panics

ra0x3 opened this issue · 0 comments

ra0x3 commented

Issue

Thanks for opening an issue on the Fuel Indexer project.

*If you're an internal FuelLabs contributor, please feel free to remove this template when creating issues, as this template is meant for external users and contributors.

Prerequisites

  • Can you reproduce the problem?
  • Do you know which version of the indexer you're using?
  • Are you using the latest versions of Fuel ecosystem components available in fuelup?
  • Did you already check for an answer in previous Discussions?

Description

  • I'm using ::find() functionality and getting a messy FFI panic

Detailed information helps us narrow down any potential causes.

Steps to Reproduce

  1. Pull down the predicates PR #1381
  2. Uncomment this if block
  3. Build test indexer bash scripts/utils/build_modules.bash
  4. Run a test cargo test -p fuel-indexer-tests test_index_events_with_multiple_args_in_index_handler --features postgres

Expected behavior:

  • I would expect there to be no panic

Actual behavior: Please describe the behavior that actually happens.

cargo test -p fuel-indexer-tests test_index_events_with_multiple_args_in_index_handler --features postgres
   Compiling fuel-indexer-macros v0.23.0 (/Users/rashad/dev/repos/fuel-indexer/packages/fuel-indexer-macros)
   Compiling fuel-indexer-utils v0.23.0 (/Users/rashad/dev/repos/fuel-indexer/packages/fuel-indexer-utils)
   Compiling fuel-indexer-tests v0.0.0 (/Users/rashad/dev/repos/fuel-indexer/packages/fuel-indexer-tests)
    Finished test [unoptimized + debuginfo] target(s) in 8.69s
     Running unittests src/lib.rs (target/debug/deps/fuel_indexer_tests-df8da5873c808b45)

running 0 tests

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

     Running tests/lib.rs (target/debug/deps/integration_tests-af48ac0aa15cea92)

running 1 test
Nov 28 14:19:26.921 ERROR fuel_indexer::service: Indexer(fuel_indexer_test.index1) terminated with an error: Indexer(fuel_indexer_test.index1) failed after too many retries, giving up. <('.')>
test indexing::test_index_events_with_multiple_args_in_index_handler ... FAILED

failures:

---- indexing::test_index_events_with_multiple_args_in_index_handler stdout ----
Contract deployed at: fuel1vrwlw55qkc8xgn5sljjlawhlkqjgstczqwcyakx8a80c42tpqc8qv23p4k
Wallet(fuel1av4nwkqg0xpup5mzz7l0ere6hu7pgr5qjzvxez6x8qk3k706nvasedrk39) keystore at: /Users/rashad/dev/repos/fuel-indexer/packages/fuel-indexer-tests/test-chain-config.json
Using contract at fuel1vrwlw55qkc8xgn5sljjlawhlkqjgstczqwcyakx8a80c42tpqc8qv23p4k
thread 'tokio-runtime-worker' panicked at packages/fuel-indexer/src/ffi.rs:237:61:
called `Result::unwrap()` on an `Err` value: MemoryBound
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'tokio-runtime-worker' panicked at packages/fuel-indexer/src/ffi.rs:237:61:
called `Result::unwrap()` on an `Err` value: MemoryBound
thread 'tokio-runtime-worker' panicked at packages/fuel-indexer/src/ffi.rs:237:61:
called `Result::unwrap()` on an `Err` value: MemoryBound
thread 'tokio-runtime-worker' panicked at packages/fuel-indexer/src/ffi.rs:237:61:
called `Result::unwrap()` on an `Err` value: MemoryBound
thread 'tokio-runtime-worker' panicked at packages/fuel-indexer/src/ffi.rs:237:61:
called `Result::unwrap()` on an `Err` value: MemoryBound
thread 'tokio-runtime-worker' panicked at packages/fuel-indexer/src/ffi.rs:237:61:
called `Result::unwrap()` on an `Err` value: MemoryBound
thread 'tokio-runtime-worker' panicked at packages/fuel-indexer/src/ffi.rs:237:61:
called `Result::unwrap()` on an `Err` value: MemoryBound
thread 'tokio-runtime-worker' panicked at packages/fuel-indexer/src/ffi.rs:237:61:
called `Result::unwrap()` on an `Err` value: MemoryBound
thread 'tokio-runtime-worker' panicked at packages/fuel-indexer/src/ffi.rs:237:61:
called `Result::unwrap()` on an `Err` value: MemoryBound
thread 'tokio-runtime-worker' panicked at packages/fuel-indexer/src/ffi.rs:237:61:
called `Result::unwrap()` on an `Err` value: MemoryBound
thread 'tokio-runtime-worker' panicked at packages/fuel-indexer/src/ffi.rs:237:61:
called `Result::unwrap()` on an `Err` value: MemoryBound
thread 'indexing::test_index_events_with_multiple_args_in_index_handler' panicked at packages/fuel-indexer-tests/tests/indexing.rs:44:14:
called `Result::unwrap()` on an `Err` value: RowNotFound

Versions

Please list what version of indexer components you're using. Latest is currently .

  • fuel-indexer: PR version
  • forc-index: PR version
  • forc: 0.46