firebase-ios-sdk icon indicating copy to clipboard operation
firebase-ios-sdk copied to clipboard

-[GDTCORDirectorySizeTracker calculateDirectoryContentSize] app crash

Open njuned-ux opened this issue 6 months ago • 9 comments

Description

This is a crash produced on our app at the login workflow.

Device: iPhone SE (2nd generation) Operating System Version:18.6.2 Orientation:Portrait RAM free: 100.28 MB Disk free: 39.73 GB Firebase version: 12.0.0

Reproducing the issue

This issue is not easily reproducible, it is random and not that intermittent

Firebase SDK Version

12.0.0

Xcode Version

16.4

Installation Method

CocoaPods

Firebase Product(s)

Crashlytics

Targeted Platforms

iOS

Relevant Log Output


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

Expand Package.resolved snippet

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

If using CocoaPods, the project's Podfile.lock

Expand Podfile.lock snippet

Replace this line with the contents of your Podfile.lock!

njuned-ux avatar Oct 14 '25 09:10 njuned-ux

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

google-oss-bot avatar Oct 14 '25 09:10 google-oss-bot

Thanks for the report, @njuned-ux. Could you share the full stack trace of your issue?

rizafran avatar Oct 14 '25 16:10 rizafran

Hi @rizafran here is the stack trace Crashed: com.google.GDTCORFlatFileStorage 0 libsystem_malloc.dylib 0x2020 _xzm_xzone_malloc_tiny_outlined + 724 1 CoreFoundation 0x2e28 _CFRuntimeCreateInstance + 496 2 CoreFoundation 0x80c4 __CFStringCreateImmutableFunnel3 + 1980 3 CoreServicesInternal 0x372c SetNameAndHiddenFlagsFromCString(__CFAllocator const*, char const*, long, _FileAttributes*) + 76 4 CoreServicesInternal 0x2b78 parseAttributeBuffer(__CFAllocator const*, unsigned char const*, unsigned char, attrlist const*, void const*, void**, _FileAttributes*, unsigned int*, unsigned char) + 380 5 CoreServicesInternal 0xefe8 createBaseCacheWithPathAndAttributes(__CFAllocator const*, unsigned char const*, unsigned int, unsigned char, unsigned char, attrlist const*, void const*, unsigned char, void**, __CFError**) + 184 6 CoreServicesInternal 0xe898 __FSURLCreateWithPathAndAttributes(__CFAllocator const*, URLCreateParameters*, __CFError**) + 268 7 CoreServicesInternal 0xec10 _FSURLCreateWithPathAndExtendedAttributes + 84 8 CoreServicesInternal 0x93a8 _GetDirectoryURLs(_CFURLEnumerator*) + 636 9 CoreServicesInternal 0x5590 _URLEnumeratorGetNextURL + 132 10 Foundation 0xb9220 -[NSURLDirectoryEnumerator nextObject] + 92 11 CoreFoundation 0x792cc -[NSEnumerator countByEnumeratingWithState:objects:count:] + 56 12 GoogleDataTransport 0x8a78 -[GDTCORDirectorySizeTracker calculateDirectoryContentSize] + 420 13 GoogleDataTransport 0x870c -[GDTCORDirectorySizeTracker directoryContentSize] + 52 14 GoogleDataTransport 0xaa54 __47-[GDTCORFlatFileStorage storeEvent:onComplete:]_block_invoke.42 + 296 15 libdispatch.dylib 0x1aac _dispatch_call_block_and_release + 32 16 libdispatch.dylib 0x1b584 _dispatch_client_callout + 16 17 libdispatch.dylib 0xa2d0 _dispatch_lane_serial_drain + 740 18 libdispatch.dylib 0xadac _dispatch_lane_invoke + 388 19 libdispatch.dylib 0x151dc _dispatch_root_queue_drain_deferred_wlh + 292 20 libdispatch.dylib 0x14a60 _dispatch_workloop_worker_thread + 540 21 libsystem_pthread.dylib 0xa0c _pthread_wqthread + 292 22 libsystem_pthread.dylib 0xaac start_wqthread + 8

njuned-ux avatar Oct 15 '25 06:10 njuned-ux

Thanks for sharing, @njuned-ux. Could you also provide your Podfile.lock snippet by updating the issue template above?

rizafran avatar Oct 15 '25 12:10 rizafran

Hi @rizafran can you tell me which pods do you need?

njuned-ux avatar Oct 17 '25 05:10 njuned-ux

The pods for Firebase-related SDKs including the GoogleDataTransport so I could check the versions being used.

rizafran avatar Oct 17 '25 12:10 rizafran

Firebase Main Pods

Firebase/CoreOnly (12.0.0) Firebase/Crashlytics (12.0.0) Firebase/Performance (12.0.0)

Firebase Core Components

FirebaseCore (12.0.0) FirebaseCoreExtension (12.0.0) FirebaseCoreInternal (12.0.0) FirebaseSharedSwift (12.0.0)

Firebase Services

FirebaseCrashlytics (12.0.0) FirebasePerformance (12.0.0) FirebaseInstallations (12.0.0) FirebaseSessions (12.0.0) FirebaseABTesting (12.0.0)

Firebase Remote Config (Problematic)

FirebaseRemoteConfig (12.0.0) FirebaseRemoteConfigInterop (12.0.0)

Google Data Transport

GoogleDataTransport (10.1.0)

Google Utilities

GoogleUtilities (8.1.0) GoogleUtilities/AppDelegateSwizzler (8.1.0) GoogleUtilities/Environment (8.1.0) GoogleUtilities/Logger (8.1.0) GoogleUtilities/MethodSwizzler (8.1.0) GoogleUtilities/Network (8.1.0) GoogleUtilities/Privacy (8.1.0) GoogleUtilities/Reachability (8.1.0) GoogleUtilities/SwizzlerTestHelpers (8.1.0) GoogleUtilities/UserDefaults (8.1.0)

@rizafran are these enough? please let me know thanks

njuned-ux avatar Oct 21 '25 06:10 njuned-ux

Thanks for sharing, @njuned-ux. I'll be raising this to our engineers and see what we can do here.

rizafran avatar Nov 07 '25 13:11 rizafran

Thank you @rizafran

njuned-ux avatar Nov 10 '25 07:11 njuned-ux