Reactotron: `Maximum call stack size exceeded` on iOS 10

Created on 20 Sep 2016  路  7Comments  路  Source: infinitered/reactotron

When reactotron is used with react-native-router-flux connected to redux on iOS 10, it raises the Maximum call stack size exceeded error, calling _hasBinary of socket.io a lot.

It can be reproduced with the newly created ignite project by changing NavigationRouter.js as the below.

import { Scene, Router as RNRFRouter } from 'react-native-router-flux'
import { connect } from 'react-redux'

[...]

const Router = connect()(RNRFRouter);

All 7 comments

Totally struggling with that right now too. I've temporarily turned of logging those commands until I get to the bottom of this. 馃挬

It seems like this issue is somewhat related to socketio/socket.io#1665. If an object with cyclic object values is serialized, then the Maximum call stack size exceeded error is no longer raised but you can see some warnings saying This synthetic event is reused for performance reasons..

Same issue as this. So how to solve it?

It's because a circular reference is being passed. For example, you're trying to log something that's a react component (for example the props in componentWillReceiveProps) or react native router flux state.

The short term fix is to not log that (I know, not a fix).

The long term fix is for me to write (or find) something that detects circular references and uncircularfy them.

@skellock thanks. I upgraded my reactotron-* dependencies (like you suggested in #255), but now the app freezes on launch (at about the same point where the "Maximum call stack size exceeded" warnings were popping up on 1.5.1), taking no user input and requiring me to kill it. Unfortunately, there doesn't appear to be any error or warning message this time. I'm still using the Reactotron desktop client at version 1.5.0 - I'm assuming that's right since a new build wasn't included in the 1.5.2 release?

woah. can you post that as a new issue? if you can, maybe some relevant code to help track it down too. thanks!

1.9 will put this stuff to rest finally.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Anahkiasen picture Anahkiasen  路  5Comments

ferminmoli picture ferminmoli  路  4Comments

andrewvy picture andrewvy  路  4Comments

wilr picture wilr  路  3Comments

nonameolsson picture nonameolsson  路  5Comments