-
-
Notifications
You must be signed in to change notification settings - Fork 338
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 #2744
Comments
Thanks for the message. Here is another issue with the same error and more details about it on Android. |
@TheTreek How did you track down the Could you try to call this code to see what is if (global.__fbBatchedBridge) {
const origMessageQueue = global.__fbBatchedBridge;
const modules = origMessageQueue._remoteModuleTable;
const methods = origMessageQueue._remoteMethodTable;
global.findModuleByModuleAndMethodIds = (moduleId, methodId) => {
console.log(`The problematic line code is in: ${modules?.[moduleId]}.${methods?.[moduleId]?.[methodId]}`)
}
}
global.findModuleByModuleAndMethodIds(81, 0); |
@Mkolakoglu Sadly I wasn't able to reproduce the issue after installing the Based on your logs the Can you run the following code to decode the modules and method names? if (global.__fbBatchedBridge) {
const origMessageQueue = global.__fbBatchedBridge;
const modules = origMessageQueue._remoteModuleTable;
const methods = origMessageQueue._remoteMethodTable;
global.findModuleByModuleAndMethodIds = (moduleId, methodId) => {
console.log(`The problematic line code is in: ${modules?.[moduleId]}.${methods?.[moduleId]?.[methodId]}`)
}
}
global.findModuleByModuleAndMethodIds(13, 0);
global.findModuleByModuleAndMethodIds(41, 0); |
@JimTeva Based on your logs the module and method ids that could cause the problem are |
I tracked it down by putting console logs at all the points leading towards
I put that code in |
@krystofwoldrich i've tried running the code after Sentry.init but nothing logged. |
@JimTeva Both places you mentioned are okay, are you trying in a dev build? Can you check if |
@krystofwoldrich I think I'm getting this same problem. I ran the same code and got the same @TheTreek in RNSentry.captureEnvelope I'm using Expo with "@sentry/react-native": "^4.9.0", That's what they recommended for SDK 47 Quick Update: It seems like if I sleep the thread:
The first will get sent and the second not. This tells me there is something happening in parallel on bootup that's causing Sentry.Native functions to get screwed up. Maybe another library that's overwriting the functions or something? FWIW, I downgraded to 4.2.2 (which is the next version down with sentry-expo 5.0.3 back from last October and have no problems...so will stick with that until this is resolved. |
@krystofwoldrich I finally got your debug code above to work and the result is the same as @TheTreek:
|
@Aryk Where do you call the mentioned code? On a button click? Right after |
@krystofwoldrich Sentry.init is run on the main thread before everything. This was called in the top level component of the app in a useEffect function, so it was happening on app bootup. I'm 90% sure that it's some library loading in tandem that is conflicting with it as my example suggests. I rolled back my version of Sentry to 4.2.2 and zero problems so sticking to that. I'm not sure what new stuff got released but don't need any fancy features...just need to report errors to Sentry lol. |
@Aryk Would you be able to create a minimal reproducible example that we could debug the issue on? |
@TheTreek and @JimTeva can you guys try running Sentry.captureMessage("test") right after you can Sentry.init and see if that works. That would confirm the thesis that it works at some point and then stops working. These next few weeks we're crazy swamped with getting a new release out so can't do it soon, but i bet you that @TheTreek and @JimTeva will have the same behavior as what I'm seeing. |
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you label it "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
@axoTheLotl Thank you for the message, a fix for the issue with the transactions is described https://docs.expo.dev/guides/using-sentry/#troubleshooting |
This started to happen to me as well after upgrading expo + react-native: expo: 48.0.18 The issue happens on iOS (haven't checked on Android yet). And it affects only development builds. The problem doesn't occur in production, neither when I use expo go. Setting debug: false/true doesn't seem to be making any difference to me. I had to disable sentry on development by setting Is there any better workaround for this atm? |
@guiccbr Thank you for the info, sadly, there is no workaround besides running Release at the moment. |
I'm trying to upgrade @sentry/react-native from v4.15 to 5.12.0 and this issue is making it a lot harder to debug why error reporting suddenly stopped working 😞 Errors don't appear to be reported in simulator builds, no matter where I put them or if
|
@mogelbrod Thank you for the message, have you tried to build a release version of your app? |
I'm experiencing the same issue on [email protected] and @sentry/[email protected]. The first tracing result is submitted, but after that every tracing submission leads to:
|
@dnl-jst Thank you for the message, as mentioned above you can try Release build then it will work. Although the root of the issue is not in the SDK we are working on a fix. |
I'm also having this issue for Android debug mode (not for iOS), will try it in release mode. If there's any update regarding this, please post a comment. Thanks |
OS:
Platform:
SDK:
@sentry/react-native
(>= 1.0.0)react-native-sentry
(<= 0.43.2)SDK version: 4.12.0
react-native
version: 0.64.4Are you using Expo?
Are you using sentry.io or on-premise?
If you are using sentry.io, please post a link to your issue so we can take a look:
[Link to issue]
Configuration:
(
@sentry/react-native
)I have following issue:
When calling
Sentry.captureMessage("Custom message", 'error')
on iOS this error is logged:I was able to determine this is happening @sentry/react-native calls
RNSentry.captureEnvelope()
(node_modules/@sentry/react-native/dist/js/wrapper.js:72). Looks like a react-native bridging issue.Steps to reproduce:
Actual result:
Expected result:
[Expected result]
The text was updated successfully, but these errors were encountered: