You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
RoutingInstrumentation stall tracking causes some reanimated animation to flicker #3987
If you are using sentry.io, please post a link to your issue so we can take a look:
[Link to issue]
Configuration:
(@sentry/react-native)
const routingInstrumentation = new Sentry.RoutingInstrumentation();
Sentry.init({
dsn: process.env.SENTRY_DSN,
enabled: !__DEV__,
environment: process.env.DEPLOYMENT_ENVIRONMENT,
integrations: [
new Sentry.ReactNativeTracing({
routingInstrumentation,
}),
],
});
I have the following issue:
Some large animations using react-native-reanimated and involving animating padding, height and transform are flickering when sentry is enabled, setting enableStallTracking to false in Sentry.ReactNativeTracing options solves the issue.
Steps to reproduce:
It's unfortunately hard to create a minimal reproduction example. The bug only appears on complex animation involving height and or padding, I'll try later if I can isolate a more specific reproduction case.
Actual result:
Those animations are flickering/jerking
Expected result:
No interferences between reanimated and sentry
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀
Activity
krystofwoldrich commentedon Aug 5, 2024
@fdecampredon Thank you for the message, I understand that it's difficult to reproduce.
Could you share some example animation, where you are seeing the flicker, event if in new app it works it might help us debug the issue.
Does this affect animation driven by JS or by native or both? As disabling stall tracking helped I would assume the JS drive animations are affected.
getsantry commentedon Aug 27, 2024
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you remove the label
Waiting for: Community, I will leave it alone ... forever!"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀
krystofwoldrich commentedon Aug 30, 2024
Closing this due to inactivity. If this is still an issue feel free to comment here or open a new issue if the context changed.
matinzd commentedon Oct 16, 2024
This is still happening and it's actively affecting users on production!
Related:
kirillzyusko/react-native-keyboard-controller#641
matinzd commentedon Oct 16, 2024
After some digging the likely cause is setting a lot of setTimeouts inside the interation:
sentry-react-native/packages/core/src/js/tracing/integrations/stalltracking.ts
Line 113 in fe13591
It is scheduling running itself after 50 ms. Not sure how this can be optimized as it's above my pay grade.
matinzd commentedon Oct 17, 2024
The issue is fixed in v6 with the new stall tracking integration:
#3997