-
-
Notifications
You must be signed in to change notification settings - Fork 149
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: meta.is_event() #553
Comments
@dinhani Thanks for your issue report! I would say that this is definitely incorrect on This will only happen if the If you're interested in working on this, I propose that we check that the metadata received by console/console-subscriber/src/lib.rs Line 531 in a0d20fd
We could add a test for this behaviour, although it looks like our test set-up doesn't fail the test when the subscriber thread panics, which is weird. I'll look at that separately. |
I tested my project with the suggested change at I sent the suggested PR, but I still need to check how to test it properly in this project. |
As described in #553, there are parts of code that expects tracing `Metadata` to be of type `EVENT` or `SPAN`. This PR ensure that any tracing metadata with a different type will be ignored instead of panicking when running in debug mode when converting from `tracing_core::Metadata`: https://github.com/tokio-rs/console/blob/60bcf87537d414b21efbd84159207f9ecda5e914/console-api/src/common.rs#L48
What crate(s) in this repo are involved in the problem?
console-api
What is the issue?
console-api
is panicking when running in debug mode in thisdebug_assert!
No idea if this is expected or not, but I identified that an event of kind
HINT
is reaching that point and triggering the assertion to fail.It comes from the external crate
jsonrpsee-core
, so I cannot easily change it.How can the bug be reproduced?
Logs, error output, etc
Versions
Possible solution
Maybe filtering out invalid metadata kinds before calling the function or using
TryFrom
instead.The function is being called from aggregator.rs in
console-subscriber
.Additional context
No response
Would you like to work on fixing this bug?
yes
The text was updated successfully, but these errors were encountered: