-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
feat(rust): add troubleshooting page #14595
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
base: lcian/feat/rust-tracing-docs
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,35 @@ | ||||||
--- | ||||||
title: Troubleshooting | ||||||
sidebar_order: 9000 | ||||||
description: "If you need help solving issues with the Sentry Rust SDK, you can read the edge cases documented below." | ||||||
--- | ||||||
|
||||||
As a first step to debug any issue with the SDK, you should perform initialization with `debug: true` in your `ClientOptions` struct passed to `sentry::init`. | ||||||
This will make the SDK log additional debug information on stderr. | ||||||
|
||||||
Read below to find a list of common problems and how to solve them. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
## General | ||||||
|
||||||
<Expandable title="Panic on SDK initialization"> | ||||||
The SDK has been reported to panic on initialization when using the `debug-images` feature on machines with specific versions of the Linux kernel due to an issue with one of its dependencies. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure what the conventions in the Sentry docs are but I try to avoid passive language when possible. Also, are you sure it has to do with the kernel? Because I don't think the kernel has dependencies in that sense, but potentially there is a problem with kernel modules or graphics drivers? If not, I would use some more generic term like below so users submit all potentially relevant information.
Suggested change
|
||||||
|
||||||
Please open a GitHub [issue](https://github.com/getsentry/sentry-rust/issues/new/choose) with your OS and kernel version if you're affected by this. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would graphics card drivers be relevant here? I think it might be worth asking for them as well |
||||||
</Expandable> | ||||||
|
||||||
<Expandable title="Duplicated stack frames"> | ||||||
There's an issue where stack frames can appear to be duplicated in Sentry with respect to the real stack trace. | ||||||
As there's a currently a hard limit of 200 frames in ingestion, this can cause errors to be missing stack frames when the limit is exceeded. | ||||||
This happens when the stack trace is already symbolicated on the client (due to debug information being present at runtime) but gets resymbolicated on the server. | ||||||
|
||||||
There are two alternative ways to address this problem: | ||||||
- keep debug information in the binary, but disable the `debug-images` feature of the `sentry` crate; | ||||||
- strip debug information from the binary, and [upload debug files](/platforms/rust/source-context/#compile-and-create-debug-information-files) separately. | ||||||
</Expandable> | ||||||
|
||||||
|
||||||
<Expandable title="'This frame has an unknown problem and can not be symbolicated' error in the UI for application stack frames"> | ||||||
This can happen when your executable doesn't have a build ID, and therefore stack frames cannot be associated with any debug files by the Sentry backend. | ||||||
|
||||||
To ensure `cargo` embeds a build ID in your binary, set the following environment variable when building: `RUSTFLAGS="-Clink-args=-Wl,--build-id"`. | ||||||
</Expandable> |
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.