ruvnet/ruflo · error · Error

GNN module not initialized

Error message

GNN module not initialized

What it means

forward() was called on the GNN bridge while this._module is null — the graph neural network WASM module is not loaded (init not awaited or destroy called). Sentinel guard: the graph cannot be run through the native forward pass.

Source

Thrown at v3/plugins/ruvector-upstream/src/bridges/gnn.ts:96

  async destroy(): Promise<void> {
    this._module = null;
    this._status = 'unloaded';
  }

  isReady(): boolean {
    return this._status === 'ready';
  }

  getModule(): GnnModule | null {
    return this._module;
  }

  /**
   * Forward pass through GNN
   */
  forward(graph: Graph, config?: Partial<GnnConfig>): GnnResult {
    if (!this._module) throw new Error('GNN module not initialized');
    const mergedConfig = { ...this.config, ...config };
    return this._module.forward(graph, mergedConfig);
  }

  /**
   * Node classification
   */
  nodeClassification(graph: Graph, config?: Partial<GnnConfig>): Float32Array {
    if (!this._module) throw new Error('GNN module not initialized');
    const mergedConfig = { ...this.config, ...config };
    return this._module.nodeClassification(graph, mergedConfig);
  }

  /**
   * Link prediction
   */
  linkPrediction(
    graph: Graph,

View on GitHub (pinned to fa13ee4ad6)

Solutions

  1. Ensure the module/bridge/plugin initialize() method has been called and awaited before invoking this operation.
  2. Guard against calls made during startup: await the initialization promise or check the initialized flag and fail fast with a clear setup hint.
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at v3/plugins/ruvector-upstream/src/bridges/gnn.ts:96 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of ruvnet/ruflo@fa13ee4ad6 (2026-08-18). Data as JSON: /api/errors/b25ceedf1f324e1c. Report an issue: GitHub.