Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panic error assertion failed: self.input_best_block_index.map_or #1934

Closed
tien opened this issue Aug 8, 2024 · 1 comment
Closed

Panic error assertion failed: self.input_best_block_index.map_or #1934

tien opened this issue Aug 8, 2024 · 1 comment

Comments

@tien
Copy link
Contributor

tien commented Aug 8, 2024

I've received the following issues somewhat often with smoldot

Smoldot has panicked while executing task `sync-service-asset-hub-polkadot`. 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/chain/async_tree.rs:866:9:
assertion failed: self.input_best_block_index.map_or(false,
    |current_input_best|
        self.non_finalized_blocks.is_ancestor(node_to_finalize,
            current_input_best)) client.js:75:24

The issue appear to happen if you lazily add parachains (Hard to tell because I can't consistently reproduce this error).

This seems to work fine (so far):

const relayChain = smoldot.addChain({ chainSpec: relayChainSpec });
const parachain = smoldot.addChain({ chainSpec: parachainSpec, potentialRelayChains: [relayChain] });

But this will occasionally raise the panic error:

const relayChain = smoldot.addChain({ chainSpec: relayChainSpec });

// Will only be called if parachain interaction is needed
const getParachain = () => smoldot.addChain({ chainSpec: parachainSpec, potentialRelayChains: [relayChain] });
@tomaka
Copy link
Contributor

tomaka commented Aug 12, 2024

This is most likely a duplicate of #1901, which might be fixed but the fix unreleased. If you have a way to generate logs when the problem happens, it would be very helpful.

@tomaka tomaka closed this as not planned Won't fix, can't repro, duplicate, stale Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants