-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Frequent app crashes with message: 'SamplingProfiler should be destroyed on the same thread it is created' #35030
Comments
|
Bad bot. That section is filled in. |
Hi @janicduplessis, This is unrelated to #34129, and has been mitigated here. The proper fix is part of RN (this and a few others). Backporting the Hermes fix might be more manageable. John Paul |
@slapbox would you be able to update to 0.70 to see if it still happens |
@janicduplessis I'd love to try, but unfortunately can't yet due to using Expo. |
I don't know whether the issue is really in React Native or Flipper or both, but it seemingly only occurs with particular versions of Flipper, namely |
I think since the issue is not super critical it should be fine to wait for next expo release to see if it is fixed. |
@janicduplessis maybe not critical for the React Native team, but pretty critical for us... I waste 50% of my time per day because of this, unless the work I'm doing doesn't require the debugger. Note the times between crashes in this image: Also note that I did indeed speak too soon; disabling StrictMode did not fix this. Although the delay til crash upon reload is longer, it still crashes. |
@slapbox Expo sdk 47 should include a fix for this and was just released in beta https://twitter.com/expo/status/1587140697341456384?s=46&t=BsU-0_gGXN_LlsNVVvHw2g |
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
Not sure if it was the fix mentioned above or something else, but it seems resolved now. |
Description
App crashes on restart almost without fail with the message
'SamplingProfiler should be destroyed on the same thread it is created'
Version
0.69.6
Output of
npx react-native info
Steps to reproduce
May require being connected to Flipper's Hermes Debugger for the issue to occur.
Snack, code example, screenshot, or link to a repository
Unknown how to replicate this consistently.
The text was updated successfully, but these errors were encountered: