facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
118.4k stars 24.25k forks source link

ExceptionsManagerModule.java line 83 com.facebook.react.modules.core.ExceptionsManagerModule.reportException #32778

Closed TeamKiko closed 5 months ago

TeamKiko commented 2 years ago

Description

Hi,

In Android the app randomly crashing with the following error being caught by firebase Crashlytics

ExceptionsManagerModule.java line 83 com.facebook.react.modules.core.ExceptionsManagerModule.reportException

Fatal Exception: com.facebook.react.common.JavascriptException TypeError: undefined is not an object (evaluating 'o.length'), stack: validate@3959:1786 onPress@3959:5380 value@212:7691 value@212:6947 onResponderRelease@212:5668 f@91:184 v@91:327 y@91:381 k@91:676 Ce@91:13197 forEach@-1 Y@91:5349 @91:13545 xe@91:92704 Re@91:12995 ze@91:13384 receiveTouches@91:14177 value@42:3492 @42:747 value@42:2538 value@42:719 value@-1

React Native version: 0.64.0 React Native Firebase library version: 12.1.0

Version

0.64.0

Output of react-native info

Fatal Exception: com.facebook.react.common.JavascriptException TypeError: undefined is not an object (evaluating 'o.length'), stack: validate@3959:1786 onPress@3959:5380 value@212:7691 value@212:6947 onResponderRelease@212:5668 f@91:184 v@91:327 y@91:381 k@91:676 Ce@91:13197 forEach@-1 Y@91:5349 @91:13545 xe@91:92704 Re@91:12995 ze@91:13384 receiveTouches@91:14177 value@42:3492 @42:747 value@42:2538 value@42:719 value@-1

Steps to reproduce

Got it in Firebase Crashlytics.

Snack, code example, screenshot, or link to a repository

No response

thtRajasthaniGuy commented 2 years ago

any soultion?

khichis commented 2 years ago

Any solution so far?

daheeahn commented 2 years ago

any solution?

Deep-CB commented 2 years ago

I am facing the same issue Any solution for this ? Screen Shot 2022-01-27 at 1 18 32 pm

ellysmoore commented 2 years ago

Anyone find a solution yet ?

lailton-b commented 2 years ago

I am facing the same issue after updating react-native from 0.62.0 to 0.65.0

Mindbowser commented 2 years ago

Any updates here? Did anyone found any workaround?

gautam-ndk commented 2 years ago

Is there any update on this issue? We started seeing this error even without any recent updates to react-native. Any pointers here will be appreciated!

dieptang commented 2 years ago

Same here!

anasalsaadi14 commented 2 years ago

Same here!

shatas commented 2 years ago

Any news on this topic?

admin0319 commented 2 years ago

Same here! using react-native 0.66

image

nimeshpoudel7 commented 2 years ago

IS THIS ISSUE SOLVED?

anasalsaadi14 commented 2 years ago

After trying to detect where is the exception, i followed stack error in my "Fatal Exception",

so in your Fatal Exception you should check validate if this is a functioin and make sure if there any loop inside them shoul not be null or undefined

raquel-nobre commented 2 years ago

Any updates on the issue?

kiennd-miichisoft commented 2 years ago

I also got the same error Fatal Exception: com.facebook.react.common.JavascriptException TypeError: null is not an object (evaluating 'n.seed'), stack:

ShubhamBathe-KM commented 2 years ago

Hello guys, this isn't a react native issue. This exception usually occurs because of some third party npm packages that we use in our project. In my case it was due to this package:-

react-native-otp-verify

I removed the package from my project and this fixed my issue. My crash count significantly reduced afterwards. So I will suggest you to figure out which npm causing the issue in your case. If it's not because of any third party npm package, it might be due to some unhandled null pointer in your code base.

Hope this helps.

nmanvitha commented 2 years ago

I also got the same error. Any updates on this issue?

RaviDhakadDoodle commented 2 years ago

I also got the same issue.

ExceptionsManagerModule.java line 83 com.facebook.react.modules.core.ExceptionsManagerModule.reportException

react-native 0.66.3 node 16.15.1 Android 11

Any updates on this issue?

govarthananve commented 2 years ago

I am also getting this error

ExceptionsManagerModule.java line 83 com.facebook.react.modules.core.ExceptionsManagerModule.reportException

Logs also not showing properly

Fatal Exception: com.facebook.react.common.c TypeError: s is not a function. (In 's()', 's' is undefined), stack: onPress@1105.js:1:15506 value@191.js:1:7704 value@191.js:1:6960 onResponderRelease@191.js:1:5675 o@77.js:1:150 h@77.js:1:293 g@77.js:1:347 b@77.js:1:642 xe@77.js:1:13181 forEach@-1 H@77.js:1:5333 @77.js:1:13529 ke@77.js:1:93290 _e@77.js:1:12979 Re@77.js:1:13368 receiveTouches@77.js:1:14167 value@41.js:1:3469 @41.js:1:662 value@41.js:1:2459 value@41.js:1:634 value@-1

"react-native": "0.64.2"

Any update on this?

MMasterson commented 2 years ago

oh look, it's not just me...

seeing this issue as well. Any update?

tuliosciotta commented 2 years ago

Same here...

Gajendra-Gupta commented 2 years ago

I am getting same issue. Do you have any update about it.

ali-soltanii commented 2 years ago

Disable the proguard and see if it works. We had this issue too. I disabled the proguard and now we don't have this issue anymore Some 3rd party libraries don't support proguard.

Robiullah2244 commented 1 year ago

I am facing the same issue. Any solution?

FrSenpai commented 1 year ago

Same here, without Proguard. I thought It was caused by reanimated 0.6 but it seems it's not.

princeKasodariya commented 1 year ago

also got the same issue.

ExceptionsManagerModule.java line 83 com.facebook.react.modules.core.ExceptionsManagerModule.reportException

react-native 0.64.2 Any updates on this issue?

Phector27 commented 1 year ago

Same here on 0.64.3 RN --v

Play console shows this error not debuggeable in app on some devices (not all):

Exception com.facebook.react.common.JavascriptException:
  at com.facebook.react.modules.core.ExceptionsManagerModule.reportException (ExceptionsManagerModule.java:83)
  at java.lang.reflect.Method.invoke
  at com.facebook.react.bridge.JavaMethodWrapper.invoke (JavaMethodWrapper.java:372)
  at com.facebook.react.bridge.JavaModuleWrapper.invoke (JavaModuleWrapper.java:151)
  at com.facebook.react.bridge.queue.NativeRunnable.run
  at android.os.Handler.handleCallback (Handler.java:938)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage (MessageQueueThreadHandler.java:27)
  at android.os.Looper.loopOnce (Looper.java:210)
  at android.os.Looper.loop (Looper.java:299)
  at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run (MessageQueueThreadImpl.java:226)
  at java.lang.Thread.run (Thread.java:1012)
vaish8529 commented 1 year ago

Same issue.

Screenshot 2023-06-19 174312 output of react-native info

npmPackages: @react-native-community/cli: Not Found react: 16.13.1 => 16.13.1 react-native: 0.68.6 => 0.68.6 react-native-windows: Not Found npmGlobalPackages: react-native: Not Found

**Packages**

"dependencies": {
"@react-native-community/async-storage": "^1.11.0",
"@react-native-community/cli-platform-android": "^9.2.1",
"@react-native-community/clipboard": "^1.5.1",
"@react-native-community/datetimepicker": "^3.5.2",
"@react-native-community/masked-view": "^0.1.10",
"@react-native-community/push-notification-ios": "^1.10.1",
"@react-native-community/toolbar-android": "^0.2.1",
"@react-native-firebase/app": "^15.1.1",
"@react-native-firebase/messaging": "^15.1.1",
"@react-navigation/bottom-tabs": "^5.8.0",
"@react-navigation/drawer": "^5.9.2",
"@react-navigation/material-top-tabs": "^5.2.16",
"@react-navigation/native": "^5.5.1",
"@react-navigation/stack": "^5.5.1",
"axios": "^0.21.1",
"deprecated-react-native-prop-types": "^4.0.0",
"jetifier": "^2.0.0",
"lottie-react-native": "^5.1.5",
"moment": "^2.29.1",
"native-base": "^2.15.2",
"qs": "^6.9.4",
"react": "16.13.1",
**"react-native": "0.68.6",**
"react-native-app-intro-slider": "^4.0.4",
"react-native-awesome-alerts": "^1.4.2",
"react-native-camera": "^4.2.1",
"react-native-chart-kit": "^6.11.0",
"react-native-device-info": "^10.2.1",
"react-native-document-picker": "^3.5.4",
"react-native-drawer": "^2.5.1",
"react-native-dropdown-picker": "^3.7.1",
"react-native-element-dropdown": "^2.9.0",
"react-native-elements": "^2.0.3",
"react-native-fs": "^2.17.0",
"react-native-gesture-handler": "^1.6.1",
"react-native-global-font": "^1.0.3",
"react-native-image-crop-picker": "^0.37.2",
"react-native-inappbrowser-reborn": "^3.4.0",
"react-native-keyboard-aware-scroll-view": "^0.9.5",
"react-native-linear-gradient": "^2.5.6",
"react-native-modal": "^11.5.6",
"react-native-openanything": "0.0.6",
"react-native-otp-inputs": "^6.0.0",
"react-native-paper": "^3.10.1",
"react-native-permissions": "^2.2.0",
"react-native-push-notification": "^8.1.1",
"react-native-qrcode-scanner": "^1.6.0",
"react-native-radio-buttons": "^1.0.0",
"react-native-reanimated": "^1.13.4",
"react-native-safe-area-context": "^3.0.5",
"react-native-safe-area-view": "^1.1.1",
"react-native-screens": "^2.9.0",
"react-native-scrollable-tab-view": "^1.0.0",
"react-native-scrollable-tab-view-mask-bar": "^1.0.8",
"react-native-searchable-dropdown": "^1.1.1",
"react-native-share": "^4.1.0",
"react-native-side-drawer": "^1.2.8",
"react-native-svg": "^12.1.1",
"react-native-svg-transformer": "^0.14.3",
"react-native-switch": "^2.0.0",
"react-native-tab-view": "^2.15.2",
"react-native-table-component": "^1.2.1",
"react-native-vector-icons": "^6.6.0",
"react-native-view-shot": "^3.1.2",
"react-native-webview": "^11.23.1",
"react-navigation": "^4.3.9",
"react-navigation-stack": "^2.7.0",
"react-redux": "^7.2.0",
"redux": "^4.0.5"

},

**By issue visibility** - Foreground
**By Android version** - 
Android 11 (SDK 30)
Android 13 (SDK 33)
Android 12 (SDK 31)
Android 9 (SDK 28)
Android 10 (SDK 29)

Screenshot 2023-06-19 175224

github-actions[bot] commented 5 months ago

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 5 months ago

This issue was closed because it has been stalled for 7 days with no activity.

iranaahsanali commented 5 months ago

I am facing same issue.