Skip to content

FileStorage.write(_:) crash #14811

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

Open
AndriyGo opened this issue May 4, 2025 · 3 comments
Open

FileStorage.write(_:) crash #14811

AndriyGo opened this issue May 4, 2025 · 3 comments
Assignees

Comments

@AndriyGo
Copy link

AndriyGo commented May 4, 2025

Description

We see a fair amount of crashes affecting only users on iOS 16.

The stack trace from Crashlytics is below.

com.apple.main-thread
0  libsystem_kernel.dylib         0xb48 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x13008 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x13248 mach_msg_overwrite + 388
3  libsystem_kernel.dylib         0x108c mach_msg + 24
4  CoreFoundation                 0x7aaf0 __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x7bd34 __CFRunLoopRun + 1232
6  CoreFoundation                 0x80ed4 CFRunLoopRunSpecific + 612
7  GraphicsServices               0x1368 GSEventRunModal + 164
8  UIKitCore                      0x3a23d0 -[UIApplication _run] + 888
9  UIKitCore                      0x3a2034 UIApplicationMain + 340
10 libswiftUIKit.dylib            0x35308 UIApplicationMain(_:_:_:_:) + 104
11 Theory Test                    0xe463c static AppDelegate.$main() + 4334634556 (<compiler-generated>:4334634556)
12 Theory Test                    0xe54ec type metadata accessor for AppDelegate + 4334638316 (<compiler-generated>:4334638316)
13 ???                            0x1ecd4c960 (Missing)

Thread
0  libsystem_kernel.dylib         0x1050 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0xe44 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0xb98 start_wqthread + 8

Thread
0  libsystem_pthread.dylib        0xb90 start_wqthread + 254

Thread
0  libsystem_kernel.dylib         0x1050 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0xe44 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0xb98 start_wqthread + 8

com.apple.uikit.eventfetch-thread
0  libsystem_kernel.dylib         0xb48 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x13008 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x13248 mach_msg_overwrite + 388
3  libsystem_kernel.dylib         0x108c mach_msg + 24
4  CoreFoundation                 0x7aaf0 __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x7bd34 __CFRunLoopRun + 1232
6  CoreFoundation                 0x80ed4 CFRunLoopRunSpecific + 612
7  Foundation                     0x42334 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8  Foundation                     0x4221c -[NSRunLoop(NSRunLoop) runUntilDate:] + 64
9  UIKitCore                      0x4d733c -[UIEventFetcher threadMain] + 436
10 Foundation                     0x5b808 __NSThread__start__ + 716
11 libsystem_pthread.dylib        0x16cc _pthread_start + 148
12 libsystem_pthread.dylib        0xba4 thread_start + 8

com.google.fira.worker
0  libsystem_kernel.dylib         0x1680 __ulock_wait + 8
1  libsystem_platform.dylib       0x82c _os_unfair_lock_lock_slow + 172
2  CoreFoundation                 0x95088 CFBundleGetInfoDictionary + 44
3  Foundation                     0x19a10 -[NSBundle infoDictionary] + 24
4  Theory Test                    0x73b6a0 +[APMAEU appStoreRURL] + 4341282464
5  Theory Test                    0x73b9a0 +[APMAEU isASRS] + 4341283232
6  Theory Test                    0x73b790 +[APMAEU isFAS] + 4341282704
7  Theory Test                    0x7897b0 -[APMMeasurement(Event) createRawEventMetadataWithUserAttributes:] + 4341602224
8  Theory Test                    0x78b8e0 -[APMMeasurement(Event) writeEvent:isPublicEvent:isRealtime:] + 4341610720
9  Theory Test                    0x78968c __57-[APMMeasurement(Event) writeFilteredEventOnWorkerQueue:]_block_invoke + 4341601932
10 Theory Test                    0x7dbb90 -[APMSqliteStore performTransactionWithError:block:] + 4341939088
11 Theory Test                    0x74ecc0 -[APMDatabase performTransaction:] + 4341361856
12 Theory Test                    0x7893e0 -[APMMeasurement(Event) writeFilteredEventOnWorkerQueue:] + 4341601248
13 Theory Test                    0x789148 -[APMMeasurement(Event) writeEventOnWorkerQueue:] + 4341600584
14 Theory Test                    0x788d20 -[APMMeasurement(Event) handleEventOnWorkerQueue:] + 4341599520
15 Theory Test                    0x77c460 -[APMMeasurement logEventOnWorkerQueue:notifyEventListeners:] + 4341548128
16 Theory Test                    0x77c2ec -[APMMeasurement logEventOnWorkerQueueWithOrigin:isPublicEvent:name:parameters:timestamp:enabled:ignoreEnabled:ignoreInterceptor:interceptor:addedScreenParameters:] + 4341547756
17 Theory Test                    0x77c11c __151-[APMMeasurement logEventWithOrigin:isPublicEvent:name:parameters:timestamp:enabled:ignoreEnabled:ignoreInterceptor:interceptor:addedScreenParameters:]_block_invoke + 4341547292
18 Theory Test                    0x7d2dbc __51-[APMScheduler scheduleOnWorkerQueueBlockID:block:]_block_invoke + 4341902780
19 libdispatch.dylib              0x24b4 _dispatch_call_block_and_release + 32
20 libdispatch.dylib              0x3fdc _dispatch_client_callout + 20
21 libdispatch.dylib              0xb694 _dispatch_lane_serial_drain + 672
22 libdispatch.dylib              0xc1e0 _dispatch_lane_invoke + 384
23 libdispatch.dylib              0x16e10 _dispatch_workloop_worker_thread + 652
24 libsystem_pthread.dylib        0xdf8 _pthread_wqthread + 288
25 libsystem_pthread.dylib        0xb98 start_wqthread + 8

com.google.firebase.firestore
0  libsystem_kernel.dylib         0x251c write + 8
1  Theory Test                    0x6dbf78 leveldb::(anonymous namespace)::PosixWritableFile::WriteUnbuffered(char const*, unsigned long) + 335 (env_posix.cc:335)
2  Theory Test                    0x6dbe28 leveldb::(anonymous namespace)::PosixWritableFile::Flush() + 328 (env_posix.cc:328)
3  Theory Test                    0x6d7564 leveldb::TableBuilder::Flush() + 43 (swap.h:43)
4  Theory Test                    0x6d7464 leveldb::TableBuilder::Add(leveldb::Slice const&, leveldb::Slice const&) + 123 (table_builder.cc:123)
5  Theory Test                    0x6c0904 leveldb::BuildTable(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, leveldb::Env*, leveldb::Options const&, leveldb::TableCache*, leveldb::Iterator*, leveldb::FileMetaData*) + 33 (builder.cc:33)
6  Theory Test                    0x6c2970 leveldb::DBImpl::WriteLevel0Table(leveldb::MemTable*, leveldb::VersionEdit*, leveldb::Version*) + 43 (swap.h:43)
7  Theory Test                    0x6c24e4 leveldb::DBImpl::RecoverLogFile(unsigned long long, bool, bool*, leveldb::VersionEdit*, unsigned long long*) + 43 (swap.h:43)
8  Theory Test                    0x6c208c leveldb::DBImpl::Recover(leveldb::VersionEdit*, bool*) + 43 (swap.h:43)
9  Theory Test                    0x6c5b90 leveldb::DB::Open(leveldb::Options const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, leveldb::DB**) + 57 (status.h:57)
10 Theory Test                    0x8d114c firebase::firestore::local::LevelDbPersistence::OpenDb(firebase::firestore::util::Path const&) + 4342944076
11 Theory Test                    0x8d0b90 firebase::firestore::local::LevelDbPersistence::Create(firebase::firestore::util::Path, int, firebase::firestore::local::LocalSerializer, firebase::firestore::local::LruParams const&) + 4342942608
12 Theory Test                    0x8d12d4 firebase::firestore::local::LevelDbPersistence::Create(firebase::firestore::util::Path, firebase::firestore::local::LocalSerializer, firebase::firestore::local::LruParams const&) + 4342944468
13 Theory Test                    0x8ce958 firebase::firestore::local::LevelDbOpener::Create(firebase::firestore::local::LruParams const&) + 4342933848
14 Theory Test                    0x877ba8 firebase::firestore::core::FirestoreClient::Initialize(firebase::firestore::credentials::User const&, firebase::firestore::api::Settings const&) + 4342578088
15 Theory Test                    0x820530 firebase::firestore::util::AsyncQueue::ExecuteBlocking(std::__1::function<void ()> const&) + 4342220080
16 Theory Test                    0x940d7c firebase::firestore::util::Task::ExecuteAndRelease() + 123928
17 libdispatch.dylib              0x3fdc _dispatch_client_callout + 20
18 libdispatch.dylib              0xb694 _dispatch_lane_serial_drain + 672
19 libdispatch.dylib              0xc1e0 _dispatch_lane_invoke + 384
20 libdispatch.dylib              0x16e10 _dispatch_workloop_worker_thread + 652
21 libsystem_pthread.dylib        0xdf8 _pthread_wqthread + 288
22 libsystem_pthread.dylib        0xb98 start_wqthread + 8

com.apple.root.default-qos.cooperative
0  libsystem_kernel.dylib         0xb48 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x13008 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x13248 mach_msg_overwrite + 388
3  libsystem_kernel.dylib         0x108c mach_msg + 24
4  libdispatch.dylib              0x1f364 _dispatch_mach_send_and_wait_for_reply + 540
5  libdispatch.dylib              0x1f6ec dispatch_mach_send_with_result_and_wait_for_reply + 60
6  libxpc.dylib                   0x102e4 xpc_connection_send_message_with_reply_sync + 240
7  Foundation                     0xa3344 __NSXPCCONNECTION_IS_WAITING_FOR_A_SYNCHRONOUS_REPLY__ + 16
8  Foundation                     0x3646c -[NSXPCConnection _sendInvocation:orArguments:count:methodSignature:selector:withProxy:] + 2236
9  Foundation                     0x815c4 -[NSXPCConnection _sendSelector:withProxy:arg1:arg2:arg3:arg4:] + 144
10 Foundation                     0x814dc _NSXPCDistantObjectSimpleMessageSend4 + 84
11 CoreTelephony                  0x518c -[CoreTelephonyClient(CarrierBundle) copyCarrierBundleValue:key:bundleType:error:] + 392
12 CoreTelephony                  0x65b8 -[CTTelephonyNetworkInfo getAllowsVOIP:forContext:withError:] + 116
13 CoreTelephony                  0x4a34 -[CTTelephonyNetworkInfo updateNetworkInfoAndShouldNotifyClient:forContext:] + 992
14 CoreTelephony                  0x4458 -[CTTelephonyNetworkInfo initWithClient:] + 544
15 CoreTelephony                  0x4200 -[CTTelephonyNetworkInfo init] + 96
16 ZendeskSDK                     0x1cff4 __swift_memcpy104_8 + 4240
17 ZendeskSDK                     0x434ac __swift_memcpy73_8 + 15284
18 libdispatch.dylib              0x3fdc _dispatch_client_callout + 20
19 libdispatch.dylib              0x5828 _dispatch_once_callout + 32
20 ZendeskSDK                     0x43208 __swift_memcpy73_8 + 14608
21 libdispatch.dylib              0x3fdc _dispatch_client_callout + 20
22 libdispatch.dylib              0x5828 _dispatch_once_callout + 32
23 ZendeskSDK                     0x2046c __swift_memcpy104_8 + 17672
24 ZendeskSDK                     0x6058 __swift_memcpy8_8 + 1332
25 libswift_Concurrency.dylib     0x40f6c swift::runJobInEstablishedExecutorContext(swift::Job*) + 420
26 libswift_Concurrency.dylib     0x41e78 swift_job_runImpl(swift::Job*, swift::ExecutorRef) + 72
27 libdispatch.dylib              0x15a6c _dispatch_root_queue_drain + 396
28 libdispatch.dylib              0x16284 _dispatch_worker_thread2 + 164
29 libsystem_pthread.dylib        0xdbc _pthread_wqthread + 228
30 libsystem_pthread.dylib        0xb98 start_wqthread + 8

Crashed: com.heartbeat.storage.1:155172033309:ios:71489586c792aded
0  CoreFoundation                 0x7cbf4 CFDictionaryGetValue + 92
1  CoreFoundation                 0x18ca3c _CFBundleGetStringsSources + 1976
2  CoreFoundation                 0x73698 CFBundleGetLocalInfoDictionary + 196
3  CoreFoundation                 0x5d374 CFBundleGetValueForInfoDictionaryKey + 44
4  Foundation                     0x5eae8 -[NSFileManager _URLForReplacingItemAtURL:error:] + 648
5  Foundation                     0x5e5f8 _NSCreateTemporaryFile_Protected + 168
6  Foundation                     0x6d184 _NSWriteDataToFileWithExtendedAttributes + 436
7  Foundation                     0x417e2c specialized __DataStorage.withInteriorPointerReference<A>(_:_:) + 192
8  Foundation                     0x420e00 specialized Data._Representation.withInteriorPointerReference<A>(_:) + 432
9  Foundation                     0x424d98 Data.write(to:options:) + 68
10 Theory Test                    0x1cd6e0 FileStorage.write(_:) + 71 (Storage.swift:71)
11 Theory Test                    0x1cd8e8 protocol witness for Storage.write(_:) in conformance FileStorage + 4335589608 (<compiler-generated>:4335589608)
12 Theory Test                    0x1c4754 HeartbeatStorage.save(_:to:) + 202 (HeartbeatStorage.swift:202)
13 Theory Test                    0x1c4e8c closure #1 in HeartbeatStorage.getAndSetAsync(using:completion:) + 173 (HeartbeatStorage.swift:173)
14 Theory Test                    0x1c4acc <deduplicated_symbol> + 4335553228
15 libdispatch.dylib              0x24b4 _dispatch_call_block_and_release + 32
16 libdispatch.dylib              0x3fdc _dispatch_client_callout + 20
17 libdispatch.dylib              0xb694 _dispatch_lane_serial_drain + 672
18 libdispatch.dylib              0xc1e0 _dispatch_lane_invoke + 384
19 libdispatch.dylib              0x16e10 _dispatch_workloop_worker_thread + 652
20 libsystem_pthread.dylib        0xdf8 _pthread_wqthread + 288
21 libsystem_pthread.dylib        0xb98 start_wqthread + 8

com.apple.root.utility-qos
0  libswiftCore.dylib             0x415658 swift_conformsToProtocolMaybeInstantiateSuperclasses(swift::TargetMetadata<swift::InProcess> const*, swift::TargetProtocolDescriptor<swift::InProcess> const*, bool)::$_5::operator()((anonymous namespace)::ConformanceSection const&) const::'lambda'(swift::TargetProtocolConformanceDescriptor<swift::InProcess> const&)::operator()(swift::TargetProtocolConformanceDescriptor<swift::InProcess> const&) const + 100
1  libswiftCore.dylib             0x4144dc swift_conformsToProtocolMaybeInstantiateSuperclasses(swift::TargetMetadata<swift::InProcess> const*, swift::TargetProtocolDescriptor<swift::InProcess> const*, bool) + 2608
2  libswiftCore.dylib             0x413730 swift_conformsToProtocol + 136
3  AttributeGraph                 0x93b0 AG::LayoutDescriptor::make_layout(AG::swift::metadata const*, AGComparisonMode, AG::LayoutDescriptor::HeapMode) + 172
4  AttributeGraph                 0xa908 AG::(anonymous namespace)::LayoutCache::drain_queue(void*) + 152
5  libdispatch.dylib              0x3fdc _dispatch_client_callout + 20
6  libdispatch.dylib              0x15b8c _dispatch_root_queue_drain + 684
7  libdispatch.dylib              0x16284 _dispatch_worker_thread2 + 164
8  libsystem_pthread.dylib        0xdbc _pthread_wqthread + 228
9  libsystem_pthread.dylib        0xb98 start_wqthread + 8

com.apple.NSXPCConnection.m-user.com.apple.ondemandd.client
0  libsystem_kernel.dylib         0x1680 __ulock_wait + 8
1  libsystem_platform.dylib       0x82c _os_unfair_lock_lock_slow + 172
2  CoreFoundation                 0x18d868 _CFBundleFlushStringSourceCache + 36
3  CoreFoundation                 0x12509c _CFBundleAddResourceURL + 160
4  Foundation                     0x5b2774 __58-[_NSBundleODRDataCommon assetPacksBecameAvailable:error:]_block_invoke + 164
5  CoreFoundation                 0x13588 __NSDICTIONARY_IS_CALLING_OUT_TO_A_BLOCK__ + 24
6  CoreFoundation                 0x9dbc0 -[__NSDictionaryM enumerateKeysAndObjectsWithOptions:usingBlock:] + 212
7  Foundation                     0x5b25fc -[_NSBundleODRDataCommon assetPacksBecameAvailable:error:] + 240
8  Foundation                     0x5b3700 -[_NSBundleODRDataForApplications assetPacksBecameAvailable:error:] + 76
9  Foundation                     0x5b57a8 __85-[NSBundleResourceRequest conditionallyBeginAccessingResourcesWithCompletionHandler:]_block_invoke.305 + 188
10 CoreFoundation                 0x74704 __invoking___ + 148
11 CoreFoundation                 0x20b6c -[NSInvocation invoke] + 428
12 Foundation                     0xa1b08 __NSXPCCONNECTION_IS_CALLING_OUT_TO_REPLY_BLOCK__ + 16
13 Foundation                     0x72ef0 -[NSXPCConnection _decodeAndInvokeReplyBlockWithEvent:sequence:replyInfo:] + 520
14 Foundation                     0x64c2e4 __88-[NSXPCConnection _sendInvocation:orArguments:count:methodSignature:selector:withProxy:]_block_invoke_5 + 188
15 libxpc.dylib                   0x1df1c _xpc_connection_reply_callout + 124
16 libxpc.dylib                   0x10fb4 _xpc_connection_call_reply_async + 88
17 libdispatch.dylib              0x405c _dispatch_client_callout3 + 20
18 libdispatch.dylib              0x21f58 _dispatch_mach_msg_async_reply_invoke + 344
19 libdispatch.dylib              0xb56c _dispatch_lane_serial_drain + 376
20 libdispatch.dylib              0xc214 _dispatch_lane_invoke + 436
21 libdispatch.dylib              0x16e10 _dispatch_workloop_worker_thread + 652
22 libsystem_pthread.dylib        0xdf8 _pthread_wqthread + 288
23 libsystem_pthread.dylib        0xb98 start_wqthread + 8

com.google.firebase.crashlytics.MachExceptionServer
0  Theory Test                    0x316028 FIRCLSProcessRecordAllThreads + 392 (FIRCLSProcess.c:392)
1  Theory Test                    0x316434 FIRCLSProcessRecordAllThreads + 423 (FIRCLSProcess.c:423)
2  Theory Test                    0x324604 FIRCLSHandler + 39 (FIRCLSHandler.m:39)
3  Theory Test                    0x32508c FIRCLSMachExceptionServer + 525 (FIRCLSMachException.c:525)
4  libsystem_pthread.dylib        0x16cc _pthread_start + 148
5  libsystem_pthread.dylib        0xba4 thread_start + 8

Thread
0  libsystem_pthread.dylib        0xb90 start_wqthread + 254

com.apple.NSURLSession-work
0  libsystem_kernel.dylib         0x1c5c pread + 8
1  libsqlite3.dylib               0xb7b1c sqlite3_sourceid + 6832
2  libsqlite3.dylib               0x7f68 sqlite3_snprintf + 7396
3  libsqlite3.dylib               0x288fc sqlite3_finalize + 20980
4  libsqlite3.dylib               0x27788 sqlite3_finalize + 16512
5  libsqlite3.dylib               0x25c18 sqlite3_finalize + 9488
6  libsqlite3.dylib               0x254ec sqlite3_finalize + 7652
7  libsqlite3.dylib               0x45fb8 sqlite3_step + 7092
8  libsqlite3.dylib               0x44914 sqlite3_step + 1296
9  CFNetwork                      0x2c5a0 CFURLRequestSetHTTPRequestMethod + 22416
10 CFNetwork                      0x1d130 CFHTTPCookieCopyRequestHeaderFields + 2784
11 CFNetwork                      0x2bae4 CFURLRequestSetHTTPRequestMethod + 19668
12 CFNetwork                      0x62478 CFURLRequestSetHTTPRequestBodyStream + 6688
13 CFNetwork                      0x31d10 _CFNetworkErrorCopyLocalizedDescriptionWithHostname + 21020
14 CFNetwork                      0x5ffc8 CFHTTPCookieStorageCreateFromFile + 13084
15 CFNetwork                      0x27da0 CFURLRequestSetHTTPRequestMethod + 3984
16 CFNetwork                      0x81a8 CFHTTPCookieCopyDomain + 1524
17 CFNetwork                      0x1ca58 CFHTTPCookieCopyRequestHeaderFields + 1032
18 libdispatch.dylib              0x13114 _dispatch_block_async_invoke2 + 148
19 libdispatch.dylib              0x3fdc _dispatch_client_callout + 20
20 libdispatch.dylib              0xb694 _dispatch_lane_serial_drain + 672
21 libdispatch.dylib              0xc214 _dispatch_lane_invoke + 436
22 libdispatch.dylib              0x16e10 _dispatch_workloop_worker_thread + 652
23 libsystem_pthread.dylib        0xdf8 _pthread_wqthread + 288
24 libsystem_pthread.dylib        0xb98 start_wqthread + 8

Reproducing the issue

We are unable to reproduce this issue reliably ourselves

Firebase SDK Version

11.12.0

Xcode Version

16.3

Installation Method

Swift Package Manager

Firebase Product(s)

Analytics, Authentication, Crashlytics, Firestore, Functions, Messaging, Remote Config

Targeted Platforms

iOS

Relevant Log Output

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

Expand Package.resolved snippet
{
  "originHash" : "6654cef4ca60bf40a020f7ac907470286a6d37126d57e5623db322e71d64a20e",
  "pins" : [
    {
      "identity" : "abseil-cpp-binary",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/google/abseil-cpp-binary.git",
      "state" : {
        "revision" : "bbe8b69694d7873315fd3a4ad41efe043e1c07c5",
        "version" : "1.2024072200.0"
      }
    },
    {
      "identity" : "amplitude-swift",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/amplitude/Amplitude-Swift",
      "state" : {
        "revision" : "2485aebcdaba9c679979381787258297489cb08a",
        "version" : "1.12.0"
      }
    },
    {
      "identity" : "analytics-connector-ios",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/amplitude/analytics-connector-ios.git",
      "state" : {
        "revision" : "4adbfe85486e6dcdcdca5fa9362097ffe5ec712b",
        "version" : "1.3.1"
      }
    },
    {
      "identity" : "app-check",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/google/app-check.git",
      "state" : {
        "revision" : "61b85103a1aeed8218f17c794687781505fbbef5",
        "version" : "11.2.0"
      }
    },
    {
      "identity" : "appsflyerframework-strict",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/AppsFlyerSDK/AppsFlyerFramework-Strict",
      "state" : {
        "revision" : "fc51a757638de7bacdb29e64c141302970a7046f",
        "version" : "6.17.0"
      }
    },
    {
      "identity" : "firebase-ios-sdk",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/firebase/firebase-ios-sdk",
      "state" : {
        "revision" : "fbd463894af94d90eb4d6a4e54080459a8179519",
        "version" : "11.12.0"
      }
    },
    {
      "identity" : "googleappmeasurement",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/google/GoogleAppMeasurement.git",
      "state" : {
        "revision" : "f7460ea630bddf172115c28493ae8b3798d95ce3",
        "version" : "11.12.0"
      }
    },
    {
      "identity" : "googledatatransport",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/google/GoogleDataTransport.git",
      "state" : {
        "revision" : "617af071af9aa1d6a091d59a202910ac482128f9",
        "version" : "10.1.0"
      }
    },
    {
      "identity" : "googleutilities",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/google/GoogleUtilities.git",
      "state" : {
        "revision" : "53156c7ec267db846e6b64c9f4c4e31ba4cf75eb",
        "version" : "8.0.2"
      }
    },
    {
      "identity" : "grpc-binary",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/google/grpc-binary.git",
      "state" : {
        "revision" : "cc0001a0cf963aa40501d9c2b181e7fc9fd8ec71",
        "version" : "1.69.0"
      }
    },
    {
      "identity" : "gtm-session-fetcher",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/google/gtm-session-fetcher.git",
      "state" : {
        "revision" : "4d70340d55d7d07cc2fdf8e8125c4c126c1d5f35",
        "version" : "4.4.0"
      }
    },
    {
      "identity" : "interop-ios-for-google-sdks",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/google/interop-ios-for-google-sdks.git",
      "state" : {
        "revision" : "040d087ac2267d2ddd4cca36c757d1c6a05fdbfe",
        "version" : "101.0.0"
      }
    },
    {
      "identity" : "leveldb",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/firebase/leveldb.git",
      "state" : {
        "revision" : "a0bc79961d7be727d258d33d5a6b2f1023270ba1",
        "version" : "1.22.5"
      }
    },
    {
      "identity" : "metacodable",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/SwiftyLab/MetaCodable.git",
      "state" : {
        "revision" : "7246a7fde82c8ca2c361e9537a5058646ac8aab7",
        "version" : "1.4.0"
      }
    },
    {
      "identity" : "nanopb",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/firebase/nanopb.git",
      "state" : {
        "revision" : "b7e1104502eca3a213b46303391ca4d3bc8ddec1",
        "version" : "2.30910.0"
      }
    },
    {
      "identity" : "popupview",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/exyte/PopupView.git",
      "state" : {
        "revision" : "53b9a5ae0e96cdd9ade22cf8b0693291c2aa91b3",
        "version" : "4.1.7"
      }
    },
    {
      "identity" : "promises",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/google/promises.git",
      "state" : {
        "revision" : "540318ecedd63d883069ae7f1ed811a2df00b6ac",
        "version" : "2.4.0"
      }
    },
    {
      "identity" : "purchases-ios-spm",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/RevenueCat/purchases-ios-spm.git",
      "state" : {
        "revision" : "f45bccdad1c7b5f57af3fb511f67854cacd13fd7",
        "version" : "5.22.2"
      }
    },
    {
      "identity" : "sdk_conversation_kit_ios",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/zendesk/sdk_conversation_kit_ios",
      "state" : {
        "revision" : "bfd3998623258928b97f33dd5e1f1837adb60590",
        "version" : "11.2.0"
      }
    },
    {
      "identity" : "sdk_core_utilities_ios",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/zendesk/sdk_core_utilities_ios",
      "state" : {
        "revision" : "5d3fe3147cc8c99c5a74f737979d91c06ff8ca46",
        "version" : "7.1.0"
      }
    },
    {
      "identity" : "sdk_faye_client_ios",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/zendesk/sdk_faye_client_ios",
      "state" : {
        "revision" : "27a1c6d8719831b90082e6d144bd5f1f4819671c",
        "version" : "1.13.0"
      }
    },
    {
      "identity" : "sdk_guide_kit_ios",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/zendesk/sdk_guide_kit_ios",
      "state" : {
        "revision" : "a1c6cfdff5bcbcdf04796a6b69b5351227b1822f",
        "version" : "2.4.0"
      }
    },
    {
      "identity" : "sdk_http_client_ios",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/zendesk/sdk_http_client_ios",
      "state" : {
        "revision" : "ff892f9be2829259f8a3a2f7e154d3769cc0de0a",
        "version" : "0.20.0"
      }
    },
    {
      "identity" : "sdk_logger_ios",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/zendesk/sdk_logger_ios",
      "state" : {
        "revision" : "ff6fda2a2c8c2357cf8291704484e21b4381318f",
        "version" : "0.11.0"
      }
    },
    {
      "identity" : "sdk_messaging_ios",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/zendesk/sdk_messaging_ios/",
      "state" : {
        "revision" : "7d386d45bc1bec53e16c30aac71b4ef9abc4db25",
        "version" : "2.31.0"
      }
    },
    {
      "identity" : "sdk_socket_client_ios",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/zendesk/sdk_socket_client_ios",
      "state" : {
        "revision" : "4937d9e0cc053e9a5bdff0f4b106486ed5c1409e",
        "version" : "1.12.0"
      }
    },
    {
      "identity" : "sdk_storage_ios",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/zendesk/sdk_storage_ios",
      "state" : {
        "revision" : "3733b0bb697da8bf87d31c71b54ffac9338a82ef",
        "version" : "1.3.0"
      }
    },
    {
      "identity" : "sdk_ui_components_ios",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/zendesk/sdk_ui_components_ios",
      "state" : {
        "revision" : "38c20ea973d472fee971840e087b8afa29defdd7",
        "version" : "13.2.0"
      }
    },
    {
      "identity" : "sdk_zendesk_ios",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/zendesk/sdk_zendesk_ios",
      "state" : {
        "revision" : "d233a8ba10ea9687c9de0febe782d187d89d6564",
        "version" : "3.9.0"
      }
    },
    {
      "identity" : "sfsymbolsmacro",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/lukepistrol/SFSymbolsMacro",
      "state" : {
        "revision" : "b858ef2d14bb75537635644a38c47f5dce6f32ab",
        "version" : "0.5.4"
      }
    },
    {
      "identity" : "smartlogmacro",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/AndriyGo/SmartLogMacro",
      "state" : {
        "revision" : "6c3e40680e47e7b4e9264b9e0c4a5c3a9bb51534",
        "version" : "1.1.0"
      }
    },
    {
      "identity" : "swift-argument-parser",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/apple/swift-argument-parser.git",
      "state" : {
        "revision" : "41982a3656a71c768319979febd796c6fd111d5c",
        "version" : "1.5.0"
      }
    },
    {
      "identity" : "swift-collections",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/apple/swift-collections.git",
      "state" : {
        "revision" : "671108c96644956dddcd89dd59c203dcdb36cec7",
        "version" : "1.1.4"
      }
    },
    {
      "identity" : "swift-protobuf",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/apple/swift-protobuf.git",
      "state" : {
        "revision" : "d72aed98f8253ec1aa9ea1141e28150f408cf17f",
        "version" : "1.29.0"
      }
    },
    {
      "identity" : "swift-syntax",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/swiftlang/swift-syntax.git",
      "state" : {
        "revision" : "0687f71944021d616d34d922343dcef086855920",
        "version" : "600.0.1"
      }
    },
    {
      "identity" : "swiftmessages",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/SwiftKickMobile/SwiftMessages",
      "state" : {
        "revision" : "c544df6ce316422b9d65a571f932e800213dd09c",
        "version" : "10.0.1"
      }
    },
    {
      "identity" : "swiftui-introspect",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/siteline/swiftui-introspect",
      "state" : {
        "revision" : "807f73ce09a9b9723f12385e592b4e0aaebd3336",
        "version" : "1.3.0"
      }
    }
  ],
  "version" : 3
}

If using CocoaPods, the project's Podfile.lock

Expand Podfile.lock snippet
Replace this line with the contents of your Podfile.lock!
@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.

@AndriyGo
Copy link
Author

AndriyGo commented May 4, 2025

We are using On-Demand resources, so most likely this is a bug related to a race condition in iOS 16 between ODR and NSBundle localisation... (#10470)

@AndriyGo
Copy link
Author

I am confident that this is related to #10470 .

  1. The crash occurs in CFDictionaryGetValue
  2. Affects only iOS 16 users
  3. We are using on-demand resources
Image

In #10470 there was a suggested workaround, i.e. to use async-await version of ODR, but we are already doing it.

I wonder whether this may now be related to the fact that we've disabled both FirebaseAppDelegateProxyEnabled and GoogleUtilitiesAppDelegateProxyEnabled. I will try to reproduce this on iOS 16 simulator and then play around with these settings as maybe we no longer need to disable these proxies given that we are using asynchronous/await version of ODR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants