-
Notifications
You must be signed in to change notification settings - Fork 23
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
[iOS Simulator] App fails to reload when using custom fonts and New Relic agent #108
Comments
Thanks @yulolimum for creating the repo that exhibits this issue. |
@morganick I tried to reload the app with front line uncommented but app is still reloading fine. can you share video or screenshot where you are seeing this issue? |
@ndesai-newrelic absolutely! https://drive.google.com/file/d/11Lg55D0oIH07TVFmlfrgGOXEm2HyoFEb/view I've also included what my diff is between the current state of the |
@morganick If you disable the following line in your Podfile: :flipper_configuration => flipper_config, this issue will be resolved. There is a compatibility problem between the New Relic agent and Flipper, where both attempt to instrument the same items, causing this issue. |
@ndesai-newrelic issue persists after disabling |
@morganick did you run pod install again after disable the flipper? |
🤦 Nope... with Flipper disabled, it now works as expected. Is this mentioned in documentation? |
@morganick We have recently identified such issues with Flipper and are planning to update our documentation accordingly. Additionally, we will work on resolving the compatibility concerns between New Relic and Flipper. |
@ndesai-newrelic Thanks, looks like Flipper is getting replaced in 0.73 as well. |
Don't mean to add noise to this convo, but I'm not surprised it's Flipper. RN-Firebase has compatibility issues with Flipper as well: https://rnfirebase.io/#altering-cocoapods-to-use-frameworks |
Description
In the iOS simulator after adding the NewRelic agent code, the application will fail to reload from the developer menu after adding custom fonts. The application will just show a white screen as though it can no longer connect to metro. If you close out the application completely, the application will boot normally until you open the developer menu and tap reload.
This only happens on iOS. Android works as expected.
Additional Notes:
The project is using dummy keys so I expect the new relic agent to not be able to connect. This, however, should not affect the application.
I also noticed that this application continues to try to connect repeatedly. I'm assuming because of the agent. You'll also notice that the memory will continue to grow .1Mb every 15 seconds or so. I profiled a bare RN project and it did not exhibit this issue.
If you drop down to the native code and comment out the call to
[NewRelic startWithApplicationToken:appKey...
, the bug goes away, but of course so does NR.Steps to Reproduce
Clone yulolimum/newrelic-react-native-agent and checkout the
crash-repo
branch.App.tsx
If you comment out the font code or comment out the new relic agent startup, this functionality will start to work again.
Expected Behavior
When using the reload from the developer menu, the application will reload and not just show a white screen.
Relevant Logs / Console output
There is no console output except that the agent has started successfully.
Your Environment
The text was updated successfully, but these errors were encountered: