# WasmIndexExecutor WASM module failed: RuntimeError

**URL:** <https://forum.fuel.network/t/wasmindexexecutor-wasm-module-failed-runtimeerror/2953>\
**Category:** General\
**Created:** [July 30, 2023, 9:37am UTC](https://forum.fuel.network/t/wasmindexexecutor-wasm-module-failed-runtimeerror/2953 "2023-07-30T09:37:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![devarogundade](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/devarogundade/32/1592_2.png) [@devarogundade](https://forum.fuel.network/u/devarogundade)\
**Post date:** [July 30, 2023, 9:37am UTC](https://forum.fuel.network/t/wasmindexexecutor-wasm-module-failed-runtimeerror/2953/1 "2023-07-30T09:37:54Z")

</div>

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) }] }.

---

<div class="post-metadata">

**Author:** ![calldelegation](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/calldelegation/32/1484_2.png) [@calldelegation](https://forum.fuel.network/u/calldelegation)\
**Post date:** [July 31, 2023, 1:46am UTC](https://forum.fuel.network/t/wasmindexexecutor-wasm-module-failed-runtimeerror/2953/2 "2023-07-31T01:46:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![devarogundade](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/devarogundade/32/1592_2.png) [@devarogundade](https://forum.fuel.network/u/devarogundade)\
**Post date:** [July 31, 2023, 1:57pm UTC](https://forum.fuel.network/t/wasmindexexecutor-wasm-module-failed-runtimeerror/2953/3 "2023-07-31T13:57:25Z")

</div>

![Screenshot 2023-07-31 145625](https://us1.discourse-cdn.com/flex022/uploads/fuel/original/2X/7/75cd0d0e3ca9149ccad5a676dd0fde4cebefb3cd.png)  
Here is the error

---

<div class="post-metadata">

**Author:** ![kern](https://avatars.discourse-cdn.com/v4/letter/k/90ced4/32.png) [@kern](https://forum.fuel.network/u/kern)\
**Post date:** [July 31, 2023, 2:38pm UTC](https://forum.fuel.network/t/wasmindexexecutor-wasm-module-failed-runtimeerror/2953/4 "2023-07-31T14:38:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![devarogundade](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/devarogundade/32/1592_2.png) [@devarogundade](https://forum.fuel.network/u/devarogundade)\
**Post date:** [July 31, 2023, 5:19pm UTC](https://forum.fuel.network/t/wasmindexexecutor-wasm-module-failed-runtimeerror/2953/5 "2023-07-31T17:19:03Z")

</div>

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();
    }
}

```

}

---

<div class="post-metadata">

**Author:** ![devarogundade](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/devarogundade/32/1592_2.png) [@devarogundade](https://forum.fuel.network/u/devarogundade)\
**Post date:** [July 31, 2023, 5:19pm UTC](https://forum.fuel.network/t/wasmindexexecutor-wasm-module-failed-runtimeerror/2953/6 "2023-07-31T17:19:28Z")

</div>

* * *

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

---

<div class="post-metadata">

**Author:** ![devarogundade](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/devarogundade/32/1592_2.png) [@devarogundade](https://forum.fuel.network/u/devarogundade)\
**Post date:** [July 31, 2023, 5:20pm UTC](https://forum.fuel.network/t/wasmindexexecutor-wasm-module-failed-runtimeerror/2953/7 "2023-07-31T17:20:30Z")

</div>

[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”] }
