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

Deadlock in [REANodesManager onAnimationFrame] #3862

Closed
Willham12 opened this issue Dec 14, 2022 · 3 comments
Closed

Deadlock in [REANodesManager onAnimationFrame] #3862

Willham12 opened this issue Dec 14, 2022 · 3 comments
Labels
Missing repro This issue need minimum repro scenario Needs review Issue is ready to be reviewed by a maintainer Platform: iOS This issue is specific to iOS

Comments

@Willham12
Copy link

Willham12 commented Dec 14, 2022

Description

Crashed: com.apple.main-thread
0  MyApp                          0x7cf0b8 -[REANodesManager onAnimationFrame:] + 231 (REANodesManager.mm:231)
1  QuartzCore                     0x28f9c CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 756
2  QuartzCore                     0x155edc CA::Display::DisplayLink::dispatch_deferred_display_links(unsigned int) + 380
3  UIKitCore                      0x652740 _UIUpdateSequenceRun + 84
4  UIKitCore                      0xc99fd0 schedulerStepScheduledMainSection + 172
5  UIKitCore                      0xc9919c runloopSourceCallback + 92
6  CoreFoundation                 0xd5f54 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
7  CoreFoundation                 0xe232c __CFRunLoopDoSource0 + 176
8  CoreFoundation                 0x66210 __CFRunLoopDoSources0 + 244
9  CoreFoundation                 0x7bba8 __CFRunLoopRun + 836
10 CoreFoundation                 0x80ed4 CFRunLoopRunSpecific + 612
11 GraphicsServices               0x1368 GSEventRunModal + 164
12 UIKitCore                      0x3a23d0 -[UIApplication _run] + 888
13 UIKitCore                      0x3a2034 UIApplicationMain + 340
14 MyApp                          0x75d0 main + 8 (main.m:8)
15 ???                            0x1abd3c960 (Missing)

Steps to reproduce

idk where the issue come from.

Snack or a link to a repository

not provided

Reanimated version

3.0.0-rc8

React Native version

0.70.5

Platforms

iOS

JavaScript runtime

Hermes

Workflow

React Native (without Expo)

Architecture

Paper (Old Architecture)

Build type

Release mode

Device

iOS simulator

Device model

iPhone 12 ios 16.1.1

Acknowledgements

Yes

@Willham12 Willham12 added the Needs review Issue is ready to be reviewed by a maintainer label Dec 14, 2022
@github-actions
Copy link

Hey! 👋

The issue doesn't seem to contain a minimal reproduction.

Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?

@github-actions github-actions bot added Missing repro This issue need minimum repro scenario Platform: iOS This issue is specific to iOS labels Dec 14, 2022
@Willham12
Copy link
Author

Fatal Exception: java.lang.ArrayIndexOutOfBoundsException: length=1; index=1
       at java.util.ArrayList.get(ArrayList.java:439)
       at com.swmansion.reanimated.NodesManager.onAnimationFrame(NodesManager.java:70)
       at com.swmansion.reanimated.NodesManager.access$000(NodesManager.java)
       at com.swmansion.reanimated.NodesManager$1.doFrameGuarded(NodesManager.java:2)
       at com.facebook.react.uimanager.GuardedFrameCallback.doFrame(GuardedFrameCallback.java)
       at com.facebook.react.modules.core.ReactChoreographer$ReactChoreographerDispatcher.doFrame(ReactChoreographer.java:46)
       at com.facebook.react.modules.core.ChoreographerCompat$FrameCallback$1.doFrame(ChoreographerCompat.java:2)
       at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1106)
       at android.view.Choreographer.doCallbacks(Choreographer.java:866)
       at android.view.Choreographer.doFrame(Choreographer.java:792)
       at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1092)
       at android.os.Handler.handleCallback(Handler.java:938)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loopOnce(Looper.java:226)
       at android.os.Looper.loop(Looper.java:313)
       at android.app.ActivityThread.main(ActivityThread.java:8751)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)

@piaskowyk
Copy link
Member

Issue should be solved with #4239 Let me know if you still facing this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing repro This issue need minimum repro scenario Needs review Issue is ready to be reviewed by a maintainer Platform: iOS This issue is specific to iOS
Projects
None yet
Development

No branches or pull requests

2 participants