-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Malformed calls from JS: field sizes are different #23835
Comments
I have the same issue after running react native upgrade from 0.57 to 0.59 @Blutude were you able to find a solution? |
It looks like you are using an older version of React Native. Please update to the latest release, v0.59 and verify if the issue still exists. The "Resolution: Old Version" label will be removed automatically once you edit your original post with the results of running `react-native info` on a project using the latest release.
|
@cristian1703 I was not. I reverted to an old commit before react-native upgrade and it started working again. |
@Blutude @cristian1703 -- upgrading to the latest patch |
@daveols as you can see in my react-native info, I am already using 0.59.1 |
Hey @Blutude thanks for reporting! Currently what's posted is a crash report, not a bug report, so it's not really actionable for us Can you update to outline what the bug is and how to reproduce? |
I stumbled on the same error with RN 0.59.1. I'm not sure if it is linked to react-native or the underlying libraries, but maybe it can help reproducing it.
Both of these cases (and the error message) seem to be linked to animation. Here is the PR for the Menu component. |
I ran into this error and it turned out I was passing |
I got the same issue, and find a solution react-navigation/react-navigation#4058 |
Seems like this is a |
@cpojer I got the same problem. But I don't have |
I had a similar issue. In my case, I tracked it down to native bridge serialization problem. Basically, the problem is that some JS values are not accepted as arguments for native method calls. Most notably: NaN and Infinity, also functions. How to diagnose: First, look for the errors like this in your log:
This might give you and idea what specific value causing the problem. In order to figure out the specific method, you should look into the first 2 number array reported by RN. Those are internal ids of native module and method:
They are not very straightfoward to look up, but one place you can start is (In my case this only was a problem in debug mode, when the calls are made via Websockets, in release mode everything was working - I believe because of a different serialization mechanism React Native uses in release vs debug). |
my problem RN0.59.8
|
@nppull notice |
i was fixed it :) before:
after:
|
I'm getting the same error message issue.... @nppull what was the change u made there? So is this such an issue that will happen when prop_types type mismatch or invalid value somehow?? |
Same here. 0.59.10 |
I'm getting the same error for date input field and I am using react-navigation. is this react-navigation issue? |
Same problem, RN 0.59.10 I traced it back to a call to Edit: I just saw that I'm passing |
Same problem, not using react-navigation. We are using animation on this transition and are seeing: |
@mairi17 I fixed similar issue by setting up default value and added condition to check whether value is correct. In your case, opacity value should be a number. |
I just upgraded to React Native 0.60.4 and am facing the same issue. It happens when trying to animate the opacity like so:
The error message includes the following – with opacity being the important part:
Seems like the AnimatedValue is not transformed correctly to a number. |
if your code inside render() return function is like as below: `Please remove SafeAreaView .Hope it works for you !! |
Thank you @nppull, @steventilator, this thread helped me track down a bad value in react-native-maps. |
@wicharek Thanks for your insights. I am also observing same problem only in debug mode which has almost blocked my development as I see the red screen as soon as the app is loaded. How did you fix the problem with the web sockets in your case. For me also, there are no bad values as such in the fields and it is happening during |
Mine was related to AsyncStorage and I fixed it using https://stackoverflow.com/questions/56806467/error-exception-in-hostfunction-malformed-calls-from-js-field-sizes-are-diffe?answertab=active#tab-top |
I had a similar issue when using a Pan Responder and animated value. My issue is I was setting an Animated.ValueXY variable called position via
without setting the x value as well. Updated to:
and the error went away. |
my case was that i was trying to show server's response with Alert . |
In my case, I was providing |
I confirm it |
Just had another fun instance of this I'll leave here for Google's sake. When passing a custom component to |
This seems to be the closest issue to ours. It also stopped our development. If you fixed this issue please provide some feedback.
|
i was having same problem with code like this. I change code to second one and it seems problem gone. But i still don't know why
|
I was integrating firebase in my react native app it was showing some alert using Alert.alert that caused it for me. |
Now sure if it's the same. But I got the error message too. RN ver: 0.61.5 |
I got this same error message when writing json object to firebase database. A hacky solution: JSON.parse(JSON.stringify(<the_json_object_causing_problem>)) works for me. |
This occurred for me when I was sending an object over the JS bridge to native iOS code. I thought I was passing an array, but it turned out to be a dictionary with numeric indices |
🐛 Bug Report
Here is the bug I get.
Malformed calls from JS: field sizes are different.
[[74,24],[19,1],[[64,2000,1552169087432,false]],415]
RCTFatal
-[RCTCxxBridge handleError:]
__34-[RCTCxxBridge _initializeBridge:]_block_invoke
facebook::react::RCTMessageThread::tryFunc(std::__1::function<void ()> const&)
facebook::react::RCTMessageThread::runOnQueue(std::__1::function<void ()>&&)::$_1::operator()() const
void std::__1::__invoke_void_return_wrapper::__call<facebook::react::RCTMessageThread::runOnQueue(std::__1::function<void ()>&&)::$_1&>(facebook::react::RCTMessageThread::runOnQueue(std::__1::function<void ()>&&)::$_1&&&)
std::__1::__function::__func<facebook::react::RCTMessageThread::runOnQueue(std::__1::function<void ()>&&)::$_1, std::__1::allocator<facebook::react::RCTMessageThread::runOnQueue(std::__1::function<void ()>&&)::$_1>, void ()>::operator()()
std::__1::function<void ()>::operator()() const
invocation function for block in facebook::react::RCTMessageThread::runAsync(std::__1::function<void ()>)
CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK
__CFRunLoopDoBlocks
__CFRunLoopRun
CFRunLoopRunSpecific
+[RCTCxxBridge runRunLoop]
NSThread__start
_pthread_body
_pthread_body
thread_start
To Reproduce
I was on branch master, everything was working fine. I created a new branch 'android' and ran the android simulator, fixing a few things related to android. Then I wanted to make sure things still looked good in iPhone, so I ran to iPhone simulator and that's when I got the bug. The screen does not crash immediately. It crashes as soon as I login. The android simulator runs completely fine though. I figured I would 'git checkout master' branch to pinpoint what exactly caused that error, but the error persisted on the master branch. That doesn't make much sense to me
Expected Behavior
The iPhone simulator should run fine.
Environment
React Native Environment Info:
System:
OS: macOS High Sierra 10.13.6
CPU: (8) x64 Intel(R) Core(TM) i7-4850HQ CPU @ 2.30GHz
Memory: 1.38 GB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 11.11.0 - ~/.nvm/versions/node/v11.11.0/bin/node
npm: 6.7.0 - ~/.nvm/versions/node/v11.11.0/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
Android SDK:
API Levels: 23, 25, 26, 27, 28
Build Tools: 23.0.1, 26.0.1, 28.0.3
System Images: android-23 | Intel x86 Atom_64, android-23 | Google APIs Intel x86 Atom, android-23 | Google APIs Intel x86 Atom_64
IDEs:
Android Studio: 3.0 AI-171.4443003
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
react: ^16.7.0 => 16.7.0
react-native: ^0.58.4 => 0.58.4
npmGlobalPackages:
react-native-cli: 2.0.1
The text was updated successfully, but these errors were encountered: