WasmIndexExecutor WASM module failed: RuntimeError

WasmIndexExecutor WASM module failed: RuntimeError { source: Wasm { pc: 139804993833108, backtrace: 0:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
, signal_trap: None }, wasm_trace: [FrameInfo { module_name: “”, func_index: 833, function_name: Some(“__rust_start_panic”), func_start: SourceLoc(353290), instr: SourceLoc(353291) }, FrameInfo { module_name: “”, func_index: 736, function_name: Some(“rust_panic”), func_start: SourceLoc(352222), instr: SourceLoc(352227) }, FrameInfo { module_name: “”, func_index: 377, function_name: Some(“_ZN3std9panicking20rust_panic_with_hook17hb82d4fb8ab8d902aE”), func_start: SourceLoc(321129), instr: SourceLoc(321378) }, FrameInfo { module_name: “”, func_index: 434, function_name: Some(“ZN3std9panicking19begin_panic_handler28$u7b$$u7b$closure$u7d$$u7d$17h74372e1676159e90E”), func_start: SourceLoc(331996), instr: SourceLoc(332171) }, FrameInfo { module_name: “”, func_index: 813, function_name: Some(“_ZN3std10sys_common9backtrace26__rust_end_short_backtrace17hc9d94d6127b59142E”), func_start: SourceLoc(353143), instr: SourceLoc(353146) }, FrameInfo { module_name: “”, func_index: 530, function_name: Some(“rust_begin_unwind”), func_start: SourceLoc(343935), instr: SourceLoc(343994) }, FrameInfo { module_name: “”, func_index: 583, function_name: Some(“_ZN4core9panicking9panic_fmt17h6ca9864f81dc43dcE”), func_start: SourceLoc(347832), instr: SourceLoc(347890) }, FrameInfo { module_name: “”, func_index: 464, function_name: Some(“_ZN4core6result13unwrap_failed17h86a3d9a7a0e833c3E”), func_start: SourceLoc(336548), instr: SourceLoc(336678) }, FrameInfo { module_name: “”, func_index: 2, function_name: Some(“handle_events”), func_start: SourceLoc(2293), instr: SourceLoc(7203) }] }.

Hey @kern (Internal Fuel Indexooooor) any thoughts here?


Here is the error

@devarogundade, can you share your indexer code? It’s difficult to pinpoint a specific cause without knowing what you’re trying to do.

extern crate alloc;

use fuel_indexer_macros::indexer;
use fuel_indexer_utils::prelude::*;

#[indexer(manifest = “indexer.manifest.yaml”)]
pub mod indexer_index_mod {

fn indexer_handler(block_data: BlockData) {
    info!("Processing Block#{}. (>'.')>", event.nonce);

    let block_id = id8(block_data.id);
    let block = Block{ id: block_id, height: block_data.height, hash: block_data.id };
    block.save();

    for transaction in block_data.transactions.iter() {
        let tx = Transaction{ id: id8(transaction.id), block: block_data.id, hash: Bytes32::from(<[u8; 32]>::from(transaction.id)) };
        tx.save();
    }
}

}


namespace: project

abi: “…/swaycall/out/debug/project-abi.json”

identifier: indexer

fuel_client: “beta-3.fuel.network:80”

graphql_schema: schema/indexer.schema.graphql

module:

wasm: target/wasm32-unknown-unknown/release/indexer.wasm

metrics: ~

contract_id: “0x46266fe5b27cb7feb5dafcec833b375c6c31f57fd388c86448c82ca2a3eac01c”

start_block: 1683500

end_block: ~

resumable: true

[package]

name = “indexer”

version = “0.0.0”

edition = “2021”

publish = false

[lib]

crate-type = [‘cdylib’]

[dependencies]

fuel-indexer-macros = { version = “0.18.5”, default-features = false }

fuel-indexer-schema = { version = “0.18.5”, default-features = false }

fuel-indexer-utils = { version = “0.18.5” }

fuels = { version = “0.43”, default-features = false }

serde = { version = “1.0”, default-features = false, features = [“derive”] }