NativeAnimatedModule in Fabric no longer crashes if all Animated nodes are not visited

Summary:
Previously this was crashing only in debug, but that's too noisy and isn't giving us any value for now.

Changelog: [Internal]

Differential Revision: D23338800

fbshipit-source-id: bf1535cdda231ccf30af6d00509eec1499a552a1
This commit is contained in:
Joshua Gross
2020-08-27 01:32:08 -07:00
committed by Facebook GitHub Bot
parent 5e04e932a8
commit 0fb7f5a6f5
@@ -718,10 +718,13 @@ import java.util.Queue;
+ " but toposort visited only "
+ updatedNodesCount);
if (mEventListenerInitializedForFabric && cyclesDetected == 0) {
// TODO T71377544: investigate these SoftExceptions and see if we can remove entirely
// or fix the root cause
ReactSoftException.logSoftException(TAG, new ReactNoCrashSoftException(ex));
} else if (mEventListenerInitializedForFabric) {
// Crashes in Debug, but not in Production
ReactSoftException.logSoftException(TAG, ex);
// TODO T71377544: investigate these SoftExceptions and see if we can remove entirely
// or fix the root cause
ReactSoftException.logSoftException(TAG, new ReactNoCrashSoftException(ex));
} else {
throw ex;
}