ExceptionsManager.js:73 RCTJSONStringify()遇到以下错误:JSON写入中的数值(NaN)无效

时间:2017-10-09 18:53:25

标签: react-native react-native-ios

我的iOS上的React Native应用程序出现问题。每次应用程序从后台返回到前台时都会发生以下错误:

error

如果我禁用远程调试器并转到生产环境,则错误将更改为:

RCTFatalException: Error calling RCTNativeAppEventEmitter.emit folly::toJson: JSON object value was a NaN or INF
RCTFatalException: Error calling RCTNativeAppEventEmitter.emit

folly::toJson: JSON object value was a NaN or INF Error calling RCTNativeAppEventEmitter.emit

folly::toJson: JSON object val... 
    Frameworks/CoreFoundation.framework/CoreFoundation ___exceptionPreprocess
    /usr/lib/libobjc.A.dylib _objc_exception_throw
    Frameworks/CoreFoundation.framework/CoreFoundation +[NSException raise:format:]
    musica_app RCTFatal
    musica_app -[RCTCxxBridge handleError:]
    musica_app __34-[RCTCxxBridge _initializeBridge:]_block_invoke
    musica_app facebook::react::RCTMessageThread::tryFunc(std::__1::function<void ()> const&)
    Frameworks/CoreFoundation.framework/CoreFoundation ___CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__
    Frameworks/CoreFoundation.framework/CoreFoundation ___CFRunLoopDoBlocks
    Frameworks/CoreFoundation.framework/CoreFoundation ___CFRunLoopRun
    Frameworks/CoreFoundation.framework/CoreFoundation _CFRunLoopRunSpecific
    musica_app +[RCTCxxBridge runRunLoop]
    Frameworks/Foundation.framework/Foundation ___NSThread__start__
    /usr/lib/system/libsystem_pthread.dylib __pthread_body
    /usr/lib/system/libsystem_pthread.dylib __pthread_start
    /usr/lib/system/libsystem_pthread.dylib _thread_start

我完全不知道哪个插件或设置导致了这个问题?没有关于第三方插件的信息。我在React Native 0.48和iOS 11上(但它也发生在iOS 10上)。

0 个答案:

没有答案