viro icon indicating copy to clipboard operation
viro copied to clipboard

React Native 76.1 with enabled new architecture causes crash

Open jirka-oone opened this issue 1 year ago • 2 comments

Development OS: Mac Device OS & Version: iOS 17.6.1, iPhone 13 Versions:

  • react-native 76.1
  • @reactvision/react-viro: 2.41.6

Description

With enabled Fabric (New Architecture) AR screens aren't stable

Reproducible Demo

  1. launch AR screen with some 3D object
  2. close the AR scene
  3. the app crashes just after the AR scene is closed

note: with RN 76.1 and old architecture is ok

jirka-oone avatar Nov 23 '24 21:11 jirka-oone

removeFromSuperlayer > superview > VRT3DObject >
Attempted to dereference garbage pointer at 0xcdd083a10.

Thread 0 Crashed:
0   libobjc.A.dylib                 0x305d5a414         objc_msgSend
1   UIKitCore                       0x31801486c         -[UIView _backing_removeFromSuperview]
2   UIKitCore                       0x31776a9d8         -[UIView(Hierarchy) removeFromSuperview]
3   smartguideplayer2               0x202e4c960         facebook::react::concreteComponentDescriptorConstructor<T>
4   smartguideplayer2               0x202e14bf4         facebook::react::concreteComponentDescriptorConstructor<T>
5   smartguideplayer2               0x202e08ef0         _ZN8facebook5react38concreteComponentDescriptorConstructorINS0_27ConcreteComponentDescriptorINS0_22ConcreteViewShadowNodeIXadL_ZNS0_34ActivityIndicatorViewComponentNameEEENS0_26ActivityIndicatorViewPropsENS0_33ActivityIndicatorViewEventEmitterENS0_26Act...
6   smartguideplayer2               0x202e08d0c         _ZN8facebook5react38concreteComponentDescriptorConstructorINS0_27ConcreteComponentDescriptorINS0_22ConcreteViewShadowNodeIXadL_ZNS0_34ActivityIndicatorViewComponentNameEEENS0_26ActivityIndicatorViewPropsENS0_33ActivityIndicatorViewEventEmitterENS0_26Act...
7   smartguideplayer2               0x202e1b210         facebook::react::concreteComponentDescriptorConstructor<T>
8   smartguideplayer2               0x20312d6f8         _ZN8facebook5react38concreteComponentDescriptorConstructorINS0_27ConcreteComponentDescriptorINS0_22ConcreteViewShadowNodeIXadL_ZNS0_25RNSSearchBarComponentNameEEENS0_17RNSSearchBarPropsENS0_24RNSSearchBarEventEmitterENS0_17RNSSearchBarStateELb0EEEEEEENS...
9   smartguideplayer2               0x202e1a070         facebook::react::concreteComponentDescriptorConstructor<T>
10  smartguideplayer2               0x202e19f8c         facebook::react::concreteComponentDescriptorConstructor<T>
11  libdispatch.dylib               0x3212ab7a4         _dispatch_call_block_and_release
12  libdispatch.dylib               0x3212ac77c         _dispatch_client_callout
13  libdispatch.dylib               0x32128de0c         _dispatch_main_queue_drain
14  libdispatch.dylib               0x32128da84         _dispatch_main_queue_callback_4CF$VARIANT$armv81
15  CoreFoundation                  0x3138419a8         __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
16  CoreFoundation                  0x313825644         __CFRunLoopRun
17  CoreFoundation                  0x313829d1c         CFRunLoopRunSpecific
18  GraphicsServices                0x383a41994         GSEventRunModal
19  UIKitCore                       0x317a57348         -[UIApplication _run]
20  UIKitCore                       0x317a56fc0         UIApplicationMain
21  smartguideplayer2               0x2022c14f8         <redacted>
22  <unknown>                       0x1aa204344         <redacted>

Buthrakaur avatar Nov 25 '24 09:11 Buthrakaur

Is there any solution please?

eneisyou avatar Jan 17 '25 17:01 eneisyou