-
Notifications
You must be signed in to change notification settings - Fork 49
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
assertion failed: self.input_best_block_index.map_or #1901
Comments
I can't do much without logs unfortunately.
That would simply hide the bug. |
Thank you @tomaka
The reasoning here is not to "hide" the bug but just not act/panic when a |
Imagine that (in Javascript) you're doing for example It's the same situation here, except that |
Thank you for the explanation Pierre. Highly appreciated 🙏🏽 |
I have reported this further in #1934. Can confirm that this is still happening on the latest version, I'll try to capture some logs today. |
I have some logs here. They are taken from the browser, so apologies that its not super clean. Smoldot Version: 2.0.30 Line 9810 https://gist.github.com/ryanleecode/578a14bd6f185a299ce76f63997f0709#file-smoldot_crash-log-L9810 |
Thanks!
Then until line 9127 the asset hub sync service shuts down and is restarted multiple times because the asset hub chain is removed and re-added multiple times. This is probably not intended but smoldot just follows instructions. Then the asset hub sync service logs are:
The behavior of the sync service seems correct. It reports 0x02d6…93d1 then finalizes it, then reports 0x9979…9ac9 then finalizes it. The latter block is indeed a child of the former. The runtime service is reset at line 9125, then starts trying to fetch the runtime of the genesis block, then starts trying to fetch the runtime of 0x02d6…93d1 once it hears about it. |
It's annoying, but the debug logs look completely correct. If you could generate trace logs (log level 5, instead of 4), it would generate way more info and probably show the problem. Also note that you seem to remove them immediately add back the asset hub chains multiple times. This is probably what indirectly triggers the bug. If you want a work-around, I suppose that not doing that would help. |
ogdfiibbabaebbogenjlolnmngfinoeb-1726846418319.log Line 58184 EDIT: this is actually #1941 |
ogdfiibbabaebbogenjlolnmngfinoeb-1726859651448.log Line 3232. Can't get the trace logs my PC just freezes from the sheer amoutn of output there is. this is debug logs + verbose turn on in chrome console. I'm able to reproduce this easily by just refreshign the dapp im connecting with in rapid sucession. that seems to align with asset hub being started and shutdown mutliple times |
Smoldot crashed, while running for a few minutes, in the browser (in fellowship dashboard) with the following message:
and
There are specific panic reasons as described here but am not sure if such a case occured.
I have a question concerning the case: Why should smoldot's code panic in case
node_to_finalize
isn't a valid node or if the current input best block is not a descendant ofnode_to_finalize
? Could it just "skip" the state background update for this iteration?The text was updated successfully, but these errors were encountered: