Skip to content
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

[SR] Fix various crashes #3970

Merged
merged 9 commits into from
Dec 10, 2024
Merged

[SR] Fix various crashes #3970

merged 9 commits into from
Dec 10, 2024

Conversation

romtsn
Copy link
Member

@romtsn romtsn commented Dec 6, 2024

📜 Description

  • Fix IndexOutOfBoundsException when tracking window changes. The problem here was that we had an object RootViewSpy, and it was shared between different instances of the ReplayIntegration, hence messing up things.
  • Fix IllegalStateException when adding/removing draw listener for a dead view
  • Fix ConcurrentModificationException when registering window listeners and stopping WindowRecorder/GestureRecorder
  • Fix some TODOs in Windows.kt

💡 Motivation and Context

Closes #3859
Closes getsentry/sentry-react-native#4234

💚 How did you test it?

Manually + automated

📝 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

Copy link
Contributor

github-actions bot commented Dec 6, 2024

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 431.15 ms 499.96 ms 68.81 ms
Size 1.70 MiB 2.36 MiB 672.22 KiB

Previous results on branch: rz/fix/session-replay-window-crashes

Startup times

Revision Plain With Sentry Diff
c4a83e5 413.86 ms 464.82 ms 50.96 ms
68f8bfc 414.88 ms 428.41 ms 13.53 ms
113888d 441.10 ms 491.92 ms 50.82 ms

App size

Revision Plain With Sentry Diff
c4a83e5 1.70 MiB 2.35 MiB 669.67 KiB
68f8bfc 1.70 MiB 2.35 MiB 669.68 KiB
113888d 1.70 MiB 2.35 MiB 669.67 KiB

Copy link
Member

@markushi markushi left a comment

Choose a reason for hiding this comment

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

LGTM!

@romtsn romtsn merged commit e227906 into main Dec 10, 2024
32 checks passed
@romtsn romtsn deleted the rz/fix/session-replay-window-crashes branch December 10, 2024 08:55
@iamrita
Copy link

iamrita commented Dec 10, 2024

Thanks for fixing this! What version of sentry should we update to on Android to incorporate this change?

@markushi
Copy link
Member

@iamrita This fix will ship as part of the 7.19.0 release, which is about to ship in the upcoming hours.

@iamrita
Copy link

iamrita commented Dec 11, 2024

Great, looking forward to it!

@iamrita
Copy link

iamrita commented Dec 12, 2024

@markushi Any update on the 7.19.0 release?

@markushi
Copy link
Member

@iamrita sorry for the delay, there was a small hiccup with our release pipeline, but the release is out now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants