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

No events emitted from storage tasks on secondary apps? #10463

Closed
mikehardy opened this issue Nov 6, 2022 · 22 comments
Closed

No events emitted from storage tasks on secondary apps? #10463

mikehardy opened this issue Nov 6, 2022 · 22 comments
Assignees
Milestone

Comments

@mikehardy
Copy link
Contributor

mikehardy commented Nov 6, 2022

Description

Hi there! It appears based on a user report in react-native-firebase from @brianGammon (who bisected our versions even: 🥇) and my investigation of the same that firebase-ios-sdk StorageUploadTask (at least) is not emitting observable events for secondary apps since the release of firebase-ios-sdk v10.0.0

This is something that used to work on firebase-ios-sdk < v10

What we expect to happen is success with a use case like:
1- initialize firebase app (for example, default app)
2- use that app to perform any storage operation (for example, getting a reference, then creating a storage upload task that does a putData
3- add observers to the task and you will see observable events
4- initialize a secondary firebase app
5- do the same reference creation, storage upload task etc using the secondary app
6- add observers to the task and for us at least, I do not see observable events

Steps 1 through 5 work fine but that step 6 is the issue: it appears that whatever app is used first in storage will work but whatever app is used after the first does not see events.

Reproducing the issue

It is always difficult distilling our react-native-firebase e2e tests to an MCVE, please bear with me/us.

I've prepared this branch showing DLog statements added where we diagnose things, and a new e2e test that triggers the problem.

Branch is here: https://github.com/invertase/react-native-firebase/tree/%40mikehardy/storage-secondary-app-no-events

The changes in this file in particular show our usage of firebase-ios-sdk API, with log statements added, so you can see the exact sequence of storage APIs in play

invertase/react-native-firebase@9000a59#diff-a1ebeb5a270518df94ba9c1257fda0fce39ff3fb494b57224dff3399917b6f94

When you run a test that does a putData on primary app then does secondary app, this is the log I paste below is generated - everything is fine with events observed on the primary app putData, then the app is just hanging with no events in the second app

Firebase SDK Version

10.1.0

Xcode Version

14.0

Installation Method

CocoaPods

Firebase Product(s)

Storage

Targeted Platforms

iOS

Relevant Log Output

2022-11-06 13:49:45.419 Df testing[16258:28cb45] -[RNFBStorageModule putString::::::::] [Line 499] STORAGELOG adding upload task observer
2022-11-06 13:49:45.419 Df testing[16258:28cb45] -[RNFBStorageModule addUploadTaskObservers:appDisplayName:taskId:resolver:rejecter:] [Line 567] STORAGELOG adding observer resume
2022-11-06 13:49:45.419 Df testing[16258:28cb45] -[RNFBStorageModule addUploadTaskObservers:appDisplayName:taskId:resolver:rejecter:] [Line 582] STORAGELOG adding observer pause
2022-11-06 13:49:45.419 Df testing[16258:28cb45] -[RNFBStorageModule addUploadTaskObservers:appDisplayName:taskId:resolver:rejecter:] [Line 597] STORAGELOG adding observer progress
2022-11-06 13:49:45.419 Df testing[16258:28cb45] -[RNFBStorageModule addUploadTaskObservers:appDisplayName:taskId:resolver:rejecter:] [Line 612] STORAGELOG adding observer success
2022-11-06 13:49:45.419 Df testing[16258:28cb45] -[RNFBStorageModule addUploadTaskObservers:appDisplayName:taskId:resolver:rejecter:] [Line 641] STORAGELOG adding observer failure
2022-11-06 13:49:45.422 Df testing[16258:28caff] -[RNFBStorageModule addUploadTaskObservers:appDisplayName:taskId:resolver:rejecter:]_block_invoke_3 [Line 601] STORAGELOG task progress
2022-11-06 13:49:45.435 Df testing[16258:28caff] -[RNFBStorageModule addUploadTaskObservers:appDisplayName:taskId:resolver:rejecter:]_block_invoke_3 [Line 601] STORAGELOG task progress
2022-11-06 13:49:45.436 Df testing[16258:28caff] -[RNFBStorageModule addUploadTaskObservers:appDisplayName:taskId:resolver:rejecter:]_block_invoke_4 [Line 615] STORAGELOG task succeeded
2022-11-06 13:49:45.452 Df testing[16258:28cb21] -[RNFBStorageModule putString::::::::] [Line 481] STORAGELOG getting reference
2022-11-06 13:49:45.453 Df testing[16258:28cb21] -[RNFBStorageModule putString::::::::] [Line 483] STORAGELOG getting metadata
2022-11-06 13:49:45.453 Df testing[16258:28cb21] -[RNFBStorageModule putString::::::::] [Line 489] STORAGELOG getting uploadtask
2022-11-06 13:49:45.453 Df testing[16258:28cb21] -[RNFBStorageModule putString::::::::] [Line 491] STORAGELOG doing upload task call block
2022-11-06 13:49:45.453 Df testing[16258:28caff] -[RNFBStorageModule putString::::::::]_block_invoke [Line 493] STORAGELOG putData
2022-11-06 13:49:45.453 Df testing[16258:28cb21] -[RNFBStorageModule putString::::::::] [Line 499] STORAGELOG adding upload task observer
2022-11-06 13:49:45.453 Df testing[16258:28cb21] -[RNFBStorageModule addUploadTaskObservers:appDisplayName:taskId:resolver:rejecter:] [Line 567] STORAGELOG adding observer resume
2022-11-06 13:49:45.453 Df testing[16258:28cb21] -[RNFBStorageModule addUploadTaskObservers:appDisplayName:taskId:resolver:rejecter:] [Line 582] STORAGELOG adding observer pause
2022-11-06 13:49:45.453 Df testing[16258:28cb21] -[RNFBStorageModule addUploadTaskObservers:appDisplayName:taskId:resolver:rejecter:] [Line 597] STORAGELOG adding observer progress
2022-11-06 13:49:45.453 Df testing[16258:28cb21] -[RNFBStorageModule addUploadTaskObservers:appDisplayName:taskId:resolver:rejecter:] [Line 612] STORAGELOG adding observer success
2022-11-06 13:49:45.453 Df testing[16258:28cb21] -[RNFBStorageModule addUploadTaskObservers:appDisplayName:taskId:resolver:rejecter:] [Line 641] STORAGELOG adding observer failure


### If using Swift Package Manager, the project's Package.resolved

<!--- Look below for instructions on how to share your Package.resolved. --->

<details>
<summary>Expand <code>Package.resolved</code> snippet</summary>
<br>

```json

Replace this line with the contents of your Package.resolved.

If using CocoaPods, the project's Podfile.lock

Expand Podfile.lock snippet
PODS:
  - abseil/algorithm (1.20211102.0):
    - abseil/algorithm/algorithm (= 1.20211102.0)
    - abseil/algorithm/container (= 1.20211102.0)
  - abseil/algorithm/algorithm (1.20211102.0):
    - abseil/base/config
  - abseil/algorithm/container (1.20211102.0):
    - abseil/algorithm/algorithm
    - abseil/base/core_headers
    - abseil/meta/type_traits
  - abseil/base (1.20211102.0):
    - abseil/base/atomic_hook (= 1.20211102.0)
    - abseil/base/base (= 1.20211102.0)
    - abseil/base/base_internal (= 1.20211102.0)
    - abseil/base/config (= 1.20211102.0)
    - abseil/base/core_headers (= 1.20211102.0)
    - abseil/base/dynamic_annotations (= 1.20211102.0)
    - abseil/base/endian (= 1.20211102.0)
    - abseil/base/errno_saver (= 1.20211102.0)
    - abseil/base/fast_type_id (= 1.20211102.0)
    - abseil/base/log_severity (= 1.20211102.0)
    - abseil/base/malloc_internal (= 1.20211102.0)
    - abseil/base/pretty_function (= 1.20211102.0)
    - abseil/base/raw_logging_internal (= 1.20211102.0)
    - abseil/base/spinlock_wait (= 1.20211102.0)
    - abseil/base/strerror (= 1.20211102.0)
    - abseil/base/throw_delegate (= 1.20211102.0)
  - abseil/base/atomic_hook (1.20211102.0):
    - abseil/base/config
    - abseil/base/core_headers
  - abseil/base/base (1.20211102.0):
    - abseil/base/atomic_hook
    - abseil/base/base_internal
    - abseil/base/config
    - abseil/base/core_headers
    - abseil/base/dynamic_annotations
    - abseil/base/log_severity
    - abseil/base/raw_logging_internal
    - abseil/base/spinlock_wait
    - abseil/meta/type_traits
  - abseil/base/base_internal (1.20211102.0):
    - abseil/base/config
    - abseil/meta/type_traits
  - abseil/base/config (1.20211102.0)
  - abseil/base/core_headers (1.20211102.0):
    - abseil/base/config
  - abseil/base/dynamic_annotations (1.20211102.0):
    - abseil/base/config
    - abseil/base/core_headers
  - abseil/base/endian (1.20211102.0):
    - abseil/base/base
    - abseil/base/config
    - abseil/base/core_headers
  - abseil/base/errno_saver (1.20211102.0):
    - abseil/base/config
  - abseil/base/fast_type_id (1.20211102.0):
    - abseil/base/config
  - abseil/base/log_severity (1.20211102.0):
    - abseil/base/config
    - abseil/base/core_headers
  - abseil/base/malloc_internal (1.20211102.0):
    - abseil/base/base
    - abseil/base/base_internal
    - abseil/base/config
    - abseil/base/core_headers
    - abseil/base/dynamic_annotations
    - abseil/base/raw_logging_internal
  - abseil/base/pretty_function (1.20211102.0)
  - abseil/base/raw_logging_internal (1.20211102.0):
    - abseil/base/atomic_hook
    - abseil/base/config
    - abseil/base/core_headers
    - abseil/base/log_severity
  - abseil/base/spinlock_wait (1.20211102.0):
    - abseil/base/base_internal
    - abseil/base/core_headers
    - abseil/base/errno_saver
  - abseil/base/strerror (1.20211102.0):
    - abseil/base/config
    - abseil/base/core_headers
    - abseil/base/errno_saver
  - abseil/base/throw_delegate (1.20211102.0):
    - abseil/base/config
    - abseil/base/raw_logging_internal
  - abseil/container/common (1.20211102.0):
    - abseil/meta/type_traits
    - abseil/types/optional
  - abseil/container/compressed_tuple (1.20211102.0):
    - abseil/utility/utility
  - abseil/container/container_memory (1.20211102.0):
    - abseil/base/config
    - abseil/memory/memory
    - abseil/meta/type_traits
    - abseil/utility/utility
  - abseil/container/fixed_array (1.20211102.0):
    - abseil/algorithm/algorithm
    - abseil/base/config
    - abseil/base/core_headers
    - abseil/base/dynamic_annotations
    - abseil/base/throw_delegate
    - abseil/container/compressed_tuple
    - abseil/memory/memory
  - abseil/container/flat_hash_map (1.20211102.0):
    - abseil/algorithm/container
    - abseil/container/container_memory
    - abseil/container/hash_function_defaults
    - abseil/container/raw_hash_map
    - abseil/memory/memory
  - abseil/container/hash_function_defaults (1.20211102.0):
    - abseil/base/config
    - abseil/hash/hash
    - abseil/strings/cord
    - abseil/strings/strings
  - abseil/container/hash_policy_traits (1.20211102.0):
    - abseil/meta/type_traits
  - abseil/container/hashtable_debug_hooks (1.20211102.0):
    - abseil/base/config
  - abseil/container/hashtablez_sampler (1.20211102.0):
    - abseil/base/base
    - abseil/base/core_headers
    - abseil/container/have_sse
    - abseil/debugging/stacktrace
    - abseil/memory/memory
    - abseil/profiling/exponential_biased
    - abseil/profiling/sample_recorder
    - abseil/synchronization/synchronization
    - abseil/utility/utility
  - abseil/container/have_sse (1.20211102.0)
  - abseil/container/inlined_vector (1.20211102.0):
    - abseil/algorithm/algorithm
    - abseil/base/core_headers
    - abseil/base/throw_delegate
    - abseil/container/inlined_vector_internal
    - abseil/memory/memory
  - abseil/container/inlined_vector_internal (1.20211102.0):
    - abseil/base/core_headers
    - abseil/container/compressed_tuple
    - abseil/memory/memory
    - abseil/meta/type_traits
    - abseil/types/span
  - abseil/container/layout (1.20211102.0):
    - abseil/base/config
    - abseil/base/core_headers
    - abseil/meta/type_traits
    - abseil/strings/strings
    - abseil/types/span
    - abseil/utility/utility
  - abseil/container/raw_hash_map (1.20211102.0):
    - abseil/base/throw_delegate
    - abseil/container/container_memory
    - abseil/container/raw_hash_set
  - abseil/container/raw_hash_set (1.20211102.0):
    - abseil/base/config
    - abseil/base/core_headers
    - abseil/base/endian
    - abseil/container/common
    - abseil/container/compressed_tuple
    - abseil/container/container_memory
    - abseil/container/hash_policy_traits
    - abseil/container/hashtable_debug_hooks
    - abseil/container/hashtablez_sampler
    - abseil/container/have_sse
    - abseil/memory/memory
    - abseil/meta/type_traits
    - abseil/numeric/bits
    - abseil/utility/utility
  - abseil/debugging/debugging_internal (1.20211102.0):
    - abseil/base/config
    - abseil/base/core_headers
    - abseil/base/dynamic_annotations
    - abseil/base/errno_saver
    - abseil/base/raw_logging_internal
  - abseil/debugging/demangle_internal (1.20211102.0):
    - abseil/base/base
    - abseil/base/config
    - abseil/base/core_headers
  - abseil/debugging/stacktrace (1.20211102.0):
    - abseil/base/config
    - abseil/base/core_headers
    - abseil/debugging/debugging_internal
  - abseil/debugging/symbolize (1.20211102.0):
    - abseil/base/base
    - abseil/base/config
    - abseil/base/core_headers
    - abseil/base/dynamic_annotations
    - abseil/base/malloc_internal
    - abseil/base/raw_logging_internal
    - abseil/debugging/debugging_internal
    - abseil/debugging/demangle_internal
    - abseil/strings/strings
  - abseil/functional/bind_front (1.20211102.0):
    - abseil/base/base_internal
    - abseil/container/compressed_tuple
    - abseil/meta/type_traits
    - abseil/utility/utility
  - abseil/functional/function_ref (1.20211102.0):
    - abseil/base/base_internal
    - abseil/base/core_headers
    - abseil/meta/type_traits
  - abseil/hash/city (1.20211102.0):
    - abseil/base/config
    - abseil/base/core_headers
    - abseil/base/endian
  - abseil/hash/hash (1.20211102.0):
    - abseil/base/config
    - abseil/base/core_headers
    - abseil/base/endian
    - abseil/container/fixed_array
    - abseil/hash/city
    - abseil/hash/low_level_hash
    - abseil/meta/type_traits
    - abseil/numeric/int128
    - abseil/strings/strings
    - abseil/types/optional
    - abseil/types/variant
    - abseil/utility/utility
  - abseil/hash/low_level_hash (1.20211102.0):
    - abseil/base/config
    - abseil/base/endian
    - abseil/numeric/bits
    - abseil/numeric/int128
  - abseil/memory (1.20211102.0):
    - abseil/memory/memory (= 1.20211102.0)
  - abseil/memory/memory (1.20211102.0):
    - abseil/base/core_headers
    - abseil/meta/type_traits
  - abseil/meta (1.20211102.0):
    - abseil/meta/type_traits (= 1.20211102.0)
  - abseil/meta/type_traits (1.20211102.0):
    - abseil/base/config
  - abseil/numeric/bits (1.20211102.0):
    - abseil/base/config
    - abseil/base/core_headers
  - abseil/numeric/int128 (1.20211102.0):
    - abseil/base/config
    - abseil/base/core_headers
    - abseil/numeric/bits
  - abseil/numeric/representation (1.20211102.0):
    - abseil/base/config
  - abseil/profiling/exponential_biased (1.20211102.0):
    - abseil/base/config
    - abseil/base/core_headers
  - abseil/profiling/sample_recorder (1.20211102.0):
    - abseil/base/config
    - abseil/base/core_headers
    - abseil/synchronization/synchronization
    - abseil/time/time
  - abseil/random/distributions (1.20211102.0):
    - abseil/base/base_internal
    - abseil/base/config
    - abseil/base/core_headers
    - abseil/meta/type_traits
    - abseil/numeric/bits
    - abseil/random/internal/distribution_caller
    - abseil/random/internal/fast_uniform_bits
    - abseil/random/internal/fastmath
    - abseil/random/internal/generate_real
    - abseil/random/internal/iostream_state_saver
    - abseil/random/internal/traits
    - abseil/random/internal/uniform_helper
    - abseil/random/internal/wide_multiply
    - abseil/strings/strings
  - abseil/random/internal/distribution_caller (1.20211102.0):
    - abseil/base/config
    - abseil/base/fast_type_id
    - abseil/utility/utility
  - abseil/random/internal/fast_uniform_bits (1.20211102.0):
    - abseil/base/config
    - abseil/meta/type_traits
  - abseil/random/internal/fastmath (1.20211102.0):
    - abseil/numeric/bits
  - abseil/random/internal/generate_real (1.20211102.0):
    - abseil/meta/type_traits
    - abseil/numeric/bits
    - abseil/random/internal/fastmath
    - abseil/random/internal/traits
  - abseil/random/internal/iostream_state_saver (1.20211102.0):
    - abseil/meta/type_traits
    - abseil/numeric/int128
  - abseil/random/internal/nonsecure_base (1.20211102.0):
    - abseil/base/core_headers
    - abseil/meta/type_traits
    - abseil/random/internal/pool_urbg
    - abseil/random/internal/salted_seed_seq
    - abseil/random/internal/seed_material
    - abseil/types/optional
    - abseil/types/span
  - abseil/random/internal/pcg_engine (1.20211102.0):
    - abseil/base/config
    - abseil/meta/type_traits
    - abseil/numeric/bits
    - abseil/numeric/int128
    - abseil/random/internal/fastmath
    - abseil/random/internal/iostream_state_saver
  - abseil/random/internal/platform (1.20211102.0):
    - abseil/base/config
  - abseil/random/internal/pool_urbg (1.20211102.0):
    - abseil/base/base
    - abseil/base/config
    - abseil/base/core_headers
    - abseil/base/endian
    - abseil/base/raw_logging_internal
    - abseil/random/internal/randen
    - abseil/random/internal/seed_material
    - abseil/random/internal/traits
    - abseil/random/seed_gen_exception
    - abseil/types/span
  - abseil/random/internal/randen (1.20211102.0):
    - abseil/base/raw_logging_internal
    - abseil/random/internal/platform
    - abseil/random/internal/randen_hwaes
    - abseil/random/internal/randen_slow
  - abseil/random/internal/randen_engine (1.20211102.0):
    - abseil/base/endian
    - abseil/meta/type_traits
    - abseil/random/internal/iostream_state_saver
    - abseil/random/internal/randen
  - abseil/random/internal/randen_hwaes (1.20211102.0):
    - abseil/base/config
    - abseil/random/internal/platform
    - abseil/random/internal/randen_hwaes_impl
  - abseil/random/internal/randen_hwaes_impl (1.20211102.0):
    - abseil/base/config
    - abseil/base/core_headers
    - abseil/numeric/int128
    - abseil/random/internal/platform
  - abseil/random/internal/randen_slow (1.20211102.0):
    - abseil/base/config
    - abseil/base/core_headers
    - abseil/base/endian
    - abseil/numeric/int128
    - abseil/random/internal/platform
  - abseil/random/internal/salted_seed_seq (1.20211102.0):
    - abseil/container/inlined_vector
    - abseil/meta/type_traits
    - abseil/random/internal/seed_material
    - abseil/types/optional
    - abseil/types/span
  - abseil/random/internal/seed_material (1.20211102.0):
    - abseil/base/core_headers
    - abseil/base/dynamic_annotations
    - abseil/base/raw_logging_internal
    - abseil/random/internal/fast_uniform_bits
    - abseil/strings/strings
    - abseil/types/optional
    - abseil/types/span
  - abseil/random/internal/traits (1.20211102.0):
    - abseil/base/config
  - abseil/random/internal/uniform_helper (1.20211102.0):
    - abseil/base/config
    - abseil/meta/type_traits
    - abseil/random/internal/traits
  - abseil/random/internal/wide_multiply (1.20211102.0):
    - abseil/base/config
    - abseil/numeric/bits
    - abseil/numeric/int128
    - abseil/random/internal/traits
  - abseil/random/random (1.20211102.0):
    - abseil/random/distributions
    - abseil/random/internal/nonsecure_base
    - abseil/random/internal/pcg_engine
    - abseil/random/internal/pool_urbg
    - abseil/random/internal/randen_engine
    - abseil/random/seed_sequences
  - abseil/random/seed_gen_exception (1.20211102.0):
    - abseil/base/config
  - abseil/random/seed_sequences (1.20211102.0):
    - abseil/container/inlined_vector
    - abseil/random/internal/nonsecure_base
    - abseil/random/internal/pool_urbg
    - abseil/random/internal/salted_seed_seq
    - abseil/random/internal/seed_material
    - abseil/random/seed_gen_exception
    - abseil/types/span
  - abseil/status/status (1.20211102.0):
    - abseil/base/atomic_hook
    - abseil/base/config
    - abseil/base/core_headers
    - abseil/base/raw_logging_internal
    - abseil/container/inlined_vector
    - abseil/debugging/stacktrace
    - abseil/debugging/symbolize
    - abseil/functional/function_ref
    - abseil/strings/cord
    - abseil/strings/str_format
    - abseil/strings/strings
    - abseil/types/optional
  - abseil/status/statusor (1.20211102.0):
    - abseil/base/base
    - abseil/base/core_headers
    - abseil/base/raw_logging_internal
    - abseil/meta/type_traits
    - abseil/status/status
    - abseil/strings/strings
    - abseil/types/variant
    - abseil/utility/utility
  - abseil/strings/cord (1.20211102.0):
    - abseil/base/base
    - abseil/base/config
    - abseil/base/core_headers
    - abseil/base/endian
    - abseil/base/raw_logging_internal
    - abseil/container/fixed_array
    - abseil/container/inlined_vector
    - abseil/functional/function_ref
    - abseil/meta/type_traits
    - abseil/strings/cord_internal
    - abseil/strings/cordz_functions
    - abseil/strings/cordz_info
    - abseil/strings/cordz_statistics
    - abseil/strings/cordz_update_scope
    - abseil/strings/cordz_update_tracker
    - abseil/strings/internal
    - abseil/strings/str_format
    - abseil/strings/strings
    - abseil/types/optional
  - abseil/strings/cord_internal (1.20211102.0):
    - abseil/base/base_internal
    - abseil/base/config
    - abseil/base/core_headers
    - abseil/base/endian
    - abseil/base/raw_logging_internal
    - abseil/base/throw_delegate
    - abseil/container/compressed_tuple
    - abseil/container/inlined_vector
    - abseil/container/layout
    - abseil/functional/function_ref
    - abseil/meta/type_traits
    - abseil/strings/strings
    - abseil/types/span
  - abseil/strings/cordz_functions (1.20211102.0):
    - abseil/base/config
    - abseil/base/core_headers
    - abseil/base/raw_logging_internal
    - abseil/profiling/exponential_biased
  - abseil/strings/cordz_handle (1.20211102.0):
    - abseil/base/base
    - abseil/base/config
    - abseil/base/raw_logging_internal
    - abseil/synchronization/synchronization
  - abseil/strings/cordz_info (1.20211102.0):
    - abseil/base/base
    - abseil/base/config
    - abseil/base/core_headers
    - abseil/base/raw_logging_internal
    - abseil/container/inlined_vector
    - abseil/debugging/stacktrace
    - abseil/strings/cord_internal
    - abseil/strings/cordz_functions
    - abseil/strings/cordz_handle
    - abseil/strings/cordz_statistics
    - abseil/strings/cordz_update_tracker
    - abseil/synchronization/synchronization
    - abseil/types/span
  - abseil/strings/cordz_statistics (1.20211102.0):
    - abseil/base/config
    - abseil/strings/cordz_update_tracker
  - abseil/strings/cordz_update_scope (1.20211102.0):
    - abseil/base/config
    - abseil/base/core_headers
    - abseil/strings/cord_internal
    - abseil/strings/cordz_info
    - abseil/strings/cordz_update_tracker
  - abseil/strings/cordz_update_tracker (1.20211102.0):
    - abseil/base/config
  - abseil/strings/internal (1.20211102.0):
    - abseil/base/config
    - abseil/base/core_headers
    - abseil/base/endian
    - abseil/base/raw_logging_internal
    - abseil/meta/type_traits
  - abseil/strings/str_format (1.20211102.0):
    - abseil/strings/str_format_internal
  - abseil/strings/str_format_internal (1.20211102.0):
    - abseil/base/config
    - abseil/base/core_headers
    - abseil/functional/function_ref
    - abseil/meta/type_traits
    - abseil/numeric/bits
    - abseil/numeric/int128
    - abseil/numeric/representation
    - abseil/strings/strings
    - abseil/types/optional
    - abseil/types/span
  - abseil/strings/strings (1.20211102.0):
    - abseil/base/base
    - abseil/base/config
    - abseil/base/core_headers
    - abseil/base/endian
    - abseil/base/raw_logging_internal
    - abseil/base/throw_delegate
    - abseil/memory/memory
    - abseil/meta/type_traits
    - abseil/numeric/bits
    - abseil/numeric/int128
    - abseil/strings/internal
  - abseil/synchronization/graphcycles_internal (1.20211102.0):
    - abseil/base/base
    - abseil/base/base_internal
    - abseil/base/config
    - abseil/base/core_headers
    - abseil/base/malloc_internal
    - abseil/base/raw_logging_internal
  - abseil/synchronization/kernel_timeout_internal (1.20211102.0):
    - abseil/base/core_headers
    - abseil/base/raw_logging_internal
    - abseil/time/time
  - abseil/synchronization/synchronization (1.20211102.0):
    - abseil/base/atomic_hook
    - abseil/base/base
    - abseil/base/base_internal
    - abseil/base/config
    - abseil/base/core_headers
    - abseil/base/dynamic_annotations
    - abseil/base/malloc_internal
    - abseil/base/raw_logging_internal
    - abseil/debugging/stacktrace
    - abseil/debugging/symbolize
    - abseil/synchronization/graphcycles_internal
    - abseil/synchronization/kernel_timeout_internal
    - abseil/time/time
  - abseil/time (1.20211102.0):
    - abseil/time/internal (= 1.20211102.0)
    - abseil/time/time (= 1.20211102.0)
  - abseil/time/internal (1.20211102.0):
    - abseil/time/internal/cctz (= 1.20211102.0)
  - abseil/time/internal/cctz (1.20211102.0):
    - abseil/time/internal/cctz/civil_time (= 1.20211102.0)
    - abseil/time/internal/cctz/time_zone (= 1.20211102.0)
  - abseil/time/internal/cctz/civil_time (1.20211102.0):
    - abseil/base/config
  - abseil/time/internal/cctz/time_zone (1.20211102.0):
    - abseil/base/config
    - abseil/time/internal/cctz/civil_time
  - abseil/time/time (1.20211102.0):
    - abseil/base/base
    - abseil/base/core_headers
    - abseil/base/raw_logging_internal
    - abseil/numeric/int128
    - abseil/strings/strings
    - abseil/time/internal/cctz/civil_time
    - abseil/time/internal/cctz/time_zone
  - abseil/types (1.20211102.0):
    - abseil/types/any (= 1.20211102.0)
    - abseil/types/bad_any_cast (= 1.20211102.0)
    - abseil/types/bad_any_cast_impl (= 1.20211102.0)
    - abseil/types/bad_optional_access (= 1.20211102.0)
    - abseil/types/bad_variant_access (= 1.20211102.0)
    - abseil/types/compare (= 1.20211102.0)
    - abseil/types/optional (= 1.20211102.0)
    - abseil/types/span (= 1.20211102.0)
    - abseil/types/variant (= 1.20211102.0)
  - abseil/types/any (1.20211102.0):
    - abseil/base/config
    - abseil/base/core_headers
    - abseil/base/fast_type_id
    - abseil/meta/type_traits
    - abseil/types/bad_any_cast
    - abseil/utility/utility
  - abseil/types/bad_any_cast (1.20211102.0):
    - abseil/base/config
    - abseil/types/bad_any_cast_impl
  - abseil/types/bad_any_cast_impl (1.20211102.0):
    - abseil/base/config
    - abseil/base/raw_logging_internal
  - abseil/types/bad_optional_access (1.20211102.0):
    - abseil/base/config
    - abseil/base/raw_logging_internal
  - abseil/types/bad_variant_access (1.20211102.0):
    - abseil/base/config
    - abseil/base/raw_logging_internal
  - abseil/types/compare (1.20211102.0):
    - abseil/base/core_headers
    - abseil/meta/type_traits
  - abseil/types/optional (1.20211102.0):
    - abseil/base/base_internal
    - abseil/base/config
    - abseil/base/core_headers
    - abseil/memory/memory
    - abseil/meta/type_traits
    - abseil/types/bad_optional_access
    - abseil/utility/utility
  - abseil/types/span (1.20211102.0):
    - abseil/algorithm/algorithm
    - abseil/base/core_headers
    - abseil/base/throw_delegate
    - abseil/meta/type_traits
  - abseil/types/variant (1.20211102.0):
    - abseil/base/base_internal
    - abseil/base/config
    - abseil/base/core_headers
    - abseil/meta/type_traits
    - abseil/types/bad_variant_access
    - abseil/utility/utility
  - abseil/utility/utility (1.20211102.0):
    - abseil/base/base_internal
    - abseil/base/config
    - abseil/meta/type_traits
  - boost (1.76.0)
  - BoringSSL-GRPC (0.0.24):
    - BoringSSL-GRPC/Implementation (= 0.0.24)
    - BoringSSL-GRPC/Interface (= 0.0.24)
  - BoringSSL-GRPC/Implementation (0.0.24):
    - BoringSSL-GRPC/Interface (= 0.0.24)
  - BoringSSL-GRPC/Interface (0.0.24)
  - DoubleConversion (1.1.6)
  - FBLazyVector (0.67.3)
  - FBReactNativeSpec (0.67.3):
    - RCT-Folly (= 2021.06.28.00-v2)
    - RCTRequired (= 0.67.3)
    - RCTTypeSafety (= 0.67.3)
    - React-Core (= 0.67.3)
    - React-jsi (= 0.67.3)
    - ReactCommon/turbomodule/core (= 0.67.3)
  - Firebase/Analytics (10.1.0):
    - Firebase/Core
  - Firebase/AppCheck (10.1.0):
    - Firebase/CoreOnly
    - FirebaseAppCheck (~> 10.1.0)
  - Firebase/AppDistribution (10.1.0):
    - Firebase/CoreOnly
    - FirebaseAppDistribution (~> 10.1.0-beta)
  - Firebase/Auth (10.1.0):
    - Firebase/CoreOnly
    - FirebaseAuth (~> 10.1.0)
  - Firebase/Core (10.1.0):
    - Firebase/CoreOnly
    - FirebaseAnalytics (~> 10.1.0)
  - Firebase/CoreOnly (10.1.0):
    - FirebaseCore (= 10.1.0)
  - Firebase/Crashlytics (10.1.0):
    - Firebase/CoreOnly
    - FirebaseCrashlytics (~> 10.1.0)
  - Firebase/Database (10.1.0):
    - Firebase/CoreOnly
    - FirebaseDatabase (~> 10.1.0)
  - Firebase/DynamicLinks (10.1.0):
    - Firebase/CoreOnly
    - FirebaseDynamicLinks (~> 10.1.0)
  - Firebase/Firestore (10.1.0):
    - Firebase/CoreOnly
    - FirebaseFirestore (~> 10.1.0)
  - Firebase/Functions (10.1.0):
    - Firebase/CoreOnly
    - FirebaseFunctions (~> 10.1.0)
  - Firebase/InAppMessaging (10.1.0):
    - Firebase/CoreOnly
    - FirebaseInAppMessaging (~> 10.1.0-beta)
  - Firebase/Installations (10.1.0):
    - Firebase/CoreOnly
    - FirebaseInstallations (~> 10.1.0)
  - Firebase/Messaging (10.1.0):
    - Firebase/CoreOnly
    - FirebaseMessaging (~> 10.1.0)
  - Firebase/Performance (10.1.0):
    - Firebase/CoreOnly
    - FirebasePerformance (~> 10.1.0)
  - Firebase/RemoteConfig (10.1.0):
    - Firebase/CoreOnly
    - FirebaseRemoteConfig (~> 10.1.0)
  - Firebase/Storage (10.1.0):
    - Firebase/CoreOnly
    - FirebaseStorage (~> 10.1.0)
  - FirebaseABTesting (10.1.0):
    - FirebaseCore (~> 10.0)
  - FirebaseAnalytics (10.1.0):
    - FirebaseAnalytics/AdIdSupport (= 10.1.0)
    - FirebaseCore (~> 10.0)
    - FirebaseInstallations (~> 10.0)
    - GoogleUtilities/AppDelegateSwizzler (~> 7.8)
    - GoogleUtilities/MethodSwizzler (~> 7.8)
    - GoogleUtilities/Network (~> 7.8)
    - "GoogleUtilities/NSData+zlib (~> 7.8)"
    - nanopb (< 2.30910.0, >= 2.30908.0)
  - FirebaseAnalytics/AdIdSupport (10.1.0):
    - FirebaseCore (~> 10.0)
    - FirebaseInstallations (~> 10.0)
    - GoogleAppMeasurement (= 10.1.0)
    - GoogleUtilities/AppDelegateSwizzler (~> 7.8)
    - GoogleUtilities/MethodSwizzler (~> 7.8)
    - GoogleUtilities/Network (~> 7.8)
    - "GoogleUtilities/NSData+zlib (~> 7.8)"
    - nanopb (< 2.30910.0, >= 2.30908.0)
  - FirebaseAppCheck (10.1.0):
    - FirebaseCore (~> 10.0)
    - GoogleUtilities/Environment (~> 7.8)
    - PromisesObjC (~> 2.1)
  - FirebaseAppCheckInterop (10.1.0)
  - FirebaseAppDistribution (10.1.0-beta):
    - FirebaseCore (~> 10.0)
    - FirebaseInstallations (~> 10.0)
    - GoogleDataTransport (~> 9.2)
    - GoogleUtilities/AppDelegateSwizzler (~> 7.8)
    - GoogleUtilities/UserDefaults (~> 7.8)
  - FirebaseAuth (10.1.0):
    - FirebaseCore (~> 10.0)
    - GoogleUtilities/AppDelegateSwizzler (~> 7.8)
    - GoogleUtilities/Environment (~> 7.8)
    - GTMSessionFetcher/Core (~> 2.1)
  - FirebaseAuthInterop (10.1.0)
  - FirebaseCore (10.1.0):
    - FirebaseCoreInternal (~> 10.0)
    - GoogleUtilities/Environment (~> 7.8)
    - GoogleUtilities/Logger (~> 7.8)
  - FirebaseCoreExtension (10.1.0):
    - FirebaseCore (~> 10.0)
  - FirebaseCoreInternal (10.1.0):
    - "GoogleUtilities/NSData+zlib (~> 7.8)"
  - FirebaseCrashlytics (10.1.0):
    - FirebaseCore (~> 10.0)
    - FirebaseInstallations (~> 10.0)
    - GoogleDataTransport (~> 9.2)
    - GoogleUtilities/Environment (~> 7.8)
    - nanopb (< 2.30910.0, >= 2.30908.0)
    - PromisesObjC (~> 2.1)
  - FirebaseDatabase (10.1.0):
    - FirebaseCore (~> 10.0)
    - leveldb-library (~> 1.22)
  - FirebaseDynamicLinks (10.1.0):
    - FirebaseCore (~> 10.0)
  - FirebaseFirestore (10.1.0):
    - abseil/algorithm (~> 1.20211102.0)
    - abseil/base (~> 1.20211102.0)
    - abseil/container/flat_hash_map (~> 1.20211102.0)
    - abseil/memory (~> 1.20211102.0)
    - abseil/meta (~> 1.20211102.0)
    - abseil/strings/strings (~> 1.20211102.0)
    - abseil/time (~> 1.20211102.0)
    - abseil/types (~> 1.20211102.0)
    - FirebaseCore (~> 10.0)
    - "gRPC-C++ (~> 1.44.0)"
    - leveldb-library (~> 1.22)
    - nanopb (< 2.30910.0, >= 2.30908.0)
  - FirebaseFunctions (10.1.0):
    - FirebaseAppCheckInterop (~> 10.0)
    - FirebaseAuthInterop (~> 10.0)
    - FirebaseCore (~> 10.0)
    - FirebaseCoreExtension (~> 10.0)
    - FirebaseMessagingInterop (~> 10.0)
    - FirebaseSharedSwift (~> 10.0)
    - GTMSessionFetcher/Core (~> 2.1)
  - FirebaseInAppMessaging (10.1.0-beta):
    - FirebaseABTesting (~> 10.0)
    - FirebaseCore (~> 10.0)
    - FirebaseInstallations (~> 10.0)
    - GoogleUtilities/Environment (~> 7.8)
    - nanopb (< 2.30910.0, >= 2.30908.0)
  - FirebaseInstallations (10.1.0):
    - FirebaseCore (~> 10.0)
    - GoogleUtilities/Environment (~> 7.8)
    - GoogleUtilities/UserDefaults (~> 7.8)
    - PromisesObjC (~> 2.1)
  - FirebaseMessaging (10.1.0):
    - FirebaseCore (~> 10.0)
    - FirebaseInstallations (~> 10.0)
    - GoogleDataTransport (~> 9.2)
    - GoogleUtilities/AppDelegateSwizzler (~> 7.8)
    - GoogleUtilities/Environment (~> 7.8)
    - GoogleUtilities/Reachability (~> 7.8)
    - GoogleUtilities/UserDefaults (~> 7.8)
    - nanopb (< 2.30910.0, >= 2.30908.0)
  - FirebaseMessagingInterop (10.1.0)
  - FirebasePerformance (10.1.0):
    - FirebaseCore (~> 10.0)
    - FirebaseInstallations (~> 10.0)
    - FirebaseRemoteConfig (~> 10.0)
    - GoogleDataTransport (~> 9.2)
    - GoogleUtilities/Environment (~> 7.8)
    - GoogleUtilities/ISASwizzler (~> 7.8)
    - GoogleUtilities/MethodSwizzler (~> 7.8)
    - nanopb (< 2.30910.0, >= 2.30908.0)
  - FirebaseRemoteConfig (10.1.0):
    - FirebaseABTesting (~> 10.0)
    - FirebaseCore (~> 10.0)
    - FirebaseInstallations (~> 10.0)
    - GoogleUtilities/Environment (~> 7.8)
    - "GoogleUtilities/NSData+zlib (~> 7.8)"
  - FirebaseSharedSwift (10.1.0)
  - FirebaseStorage (10.1.0):
    - FirebaseAppCheckInterop (~> 10.0)
    - FirebaseAuthInterop (~> 10.0)
    - FirebaseCore (~> 10.0)
    - FirebaseCoreExtension (~> 10.0)
    - GTMSessionFetcher/Core (~> 2.1)
  - fmt (6.2.1)
  - glog (0.3.5)
  - GoogleAppMeasurement (10.1.0):
    - GoogleAppMeasurement/AdIdSupport (= 10.1.0)
    - GoogleUtilities/AppDelegateSwizzler (~> 7.8)
    - GoogleUtilities/MethodSwizzler (~> 7.8)
    - GoogleUtilities/Network (~> 7.8)
    - "GoogleUtilities/NSData+zlib (~> 7.8)"
    - nanopb (< 2.30910.0, >= 2.30908.0)
  - GoogleAppMeasurement/AdIdSupport (10.1.0):
    - GoogleAppMeasurement/WithoutAdIdSupport (= 10.1.0)
    - GoogleUtilities/AppDelegateSwizzler (~> 7.8)
    - GoogleUtilities/MethodSwizzler (~> 7.8)
    - GoogleUtilities/Network (~> 7.8)
    - "GoogleUtilities/NSData+zlib (~> 7.8)"
    - nanopb (< 2.30910.0, >= 2.30908.0)
  - GoogleAppMeasurement/WithoutAdIdSupport (10.1.0):
    - GoogleUtilities/AppDelegateSwizzler (~> 7.8)
    - GoogleUtilities/MethodSwizzler (~> 7.8)
    - GoogleUtilities/Network (~> 7.8)
    - "GoogleUtilities/NSData+zlib (~> 7.8)"
    - nanopb (< 2.30910.0, >= 2.30908.0)
  - GoogleAppMeasurementOnDeviceConversion (10.1.0)
  - GoogleDataTransport (9.2.0):
    - GoogleUtilities/Environment (~> 7.7)
    - nanopb (< 2.30910.0, >= 2.30908.0)
    - PromisesObjC (< 3.0, >= 1.2)
  - GoogleUtilities/AppDelegateSwizzler (7.8.0):
    - GoogleUtilities/Environment
    - GoogleUtilities/Logger
    - GoogleUtilities/Network
  - GoogleUtilities/Environment (7.8.0):
    - PromisesObjC (< 3.0, >= 1.2)
  - GoogleUtilities/ISASwizzler (7.8.0)
  - GoogleUtilities/Logger (7.8.0):
    - GoogleUtilities/Environment
  - GoogleUtilities/MethodSwizzler (7.8.0):
    - GoogleUtilities/Logger
  - GoogleUtilities/Network (7.8.0):
    - GoogleUtilities/Logger
    - "GoogleUtilities/NSData+zlib"
    - GoogleUtilities/Reachability
  - "GoogleUtilities/NSData+zlib (7.8.0)"
  - GoogleUtilities/Reachability (7.8.0):
    - GoogleUtilities/Logger
  - GoogleUtilities/UserDefaults (7.8.0):
    - GoogleUtilities/Logger
  - "gRPC-C++ (1.44.0)":
    - "gRPC-C++/Implementation (= 1.44.0)"
    - "gRPC-C++/Interface (= 1.44.0)"
  - "gRPC-C++/Implementation (1.44.0)":
    - abseil/base/base (= 1.20211102.0)
    - abseil/base/core_headers (= 1.20211102.0)
    - abseil/container/flat_hash_map (= 1.20211102.0)
    - abseil/container/inlined_vector (= 1.20211102.0)
    - abseil/functional/bind_front (= 1.20211102.0)
    - abseil/hash/hash (= 1.20211102.0)
    - abseil/memory/memory (= 1.20211102.0)
    - abseil/random/random (= 1.20211102.0)
    - abseil/status/status (= 1.20211102.0)
    - abseil/status/statusor (= 1.20211102.0)
    - abseil/strings/cord (= 1.20211102.0)
    - abseil/strings/str_format (= 1.20211102.0)
    - abseil/strings/strings (= 1.20211102.0)
    - abseil/synchronization/synchronization (= 1.20211102.0)
    - abseil/time/time (= 1.20211102.0)
    - abseil/types/optional (= 1.20211102.0)
    - abseil/types/variant (= 1.20211102.0)
    - abseil/utility/utility (= 1.20211102.0)
    - "gRPC-C++/Interface (= 1.44.0)"
    - gRPC-Core (= 1.44.0)
  - "gRPC-C++/Interface (1.44.0)"
  - gRPC-Core (1.44.0):
    - gRPC-Core/Implementation (= 1.44.0)
    - gRPC-Core/Interface (= 1.44.0)
  - gRPC-Core/Implementation (1.44.0):
    - abseil/base/base (= 1.20211102.0)
    - abseil/base/core_headers (= 1.20211102.0)
    - abseil/container/flat_hash_map (= 1.20211102.0)
    - abseil/container/inlined_vector (= 1.20211102.0)
    - abseil/functional/bind_front (= 1.20211102.0)
    - abseil/hash/hash (= 1.20211102.0)
    - abseil/memory/memory (= 1.20211102.0)
    - abseil/random/random (= 1.20211102.0)
    - abseil/status/status (= 1.20211102.0)
    - abseil/status/statusor (= 1.20211102.0)
    - abseil/strings/cord (= 1.20211102.0)
    - abseil/strings/str_format (= 1.20211102.0)
    - abseil/strings/strings (= 1.20211102.0)
    - abseil/synchronization/synchronization (= 1.20211102.0)
    - abseil/time/time (= 1.20211102.0)
    - abseil/types/optional (= 1.20211102.0)
    - abseil/types/variant (= 1.20211102.0)
    - abseil/utility/utility (= 1.20211102.0)
    - BoringSSL-GRPC (= 0.0.24)
    - gRPC-Core/Interface (= 1.44.0)
    - Libuv-gRPC (= 0.0.10)
  - gRPC-Core/Interface (1.44.0)
  - GTMSessionFetcher/Core (2.1.0)
  - Jet (0.8.2):
    - React-Core
  - leveldb-library (1.22.1)
  - Libuv-gRPC (0.0.10):
    - Libuv-gRPC/Implementation (= 0.0.10)
    - Libuv-gRPC/Interface (= 0.0.10)
  - Libuv-gRPC/Implementation (0.0.10):
    - Libuv-gRPC/Interface (= 0.0.10)
  - Libuv-gRPC/Interface (0.0.10)
  - nanopb (2.30909.0):
    - nanopb/decode (= 2.30909.0)
    - nanopb/encode (= 2.30909.0)
  - nanopb/decode (2.30909.0)
  - nanopb/encode (2.30909.0)
  - PromisesObjC (2.1.1)
  - RCT-Folly (2021.06.28.00-v2):
    - boost
    - DoubleConversion
    - fmt (~> 6.2.1)
    - glog
    - RCT-Folly/Default (= 2021.06.28.00-v2)
  - RCT-Folly/Default (2021.06.28.00-v2):
    - boost
    - DoubleConversion
    - fmt (~> 6.2.1)
    - glog
  - RCTRequired (0.67.3)
  - RCTTypeSafety (0.67.3):
    - FBLazyVector (= 0.67.3)
    - RCT-Folly (= 2021.06.28.00-v2)
    - RCTRequired (= 0.67.3)
    - React-Core (= 0.67.3)
  - React (0.67.3):
    - React-Core (= 0.67.3)
    - React-Core/DevSupport (= 0.67.3)
    - React-Core/RCTWebSocket (= 0.67.3)
    - React-RCTActionSheet (= 0.67.3)
    - React-RCTAnimation (= 0.67.3)
    - React-RCTBlob (= 0.67.3)
    - React-RCTImage (= 0.67.3)
    - React-RCTLinking (= 0.67.3)
    - React-RCTNetwork (= 0.67.3)
    - React-RCTSettings (= 0.67.3)
    - React-RCTText (= 0.67.3)
    - React-RCTVibration (= 0.67.3)
  - React-callinvoker (0.67.3)
  - React-Core (0.67.3):
    - glog
    - RCT-Folly (= 2021.06.28.00-v2)
    - React-Core/Default (= 0.67.3)
    - React-cxxreact (= 0.67.3)
    - React-jsi (= 0.67.3)
    - React-jsiexecutor (= 0.67.3)
    - React-perflogger (= 0.67.3)
    - Yoga
  - React-Core/CoreModulesHeaders (0.67.3):
    - glog
    - RCT-Folly (= 2021.06.28.00-v2)
    - React-Core/Default
    - React-cxxreact (= 0.67.3)
    - React-jsi (= 0.67.3)
    - React-jsiexecutor (= 0.67.3)
    - React-perflogger (= 0.67.3)
    - Yoga
  - React-Core/Default (0.67.3):
    - glog
    - RCT-Folly (= 2021.06.28.00-v2)
    - React-cxxreact (= 0.67.3)
    - React-jsi (= 0.67.3)
    - React-jsiexecutor (= 0.67.3)
    - React-perflogger (= 0.67.3)
    - Yoga
  - React-Core/DevSupport (0.67.3):
    - glog
    - RCT-Folly (= 2021.06.28.00-v2)
    - React-Core/Default (= 0.67.3)
    - React-Core/RCTWebSocket (= 0.67.3)
    - React-cxxreact (= 0.67.3)
    - React-jsi (= 0.67.3)
    - React-jsiexecutor (= 0.67.3)
    - React-jsinspector (= 0.67.3)
    - React-perflogger (= 0.67.3)
    - Yoga
  - React-Core/RCTActionSheetHeaders (0.67.3):
    - glog
    - RCT-Folly (= 2021.06.28.00-v2)
    - React-Core/Default
    - React-cxxreact (= 0.67.3)
    - React-jsi (= 0.67.3)
    - React-jsiexecutor (= 0.67.3)
    - React-perflogger (= 0.67.3)
    - Yoga
  - React-Core/RCTAnimationHeaders (0.67.3):
    - glog
    - RCT-Folly (= 2021.06.28.00-v2)
    - React-Core/Default
    - React-cxxreact (= 0.67.3)
    - React-jsi (= 0.67.3)
    - React-jsiexecutor (= 0.67.3)
    - React-perflogger (= 0.67.3)
    - Yoga
  - React-Core/RCTBlobHeaders (0.67.3):
    - glog
    - RCT-Folly (= 2021.06.28.00-v2)
    - React-Core/Default
    - React-cxxreact (= 0.67.3)
    - React-jsi (= 0.67.3)
    - React-jsiexecutor (= 0.67.3)
    - React-perflogger (= 0.67.3)
    - Yoga
  - React-Core/RCTImageHeaders (0.67.3):
    - glog
    - RCT-Folly (= 2021.06.28.00-v2)
    - React-Core/Default
    - React-cxxreact (= 0.67.3)
    - React-jsi (= 0.67.3)
    - React-jsiexecutor (= 0.67.3)
    - React-perflogger (= 0.67.3)
    - Yoga
  - React-Core/RCTLinkingHeaders (0.67.3):
    - glog
    - RCT-Folly (= 2021.06.28.00-v2)
    - React-Core/Default
    - React-cxxreact (= 0.67.3)
    - React-jsi (= 0.67.3)
    - React-jsiexecutor (= 0.67.3)
    - React-perflogger (= 0.67.3)
    - Yoga
  - React-Core/RCTNetworkHeaders (0.67.3):
    - glog
    - RCT-Folly (= 2021.06.28.00-v2)
    - React-Core/Default
    - React-cxxreact (= 0.67.3)
    - React-jsi (= 0.67.3)
    - React-jsiexecutor (= 0.67.3)
    - React-perflogger (= 0.67.3)
    - Yoga
  - React-Core/RCTSettingsHeaders (0.67.3):
    - glog
    - RCT-Folly (= 2021.06.28.00-v2)
    - React-Core/Default
    - React-cxxreact (= 0.67.3)
    - React-jsi (= 0.67.3)
    - React-jsiexecutor (= 0.67.3)
    - React-perflogger (= 0.67.3)
    - Yoga
  - React-Core/RCTTextHeaders (0.67.3):
    - glog
    - RCT-Folly (= 2021.06.28.00-v2)
    - React-Core/Default
    - React-cxxreact (= 0.67.3)
    - React-jsi (= 0.67.3)
    - React-jsiexecutor (= 0.67.3)
    - React-perflogger (= 0.67.3)
    - Yoga
  - React-Core/RCTVibrationHeaders (0.67.3):
    - glog
    - RCT-Folly (= 2021.06.28.00-v2)
    - React-Core/Default
    - React-cxxreact (= 0.67.3)
    - React-jsi (= 0.67.3)
    - React-jsiexecutor (= 0.67.3)
    - React-perflogger (= 0.67.3)
    - Yoga
  - React-Core/RCTWebSocket (0.67.3):
    - glog
    - RCT-Folly (= 2021.06.28.00-v2)
    - React-Core/Default (= 0.67.3)
    - React-cxxreact (= 0.67.3)
    - React-jsi (= 0.67.3)
    - React-jsiexecutor (= 0.67.3)
    - React-perflogger (= 0.67.3)
    - Yoga
  - React-CoreModules (0.67.3):
    - FBReactNativeSpec (= 0.67.3)
    - RCT-Folly (= 2021.06.28.00-v2)
    - RCTTypeSafety (= 0.67.3)
    - React-Core/CoreModulesHeaders (= 0.67.3)
    - React-jsi (= 0.67.3)
    - React-RCTImage (= 0.67.3)
    - ReactCommon/turbomodule/core (= 0.67.3)
  - React-cxxreact (0.67.3):
    - boost (= 1.76.0)
    - DoubleConversion
    - glog
    - RCT-Folly (= 2021.06.28.00-v2)
    - React-callinvoker (= 0.67.3)
    - React-jsi (= 0.67.3)
    - React-jsinspector (= 0.67.3)
    - React-logger (= 0.67.3)
    - React-perflogger (= 0.67.3)
    - React-runtimeexecutor (= 0.67.3)
  - React-jsi (0.67.3):
    - boost (= 1.76.0)
    - DoubleConversion
    - glog
    - RCT-Folly (= 2021.06.28.00-v2)
    - React-jsi/Default (= 0.67.3)
  - React-jsi/Default (0.67.3):
    - boost (= 1.76.0)
    - DoubleConversion
    - glog
    - RCT-Folly (= 2021.06.28.00-v2)
  - React-jsiexecutor (0.67.3):
    - DoubleConversion
    - glog
    - RCT-Folly (= 2021.06.28.00-v2)
    - React-cxxreact (= 0.67.3)
    - React-jsi (= 0.67.3)
    - React-perflogger (= 0.67.3)
  - React-jsinspector (0.67.3)
  - React-logger (0.67.3):
    - glog
  - React-perflogger (0.67.3)
  - React-RCTActionSheet (0.67.3):
    - React-Core/RCTActionSheetHeaders (= 0.67.3)
  - React-RCTAnimation (0.67.3):
    - FBReactNativeSpec (= 0.67.3)
    - RCT-Folly (= 2021.06.28.00-v2)
    - RCTTypeSafety (= 0.67.3)
    - React-Core/RCTAnimationHeaders (= 0.67.3)
    - React-jsi (= 0.67.3)
    - ReactCommon/turbomodule/core (= 0.67.3)
  - React-RCTBlob (0.67.3):
    - FBReactNativeSpec (= 0.67.3)
    - RCT-Folly (= 2021.06.28.00-v2)
    - React-Core/RCTBlobHeaders (= 0.67.3)
    - React-Core/RCTWebSocket (= 0.67.3)
    - React-jsi (= 0.67.3)
    - React-RCTNetwork (= 0.67.3)
    - ReactCommon/turbomodule/core (= 0.67.3)
  - React-RCTImage (0.67.3):
    - FBReactNativeSpec (= 0.67.3)
    - RCT-Folly (= 2021.06.28.00-v2)
    - RCTTypeSafety (= 0.67.3)
    - React-Core/RCTImageHeaders (= 0.67.3)
    - React-jsi (= 0.67.3)
    - React-RCTNetwork (= 0.67.3)
    - ReactCommon/turbomodule/core (= 0.67.3)
  - React-RCTLinking (0.67.3):
    - FBReactNativeSpec (= 0.67.3)
    - React-Core/RCTLinkingHeaders (= 0.67.3)
    - React-jsi (= 0.67.3)
    - ReactCommon/turbomodule/core (= 0.67.3)
  - React-RCTNetwork (0.67.3):
    - FBReactNativeSpec (= 0.67.3)
    - RCT-Folly (= 2021.06.28.00-v2)
    - RCTTypeSafety (= 0.67.3)
    - React-Core/RCTNetworkHeaders (= 0.67.3)
    - React-jsi (= 0.67.3)
    - ReactCommon/turbomodule/core (= 0.67.3)
  - React-RCTSettings (0.67.3):
    - FBReactNativeSpec (= 0.67.3)
    - RCT-Folly (= 2021.06.28.00-v2)
    - RCTTypeSafety (= 0.67.3)
    - React-Core/RCTSettingsHeaders (= 0.67.3)
    - React-jsi (= 0.67.3)
    - ReactCommon/turbomodule/core (= 0.67.3)
  - React-RCTText (0.67.3):
    - React-Core/RCTTextHeaders (= 0.67.3)
  - React-RCTVibration (0.67.3):
    - FBReactNativeSpec (= 0.67.3)
    - RCT-Folly (= 2021.06.28.00-v2)
    - React-Core/RCTVibrationHeaders (= 0.67.3)
    - React-jsi (= 0.67.3)
    - ReactCommon/turbomodule/core (= 0.67.3)
  - React-runtimeexecutor (0.67.3):
    - React-jsi (= 0.67.3)
  - ReactCommon/turbomodule/core (0.67.3):
    - DoubleConversion
    - glog
    - RCT-Folly (= 2021.06.28.00-v2)
    - React-callinvoker (= 0.67.3)
    - React-Core (= 0.67.3)
    - React-cxxreact (= 0.67.3)
    - React-jsi (= 0.67.3)
    - React-logger (= 0.67.3)
    - React-perflogger (= 0.67.3)
  - RNFBAnalytics (16.4.3):
    - Firebase/Analytics (= 10.1.0)
    - GoogleAppMeasurementOnDeviceConversion (= 10.1.0)
    - React-Core
    - RNFBApp
  - RNFBApp (16.4.3):
    - Firebase/CoreOnly (= 10.1.0)
    - React-Core
  - RNFBAppCheck (16.4.3):
    - Firebase/AppCheck (= 10.1.0)
    - React-Core
    - RNFBApp
  - RNFBAppDistribution (16.4.3):
    - Firebase/AppDistribution (= 10.1.0)
    - React-Core
    - RNFBApp
  - RNFBAuth (16.4.3):
    - Firebase/Auth (= 10.1.0)
    - React-Core
    - RNFBApp
  - RNFBCrashlytics (16.4.3):
    - Firebase/Crashlytics (= 10.1.0)
    - FirebaseCoreExtension (= 10.1.0)
    - React-Core
    - RNFBApp
  - RNFBDatabase (16.4.3):
    - Firebase/Database (= 10.1.0)
    - React-Core
    - RNFBApp
  - RNFBDynamicLinks (16.4.3):
    - Firebase/DynamicLinks (= 10.1.0)
    - GoogleUtilities/AppDelegateSwizzler
    - React-Core
    - RNFBApp
  - RNFBFirestore (16.4.3):
    - Firebase/Firestore (= 10.1.0)
    - nanopb (< 2.30910.0, >= 2.30908.0)
    - React-Core
    - RNFBApp
  - RNFBFunctions (16.4.3):
    - Firebase/Functions (= 10.1.0)
    - React-Core
    - RNFBApp
  - RNFBInAppMessaging (16.4.3):
    - Firebase/InAppMessaging (= 10.1.0)
    - React-Core
    - RNFBApp
  - RNFBInstallations (16.4.3):
    - Firebase/Installations (= 10.1.0)
    - React-Core
    - RNFBApp
  - RNFBMessaging (16.4.3):
    - Firebase/Messaging (= 10.1.0)
    - FirebaseCoreExtension (= 10.1.0)
    - React-Core
    - RNFBApp
  - RNFBML (16.4.3):
    - React-Core
    - RNFBApp
  - RNFBPerf (16.4.3):
    - Firebase/Performance (= 10.1.0)
    - React-Core
    - RNFBApp
  - RNFBRemoteConfig (16.4.3):
    - Firebase/RemoteConfig (= 10.1.0)
    - React-Core
    - RNFBApp
  - RNFBStorage (16.4.3):
    - Firebase/Storage (= 10.1.0)
    - React-Core
    - RNFBApp
  - Yoga (1.14.0)

DEPENDENCIES:
  - boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`)
  - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
  - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`)
  - FBReactNativeSpec (from `../node_modules/react-native/React/FBReactNativeSpec`)
  - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`)
  - Jet (from `../node_modules/jet`)
  - RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`)
  - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`)
  - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`)
  - React (from `../node_modules/react-native/`)
  - React-callinvoker (from `../node_modules/react-native/ReactCommon/callinvoker`)
  - React-Core (from `../node_modules/react-native/`)
  - React-Core/DevSupport (from `../node_modules/react-native/`)
  - React-Core/RCTWebSocket (from `../node_modules/react-native/`)
  - React-CoreModules (from `../node_modules/react-native/React/CoreModules`)
  - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`)
  - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`)
  - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`)
  - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`)
  - React-logger (from `../node_modules/react-native/ReactCommon/logger`)
  - React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`)
  - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`)
  - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`)
  - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`)
  - React-RCTImage (from `../node_modules/react-native/Libraries/Image`)
  - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`)
  - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`)
  - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`)
  - React-RCTText (from `../node_modules/react-native/Libraries/Text`)
  - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`)
  - React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`)
  - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
  - RNFBAnalytics (from `../../packages/analytics`)
  - RNFBApp (from `../../packages/app`)
  - RNFBAppCheck (from `../../packages/app-check`)
  - RNFBAppDistribution (from `../../packages/app-distribution`)
  - RNFBAuth (from `../../packages/auth`)
  - RNFBCrashlytics (from `../../packages/crashlytics`)
  - RNFBDatabase (from `../../packages/database`)
  - RNFBDynamicLinks (from `../../packages/dynamic-links`)
  - RNFBFirestore (from `../../packages/firestore`)
  - RNFBFunctions (from `../../packages/functions`)
  - RNFBInAppMessaging (from `../../packages/in-app-messaging`)
  - RNFBInstallations (from `../../packages/installations`)
  - RNFBMessaging (from `../../packages/messaging`)
  - RNFBML (from `../../packages/ml`)
  - RNFBPerf (from `../../packages/perf`)
  - RNFBRemoteConfig (from `../../packages/remote-config`)
  - RNFBStorage (from `../../packages/storage`)
  - Yoga (from `../node_modules/react-native/ReactCommon/yoga`)

SPEC REPOS:
  trunk:
    - abseil
    - BoringSSL-GRPC
    - Firebase
    - FirebaseABTesting
    - FirebaseAnalytics
    - FirebaseAppCheck
    - FirebaseAppCheckInterop
    - FirebaseAppDistribution
    - FirebaseAuth
    - FirebaseAuthInterop
    - FirebaseCore
    - FirebaseCoreExtension
    - FirebaseCoreInternal
    - FirebaseCrashlytics
    - FirebaseDatabase
    - FirebaseDynamicLinks
    - FirebaseFirestore
    - FirebaseFunctions
    - FirebaseInAppMessaging
    - FirebaseInstallations
    - FirebaseMessaging
    - FirebaseMessagingInterop
    - FirebasePerformance
    - FirebaseRemoteConfig
    - FirebaseSharedSwift
    - FirebaseStorage
    - fmt
    - GoogleAppMeasurement
    - GoogleAppMeasurementOnDeviceConversion
    - GoogleDataTransport
    - GoogleUtilities
    - "gRPC-C++"
    - gRPC-Core
    - GTMSessionFetcher
    - leveldb-library
    - Libuv-gRPC
    - nanopb
    - PromisesObjC

EXTERNAL SOURCES:
  boost:
    :podspec: "../node_modules/react-native/third-party-podspecs/boost.podspec"
  DoubleConversion:
    :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec"
  FBLazyVector:
    :path: "../node_modules/react-native/Libraries/FBLazyVector"
  FBReactNativeSpec:
    :path: "../node_modules/react-native/React/FBReactNativeSpec"
  glog:
    :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec"
  Jet:
    :path: "../node_modules/jet"
  RCT-Folly:
    :podspec: "../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec"
  RCTRequired:
    :path: "../node_modules/react-native/Libraries/RCTRequired"
  RCTTypeSafety:
    :path: "../node_modules/react-native/Libraries/TypeSafety"
  React:
    :path: "../node_modules/react-native/"
  React-callinvoker:
    :path: "../node_modules/react-native/ReactCommon/callinvoker"
  React-Core:
    :path: "../node_modules/react-native/"
  React-CoreModules:
    :path: "../node_modules/react-native/React/CoreModules"
  React-cxxreact:
    :path: "../node_modules/react-native/ReactCommon/cxxreact"
  React-jsi:
    :path: "../node_modules/react-native/ReactCommon/jsi"
  React-jsiexecutor:
    :path: "../node_modules/react-native/ReactCommon/jsiexecutor"
  React-jsinspector:
    :path: "../node_modules/react-native/ReactCommon/jsinspector"
  React-logger:
    :path: "../node_modules/react-native/ReactCommon/logger"
  React-perflogger:
    :path: "../node_modules/react-native/ReactCommon/reactperflogger"
  React-RCTActionSheet:
    :path: "../node_modules/react-native/Libraries/ActionSheetIOS"
  React-RCTAnimation:
    :path: "../node_modules/react-native/Libraries/NativeAnimation"
  React-RCTBlob:
    :path: "../node_modules/react-native/Libraries/Blob"
  React-RCTImage:
    :path: "../node_modules/react-native/Libraries/Image"
  React-RCTLinking:
    :path: "../node_modules/react-native/Libraries/LinkingIOS"
  React-RCTNetwork:
    :path: "../node_modules/react-native/Libraries/Network"
  React-RCTSettings:
    :path: "../node_modules/react-native/Libraries/Settings"
  React-RCTText:
    :path: "../node_modules/react-native/Libraries/Text"
  React-RCTVibration:
    :path: "../node_modules/react-native/Libraries/Vibration"
  React-runtimeexecutor:
    :path: "../node_modules/react-native/ReactCommon/runtimeexecutor"
  ReactCommon:
    :path: "../node_modules/react-native/ReactCommon"
  RNFBAnalytics:
    :path: "../../packages/analytics"
  RNFBApp:
    :path: "../../packages/app"
  RNFBAppCheck:
    :path: "../../packages/app-check"
  RNFBAppDistribution:
    :path: "../../packages/app-distribution"
  RNFBAuth:
    :path: "../../packages/auth"
  RNFBCrashlytics:
    :path: "../../packages/crashlytics"
  RNFBDatabase:
    :path: "../../packages/database"
  RNFBDynamicLinks:
    :path: "../../packages/dynamic-links"
  RNFBFirestore:
    :path: "../../packages/firestore"
  RNFBFunctions:
    :path: "../../packages/functions"
  RNFBInAppMessaging:
    :path: "../../packages/in-app-messaging"
  RNFBInstallations:
    :path: "../../packages/installations"
  RNFBMessaging:
    :path: "../../packages/messaging"
  RNFBML:
    :path: "../../packages/ml"
  RNFBPerf:
    :path: "../../packages/perf"
  RNFBRemoteConfig:
    :path: "../../packages/remote-config"
  RNFBStorage:
    :path: "../../packages/storage"
  Yoga:
    :path: "../node_modules/react-native/ReactCommon/yoga"

SPEC CHECKSUMS:
  abseil: ebe5b5529fb05d93a8bdb7951607be08b7fa71bc
  boost: a7c83b31436843459a1961bfd74b96033dc77234
  BoringSSL-GRPC: 3175b25143e648463a56daeaaa499c6cb86dad33
  DoubleConversion: 831926d9b8bf8166fd87886c4abab286c2422662
  FBLazyVector: 808f741ddb0896a20e5b98cc665f5b3413b072e2
  FBReactNativeSpec: 94473205b8741b61402e8c51716dea34aa3f5b2f
  Firebase: 444b35a9c568a516666213c2f6cccd10cb12559f
  FirebaseABTesting: 8404d743de561c73570c8dbb7810035ffec10053
  FirebaseAnalytics: 24cb27b52b2e11ad5013528195b4ca0755dec960
  FirebaseAppCheck: 60a3d1a4cb5a5bcdbfc9a83c92debd35fc7b3794
  FirebaseAppCheckInterop: 53eec3c354a95f8fe6ff947dd9518ea17f624914
  FirebaseAppDistribution: 64676923671a1682f274404127ae4ce53c6594bd
  FirebaseAuth: 19a85b8a42e7c1104a2ffa6987c748daa79a5e64
  FirebaseAuthInterop: 15b2c717321d5e46a60562e388c4d1b039ea7e28
  FirebaseCore: 55e7ae35991ccca4db03ff8d8df6ed5f17a3e4c7
  FirebaseCoreExtension: 69b966c399abc4ca6dc75006ab87160f81512725
  FirebaseCoreInternal: 96d75228e10fd369564da51bd898414eb0f54df5
  FirebaseCrashlytics: 93906d7085eb3e4dd90d08fe42a15d4f0406b6ab
  FirebaseDatabase: 2dad4f291390ace067f46f7988600d3b46764b4e
  FirebaseDynamicLinks: 0c8492a77625ee3c0c564bf98b4cdaa89d9e6535
  FirebaseFirestore: d482e5e0f95dba8ef5d499a7efa87ba2f56ef0c0
  FirebaseFunctions: be8b4bfb8876dd03eef5bfd49a59ff40af90ebe1
  FirebaseInAppMessaging: bd1d6a5d47c214b274b78f155705ff4eba3f18c3
  FirebaseInstallations: 99d24bac0243cf8b0e96cf5426340d211f0bcc80
  FirebaseMessaging: 4487bbff9b9b927ba1dd3ea40d1ceb58e4ee3cb5
  FirebaseMessagingInterop: 26c3bf82c7697d8fbfb13216541423bc2c93e8fc
  FirebasePerformance: f5e6d88d6f06100a3ccfac854318dd48e4e006e1
  FirebaseRemoteConfig: 20a413ed3ffeb84c12888bff19d02464f0faed69
  FirebaseSharedSwift: 6966c4de41fba13a4270de1e421e6eee2cf90113
  FirebaseStorage: 132c10c4d2f8ed8afbfa918eb35d19a87f383d59
  fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
  glog: 85ecdd10ee8d8ec362ef519a6a45ff9aa27b2e85
  GoogleAppMeasurement: e490e248af3da95afe8fa8e7baac232dc8d020b7
  GoogleAppMeasurementOnDeviceConversion: fc49beed10f4971cbe4d58beebb5a999a4fe177b
  GoogleDataTransport: 1c8145da7117bd68bbbed00cf304edb6a24de00f
  GoogleUtilities: 1d20a6ad97ef46f67bbdec158ce00563a671ebb7
  "gRPC-C++": 9675f953ace2b3de7c506039d77be1f2e77a8db2
  gRPC-Core: 943e491cb0d45598b0b0eb9e910c88080369290b
  GTMSessionFetcher: ffbb25ec00ebcb5201adab0a56d808f6f1902d9f
  Jet: 749a4d53291c852ea5a888371411654848079aef
  leveldb-library: 50c7b45cbd7bf543c81a468fe557a16ae3db8729
  Libuv-gRPC: 55e51798e14ef436ad9bc45d12d43b77b49df378
  nanopb: b552cce312b6c8484180ef47159bc0f65a1f0431
  PromisesObjC: ab77feca74fa2823e7af4249b8326368e61014cb
  RCT-Folly: 803a9cfd78114b2ec0f140cfa6fa2a6bafb2d685
  RCTRequired: 3c77b683474faf23920fbefc71c4e13af21470c0
  RCTTypeSafety: 720b1841260dac692444c2822b27403178da8b28
  React: 25970dd74abbdac449ca66dec4107652cacc606d
  React-callinvoker: 2d158700bc27b3d49c3c95721d288ed6c1a489ef
  React-Core: 306cfdc1393bcf9481cc5de9807608db7661817b
  React-CoreModules: 2576a88d630899f3fcdf2cb79fcc0454d7b2a8bb
  React-cxxreact: a492f0de07d875419dcb9f463c63c22fe51c433b
  React-jsi: bca092b0c38d5e3fd60bb491d4994ab4a8ac2ad3
  React-jsiexecutor: 15ea57ead631a11fad57634ff69f78e797113a39
  React-jsinspector: 1e1e03345cf6d47779e2061d679d0a87d9ae73d8
  React-logger: 1e10789cb84f99288479ba5f20822ce43ced6ffe
  React-perflogger: 93d3f142d6d9a46e635f09ba0518027215a41098
  React-RCTActionSheet: 87327c3722203cc79cf79d02fb83e7332aeedd18
  React-RCTAnimation: 009c87c018d50e0b38692699405ebe631ff4872d
  React-RCTBlob: 9e30308cc1b127af11c8f858514d2d8638ce36d7
  React-RCTImage: b9460cb8e3acc51410735a234a9dffbf4964f540
  React-RCTLinking: 73ecf0b87b515383a08ebbf07f558c48de1f0027
  React-RCTNetwork: 8f63119f2da99a94515ad0e0d0a13f9b3f6fe89d
  React-RCTSettings: b827282b1ac2bd98515c0c09f5cbc5062ebd83b0
  React-RCTText: 6d09140f514e1f60aff255e0acdf16e3b486ba4c
  React-RCTVibration: d0361f15ea978958fab7ffb6960f475b5063d83f
  React-runtimeexecutor: af1946623656f9c5fd64ca6f36f3863516193446
  ReactCommon: 650e33cde4fb7d36781cd3143f5276da0abb2f96
  RNFBAnalytics: 1dbd03940c32e4da616a0f135baa633ae8be976d
  RNFBApp: e2157f61e4769b53641df8948c534580630cb50a
  RNFBAppCheck: 727f9be6729606b211391eface962737af5745c5
  RNFBAppDistribution: 0b7f55adbfd5e238ae96d900abedfd3e2d765e11
  RNFBAuth: 7d2d8b68ef2dbeed0844532e9b65df09af627bf9
  RNFBCrashlytics: e0869743b4f57b0353605363a0a41fbff2500594
  RNFBDatabase: d2f84c61c5899f64039151eda934d3cd94e99c2b
  RNFBDynamicLinks: 5dbccab1f947e2a8a4d1c523f7b390501bedfc7b
  RNFBFirestore: 10e53da935827fee199db750dbc3c5129c50a620
  RNFBFunctions: a8b26554e652453a6c9d5cb8e399c9e4d6896030
  RNFBInAppMessaging: 2206b4dc0a38da9f8caf14556e27b4b49bc6b93b
  RNFBInstallations: af375a09ca33f051e06a36a77c058f6ebaa23521
  RNFBMessaging: 00da9a5a7136caa61a7b75d87e1dd83864251136
  RNFBML: e5e3faa3873f5abe724e237ccace8e4f93b72d2f
  RNFBPerf: 17ab696f1fd684979d69aafbae216b792a168b47
  RNFBRemoteConfig: ba95ab9f0034dae20b588ce625902a6fd3898319
  RNFBStorage: 8addb089a67f88833e34f8ef8dde13a0a64c0050
  Yoga: 90dcd029e45d8a7c1ff059e8b3c6612ff409061a

