Fix crash while using recycled bitmap in Session Replay#2396
Merged
Conversation
ambushwork
marked this pull request as ready for review
November 15, 2024 14:07
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #2396 +/- ##
===========================================
- Coverage 69.79% 69.74% -0.05%
===========================================
Files 760 760
Lines 28310 28317 +7
Branches 4761 4761
===========================================
- Hits 19757 19749 -8
- Misses 7240 7250 +10
- Partials 1313 1318 +5
|
0xnm
approved these changes
Nov 15, 2024
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.
What does this PR do?
A client reported SDK crash with stack trace:
The reason is probably after checking the bitmap is not recycled, GC happened just before we really use the bitmap, so the it throws this
RuntimeException.The fix is that we catch the exception and return null, just ignore this bitmap instead of crashing the app.
Review checklist (to be filled by reviewers)