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

[NR-218350] [iOS] Duplicate crash uploaded on App launch #197

Closed
wants to merge 2 commits into from

Conversation

cdillard-NewRelic
Copy link
Member

We only want to uploadCrashReports when initializing NRMAExceptionHandlerManager

@cdillard-NewRelic cdillard-NewRelic changed the title DOUBLE REPORT FIX: Fix by commenting out uploadCrashReports in onSessionStart [NR-218350] [iOS] Duplicate crash uploaded on App launch Jan 30, 2024
@cdillard-NewRelic
Copy link
Member Author

cdillard-NewRelic commented Jan 30, 2024

Wonder if it makes sense to expose this "fix" as a feature flag?

something like NRMAFeatureFlags.NRFeatureFlag_DuplicateCrashUploadFix ? If you all prefer we can also just fix it and test and ship it.

@cdillard-NewRelic
Copy link
Member Author

@smalsam-newr RE: Check in the old repository for how long this bug has existed of duplicate crash reporting.

NRMAExceptionHandlerManager where we call uploadCrashReports

https://source.datanerd.us/mobile/dylib-ios-agent/blame/develop/Agent/CrashHandler/NRMAExceptionHandlerManager.m

and
NewRelicAgentInternal onSessionStart where we call uploadCrashReports

https://source.datanerd.us/mobile/dylib-ios-agent/blame/develop/Agent/General/NewRelicAgentInternal.m#L494

It looks like both locations have included the call to uploadCrashReports for at least 4 years

@cdillard-NewRelic
Copy link
Member Author

We will fix this another way by adding intelligence to NRMACrashDataUploader so that it never uploads duplicate crashes.

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

Successfully merging this pull request may close these issues.

1 participant