PODFILE CHECKSUM: cdac7095831bb39f8d76539f83a3580addb30d8b

COCOAPODS: 1.11.3
@google-oss-bot
Copy link

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

@mikehardy
Copy link
Contributor Author

The fastest way to reproduce this based on react-native-firebase context (that is: objective-c), in my humble opinion, may be to extend the objc integration test here to also do a secondary app putString and make sure events are observed?

https://github.com/firebase/firebase-ios-sdk/blob/master/FirebaseStorage/Tests/ObjCIntegration/FIRStorageIntegrationTests.m#L308

If that sounds like a reasonable strategy to check reproduction here and there was no one on firebase-ios-sdk side with the test rig set up for easy manipulation, I could give it a try

@paulb777
Copy link
Member

paulb777 commented Nov 7, 2022

Thanks for the report @mikehardy. I'll take a look today.

@paulb777 paulb777 self-assigned this Nov 7, 2022
@paulb777
Copy link
Member

paulb777 commented Nov 7, 2022

I'm seeing a deadlock in GTMSessionFetcher when operations are done on two apps:

cc: @thomasvl

(lldb) bt all
  thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00007ff834bdf97a libsystem_kernel.dylib`mach_msg_trap + 10
    frame #1: 0x00007ff834bdfce8 libsystem_kernel.dylib`mach_msg + 56
    frame #2: 0x00007ff8003868de CoreFoundation`__CFRunLoopServiceMachPort + 145
    frame #3: 0x00007ff80038102f CoreFoundation`__CFRunLoopRun + 1371
    frame #4: 0x00007ff8003806f7 CoreFoundation`CFRunLoopRunSpecific + 560
    frame #5: 0x000000010456f5b1 XCTestCore`-[XCTWaiter waitForExpectations:timeout:enforceOrder:] + 886
    frame #6: 0x000000010454032e XCTestCore`-[XCTestCase(AsynchronousTesting) waitForExpectationsWithTimeout:handler:] + 219
    frame #7: 0x0000000105900e74 FirebaseStorage-Unit-integration`StorageResultTests.waitForExpectations(self=0x00007fa23211ee30) at StorageIntegration.swift:658:5
    frame #8: 0x00000001058f9615 FirebaseStorage-Unit-integration`StorageResultTests.testSimpleGetDownloadURL(self=0x00007fa23211ee30) at StorageIntegration.swift:422:5
    frame #9: 0x00000001058f9e4c FirebaseStorage-Unit-integration`@objc StorageResultTests.testSimpleGetDownloadURL() at <compiler-generated>:0
<deleted frames>
    frame #71: 0x0000000103ffb4ba AppHost-FirebaseStorage-Unit-Tests`main(argc=1, argv=0x00007ff7bbf029a8) at main.m:28:16
    frame #72: 0x00000001042472bf dyld_sim`start_sim + 10
    frame #73: 0x0000000112a1f52e dyld`start + 462
  thread #2
    frame #0: 0x00007ff834c38f48 libsystem_pthread.dylib`start_wqthread
  thread #5, name = 'com.apple.uikit.eventfetch-thread'
    frame #0: 0x00007ff834bdf97a libsystem_kernel.dylib`mach_msg_trap + 10
    frame #1: 0x00007ff834bdfce8 libsystem_kernel.dylib`mach_msg + 56
    frame #2: 0x00007ff8003868de CoreFoundation`__CFRunLoopServiceMachPort + 145
    frame #3: 0x00007ff80038102f CoreFoundation`__CFRunLoopRun + 1371
    frame #4: 0x00007ff8003806f7 CoreFoundation`CFRunLoopRunSpecific + 560
    frame #5: 0x00007ff800c5595c Foundation`-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 213
    frame #6: 0x00007ff800c55bd5 Foundation`-[NSRunLoop(NSRunLoop) runUntilDate:] + 72
    frame #7: 0x000000010b62e886 UIKitCore`-[UIEventFetcher threadMain] + 535
    frame #8: 0x00007ff800c7f1c3 Foundation`__NSThread__start__ + 1009
    frame #9: 0x00007ff834c3d4e1 libsystem_pthread.dylib`_pthread_start + 125
    frame #10: 0x00007ff834c38f6b libsystem_pthread.dylib`thread_start + 15
  thread #8
    frame #0: 0x00007ff834c38f48 libsystem_pthread.dylib`start_wqthread
  thread #9, name = 'com.apple.NSURLConnectionLoader'
    frame #0: 0x00007ff834bdf97a libsystem_kernel.dylib`mach_msg_trap + 10
    frame #1: 0x00007ff834bdfce8 libsystem_kernel.dylib`mach_msg + 56
    frame #2: 0x00007ff8003868de CoreFoundation`__CFRunLoopServiceMachPort + 145
    frame #3: 0x00007ff80038102f CoreFoundation`__CFRunLoopRun + 1371
    frame #4: 0x00007ff8003806f7 CoreFoundation`CFRunLoopRunSpecific + 560
    frame #5: 0x00007ff8043fbc90 CFNetwork`___lldb_unnamed_symbol13415 + 437
    frame #6: 0x00007ff800c7f1c3 Foundation`__NSThread__start__ + 1009
    frame #7: 0x00007ff834c3d4e1 libsystem_pthread.dylib`_pthread_start + 125
    frame #8: 0x00007ff834c38f6b libsystem_pthread.dylib`thread_start + 15
* thread #10, queue = 'com.apple.root.background-qos'
    frame #0: 0x00007ff834be10ea libsystem_kernel.dylib`__ulock_wait + 10
    frame #1: 0x00007ff834c2f27e libsystem_platform.dylib`_os_unfair_lock_lock_slow + 155
    frame #2: 0x00007ff8000462a0 libobjc.A.dylib`objc_sync_enter + 27
  * frame #3: 0x0000000105e784e1 GTMSessionFetcher`-[GTMSessionFetcherService serialQueueForNewFetcher:](self=0x0000600002378690, _cmd="serialQueueForNewFetcher:", fetcher=0x00007fa232213ff0) at GTMSessionFetcherService.m:177:3
    frame #4: 0x0000000105e78708 GTMSessionFetcher`-[GTMSessionFetcherService fetcherWithRequest:fetcherClass:](self=0x0000600002378690, _cmd="fetcherWithRequest:fetcherClass:", request=0x0000600001e21a50, fetcherClass=GTMSessionFetcher) at GTMSessionFetcherService.m:203:27
    frame #5: 0x0000000105e78d65 GTMSessionFetcher`-[GTMSessionFetcherService fetcherWithRequest:](self=0x0000600002378690, _cmd="fetcherWithRequest:", request=0x0000600001e21a50) at GTMSessionFetcherService.m:238:10
    frame #6: 0x0000000105cfea2c FirebaseStorage`closure #1 in StorageGetDownloadURLTask.enqueue(weakSelf=0x000060000372dce0, self=0x000060000372dce0) at StorageGetDownloadURLTask.swift:57:47
    frame #7: 0x0000000105cf2728 FirebaseStorage`thunk for @escaping @callee_guaranteed () -> () at <compiler-generated>:0
    frame #8: 0x00007ff80013b7fb libdispatch.dylib`_dispatch_call_block_and_release + 12
    frame #9: 0x00007ff80013ca3a libdispatch.dylib`_dispatch_client_callout + 8
    frame #10: 0x00007ff800150020 libdispatch.dylib`_dispatch_root_queue_drain + 967
    frame #11: 0x00007ff800150928 libdispatch.dylib`_dispatch_worker_thread2 + 251
    frame #12: 0x00007ff834c39f8a libsystem_pthread.dylib`_pthread_wqthread + 256
    frame #13: 0x00007ff834c38f57 libsystem_pthread.dylib`start_wqthread + 15
  thread #12, queue = 'com.apple.root.background-qos'
    frame #0: 0x00007ff834be10ea libsystem_kernel.dylib`__ulock_wait + 10
    frame #1: 0x00007ff834c2f27e libsystem_platform.dylib`_os_unfair_lock_lock_slow + 155
    frame #2: 0x00007ff8000462a0 libobjc.A.dylib`objc_sync_enter + 27
    frame #3: 0x0000000105e80765 GTMSessionFetcher`-[GTMSessionFetcherSessionDelegateDispatcher startSessionUsage](self=0x000060000122a610, _cmd="startSessionUsage") at GTMSessionFetcherService.m:1107:3
    frame #4: 0x0000000105e7987a GTMSessionFetcher`-[GTMSessionFetcherService sessionForFetcherCreation](self=0x0000600002378690, _cmd="sessionForFetcherCreation") at GTMSessionFetcherService.m:316:5
    frame #5: 0x0000000105e52e4b GTMSessionFetcher`-[GTMSessionFetcher beginFetchMayDelay:mayAuthorize:mayDecorate:](self=0x00007fa232332860, _cmd="beginFetchMayDelay:mayAuthorize:mayDecorate:", mayDelay=YES, mayAuthorize=YES, mayDecorate=YES) at GTMSessionFetcher.m:653:20
    frame #6: 0x0000000105e50de4 GTMSessionFetcher`-[GTMSessionFetcher beginFetchWithCompletionHandler:](self=0x00007fa232332860, _cmd="beginFetchWithCompletionHandler:", handler=0x0000000105e88630) at GTMSessionFetcher.m:457:3
    frame #7: 0x0000000105e885f2 GTMSessionFetcher`-[GTMSessionUploadFetcher beginFetchWithCompletionHandler:](self=0x00007fa232332860, _cmd="beginFetchWithCompletionHandler:", handler=0x0000000105cf25f0) at GTMSessionUploadFetcher.m:936:3
    frame #8: 0x0000000105d301e0 FirebaseStorage`closure #1 in StorageUploadTask.enqueue(weakSelf=0x0000600002e25320, self=0x0000600002e25320) at StorageUploadTask.swift:137:33
    frame #9: 0x0000000105cf2728 FirebaseStorage`thunk for @escaping @callee_guaranteed () -> () at <compiler-generated>:0
    frame #10: 0x00007ff80013b7fb libdispatch.dylib`_dispatch_call_block_and_release + 12
    frame #11: 0x00007ff80013ca3a libdispatch.dylib`_dispatch_client_callout + 8
    frame #12: 0x00007ff800150020 libdispatch.dylib`_dispatch_root_queue_drain + 967
    frame #13: 0x00007ff800150928 libdispatch.dylib`_dispatch_worker_thread2 + 251
    frame #14: 0x00007ff834c39f8a libsystem_pthread.dylib`_pthread_wqthread + 256
    frame #15: 0x00007ff834c38f57 libsystem_pthread.dylib`start_wqthread + 15
  thread #13, queue = 'com.apple.root.background-qos'
    frame #0: 0x00007ff834be10ea libsystem_kernel.dylib`__ulock_wait + 10
    frame #1: 0x00007ff834c2f27e libsystem_platform.dylib`_os_unfair_lock_lock_slow + 155
    frame #2: 0x00007ff8000462a0 libobjc.A.dylib`objc_sync_enter + 27
    frame #3: 0x0000000105e796f8 GTMSessionFetcher`-[GTMSessionFetcherService sessionForFetcherCreation](self=0x0000600002378690, _cmd="sessionForFetcherCreation") at GTMSessionFetcherService.m:297:3
    frame #4: 0x0000000105e52e4b GTMSessionFetcher`-[GTMSessionFetcher beginFetchMayDelay:mayAuthorize:mayDecorate:](self=0x00007fa206104490, _cmd="beginFetchMayDelay:mayAuthorize:mayDecorate:", mayDelay=YES, mayAuthorize=YES, mayDecorate=YES) at GTMSessionFetcher.m:653:20
    frame #5: 0x0000000105e50de4 GTMSessionFetcher`-[GTMSessionFetcher beginFetchWithCompletionHandler:](self=0x00007fa206104490, _cmd="beginFetchWithCompletionHandler:", handler=0x0000000105e88630) at GTMSessionFetcher.m:457:3
    frame #6: 0x0000000105e885f2 GTMSessionFetcher`-[GTMSessionUploadFetcher beginFetchWithCompletionHandler:](self=0x00007fa206104490, _cmd="beginFetchWithCompletionHandler:", handler=0x0000000105cf25f0) at GTMSessionUploadFetcher.m:936:3
    frame #7: 0x0000000105d301e0 FirebaseStorage`closure #1 in StorageUploadTask.enqueue(weakSelf=0x0000600002e254d0, self=0x0000600002e254d0) at StorageUploadTask.swift:137:33
    frame #8: 0x0000000105cf2728 FirebaseStorage`thunk for @escaping @callee_guaranteed () -> () at <compiler-generated>:0
    frame #9: 0x00007ff80013b7fb libdispatch.dylib`_dispatch_call_block_and_release + 12
    frame #10: 0x00007ff80013ca3a libdispatch.dylib`_dispatch_client_callout + 8
    frame #11: 0x00007ff800150020 libdispatch.dylib`_dispatch_root_queue_drain + 967
    frame #12: 0x00007ff800150928 libdispatch.dylib`_dispatch_worker_thread2 + 251
    frame #13: 0x00007ff834c39f8a libsystem_pthread.dylib`_pthread_wqthread + 256
    frame #14: 0x00007ff834c38f57 libsystem_pthread.dylib`start_wqthread + 15
  thread #14, queue = 'com.apple.root.background-qos'
    frame #0: 0x00007ff834be10ea libsystem_kernel.dylib`__ulock_wait + 10
    frame #1: 0x00007ff834c2f27e libsystem_platform.dylib`_os_unfair_lock_lock_slow + 155
    frame #2: 0x00007ff8000462a0 libobjc.A.dylib`objc_sync_enter + 27
    frame #3: 0x0000000105e796f8 GTMSessionFetcher`-[GTMSessionFetcherService sessionForFetcherCreation](self=0x0000600002378690, _cmd="sessionForFetcherCreation") at GTMSessionFetcherService.m:297:3
    frame #4: 0x0000000105e52e4b GTMSessionFetcher`-[GTMSessionFetcher beginFetchMayDelay:mayAuthorize:mayDecorate:](self=0x00007fa203704450, _cmd="beginFetchMayDelay:mayAuthorize:mayDecorate:", mayDelay=YES, mayAuthorize=YES, mayDecorate=YES) at GTMSessionFetcher.m:653:20
    frame #5: 0x0000000105e50de4 GTMSessionFetcher`-[GTMSessionFetcher beginFetchWithCompletionHandler:](self=0x00007fa203704450, _cmd="beginFetchWithCompletionHandler:", handler=0x0000000105e88630) at GTMSessionFetcher.m:457:3
    frame #6: 0x0000000105e885f2 GTMSessionFetcher`-[GTMSessionUploadFetcher beginFetchWithCompletionHandler:](self=0x00007fa203704450, _cmd="beginFetchWithCompletionHandler:", handler=0x0000000105cf25f0) at GTMSessionUploadFetcher.m:936:3
    frame #7: 0x0000000105d301e0 FirebaseStorage`closure #1 in StorageUploadTask.enqueue(weakSelf=0x0000600002e25680, self=0x0000600002e25680) at StorageUploadTask.swift:137:33
    frame #8: 0x0000000105cf2728 FirebaseStorage`thunk for @escaping @callee_guaranteed () -> () at <compiler-generated>:0
    frame #9: 0x00007ff80013b7fb libdispatch.dylib`_dispatch_call_block_and_release + 12
    frame #10: 0x00007ff80013ca3a libdispatch.dylib`_dispatch_client_callout + 8
    frame #11: 0x00007ff800150020 libdispatch.dylib`_dispatch_root_queue_drain + 967
    frame #12: 0x00007ff800150928 libdispatch.dylib`_dispatch_worker_thread2 + 251
    frame #13: 0x00007ff834c39f8a libsystem_pthread.dylib`_pthread_wqthread + 256
    frame #14: 0x00007ff834c38f57 libsystem_pthread.dylib`start_wqthread + 15
  thread #15, queue = 'com.apple.root.background-qos'
    frame #0: 0x00007ff834be10ea libsystem_kernel.dylib`__ulock_wait + 10
    frame #1: 0x00007ff834c2f27e libsystem_platform.dylib`_os_unfair_lock_lock_slow + 155
    frame #2: 0x00007ff8000462a0 libobjc.A.dylib`objc_sync_enter + 27
    frame #3: 0x0000000105e796f8 GTMSessionFetcher`-[GTMSessionFetcherService sessionForFetcherCreation](self=0x0000600002378690, _cmd="sessionForFetcherCreation") at GTMSessionFetcherService.m:297:3
    frame #4: 0x0000000105e52e4b GTMSessionFetcher`-[GTMSessionFetcher beginFetchMayDelay:mayAuthorize:mayDecorate:](self=0x00007fa232138470, _cmd="beginFetchMayDelay:mayAuthorize:mayDecorate:", mayDelay=YES, mayAuthorize=YES, mayDecorate=YES) at GTMSessionFetcher.m:653:20
    frame #5: 0x0000000105e50de4 GTMSessionFetcher`-[GTMSessionFetcher beginFetchWithCompletionHandler:](self=0x00007fa232138470, _cmd="beginFetchWithCompletionHandler:", handler=0x0000000105e88630) at GTMSessionFetcher.m:457:3
    frame #6: 0x0000000105e885f2 GTMSessionFetcher`-[GTMSessionUploadFetcher beginFetchWithCompletionHandler:](self=0x00007fa232138470, _cmd="beginFetchWithCompletionHandler:", handler=0x0000000105cf25f0) at GTMSessionUploadFetcher.m:936:3
    frame #7: 0x0000000105d301e0 FirebaseStorage`closure #1 in StorageUploadTask.enqueue(weakSelf=0x0000600002e34ab0, self=0x0000600002e34ab0) at StorageUploadTask.swift:137:33
    frame #8: 0x0000000105cf2728 FirebaseStorage`thunk for @escaping @callee_guaranteed () -> () at <compiler-generated>:0
    frame #9: 0x00007ff80013b7fb libdispatch.dylib`_dispatch_call_block_and_release + 12
    frame #10: 0x00007ff80013ca3a libdispatch.dylib`_dispatch_client_callout + 8
    frame #11: 0x00007ff800150020 libdispatch.dylib`_dispatch_root_queue_drain + 967
    frame #12: 0x00007ff800150928 libdispatch.dylib`_dispatch_worker_thread2 + 251
    frame #13: 0x00007ff834c39f8a libsystem_pthread.dylib`_pthread_wqthread + 256
    frame #14: 0x00007ff834c38f57 libsystem_pthread.dylib`start_wqthread + 15
  thread #16, queue = 'com.apple.root.background-qos'
    frame #0: 0x00007ff834be10ea libsystem_kernel.dylib`__ulock_wait + 10
    frame #1: 0x00007ff834c2f27e libsystem_platform.dylib`_os_unfair_lock_lock_slow + 155
    frame #2: 0x00007ff8000462a0 libobjc.A.dylib`objc_sync_enter + 27
    frame #3: 0x0000000105e7e925 GTMSessionFetcher`-[GTMSessionFetcherService sessionDelegateQueue](self=0x0000600002378690, _cmd="sessionDelegateQueue") at GTMSessionFetcherService.m:911:3
    frame #4: 0x0000000105e78749 GTMSessionFetcher`-[GTMSessionFetcherService fetcherWithRequest:fetcherClass:](self=0x0000600002378690, _cmd="fetcherWithRequest:fetcherClass:", request=0x0000600001e2cc50, fetcherClass=GTMSessionUploadFetcher) at GTMSessionFetcherService.m:204:39
    frame #5: 0x0000000105e834a7 GTMSessionFetcher`+[GTMSessionUploadFetcher uploadFetcherWithRequest:fetcherService:](self=GTMSessionUploadFetcher, _cmd="uploadFetcherWithRequest:fetcherService:", request=0x0000600001e2cc50, fetcherService=0x0000600002378690) at GTMSessionUploadFetcher.m:294:15
    frame #6: 0x0000000105e82973 GTMSessionFetcher`+[GTMSessionUploadFetcher uploadFetcherWithRequest:uploadMIMEType:chunkSize:fetcherService:](self=GTMSessionUploadFetcher, _cmd="uploadFetcherWithRequest:uploadMIMEType:chunkSize:fetcherService:", request=0x0000600001e2cc50, uploadMIMEType="application/octet-stream", chunkSize=9223372036854775807, fetcherService=0x0000600002378690) at GTMSessionUploadFetcher.m:191:38
    frame #7: 0x0000000105d304c7 FirebaseStorage`@nonobjc GTMSessionUploadFetcher.__allocating_init(request:uploadMIMEType:chunkSize:fetcherService:) at <compiler-generated>:0
    frame #8: 0x0000000105d2fb34 FirebaseStorage`closure #1 in StorageUploadTask.enqueue(weakSelf=0x0000600002e34d80, self=0x0000600002e34d80) at StorageUploadTask.swift:77:27
    frame #9: 0x0000000105cf2728 FirebaseStorage`thunk for @escaping @callee_guaranteed () -> () at <compiler-generated>:0
    frame #10: 0x00007ff80013b7fb libdispatch.dylib`_dispatch_call_block_and_release + 12
    frame #11: 0x00007ff80013ca3a libdispatch.dylib`_dispatch_client_callout + 8
    frame #12: 0x00007ff800150020 libdispatch.dylib`_dispatch_root_queue_drain + 967
    frame #13: 0x00007ff800150928 libdispatch.dylib`_dispatch_worker_thread2 + 251
    frame #14: 0x00007ff834c39f8a libsystem_pthread.dylib`_pthread_wqthread + 256
    frame #15: 0x00007ff834c38f57 libsystem_pthread.dylib`start_wqthread + 15
  thread #17, queue = 'com.apple.root.background-qos'
    frame #0: 0x00007ff834be10ea libsystem_kernel.dylib`__ulock_wait + 10
    frame #1: 0x00007ff834c2f27e libsystem_platform.dylib`_os_unfair_lock_lock_slow + 155
    frame #2: 0x00007ff8000462a0 libobjc.A.dylib`objc_sync_enter + 27
    frame #3: 0x0000000105e784e1 GTMSessionFetcher`-[GTMSessionFetcherService serialQueueForNewFetcher:](self=0x0000600002378690, _cmd="serialQueueForNewFetcher:", fetcher=0x00007fa23232aea0) at GTMSessionFetcherService.m:177:3
    frame #4: 0x0000000105e78708 GTMSessionFetcher`-[GTMSessionFetcherService fetcherWithRequest:fetcherClass:](self=0x0000600002378690, _cmd="fetcherWithRequest:fetcherClass:", request=0x0000600001e245d0, fetcherClass=GTMSessionUploadFetcher) at GTMSessionFetcherService.m:203:27
    frame #5: 0x0000000105e834a7 GTMSessionFetcher`+[GTMSessionUploadFetcher uploadFetcherWithRequest:fetcherService:](self=GTMSessionUploadFetcher, _cmd="uploadFetcherWithRequest:fetcherService:", request=0x0000600001e245d0, fetcherService=0x0000600002378690) at GTMSessionUploadFetcher.m:294:15
    frame #6: 0x0000000105e82973 GTMSessionFetcher`+[GTMSessionUploadFetcher uploadFetcherWithRequest:uploadMIMEType:chunkSize:fetcherService:](self=GTMSessionUploadFetcher, _cmd="uploadFetcherWithRequest:uploadMIMEType:chunkSize:fetcherService:", request=0x0000600001e245d0, uploadMIMEType="application/octet-stream", chunkSize=9223372036854775807, fetcherService=0x0000600002378690) at GTMSessionUploadFetcher.m:191:38
    frame #7: 0x0000000105d304c7 FirebaseStorage`@nonobjc GTMSessionUploadFetcher.__allocating_init(request:uploadMIMEType:chunkSize:fetcherService:) at <compiler-generated>:0
    frame #8: 0x0000000105d2fb34 FirebaseStorage`closure #1 in StorageUploadTask.enqueue(weakSelf=0x0000600002e34f30, self=0x0000600002e34f30) at StorageUploadTask.swift:77:27
    frame #9: 0x0000000105cf2728 FirebaseStorage`thunk for @escaping @callee_guaranteed () -> () at <compiler-generated>:0
    frame #10: 0x00007ff80013b7fb libdispatch.dylib`_dispatch_call_block_and_release + 12
    frame #11: 0x00007ff80013ca3a libdispatch.dylib`_dispatch_client_callout + 8
    frame #12: 0x00007ff800150020 libdispatch.dylib`_dispatch_root_queue_drain + 967
    frame #13: 0x00007ff800150928 libdispatch.dylib`_dispatch_worker_thread2 + 251
    frame #14: 0x00007ff834c39f8a libsystem_pthread.dylib`_pthread_wqthread + 256
    frame #15: 0x00007ff834c38f57 libsystem_pthread.dylib`start_wqthread + 15
(lldb) 
```
@thomasvl
Copy link
Contributor

thomasvl commented Nov 7, 2022

Can you be a bit more specific than when operations are done on two apps?

The trace also seems to only be one process. What's the other process doing?

What version of GTMSessionFetcher are you talking about here?

@mikehardy
Copy link
Contributor Author

mikehardy commented Nov 7, 2022

Glad this repro'd on your side at least, I was going to be stumped if this was at the react-native-firebase level and I hate to waste time asking for failed repro's.

@thomasvl from Podfile.lock --> - GTMSessionFetcher/Core (2.1.0)

It can be only one process, in our case it is two different "firebase apps" - the storage module allows secondary apps, which may be configured and used indepdently of the main app (e.g. [DEFAULT]) that is typically initialized from GoogleServices plist

So in one process you may access storage on the [DEFAULT] app, then init a second one (with different project name, API keys etc) and try to use it, and apparently this thread trace is the result

@thomasvl
Copy link
Contributor

thomasvl commented Nov 7, 2022

Ok, one app greatly changes things, that's likely a priority inversion issue then. v2.2.0 removes the use of a pthread mutex to avoid the issue (google/gtm-session-fetcher#324), so if you've got a repo, please try with v2.2.0 and see if it now goes away.

@mikehardy
Copy link
Contributor Author

mikehardy commented Nov 7, 2022

Okay, I attempted to force pod GTMSession/Core to version 2.2 via a specific Podfile entry for it (overriding the otherwise-transitive dep from the Firebase pods) and I confirm in my Podfile.lock that I am now using 2.2.

It seemed to hang again, it behaved exactly the same, in my perception

I attempted to reproduce (note: my reproduction is likely different than @paulb777 reproduction...) and do the same bt all on the process after it hung and I attached Xcode to it + "paused execution".

Resulting thread stack dump is below - hopefully that's useful, I'm only marginally qualified to drive Xcode+lldb etc based on C/C++ from uni about 300 years ago. Apologies if it's not useful

(lldb) bt all
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x00007ff834bdf97a libsystem_kernel.dylib`mach_msg_trap + 10
    frame #1: 0x00007ff834bdfce8 libsystem_kernel.dylib`mach_msg + 56
    frame #2: 0x00007ff8003868de CoreFoundation`__CFRunLoopServiceMachPort + 145
    frame #3: 0x00007ff80038102f CoreFoundation`__CFRunLoopRun + 1371
    frame #4: 0x00007ff8003806f7 CoreFoundation`CFRunLoopRunSpecific + 560
    frame #5: 0x00007ff809c5c28a GraphicsServices`GSEventRunModal + 139
    frame #6: 0x0000000120a3462b UIKitCore`-[UIApplication _run] + 994
    frame #7: 0x000000012567da2e DetoxSync`__detox_sync_UIApplication_run + 362
    frame #8: 0x0000000120a39547 UIKitCore`UIApplicationMain + 123
    frame #9: 0x000000010c2ed488 testing`main(argc=8, argv=0x00007ff7b3c152f0) at main.m:16:12
    frame #10: 0x000000010ce532bf dyld_sim`start_sim + 10
    frame #11: 0x0000000113d8952e dyld`start + 462
  thread #2, queue = 'com.apple.root.background-qos'
    frame #0: 0x00007ff834be10ea libsystem_kernel.dylib`__ulock_wait + 10
    frame #1: 0x00007ff834c2f27e libsystem_platform.dylib`_os_unfair_lock_lock_slow + 155
    frame #2: 0x00007ff8000462a0 libobjc.A.dylib`objc_sync_enter + 27
    frame #3: 0x000000010deb7933 GTMSessionFetcher`-[GTMSessionFetcherSessionDelegateDispatcher startSessionUsage](self=0x00006000021bbd50, _cmd="startSessionUsage") at GTMSessionFetcherService.m:1076:3
    frame #4: 0x000000010deb1680 GTMSessionFetcher`-[GTMSessionFetcherService sessionWithCreationBlock:](self=0x00006000011fcff0, _cmd="sessionWithCreationBlock:", creationBlock=0x000000010de91030) at GTMSessionFetcherService.m:306:7
    frame #5: 0x000000010de8f841 GTMSessionFetcher`-[GTMSessionFetcher beginFetchMayDelay:mayAuthorize:mayDecorate:](self=0x00007f98ca5446e0, _cmd="beginFetchMayDelay:mayAuthorize:mayDecorate:", mayDelay=YES, mayAuthorize=YES, mayDecorate=YES) at GTMSessionFetcher.m:656:22
    frame #6: 0x000000010de8ddb0 GTMSessionFetcher`-[GTMSessionFetcher beginFetchWithCompletionHandler:](self=0x00007f98ca5446e0, _cmd="beginFetchWithCompletionHandler:", handler=0x000000010debeb40) at GTMSessionFetcher.m:459:3
    frame #7: 0x000000010debeb08 GTMSessionFetcher`-[GTMSessionUploadFetcher beginFetchWithCompletionHandler:](self=0x00007f98ca5446e0, _cmd="beginFetchWithCompletionHandler:", handler=0x000000010dfa21d0) at GTMSessionUploadFetcher.m:935:3
    frame #8: 0x000000010dfdd91e FirebaseStorage`closure #1 in StorageUploadTask.enqueue(weakSelf=0x0000600001ce20a0, self=0x0000600001ce20a0) at StorageUploadTask.swift:137:33
    frame #9: 0x000000010dfa2308 FirebaseStorage`thunk for @escaping @callee_guaranteed () -> () at <compiler-generated>:0
    frame #10: 0x0000000125677aa7 DetoxSync`____detox_sync_dispatch_wrapper_block_invoke + 23
    frame #11: 0x00007ff80013b7fb libdispatch.dylib`_dispatch_call_block_and_release + 12
    frame #12: 0x00007ff80013ca3a libdispatch.dylib`_dispatch_client_callout + 8
    frame #13: 0x00007ff800150020 libdispatch.dylib`_dispatch_root_queue_drain + 967
    frame #14: 0x00007ff800150928 libdispatch.dylib`_dispatch_worker_thread2 + 251
    frame #15: 0x00007ff834c39f8a libsystem_pthread.dylib`_pthread_wqthread + 256
    frame #16: 0x00007ff834c38f57 libsystem_pthread.dylib`start_wqthread + 15
  thread #3, name = 'com.apple.uikit.eventfetch-thread'
    frame #0: 0x00007ff834bdf97a libsystem_kernel.dylib`mach_msg_trap + 10
    frame #1: 0x00007ff834bdfce8 libsystem_kernel.dylib`mach_msg + 56
    frame #2: 0x00007ff8003868de CoreFoundation`__CFRunLoopServiceMachPort + 145
    frame #3: 0x00007ff80038102f CoreFoundation`__CFRunLoopRun + 1371
    frame #4: 0x00007ff8003806f7 CoreFoundation`CFRunLoopRunSpecific + 560
    frame #5: 0x00007ff800c5595c Foundation`-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 213
    frame #6: 0x00007ff800c55bd5 Foundation`-[NSRunLoop(NSRunLoop) runUntilDate:] + 72
    frame #7: 0x0000000120b08886 UIKitCore`-[UIEventFetcher threadMain] + 535
    frame #8: 0x00007ff800c7f1c3 Foundation`__NSThread__start__ + 1009
    frame #9: 0x00007ff834c3d4e1 libsystem_pthread.dylib`_pthread_start + 125
    frame #10: 0x00007ff834c38f6b libsystem_pthread.dylib`thread_start + 15
  thread #4, name = 'com.google.firebase.crashlytics.MachExceptionServer'
    frame #0: 0x00007ff834bdf97a libsystem_kernel.dylib`mach_msg_trap + 10
    frame #1: 0x00007ff834bdfce8 libsystem_kernel.dylib`mach_msg + 56
    frame #2: 0x000000010d7bccae FirebaseCrashlytics`FIRCLSMachExceptionReadMessage(context=0x000000012682b130, message=0x00000001267def40) at FIRCLSMachException.c:192:7
    frame #3: 0x000000010d7bcbf0 FirebaseCrashlytics`FIRCLSMachExceptionServer(argument=0x000000012682b130) at FIRCLSMachException.c:168:10
    frame #4: 0x00007ff834c3d4e1 libsystem_pthread.dylib`_pthread_start + 125
    frame #5: 0x00007ff834c38f6b libsystem_pthread.dylib`thread_start + 15
  thread #5, name = 'com.apple.CFStream.LegacyThread'
    frame #0: 0x00007ff834bdf97a libsystem_kernel.dylib`mach_msg_trap + 10
    frame #1: 0x00007ff834bdfce8 libsystem_kernel.dylib`mach_msg + 56
    frame #2: 0x00007ff8003868de CoreFoundation`__CFRunLoopServiceMachPort + 145
    frame #3: 0x00007ff80038102f CoreFoundation`__CFRunLoopRun + 1371
    frame #4: 0x00007ff8003806f7 CoreFoundation`CFRunLoopRunSpecific + 560
    frame #5: 0x00007ff8003aa8f0 CoreFoundation`_legacyStreamRunLoop_workThread + 249
    frame #6: 0x00007ff834c3d4e1 libsystem_pthread.dylib`_pthread_start + 125
    frame #7: 0x00007ff834c38f6b libsystem_pthread.dylib`thread_start + 15
  thread #6, name = 'com.squareup.SocketRocket.NetworkThread'
    frame #0: 0x00007ff834bdf97a libsystem_kernel.dylib`mach_msg_trap + 10
    frame #1: 0x00007ff834bdfce8 libsystem_kernel.dylib`mach_msg + 56
    frame #2: 0x00007ff8003868de CoreFoundation`__CFRunLoopServiceMachPort + 145
    frame #3: 0x00007ff80038102f CoreFoundation`__CFRunLoopRun + 1371
    frame #4: 0x00007ff8003806f7 CoreFoundation`CFRunLoopRunSpecific + 560
    frame #5: 0x00007ff800c5595c Foundation`-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 213
    frame #6: 0x0000000112b12db2 React`-[_RCTSRRunLoopThread main](self=0x0000600000db1ea0, _cmd="main") at RCTSRWebSocket.m:1620:12
    frame #7: 0x00007ff800c7f1c3 Foundation`__NSThread__start__ + 1009
    frame #8: 0x00007ff834c3d4e1 libsystem_pthread.dylib`_pthread_start + 125
    frame #9: 0x00007ff834c38f6b libsystem_pthread.dylib`thread_start + 15
  thread #7, name = 'com.apple.NSURLConnectionLoader'
    frame #0: 0x00007ff834bdf97a libsystem_kernel.dylib`mach_msg_trap + 10
    frame #1: 0x00007ff834bdfce8 libsystem_kernel.dylib`mach_msg + 56
    frame #2: 0x00007ff8003868de CoreFoundation`__CFRunLoopServiceMachPort + 145
    frame #3: 0x00007ff80038102f CoreFoundation`__CFRunLoopRun + 1371
    frame #4: 0x00007ff8003806f7 CoreFoundation`CFRunLoopRunSpecific + 560
    frame #5: 0x00007ff8043fbc90 CFNetwork`___lldb_unnamed_symbol13415 + 437
    frame #6: 0x00007ff800c7f1c3 Foundation`__NSThread__start__ + 1009
    frame #7: 0x00007ff834c3d4e1 libsystem_pthread.dylib`_pthread_start + 125
    frame #8: 0x00007ff834c38f6b libsystem_pthread.dylib`thread_start + 15
  thread #8, name = 'com.apple.CFSocket.private'
    frame #0: 0x00007ff834be7d5a libsystem_kernel.dylib`__select + 10
    frame #1: 0x00007ff80039bd06 CoreFoundation`__CFSocketManager + 647
    frame #2: 0x00007ff834c3d4e1 libsystem_pthread.dylib`_pthread_start + 125
    frame #3: 0x00007ff834c38f6b libsystem_pthread.dylib`thread_start + 15
  thread #9, name = 'com.facebook.react.JavaScript'
    frame #0: 0x00007ff834bdf97a libsystem_kernel.dylib`mach_msg_trap + 10
    frame #1: 0x00007ff834bdfce8 libsystem_kernel.dylib`mach_msg + 56
    frame #2: 0x00007ff8003868de CoreFoundation`__CFRunLoopServiceMachPort + 145
    frame #3: 0x00007ff80038102f CoreFoundation`__CFRunLoopRun + 1371
    frame #4: 0x00007ff8003806f7 CoreFoundation`CFRunLoopRunSpecific + 560
    frame #5: 0x0000000112a51665 React`+[RCTCxxBridge runRunLoop](self=RCTCxxBridge, _cmd="runRunLoop") at RCTCxxBridge.mm:384:12
    frame #6: 0x000000012567e73c DetoxSync`swz_runRunLoopThread + 291
    frame #7: 0x00007ff800c7f1c3 Foundation`__NSThread__start__ + 1009
    frame #8: 0x00007ff834c3d4e1 libsystem_pthread.dylib`_pthread_start + 125
    frame #9: 0x00007ff834c38f6b libsystem_pthread.dylib`thread_start + 15
  thread #10, name = 'com.squareup.SocketRocket.NetworkThread'
    frame #0: 0x00007ff834bdf97a libsystem_kernel.dylib`mach_msg_trap + 10
    frame #1: 0x00007ff834bdfce8 libsystem_kernel.dylib`mach_msg + 56
    frame #2: 0x00007ff8003868de CoreFoundation`__CFRunLoopServiceMachPort + 145
    frame #3: 0x00007ff80038102f CoreFoundation`__CFRunLoopRun + 1371
    frame #4: 0x00007ff8003806f7 CoreFoundation`CFRunLoopRunSpecific + 560
    frame #5: 0x00007ff800c5595c Foundation`-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 213
    frame #6: 0x000000010da9236b FirebaseDatabase`-[_FSRRunLoopThread main](self=0x0000600000d96a80, _cmd="main") at FSRWebSocket.m:1870:16
    frame #7: 0x00007ff800c7f1c3 Foundation`__NSThread__start__ + 1009
    frame #8: 0x00007ff834c3d4e1 libsystem_pthread.dylib`_pthread_start + 125
    frame #9: 0x00007ff834c38f6b libsystem_pthread.dylib`thread_start + 15
  thread #13
    frame #0: 0x00007ff834c38f48 libsystem_pthread.dylib`start_wqthread
  thread #15
    frame #0: 0x00007ff834c38f48 libsystem_pthread.dylib`start_wqthread
    frame #1: 0x00007ff863b53b80 CoreFoundation`__NSCFConstantString + 40
(lldb) 
@thomasvl
Copy link
Contributor

thomasvl commented Nov 7, 2022

To help narrow this down, did this happen with older versions also? (v2.0.0?) I'll have to go back through changes, but aside from the PR I linked that changed things in 2.2, I don't recall anything that should have changes these sorta things recently.

@paulb777
Copy link
Member

paulb777 commented Nov 7, 2022

By two apps, I mean two Firebase Apps which means two GTMSessionFetcherService instances instead of one. I'll continue to narrow my repro.

The problem could be related to the Firebase implementation going from ObjC to Swift and how it's using GTMSessionFetcher. I'll see if changing only GTMSessionFetcher makes a difference.

@thomasvl
Copy link
Contributor

thomasvl commented Nov 7, 2022

By two apps, I mean two Firebase Apps which means two GTMSessionFetcherService instances instead of one. I'll continue to narrow my repro.

So one process, but two GTMSessionFetcherService instances within it?

Looking at @mikehardy recent trace, there appears to only be one thread with GTMSessionFetcher symbols, which does sorta point in the direction of maybe something else is also doing an @sync on the GTMSessionFetcher (or related) type and thus causing the issue?

@thomasvl
Copy link
Contributor

thomasvl commented Nov 7, 2022

@mikehardy if you can go back to v2.1.0 of GTMSessionFetcher and also try reverting whatever Firebase versions you recently changed, that might also help narrow down the combination of what might be causing things.

@mikehardy
Copy link
Contributor Author

mikehardy commented Nov 7, 2022

I can do that but want to hear what @paulb777 thinks is best strategy for repro first, simply because my repro is one layer up and is thus far from minimal, I wonder about some confounding effects with more parts in play, and I think the integration test here (which Paul can probably drive while asleep, altering versions at will) is going to be a lot more focused.

So I will wait for a moment to hear Paul's thoughts, but I'll do whatever seems useful if I can help advance it. I appreciate the attention on the issue

@paulb777
Copy link
Member

paulb777 commented Nov 7, 2022

I have a smaller repro case now from the Firebase Storage Swift Integration tests:

After setting up storage and storage2 referring to two different Firebase apps and GTMSessionFetcherService instances, the second putData never returns after calling beginFetch.

It's possible the issue is related to the Authentication protocol introduced in 2.1 that we're using for the Swift authentication. That causes additional calls to -[GTMSessionFetcherSessionDelegateDispatcher startSessionUsage] or at least in a different order.

    let bundle = Bundle(for: StorageIntegrationCommon.self)
    let filePath = try XCTUnwrap(bundle.path(forResource: "1mb", ofType: "dat"),
                                 "Failed to get filePath")
    let data = try XCTUnwrap(try Data(contentsOf: URL(fileURLWithPath: filePath)),
                             "Failed to load file")

    let ref = storage.reference().child("ios/public/1mb")

    ref.putData(data) { result in
      self.assertResultSuccess(result)
      setupExpectation.fulfill()
    }

    let ref2 = storage2.reference().child("ios/public/1mb")

    ref2.putData(data) { result in
      self.assertResultSuccess(result)
      setupExpectation.fulfill()
    }
(lldb) bt
* thread #7, queue = 'com.apple.root.background-qos'
  * frame #0: 0x00007ff834be10ea libsystem_kernel.dylib`__ulock_wait + 10
    frame #1: 0x00007ff834c2f27e libsystem_platform.dylib`_os_unfair_lock_lock_slow + 155
    frame #2: 0x00007ff8000462a0 libobjc.A.dylib`objc_sync_enter + 27
    frame #3: 0x00000001090f1715 GTMSessionFetcher`-[GTMSessionFetcherSessionDelegateDispatcher startSessionUsage](self=0x0000600003a45a40, _cmd="startSessionUsage") at GTMSessionFetcherService.m:1107:3
    frame #4: 0x00000001090ea82a GTMSessionFetcher`-[GTMSessionFetcherService sessionForFetcherCreation](self=0x0000600000bc4780, _cmd="sessionForFetcherCreation") at GTMSessionFetcherService.m:316:5
    frame #5: 0x00000001090c3dfb GTMSessionFetcher`-[GTMSessionFetcher beginFetchMayDelay:mayAuthorize:mayDecorate:](self=0x00007feddc208690, _cmd="beginFetchMayDelay:mayAuthorize:mayDecorate:", mayDelay=YES, mayAuthorize=YES, mayDecorate=YES) at GTMSessionFetcher.m:653:20
    frame #6: 0x00000001090c1d94 GTMSessionFetcher`-[GTMSessionFetcher beginFetchWithCompletionHandler:](self=0x00007feddc208690, _cmd="beginFetchWithCompletionHandler:", handler=0x00000001090f9620) at GTMSessionFetcher.m:457:3
    frame #7: 0x00000001090f95e2 GTMSessionFetcher`-[GTMSessionUploadFetcher beginFetchWithCompletionHandler:](self=0x00007feddc208690, _cmd="beginFetchWithCompletionHandler:", handler=0x0000000108f62e50) at GTMSessionUploadFetcher.m:939:3
    frame #8: 0x0000000108fa10a9 FirebaseStorage`closure #1 in StorageUploadTask.enqueue(weakSelf=0x00006000006d0a20, self=0x00006000006d0a20) at StorageUploadTask.swift:140:33
    frame #9: 0x0000000108f62f88 FirebaseStorage`thunk for @escaping @callee_guaranteed () -> () at <compiler-generated>:0
    frame #10: 0x00007ff80013b7fb libdispatch.dylib`_dispatch_call_block_and_release + 12
    frame #11: 0x00007ff80013ca3a libdispatch.dylib`_dispatch_client_callout + 8
    frame #12: 0x00007ff800150020 libdispatch.dylib`_dispatch_root_queue_drain + 967
    frame #13: 0x00007ff800150928 libdispatch.dylib`_dispatch_worker_thread2 + 251
    frame #14: 0x00007ff834c39f8a libsystem_pthread.dylib`_pthread_wqthread + 256
    frame #15: 0x00007ff834c38f57 libsystem_pthread.dylib`start_wqthread + 15
@paulb777
Copy link
Member

paulb777 commented Nov 8, 2022

Discovered that commenting out the following fixes the deadlock:

Screen Shot 2022-11-07 at 5 28 09 PM

I'm not sure why it behaves differently than the old Objective C version:

Screen Shot 2022-11-07 at 5 30 13 PM

More tomorrow ...

@paulb777 paulb777 added this to the 10.2.0 - M124 milestone Nov 8, 2022
@thomasvl
Copy link
Contributor

thomasvl commented Nov 8, 2022

What does objc_sync_enter/objc_sync_exit do on a Dictionary? Isn't that a value type, is that providing the expected behavior here? Could there be copies happening so things aren't lining up as expected?

@paulb777
Copy link
Member

paulb777 commented Nov 8, 2022

@MorganChen found https://straypixels.net/swift-dictionary-locking/ which doesn't exactly match what we're seeing, but may be related since its seems like the runtime is creating a lock that never gets released.

@morganchen12
Copy link
Contributor

I haven't pinned down the exact cause, but here's what I've found: Dictionary uses a singleton to represent all empty dictionaries, avoiding an allocation until the dictionary actually needs storage. Once an object is stored to the dictionary, the singleton swapped out for the expected dictionary type. Here's the logs from printing out the addresses of the fetcherServiceMap variable:

sync enter: 63F18F78 // consistent across re-runs, probably just an implementation detail
sync exit: 3435780   // value changes after an object is stored to the dictionary
@synchronized: 0x6000014e8660
// ...
@synchronized: 0x6000014e8660
sync enter: 3435780 // value is stable afterwards; unlocking the unlocked lock earlier
sync exit: 3435780  // causes this unlock to error with OBJC_SYNC_NOT_OWNING_THREAD_ERROR.
@synchronized: 0x6000014ec9c0
// deadlock

Observations:

  • The first objc_sync_enter is never balanced with a matching call to exit because of the address change.
  • The first call to objc_sync_exit fails after trying the lock, meaning there's existing SyncData for it despite our never locking the lock (see source here).
  • The second call to objc_sync_exit also fails, but fails after finding no suitable SyncData.
  • Other locks used by GTMSessionFetcher or the runtime aren't affected by this; it consistently deadlocks in GTMSessionFetcherSessionDelegateDispatcher.

The reason the next call to @synchronize deadlocks is presumably because objc_sync only allocates new locks as needed, so the bad lock is reused for the second GTMSessionFetcher, which causes deadlock. There's some things missing from this investigation--I haven't figured out why the held lock could be reused elsewhere without being unlocked first, or why SyncData would be present for the first erroneous unlock, or how it's removed for the subsequent unlock, or why the deadlock is only present in this one class even though objc_sync is ubiquitous. It also seems like the second sync enter/exit is necessary for the deadlock; running a repro without creating a second session fetcher does not cause a deadlock.

@morganchen12
Copy link
Contributor

This should be fixed and out with 10.2.0.

@paulb777
Copy link
Member

paulb777 commented Nov 9, 2022

@mikehardy Would you check if the fix in https://github.com/firebase/firebase-ios-sdk/pull/10468/files fixes your repro case?

@mikehardy
Copy link
Contributor Author

Just caught up on the thread. Subtle one! Our reproductions looked like they lined up at the end, so I'll be surprised if it isn't fixed when you think it is but I will check first thing tomorrow, for confirmation. Cheers

@mikehardy
Copy link
Contributor Author

Pulled https://patch-diff.githubusercontent.com/raw/firebase/firebase-ios-sdk/pull/10468.diff
Removed docs + tests hunks so it was just the fix with the new lock-specific object
changed to ios/Pods/FirebaseStorage dir and did the patch -p1 on the remaining diff in our e2e harness on my repro branch

built + ran just fine

✔️

Thanks all, looking forward to firebase-ios-sdk 10.2.0

@firebase firebase locked and limited conversation to collaborators Dec 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
6 participants