Skip to content

Panic in tx-service task: unwrap on None in light_pool.rs:505 #2194

@hantoniu-codeberg

Description

@hantoniu-codeberg

smoldot panicked while executing the tx-service-asset-hub-kusama task. The process continued running but the chain is likely in a broken state.

Panic message:

  Smoldot has panicked while executing task `tx-service-asset-hub-kusama`. This is a bug in smoldot. Please open an issue at https://github.com/smol-dot/smoldot/issues with the following message:
  panicked at /__w/smoldot/smoldot/lib/src/transactions/light_pool.rs:505:63:
  called `Option::unwrap()` on a `None` value

Environment:

  • smoldot version: 2.0.40
  • Platform: Linux (Debian, arm64)
  • Chain: kusama-asset-hub (parachain via kusama relay)

Context:

  • Running smoldot as a daemon exposing chains via WebSocket over Unix sockets
  • The panic occurred ~23 minutes after startup during normal operation
  • No specific trigger identified - read-only usage, no transactions being submitted
  • Heavy sync activity on kusama relay chain just before panic (multiple "occupied CPU for unreasonable amount of time" warnings on sync-service-ksmcc3)

Logs before panic:
[smoldot] The task named sync-service-ksmcc3 has occupied the CPU for an unreasonable amount of time (275ms).
Smoldot has panicked while executing task tx-service-asset-hub-kusama...

Additional notes:

  • The panic was caught internally by smoldot - the Node.js process didn't crash
  • This means applications cannot detect and recover from this failure
  • Would it be possible to propagate these panics as errors to the calling code?

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