Skip to content

Conversation

@romtsn
Copy link
Member

@romtsn romtsn commented Jul 2, 2025

📜 Description

Apparently width and height can return negative values, so our != 0 check was not enough

💡 Motivation and Context

https://sentry.sentry.io/issues/6713535878/events/318005d8a00a468abccdd5f4f5576f28/

💚 How did you test it?

With tests

📝 Checklist

  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.

🔮 Next steps

@romtsn romtsn changed the title fix(replay): Fix crash when hasSize returns true for negative values fix(replay): Fix IllegalArgumentException when Bitmap is initialized with non-positive values Jul 2, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Jul 2, 2025

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 402.45 ms 445.14 ms 42.70 ms
Size 1.58 MiB 2.09 MiB 518.90 KiB

Previous results on branch: rz/fix/session-replay-hassize-crash

Startup times

Revision Plain With Sentry Diff
a278b40 395.36 ms 445.86 ms 50.50 ms

App size

Revision Plain With Sentry Diff
a278b40 1.58 MiB 2.09 MiB 518.90 KiB

@romtsn romtsn enabled auto-merge (squash) July 3, 2025 14:10
@romtsn romtsn merged commit b90f667 into main Jul 3, 2025
34 checks passed
@romtsn romtsn deleted the rz/fix/session-replay-hassize-crash branch July 3, 2025 14:19
romtsn added a commit that referenced this pull request Jul 9, 2025
…zed with non-positive values (#4536)

* fix(replay): Fix crash when hasSize returns true for negative values

* spotless

* Changelog
romtsn added a commit that referenced this pull request Jul 9, 2025
…initialized with non-positive values (#4536)"

This reverts commit 185b5dc.
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.

3 participants