facebook / react-native

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

reactNative crashes indeterminately in Android 13 production #47007

Open maxfrees opened 1 day ago

maxfrees commented 1 day ago

Description

reactNative crashes indeterminately in Android 13 production

{
  "name": "atms",
  "version": "1.7.5",
  "private": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "start": "react-native start",
    "build": "cd android && ./gradlew assembleRelease",
    "build-win": "cd android && gradlew assembleRelease",
    "test": "jest",
    "lint": "eslint . --ext .js,.jsx,.ts,.tsx",
    "prettier": "prettier . --ext --write .js,.jsx,.ts,.tsx"
  },
  "dependencies": {
    "@ant-design/icons-react-native": "^2.3.1",
    "@react-native-async-storage/async-storage": "^1.15.5",
    "@react-native-community/masked-view": "^0.1.11",
    "@react-navigation/bottom-tabs": "^5.11.11",
    "@react-navigation/native": "^5.9.4",
    "@react-navigation/stack": "^5.14.5",
    "axios": "0.26.1",
    "jotai": "^2.2.1",
    "native-base": "^3.3.0",
    "react": "^17.0.1",
    "react-hook-form": "^7.11.1",
    "react-native": "^0.64.4",
    "react-native-device-info": "^8.1.7",
    "react-native-gesture-handler": "^1.10.3",
    "react-native-mmkv": "2.5.1",
    "react-native-pager-view": "^5.2.1",
    "react-native-reanimated": "^2.2.0",
    "react-native-safe-area-context": "^3.2.0",
    "react-native-screens": "^3.4.0",
    "react-native-svg": "^12.1.1",
    "react-native-tab-view": "^3.0.1",
    "react-native-webview": "^11.14.2",
    "react-qr-code": "^2.0.3",
    "styled-components": "^5.3.0",
    "styled-system": "^5.1.5",
    "swr": "1.2.0"
  },
  "devDependencies": {
    "@babel/core": "^7.12.9",
    "@babel/runtime": "^7.12.5",
    "@react-native-community/eslint-config": "^2.0.0",
    "@types/jest": "^26.0.23",
    "@types/react-native": "^0.64.5",
    "@types/react-test-renderer": "^16.9.2",
    "babel-jest": "^26.6.3",
    "babel-plugin-module-resolver": "^5.0.0",
    "eslint": "^7.14.0",
    "jest": "^26.6.3",
    "metro-react-native-babel-preset": "^0.64.0",
    "react-native-bundle-visualizer": "^2.2.1",
    "react-test-renderer": "17.0.1",
    "typescript": "^3.8.3"
  },
  "resolutions": {
    "@types/react": "^17"
  },
  "jest": {
    "preset": "react-native",
    "moduleFileExtensions": [
      "ts",
      "tsx",
      "js",
      "jsx",
      "json",
      "node"
    ]
  }
}

Steps to reproduce

1728894593432

React Native Version

0.64.4

Affected Platforms

Runtime - Android

Output of npx react-native info

windows 10

Stacktrace or Logs

![1728894593432](https://github.com/user-attachments/assets/567cf667-ac6c-4b1a-9cca-c2b362b475d9)

Reproducer

*

Screenshots and Videos

No response

react-native-bot commented 1 day ago
:warning: Add or Reformat Version Info
:information_source: We could not find or parse the version number of React Native in your issue report. Please use the template, and report your version including major, minor, and patch numbers - e.g. 0.70.2
react-native-bot commented 1 day ago
:warning: Missing Reproducible Example
:information_source: We could not detect a reproducible example in your issue report. Please provide either:
  • If your bug is UI related: a Snack
  • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.
react-native-bot commented 1 day ago
:warning: Add or Reformat Version Info
:information_source: We could not find or parse the version number of React Native in your issue report. Please use the template, and report your version including major, minor, and patch numbers - e.g. 0.70.2
react-native-bot commented 1 day ago
:warning: Missing Reproducible Example
:information_source: We could not detect a reproducible example in your issue report. Please provide either:
shubhamguptadream11 commented 1 day ago

@maxfrees We need a proper reproducer in order to debug this further. You can use this template.

maxfrees commented 1 day ago

@shubhamguptadream11 https://github.com/maxfrees/test-mobile thank you

shubhamguptadream11 commented 1 day ago

@maxfrees What are the steps to reproduce this crash?

maxfrees commented 1 day ago

@maxfrees What are the steps to reproduce this crash?

It will naturally collapse from time to time in production

shubhamguptadream11 commented 1 day ago

@maxfrees

It seems that your React Native version is quite old. Please try updating to a newer version.

Additionally, without exact reproduction steps, it's very challenging for us to investigate the issue. The zip file you provided contains many other packages; it would be helpful if you could trim down the scope to just the relevant parts.

Thank you!

react-native-bot commented 1 day ago
:warning: Newer Version of React Native is Available!
:information_source: You are on a supported minor version, but it looks like there's a newer patch available - undefined. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.