question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[iOS] Crashed: com.facebook.react.ShadowQueue

See original GitHub issue

We’re experiencing random crashes throughout our app (no specific screen or user flow, 19% of them happening in the background) since upgrading to RN 0.60.x

React Native version:

System:
    OS: macOS 10.14.4
    CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
    Memory: 2.65 GB / 16.00 GB
    Shell: 5.3 - /bin/zsh
  Binaries:
    Node: 10.12.0 - /usr/local/bin/node
    Yarn: 1.10.1 - /usr/local/bin/yarn
    npm: 6.11.2 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
    Android SDK:
      API Levels: 23, 25, 26, 28
      Build Tools: 23.0.1, 25.0.0, 25.0.2, 25.0.3, 26.0.1, 26.0.2, 26.0.3, 27.0.3, 28.0.3
  IDEs:
    Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
  npmPackages:
    react: 16.8.6 => 16.8.6
    react-native: ^0.60.5 => 0.60.5
  npmGlobalPackages:
    create-react-native-app: 1.0.0
    react-native-cli: 2.0.1
    react-native-git-upgrade: 0.2.7

Steps To Reproduce

So… this is a hard one as we’re unable ourselves to reproduce this issue. We released a new version of our iOS app, where we upgraded react-native to 0.60.5. We got a huge spike in crashes (+250%) since this release, with a crashlog that’s not really helping us.

Crashed: com.facebook.react.ShadowQueue
0  CoreFoundation                 0x18619ab44 <redacted> + 148
1  ???                            0x0 (Missing)
2  Delta                          0x1046e1a28 -[RCTNativeAnimatedModule startAnimatingNode:nodeTag:config:endCallback:] + 90 (RCTNativeAnimatedModule.m:90)
3  CoreFoundation                 0x1862cc724 <redacted> + 148
4  ???                            0x0 (Missing)
5  ???                            0x6a2c118186196000 (Missing)
6  ???                            0x0 (Missing)
7  Delta                          0x1046a5770 facebook::react::invokeInner(RCTBridge*, RCTModuleData*, unsigned int, folly::dynamic const&) + 108 (RCTNativeModule.mm:108)
8  Delta                          0x1046a54d4 invocation function for block in facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int) + 365 (Optional.h:365)
9  libdispatch.dylib              0x185f6bbb0 <redacted> + 32
10 ???                            0x6f355b0185f6d000 (Missing)
11 ???                            0x0 (Missing)
12 ???                            0x4135950185f74000 (Missing)
13 ???                            0x0 (Missing)
14 ???                            0x0 (Missing)
15 ???                            0x5a357b8185fd8c00 (Missing)

Am I correct to assume that this crash has something to do with an <Animated/> tag? If so, I saw there were some fixes included in RN 0.60.x related to Animated, any idea where to start looking for this problem?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:12
  • Comments:15 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
zhaiduocommented, Jun 18, 2021

The bug is still there?

1reaction
toshecommented, Sep 16, 2020

Here’s my stacktrace and RN info:

System:
    OS: macOS Mojave 10.14.6
    CPU: (8) x64 Intel(R) Core(TM) i5-8279U CPU @ 2.40GHz
    Memory: 434.84 MB / 16.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 13.13.0 - /usr/local/bin/node
    Yarn: 1.22.4 - /usr/local/bin/yarn
    npm: 6.14.4 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.9.1 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 13.0, DriverKit 19.0, macOS 10.15, tvOS 13.0, watchOS 6.0
    Android SDK:
      API Levels: 23, 28, 29
      Build Tools: 23.0.3, 28.0.3, 29.0.0
      System Images: android-23 | Google APIs Intel x86 Atom, android-27 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom, android-29 | Google APIs Intel x86 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: 3.4 AI-183.6156.11.34.5522156
    Xcode: 11.0/11A420a - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_212 - /usr/bin/javac
    Python: 2.7.16 - /usr/bin/python
  npmPackages:
    @react-native-community/cli: Not Found
    react: 16.11.0 => 16.11.0 
    react-native: 0.62.2 => 0.62.2 
  npmGlobalPackages:
    *react-native*: Not Found

Firebase crash log:

Crashed: com.facebook.react.ShadowQueue
0  libsystem_malloc.dylib         0x7fff51400029 nanov2_allocate_from_block.cold.1 + 32
1  libsystem_malloc.dylib         0x7fff513ed14c nanov2_allocate_from_block + 528
2  libsystem_malloc.dylib         0x7fff513ec34d nanov2_allocate + 130
3  libsystem_malloc.dylib         0x7fff513ec27a nanov2_malloc + 56
4  libsystem_malloc.dylib         0x7fff513f030d malloc_zone_malloc + 104
5  libsystem_malloc.dylib         0x7fff513f0abc malloc + 21
6  Foundation                     0x7fff25665a2a allocateStorageWithSentinel + 38
7  Foundation                     0x7fff25603eaf -[NSConcreteHashTable initWithOptions:capacity:] + 179
8  Foundation                     0x7fff25602f61 +[NSHashTable weakObjectsHashTable] + 39
9  <app>                        0x10b4d1b2e -[RCTUIManager uiBlockWithLayoutUpdateForRootView:] + 516 (RCTUIManager.m:516)
10 <app>                        0x10b4d6604 -[RCTUIManager _layoutAndMount] + 1145 (RCTUIManager.m:1145)
11 <app>                        0x10b492fcd __32-[RCTCxxBridge batchDidComplete]_block_invoke + 1379 (RCTCxxBridge.mm:1379)
12 libdispatch.dylib              0x7fff511fb888 _dispatch_call_block_and_release + 12
13 libdispatch.dylib              0x7fff511fc7f9 _dispatch_client_callout + 8
14 libdispatch.dylib              0x7fff51202566 _dispatch_lane_serial_drain + 707
15 libdispatch.dylib              0x7fff51202f9c _dispatch_lane_invoke + 388
16 libdispatch.dylib              0x7fff5120d06c _dispatch_workloop_worker_thread + 626
17 libsystem_pthread.dylib        0x7fff5141c611 _pthread_wqthread + 421
18 libsystem_pthread.dylib        0x7fff5141c3fd start_wqthread + 13
Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native iOS standalone crashing on ...
Hi! I created an app for iOS and Android. The Android version works great, the iOS not so much. The iOS keeps crashing...
Read more >
[iOS] Crashed: com.facebook.react.ShadowQueue
We're experiencing random crashes throughout our app (no specific screen or user flow, 19% of them happening in the background) since ...
Read more >
FacebookAppID crashing app on start up - Meta for Developers
On Monday our app started crashing for all users on iOS. ... installed and configured react-native-fbsdk (https://github.com/facebook/react-native-fbsdk).
Read more >
App crash on simulator (M1 / React native)
dylib 0x1cba88904 start_wqthread + 8 Thread 2:: Dispatch queue: com.facebook.react.ShadowQueue 0 libsystem_kernel.dylib 0x1cba33dd4 __ulock_wait ...
Read more >
[tid:com.facebook.react.shadowqueue][rctfont.mm:316] ...
2017-02-08 14:54:12.622 [error][tid:com.facebook.react.ShadowQueue][RCTFont.mm:279] Unrecognized font family ... Description. IOS app crash on ShadowQueue.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found