fix: catch errors thrown during handleBeginFrame and handleDrawFrame#2446
Merged
Conversation
buenaflor
requested review from
krystofwoldrich,
martinhaintz and
stefanosiano
as code owners
November 25, 2024 14:55
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2446 +/- ##
===========================================
- Coverage 86.84% 63.31% -23.54%
===========================================
Files 260 4 -256
Lines 9239 169 -9070
===========================================
- Hits 8024 107 -7917
+ Misses 1215 62 -1153 ☔ View full report in Codecov by Sentry. |
Contributor
iOS Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| bd1b990 | 1209.43 ms | 1226.96 ms | 17.53 ms |
| c73ab67 | 1267.73 ms | 1279.36 ms | 11.63 ms |
| 08a7b4f | 1277.10 ms | 1303.37 ms | 26.27 ms |
| 6325c3b | 1266.52 ms | 1291.06 ms | 24.54 ms |
| bd37365 | 1236.22 ms | 1243.27 ms | 7.04 ms |
| f770c4c | 1204.61 ms | 1222.82 ms | 18.20 ms |
| 547db82 | 1248.23 ms | 1260.90 ms | 12.67 ms |
| 732a7b4 | 1242.17 ms | 1266.96 ms | 24.79 ms |
| bec58b2 | 1252.35 ms | 1272.19 ms | 19.84 ms |
| 051e97a | 1245.94 ms | 1249.51 ms | 3.57 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| bd1b990 | 8.32 MiB | 9.38 MiB | 1.06 MiB |
| c73ab67 | 8.29 MiB | 9.36 MiB | 1.07 MiB |
| 08a7b4f | 8.16 MiB | 9.16 MiB | 1.01 MiB |
| 6325c3b | 8.16 MiB | 9.17 MiB | 1.01 MiB |
| bd37365 | 8.28 MiB | 9.34 MiB | 1.06 MiB |
| f770c4c | 8.32 MiB | 9.38 MiB | 1.06 MiB |
| 547db82 | 8.38 MiB | 9.74 MiB | 1.36 MiB |
| 732a7b4 | 8.32 MiB | 9.38 MiB | 1.06 MiB |
| bec58b2 | 8.38 MiB | 9.75 MiB | 1.37 MiB |
| 051e97a | 8.28 MiB | 9.34 MiB | 1.06 MiB |
denrase
approved these changes
Nov 26, 2024
Contributor
Android Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| f9d18f3 | 430.94 ms | 497.59 ms | 66.65 ms |
| f96ca24 | 316.08 ms | 388.22 ms | 72.14 ms |
| cdf7172 | 348.54 ms | 390.81 ms | 42.27 ms |
| 6aab859 | 306.27 ms | 377.92 ms | 71.65 ms |
| 5aab4c5 | 326.12 ms | 378.82 ms | 52.70 ms |
| 1d47eb7 | 282.26 ms | 342.52 ms | 60.26 ms |
| b930b94 | 484.42 ms | 525.51 ms | 41.09 ms |
| 2a0edba | 376.12 ms | 454.00 ms | 77.88 ms |
| 136c365 | 454.54 ms | 505.58 ms | 51.04 ms |
| 81bb164 | 443.79 ms | 485.39 ms | 41.60 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| f9d18f3 | 6.15 MiB | 7.13 MiB | 1000.49 KiB |
| f96ca24 | 6.06 MiB | 7.10 MiB | 1.04 MiB |
| cdf7172 | 5.94 MiB | 6.95 MiB | 1.01 MiB |
| 6aab859 | 6.15 MiB | 7.13 MiB | 999.97 KiB |
| 5aab4c5 | 6.06 MiB | 7.10 MiB | 1.04 MiB |
| 1d47eb7 | 6.16 MiB | 7.14 MiB | 1010.29 KiB |
| b930b94 | 6.49 MiB | 7.57 MiB | 1.08 MiB |
| 2a0edba | 6.33 MiB | 7.30 MiB | 992.46 KiB |
| 136c365 | 6.49 MiB | 7.57 MiB | 1.08 MiB |
| 81bb164 | 6.49 MiB | 7.56 MiB | 1.07 MiB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📜 Description
Catch errors thrown during
handleBeginFrameandhandleDrawFrame💡 Motivation and Context
If these aren't caught, it could potentially disrupt the frame processing and thus freeze the UI -> not good
💚 How did you test it?
Unit test, manual
📝 Checklist
sendDefaultPiiis enabled🔮 Next steps