Skip to content

Conversation

@themiswang
Copy link
Contributor

Description

Fix iOS fatal for on demand
Add current stack trace if there is empty stack trace in exception


Testing

Tested exception with stack trace:
https://screenshot.googleplex.com/43Grf4RVMDd5Fzn

Tested exception without stack trace:
https://screenshot.googleplex.com/BNWeCg59nHA46Lt


LoggedException loggedExceptionWithCurrentStackTrace = new LoggedException(loggedException.Name, loggedException.Message, currentStackTrace);
parsedStackTrace = loggedExceptionWithCurrentStackTrace.ParsedStackTrace;

if (parsedStackTrace.Length > 2) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we don't add this logic, the stack trace will look like this as it still blame on crashlytics frame:
Screen Shot 2023-01-13 at 12 27 19 AM

Remove these two frame for logging purpose then here is the result:
Screen Shot 2023-01-13 at 12 26 43 AM

@themiswang themiswang requested a review from mrober January 13, 2023 14:45
@themiswang themiswang force-pushed the crashlytics-fatals-ios branch from a310a71 to 7f3caec Compare January 13, 2023 15:12
@themiswang themiswang force-pushed the crashlytics-fatals-ios branch from 7f3caec to 5e200f6 Compare January 13, 2023 15:13
@themiswang themiswang merged commit 60744ef into crashlytics-fatals Jan 13, 2023
@github-actions github-actions bot added the tests: in-progress This PR's integration tests are in progress. label Jan 13, 2023
@github-actions
Copy link

github-actions bot commented Jan 13, 2023

❌  Integration test FAILED

Requested by @firebase-workflow-trigger[bot] on commit 5e200f6
Last updated: Fri Jan 13 11:01 PST 2023
View integration test log & download artifacts

Failures Configs
/Users/runner/work/firebase-unity-sdk/firebase-unity-sdk/testapps/remote_config/MacOSTestapp/testapp.app/Contents/MacOS/Firebase Remote Config Unity Testapp [TEST] [ERROR] [2020] [1/2 Build OS(s): windows] [1/6 Platform(s): macOS] [1/3 Test Device(s): github_runner]
/home/runner/work/firebase-unity-sdk/firebase-unity-sdk/testapps/Android/dynamic_links/testapp.apk [TEST] [FAILURE] [2020] [1/2 Build OS(s): windows] [1/6 Platform(s): Android] [1/3 Test Device(s): android_target]
auth [TEST] [ERROR] [2020] [1/2 Build OS(s): windows] [1/6 Platform(s): macOS] [1/3 Test Device(s): github_runner]
database [TEST] [FAILURE] [2020] [1/2 Build OS(s): windows] [1/6 Platform(s): Android] [1/3 Test Device(s): android_target]
dynamic_links [TEST] [FAILURE] [2020] [1/2 Build OS(s): macos] [1/6 Platform(s): iOS] [1/3 Test Device(s): ios_target]
firestore [BUILD] [ERROR] [2020] [1/2 Build OS(s): windows] [1/3 Platform(s): Android] [1/2 Test Device(s): NA]
[TEST] [FAILURE] [2020] [1/2 Build OS(s): macos] [1/6 Platform(s): iOS] [1/3 Test Device(s): ios_target]
messaging [TEST] [ERROR] [2020] [1/2 Build OS(s): macos] [1/6 Platform(s): iOS] [1/3 Test Device(s): ios_target]
storage [TEST] [FAILURE] [2020] [1/2 Build OS(s): windows] [2/6 Platform(s): Android Windows] [2/3 Test Device(s): github_runner android_target]

@github-actions github-actions bot added the tests: failed This PR's integration tests failed. label Jan 13, 2023
@firebase-workflow-trigger firebase-workflow-trigger bot removed the tests: in-progress This PR's integration tests are in progress. label Jan 13, 2023
mrober added a commit that referenced this pull request Jan 13, 2023
* Implement ODFs for Android

* Update ReportUncaughtExceptionsAsFatal doc, get, set.

* [Crashlytics fatals] Add iOS implementation (#589)

* [crashlytics ondemand fatals]fix the fatal logic (#598)

* [crashlytics ondemand fatals]fix the fatal logic

* remove RecordCustomException and System.Environment.StackTrace frame for fault blame on crashlytics sdk

* Fine tune how we handle empty stack traces on Android.

Co-authored-by: themiswang <themisw@google.com>
@firebase firebase locked and limited conversation to collaborators Feb 13, 2023
@a-maurice a-maurice deleted the crashlytics-fatals-ios branch May 8, 2024 19:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

tests: failed This PR's integration tests failed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants