-
Notifications
You must be signed in to change notification settings - Fork 130
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
NSInvalidArgumentException BSGEventUploadOperation.m:112 #1138
Comments
The unhandled errors are universally reported immediately after app start, which would indicate that custom stack trace errors that are stored before the next app launch (like in the event of a simultaneous OOM) are not stored with the |
Thanks for the detailed report and follow up! 👍 It appears that the crash is happening when trying to send an error that was stored by an earlier version (like 6.2) of Bugsnag. More recent versions (6.8.2 onwards) would throw an exception in
Something like this: id stacktrace = call.arguments[@"stackTrace"];
if ([stacktrace isKindOfClass:[NSArray class]]) {
[event attachCustomStacktrace:stacktrace withType:@"flutter"];
} It's fine to pass
|
Fixed in v6.10.1 |
Describe the bug
After upgrading from 6.2 to 6.9, we've been seeing unhandled crashes from a narrow set of users with the following stacktrace:
This is strange because the line in BugsnagError.m checks for nil values:
From my limited knowledge of Obj-C,
nil
does not necessarily equalNSNull
and a stricter comparison may be required fortrace != nil
. Or, since the use case utilizes a custom stack trace (see below), stricter validation may be required on the custom stack trace method.Steps to reproduce
I maintain the
bugsnag_flutter
library (Flutter is a cross-platform mobile framework), which reports errors to the native SDK with an assigned a custom stacktrace for handled in-app events. This is done so that the errors receive the richness of the native SDK reporting (device version, user, breadcrumbs, etc). This is how the stack trace is assigned:I'm still trying to figure out the sort of error that causes this failure and will provide better repro steps if/when they can be determined reliably.
Environment
The text was updated successfully, but these errors were encountered: