Open hannojg opened 1 month ago
@hannojg Thanks for the issue. I just tried myself with an app on 0.74.1 and I could not reproduce the issue:
https://github.com/facebook/react-native/assets/11162307/7a518ccb-57dd-4e80-9b51-fca3eff0030d
I created a new app with 0.74.1 to reproduce your same scenario and environment. I can't repro the issue there either.
https://github.com/facebook/react-native/assets/11162307/ee96e177-02ba-4da4-b05c-7df0a417976e
Hmm, this is odd, I can reliably reproduce this issue 🤔 Can you try the reproduction app? I just pushed a new commit that renders react components that are similar to our app where we experience the crash:
https://github.com/facebook/react-native/assets/16821682/2a549a3c-257c-494d-983a-a4bcc8a34162
// Note: I wasn't able to reproduce the issue on a real device; not sure what could make the difference
uhm, you sure you pushed? I only see these commits:
Perhaps you committed but not pushed to remote?
I just tried with the reproducer (which spins up a new app with 0.74.1) and can't repro it... :/
So sorry, forgot to push, its up now!
😞 😞 😞 😞 😞 😞 😞 😞
...no crashes...
https://github.com/facebook/react-native/assets/11162307/2556c328-e5fc-41d4-a152-87a497071998
Thanks for testing, so weird it's not reproducible on your end. I see that you use iOS 17.5, where I am using 17.4 (although I wouldn't know what difference that could make). Will upgrade tonight and try to reproduce tmrw on iOS 17.5 (any other ideas what could cause the difference?)
that could be something, actually. I'm using Xcode 15.4 and Apple made several changes in Xcode 15 for C++, in every version basically... So perhaps that fixes? Today I don't have any extra time to install iOS 17.4 and try with that, but I can give it a shot tomorrow.
I upgraded to Xcode 15.4 and tested with iOS 17.5 and I am still able to reproduce it 😅
😭 I'm very sad and sorry. But I can't reproduce it. And it is a completely new app, with the reproducer. :(
@hannojg @cipolleschi Hey! I cloned the above repo and I was able to reproduce this issue for iOS
https://github.com/facebook/react-native/assets/17410343/18bec051-5798-4776-a1c0-db2f437266eb
Description
When repeatedly reloading the app pressing "r" in the metro bundler the app crashes
Steps to reproduce
cd ReproducerApp
1.2yarn
1.3yarn pods
1.4 Open the iOS project and buildxed ios
Note: The effect is amplified in a real world app with more elements.
React Native Version
0.74.1
Affected Platforms
Runtime - iOS
Areas
Fabric - The New Renderer
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/hannojg/crash-on-reload
Screenshots and Videos
https://github.com/facebook/react-native/assets/16821682/c3f66127-6ddd-4f76-bfeb-72ec87cfdfdc