facebook / react-native

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

Reporting a Bug to React Native #47155

Open NyLaurent opened 2 hours ago

NyLaurent commented 2 hours ago

Description

The app crashes when the user clicks the button on the Home screen. The crash occurs without any warning, making it difficult to understand the root cause.

Steps to reproduce

Install the application with yarn android. Click on the button on the Home screen. Notice the crash.

React Native Version

0.73.0

Affected Platforms

Runtime - Android

Output of npx react-native info

System:
  OS: macOS 14.1.1
  CPU: (10) arm64 Apple M1 Max
  Memory: 417.81 MB / 64.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node: 18.14.0
  Yarn: 1.22.19
  npm: 9.5.0
  Watchman: 2023.03.13.00
  Xcode: 14.3.1
  Android Studio: 2022.2
  Java: 17.0.3

Stacktrace or Logs

java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libfabricjni.so caused by: com.facebook.react.fabric.StateWrapperImpl result: 0
    at com.facebook.soloader.SoLoader.g(Unknown Source:341)
    at com.facebook.soloader.SoLoader.t(Unknown Source:124)
    at com.facebook.soloader.SoLoader.s(Unknown Source:2)
    at com.facebook.soloader.SoLoader.q(Unknown Source:42)
    at com.facebook.soloader.SoLoader.p(Unknown Source:1)

Reproducer

import React from 'react'; import { View, Button, Alert } from 'react-native'; const App = () => { const handleButtonClick = () => { Alert.alert("Button Clicked!"); }; return ( <View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>

react-native-bot commented 2 hours 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 - 0.73.10. 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.
react-native-bot commented 2 hours 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 2 hours 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.
react-native-bot commented 2 hours ago
:warning: Missing Reproducible Example
:information_source: We could not detect a reproducible example in your issue report. Please provide either:
migueldaipre commented 2 hours ago

@NyLaurent Can you share a reproducer? If possible try to use the latest stable version or v0.76