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

0.30 client results in UI warning "A required debug information file was missing" #574

Open
pjenvey opened this issue May 3, 2023 · 3 comments

Comments

@pjenvey
Copy link

pjenvey commented May 3, 2023

Environment

Linux, sentry-rust 0.30 w/ Cloud Sentry, Rust 1.68

Steps to Reproduce

Upgrading from sentry 0.27 to 0.30 results in a new warning appearing in the Sentry UI: "A required debug information file was missing".
Screenshot 2023-05-03 at 3 33 14 PM
This also produces an email alert stating "Failed to Process Events - Some events failed to process in your project".

With 0.27 we do see a note on each frame that it could not be symbolicated:
Screenshot 2023-05-03 at 3 36 42 PM

With 0.30 this note has slightly changed to show:
Screenshot 2023-05-03 at 3 36 49 PM

Otherwise the event appears as it normally does.

We've built this application with:

[profile.release]
# Enables line numbers in Sentry
debug = 1

which has always caused our stack frame information to be included in sentry as seen in both screenshots.

What has began causing this error? I've never needed to e.g. upload separate debug information files before to sentry, compiling w/ debug = 1 has always been good enough.

I do see the debug-images feature is now enabled by default as of 0.28, could this be related (I'm not entirely sure what it does)?

pjenvey added a commit to mozilla-services/contile that referenced this issue May 3, 2023
which produced errors when sentry ingests events

getsentry/sentry-rust#574
@pjenvey
Copy link
Author

pjenvey commented May 3, 2023

I've confirmed disabling debug-images makes this error go away. How should this work/the problem be avoided w/ the default feature set including debug-images?

@Swatinem
Copy link
Member

Swatinem commented May 4, 2023

Yes you are absolutely right, the debug-images integration is causing this problem.

If you are building and shipping with debug info included in your binary, you do not need the integration, and enabling it will either cause the problem you described, or worse, it can cause getsentry/sentry#46435.

However, the thinking was that most projects are shipped with split / stripped debug info to production or to external users. In that case, you do need the debug-images integration, and you do need to upload that split debug info to Sentry, otherwise the stack traces will be useless.

This is not an obvious choice to make, as it depends on the specific build configuration, and I believe we can’t make features conditional on these build flags either. Not to mention that in both cases you are building with debug info, its just at shipping time when it is stripped.

ncloudioj pushed a commit to mozilla-services/contile that referenced this issue May 4, 2023
which produced errors when sentry ingests events

getsentry/sentry-rust#574
pjenvey added a commit to mozilla-services/autopush-rs that referenced this issue May 5, 2023
which produced errors when sentry ingests events

getsentry/sentry-rust#574
pjenvey added a commit to mozilla-services/autopush-rs that referenced this issue May 5, 2023
which produced errors when sentry ingests events

getsentry/sentry-rust#574
pjenvey added a commit to mozilla-services/autopush-rs that referenced this issue May 5, 2023
which produced errors when sentry ingests events

getsentry/sentry-rust#574
@pjenvey
Copy link
Author

pjenvey commented May 10, 2023

Thanks @Swatinem. I can close this issue but maybe this should be left open to improve the documentation around the usage of debug information.

rouge8 added a commit to rouge8/wanikani-apprentice that referenced this issue Jun 2, 2023
pjenvey added a commit to mozilla-services/syncstorage-rs that referenced this issue Nov 21, 2023
which produced errors when sentry ingests events

getsentry/sentry-rust#574

SYNC-4023
pjenvey added a commit to mozilla-services/syncstorage-rs that referenced this issue Nov 21, 2023
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