[v3] SIGABRT crash: Yoga layout assertion failure when dynamically adding ReanimatedSwipeable rows alongside BottomSheet (Fabric)

Đang mở
#4,241 5 bình luận 6 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

  • #4500 của @AKASH80047 — đã đóng, không merge

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
react-native, typescript
Lĩnh vực
mobile

Hướng nghiên cứu

Bắt đầu với repository tái hiện được liên kết và so sánh react-native-gesture-handler 3.0.0 với 2.31.2 trên React Native 0.85.3, Fabric và Hermes. Tái hiện crash thông qua Recording Flow bằng cả hai phương thức chèn hàng, sau đó kiểm tra layout assertion của RNGestureHandlerDetectorShadowNode trên iOS và Android. Được xem là hoàn tất khi cả hai sequence không còn gây ra SIGABRT trên thiết bị thực.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

argent-cloud Platform: Android Platform: iOS Repro provided
Description

Upgrading from [email protected] to 3.0.0 causes a SIGABRT crash on both iOS and Android (Fabric / New Architecture). The crash is a Yoga layout assertion failure triggered during layout of RNGestureHandlerDetectorShadowNode.

The crash occurs when dynamically inserting ReanimatedSwipeable rows into a FlatList while a @gorhom/bottom-sheet (which uses GestureDetector internally) is rendered as a sibling in the same parent view.

This does not occur on [email protected].

Steps to reproduce
  1. Clone the repro: https://github.com/AlsaadAhamed4/rngh-v3-crash-repo
  2. npm install && cd ios && pod install && cd ..
  3. npx react-native run-ios (on a physical device)
  4. Tap "Go to Recording Flow"
  5. Reproduce via either method:

Method A: Tap "Start Recording" → "Stop" repeatedly. Crash occurs around the 12th record being added.

Method B: Tap "Rapid Add 5 Rows" → "Hide Sheet" → "Show Sheet" → "Rapid Add 5 Rows".

A link to a repository that reproduces the bug

https://github.com/AlsaadAhamed4/rngh-v3-crash-repo

Gesture Handler version

3.0.0

React Native version

0.85.3

Platforms

iOS, Android

JavaScript runtime

Hermes

Workflow

React Native (without Expo)

Architecture

New Architecture (Fabric)

Build type

Debug mode

Device

Real device

Device model

iPhone

Acknowledgements

Yes

Steps to reproduce
  1. Run the app on an iOS physical device (Xcode, Debug build)
  2. Tap "Go to Recording Flow"
  3. Reproduce via either method:

Method A: Tap "Start Recording" → "Stop" repeatedly. Crash occurs around the 12th record being added.

Method B: Tap "Rapid Add 5 Rows" → "Hide Sheet" → "Rapid Add 5 Rows".

Image
A link to a Gist, an Expo Snack or a link to a repository based on this template that reproduces the bug.

https://github.com/AlsaadAhamed4/rngh-v3-crash-repo

Gesture Handler version

3.0.0

React Native version

0.85.3

Platforms

Android, iOS

JavaScript runtime

Hermes

Workflow

React Native (without Expo)

Architecture

New Architecture (Fabric)

Build type

Debug mode

Device

Real device

Device model

iPhone 15 (iOS 26.5)

Acknowledgements

Yes

Ngôn ngữ chính
TypeScript
Star
6.8k
Fork
1.1k
Merge trung bình
2 ngày 17 giờ
Pull request đã merge (30 ngày)
28

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của software-mansion/react-native-gesture-handler

Tất cả issue của software-mansion/react-native-gesture-handler

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.