Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RN crash when a gesture is used(Pinch, Pan, Tap) #3724

Closed
Afdz1020 opened this issue Oct 26, 2022 · 2 comments
Closed

RN crash when a gesture is used(Pinch, Pan, Tap) #3724

Afdz1020 opened this issue Oct 26, 2022 · 2 comments
Labels
Needs review Issue is ready to be reviewed by a maintainer Platform: iOS This issue is specific to iOS Repro provided A reproduction with a snippet of code, snack or repo is provided

Comments

@Afdz1020
Copy link

Afdz1020 commented Oct 26, 2022

Description

I implement a function that uses the pinch zoom gesture with the landscape functionality

when I test this behavior, zooming in/out and rotating the phone moving from portrait to landscape, the application crash, and the react native console does not show any information or error to debug what is happening. I ran the application in Xcode and I replicate the above process and xCode console show the following error:

workletValueSetter@

@[native code]

CoreSimulator 857.7 - Device: iPhone 13 (79EC3549-CE88-47BC-A087-A44413A39A70) - Runtime: iOS 15.4 (19E240) - DeviceType: iPhone 13

2022-10-25 13:13:30.628274-0500 My Project[13003:284992] [connection] nw_socket_output_finished [C99.1:2] shutdown(38, SHUT_WR) [57: Socket is not connected]

dyld4 config: DYLD_ROOT_PATH=/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 15.4.simruntime/Contents/Resources/RuntimeRoot DYLD_LIBRARY_PATH=/Users/admin/Library/Developer/Xcode/DerivedData/MyProject-egluemphrpslqigtpcqlhjbdarok/Build/Products/Debug-iphonesimulator:/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 15.4.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 15.4.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libBacktraceRecording.dylib:/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 15.4.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libMainThreadChecker.dylib:/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 15.4.simruntime/Contents/Resources/RuntimeRoot/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib DYLD_FRAMEWORK_PATH=/Users/admin/Library/Developer/Xcode/DerivedData/MyProject-egluemphrpslqigtpcqlhjbdarok/Build/Products/Debug-iphonesimulator

terminating with uncaught exception of type facebook::jsi::JSError: Exception in HostObject::get(propName:_value): mutex lock failed: Invalid argument



workletValueSetter@

@[native code]

CoreSimulator 857.7 - Device: iPhone 13 (79EC3549-CE88-47BC-A087-A44413A39A70) - Runtime: iOS 15.4 (19E240) - DeviceType: iPhone 13

(lldb) 

What I've tried

Update react-native-reanimated version

I was checking some similar issues in the repository and found the following: #2327

What the user suggest is to move the react-native-reanimated version to the latest one but this does not fix the bug.

Steps to reproduce

steps to reproduce the error:
combine both pinch zoom gestures with phone rotation from portrait to landscape or the other way around. here is a video to better illustrate the error:

Error.mp4

Snack or a link to a repository

https://snack.expo.dev/@adiaz10/pinch-zoom

Reanimated version

2.2.4

React Native version

0.67.2

Platforms

iOS

JavaScript runtime

JSC

Workflow

React Native (without Expo)

Architecture

Paper (Old Architecture)

Build type

Debug mode

Device

iOS simulator

Device model

IPhone 13 iOs 15.4

Acknowledgements

Yes

@Afdz1020 Afdz1020 added the Needs review Issue is ready to be reviewed by a maintainer label Oct 26, 2022
@github-actions github-actions bot added Repro provided A reproduction with a snippet of code, snack or repo is provided Platform: iOS This issue is specific to iOS labels Oct 26, 2022
@Afdz1020
Copy link
Author

Hello

I have activated hermes and I get another error

2022-11-21 08:41:55.703751-0500 xxxxx xxxxxx[66959:2248320] [native] Javascript worklet error
In file: /Users/admin/Documents/Proyectos/xx/xxxxxxxx-xxxxxx-xxx/node_modules/react-native-reanimated/src/reanimated2/core.ts (150:0)

do you know if this has been solved?

@piaskowyk
Copy link
Member

I tested it on Reanimated 3.x and it works without any problems, I recommend to you to update you Reanimated version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs review Issue is ready to be reviewed by a maintainer Platform: iOS This issue is specific to iOS Repro provided A reproduction with a snippet of code, snack or repo is provided
Projects
None yet
Development

No branches or pull requests

2 participants