Closed juancazalla closed 1 year ago
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
Some more information about it. I noticed that the first time this function gets executed, it doesn't crash. It constantly crashes when executed a second time, just in case this help investigate the issue.
Thanks for reaching out! To help solve this problem, could you:
Hey @juancazalla. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.
If you have more information that will help us get to the bottom of this, just add a comment!
Since there haven't been any recent updates here, I am going to close this issue.
@juancazalla if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.
Description
While integrating Firebase Firestore into our app, we are facing some crashes. The crash is random. All you need to do is to open the app, and, at some point, it will crash. However, I found it easier to reproduce if you turn on and off the connectivity several times. The crash happens on the last line of this function:
We were already using some other Firebase dependencies:
For Firestore, our current usage is very basic. All that we do is execute something like this, but as I said, it doesn't crash in this line but randomly (even without running this line).
Just in case it's important, we are using anonymous sing in with
Reproducing the issue
No response
Firebase SDK Version
10.12.0
Xcode Version
14.3.1
Installation Method
Swift Package Manager
Firebase Product(s)
Firestore
Targeted Platforms
iOS
Relevant Log Output
If using Swift Package Manager, the project's Package.resolved
Expand
Package.resolved
snippet```json { "pins" : [ { "identity" : "alamofire", "kind" : "remoteSourceControl", "location" : "https://github.com/Alamofire/Alamofire", "state" : { "revision" : "747c8db8d57b68d5e35275f10c92d55f982adbd4", "version" : "4.9.1" } }, { "identity" : "amplitude-ios", "kind" : "remoteSourceControl", "location" : "https://github.com/amplitude/Amplitude-iOS", "state" : { "revision" : "483ec5c74b50f0d483013fc910fe890ec34e54d2" } }, { "identity" : "analytics-connector-ios", "kind" : "remoteSourceControl", "location" : "https://github.com/amplitude/analytics-connector-ios.git", "state" : { "revision" : "d3d682a26ca6f4947ece2c2e627971bb41b940fa", "version" : "1.0.1" } }, { "identity" : "appauth-ios", "kind" : "remoteSourceControl", "location" : "https://github.com/openid/AppAuth-iOS", "state" : { "revision" : "3d36a58a2b736f7bc499453e996a704929b25080", "version" : "1.6.0" } }, { "identity" : "awaitkit", "kind" : "remoteSourceControl", "location" : "https://github.com/yannickl/AwaitKit", "state" : { "revision" : "4b725f40dd189f40c0962cba792f06a2073bd977" } }, { "identity" : "base32", "kind" : "remoteSourceControl", "location" : "https://github.com/ekscrypto/Base32", "state" : { "revision" : "6389546e8e9a34a9d9db452726900383f3e4ac57", "version" : "1.2.0" } }, { "identity" : "bezierkit", "kind" : "remoteSourceControl", "location" : "https://github.com/GoodNotes/BezierKit", "state" : { "revision" : "ac09a2c62f9a54b7697553f0d60a5fba1c01644a", "version" : "0.13.1" } }, { "identity" : "braze-swift-sdk", "kind" : "remoteSourceControl", "location" : "https://github.com/braze-inc/braze-swift-sdk", "state" : { "revision" : "2f01b877d1ef9060766bcf868502d3a8bb79e6e2", "version" : "5.13.0" } }, { "identity" : "callbackurlkit", "kind" : "remoteSourceControl", "location" : "https://github.com/phimage/CallbackURLKit.git", "state" : { "revision" : "5411bfc17cd0787ac80c46f312c7235783ff9421", "version" : "3.0.0" } }, { "identity" : "chalk", "kind" : "remoteSourceControl", "location" : "https://github.com/mxcl/Chalk.git", "state" : { "revision" : "a7f58e47a08ca5a84f73acc4bcf6c2c19d990609", "version" : "0.5.0" } }, { "identity" : "clapack", "kind" : "remoteSourceControl", "location" : "git@github.com:GoodNotes/CLAPACK", "state" : { "branch" : "eigen-support", "revision" : "29500a98b60c7aae92a7e7d1d8f6c7d6c65de533" } }, { "identity" : "cocoalumberjack", "kind" : "remoteSourceControl", "location" : "https://github.com/CocoaLumberjack/CocoaLumberjack.git", "state" : { "revision" : "0188d31089b5881a269e01777be74c7316924346", "version" : "3.8.0" } }, { "identity" : "cryptoswift", "kind" : "remoteSourceControl", "location" : "https://github.com/GoodNotes/CryptoSwift", "state" : { "branch" : "swiftwasm-support", "revision" : "a8bc733bc578312b1a507da3417f92d311e3143d" } }, { "identity" : "cwlcatchexception", "kind" : "remoteSourceControl", "location" : "https://github.com/mattgallagher/CwlCatchException.git", "state" : { "revision" : "35f9e770f54ce62dd8526470f14c6e137cef3eea", "version" : "2.1.1" } }, { "identity" : "cwlpreconditiontesting", "kind" : "remoteSourceControl", "location" : "https://github.com/mattgallagher/CwlPreconditionTesting.git", "state" : { "revision" : "c21f7bab5ca8eee0a9998bbd17ca1d0eb45d4688", "version" : "2.1.0" } }, { "identity" : "datetools", "kind" : "remoteSourceControl", "location" : "https://github.com/maniramezan/DateTools.git", "state" : { "branch" : "mani_swiftpm_5_3", "revision" : "b7f0415ecb9a2b684fc53a2e4093fc09d368356a" } }, { "identity" : "dd-sdk-ios", "kind" : "remoteSourceControl", "location" : "https://github.com/DataDog/dd-sdk-ios", "state" : { "revision" : "a67acaef547383eda82ab70d0876cfff7d047732", "version" : "1.15.0" } }, { "identity" : "devicekit", "kind" : "remoteSourceControl", "location" : "https://github.com/devicekit/DeviceKit", "state" : { "revision" : "691fe8112cca20ebf0020a1709d4e0205400311c", "version" : "5.0.0" } }, { "identity" : "dwifft", "kind" : "remoteSourceControl", "location" : "https://github.com/jflinter/Dwifft", "state" : { "revision" : "6fec2bc0246091b3e17a9d42e722fb98e05ac3ff" } }, { "identity" : "dynamic", "kind" : "remoteSourceControl", "location" : "https://github.com/mhdhejazi/Dynamic.git", "state" : { "branch" : "master", "revision" : "772883073d044bc754d401cabb6574624eb3778f" } }, { "identity" : "eureka", "kind" : "remoteSourceControl", "location" : "https://github.com/xmartlabs/Eureka", "state" : { "revision" : "b6e35acf77a5551070afa6248935ec68e71f22af", "version" : "5.4.0" } }, { "identity" : "filecheck", "kind" : "remoteSourceControl", "location" : "https://github.com/llvm-swift/FileCheck.git", "state" : { "revision" : "f7c5f1a9479b33a876a6f5632ca2b92a7ce4b667", "version" : "0.2.6" } }, { "identity" : "firebase-ios-sdk-xcframeworks", "kind" : "remoteSourceControl", "location" : "https://github.com/akaffenberger/firebase-ios-sdk-xcframeworks", "state" : { "revision" : "a2315cad1a1309d9d3d3497e3cea6e2559b49852", "version" : "10.5.0" } }, { "identity" : "foundation", "kind" : "remoteSourceControl", "location" : "https://github.com/PromiseKit/Foundation", "state" : { "revision" : "985f17fa69ee0e5b7eb3ff9be87ffc4e05fc0927", "version" : "3.4.0" } }, { "identity" : "google-api-objectivec-client-for-rest", "kind" : "remoteSourceControl", "location" : "https://github.com/GoodNotes/google-api-objectivec-client-for-rest.git", "state" : { "revision" : "07c2d50d900dfdfc952e8996263a94176a513adc", "version" : "3.0.0" } }, { "identity" : "grdb.swift", "kind" : "remoteSourceControl", "location" : "https://github.com/groue/GRDB.swift.git", "state" : { "revision" : "5ee47c3c2765bdfde0f44c2ea9a263f6aa252d63", "version" : "4.14.0" } }, { "identity" : "gtm-session-fetcher", "kind" : "remoteSourceControl", "location" : "https://github.com/google/gtm-session-fetcher.git", "state" : { "revision" : "96d7cc73a71ce950723aa3c50ce4fb275ae180b8", "version" : "3.1.0" } }, { "identity" : "gtmappauth", "kind" : "remoteSourceControl", "location" : "https://github.com/google/GTMAppAuth.git", "state" : { "revision" : "cee3c709307912d040bd1e06ca919875a92339c6", "version" : "2.0.0" } }, { "identity" : "hero", "kind" : "remoteSourceControl", "location" : "https://github.com/HeroTransitions/Hero", "state" : { "revision" : "66a554b21116fccf61b3aa2205a86f6b0cdc9766", "version" : "1.6.2" } }, { "identity" : "javascriptkit", "kind" : "remoteSourceControl", "location" : "https://github.com/swiftwasm/JavaScriptKit", "state" : { "revision" : "dac9d7b0342c5027fc74c8d2f212f10624123a7b", "version" : "0.17.0" } }, { "identity" : "justlog", "kind" : "remoteSourceControl", "location" : "https://github.com/justeat/JustLog", "state" : { "revision" : "b9bb34d2ae6d3d5e7d2ef678f588718ed96d643e", "version" : "4.0.2" } }, { "identity" : "kdtree", "kind" : "remoteSourceControl", "location" : "https://github.com/GoodNotes/KDTree.git", "state" : { "branch" : "swift-web-assembly-support", "revision" : "7b0879feb088a3d554a6d3624debbf354fe5cbf3" } }, { "identity" : "keychainaccess", "kind" : "remoteSourceControl", "location" : "https://github.com/kishikawakatsumi/KeychainAccess.git", "state" : { "revision" : "84e546727d66f1adc5439debad16270d0fdd04e7", "version" : "4.2.2" } }, { "identity" : "lottie-spm", "kind" : "remoteSourceControl", "location" : "https://github.com/airbnb/lottie-spm.git", "state" : { "revision" : "60ea4f82fba8b4cb21a75665a889e86ed4d81c6e", "version" : "4.2.0" } }, { "identity" : "matft", "kind" : "remoteSourceControl", "location" : "https://github.com/jjjkkkjjj/Matft", "state" : { "revision" : "88572d78a808962c6001eb529b38c3927fe5a56f" } }, { "identity" : "mathjaxswift", "kind" : "remoteSourceControl", "location" : "https://github.com/colinc86/MathJaxSwift", "state" : { "revision" : "2870e25f9992946a558466f3fa4d6982bc94760a", "version" : "3.2.2" } }, { "identity" : "microsoft-authentication-library-common-for-objc", "kind" : "remoteSourceControl", "location" : "https://github.com/GoodNotes/microsoft-authentication-library-common-for-objc.git", "state" : { "branch" : "feature/spm", "revision" : "f88c5d3d242a244064855563089db20a35cb563d" } }, { "identity" : "mockingjay", "kind" : "remoteSourceControl", "location" : "https://github.com/billbonney/Mockingjay", "state" : { "branch" : "swift-package", "revision" : "98d39a2c9b4951a86a7e9fe0000d3d7e94bf776b" } }, { "identity" : "nimble", "kind" : "remoteSourceControl", "location" : "https://github.com/Quick/Nimble.git", "state" : { "revision" : "1f3bde57bde12f5e7b07909848c071e9b73d6edc", "version" : "10.0.0" } }, { "identity" : "nsstring-removeemoji", "kind" : "remoteSourceControl", "location" : "https://github.com/woxtu/NSString-RemoveEmoji.git", "state" : { "revision" : "bfc5d77dc50ba1f1d0eebde21517e7f7fdfd6582", "version" : "1.4.0" } }, { "identity" : "objective-c", "kind" : "remoteSourceControl", "location" : "https://github.com/pubnub/objective-c", "state" : { "branch" : "master", "revision" : "eef06ae76fd45931ea09900e3b3ce50133870eca" } }, { "identity" : "objectiverocks", "kind" : "remoteSourceControl", "location" : "https://github.com/GoodNotes/ObjectiveRocks", "state" : { "branch" : "feature/spm-support", "revision" : "0224ab52a5f58376ccb52fc6fdee7dc9e1a703d7" } }, { "identity" : "onedrive-sdk-ios", "kind" : "remoteSourceControl", "location" : "https://github.com/GoodNotes/onedrive-sdk-ios.git", "state" : { "branch" : "feature/spm", "revision" : "565dd09f3cc58d987a8d4697d78628ab541e3acb" } }, { "identity" : "openssl", "kind" : "remoteSourceControl", "location" : "https://github.com/krzyzanowskim/OpenSSL", "state" : { "revision" : "87f41bf9488e7dd2b0de2ab97cb3eafc7304e0e6", "version" : "1.1.2000" } }, { "identity" : "pathkit", "kind" : "remoteSourceControl", "location" : "https://github.com/kylef/PathKit.git", "state" : { "revision" : "3bfd2737b700b9a36565a8c94f4ad2b050a5e574", "version" : "1.0.1" } }, { "identity" : "pincache", "kind" : "remoteSourceControl", "location" : "https://github.com/pinterest/PINCache.git", "state" : { "revision" : "875c654984fb52b47ca65ae70d24852b0003ccd9", "version" : "3.0.3" } }, { "identity" : "pinoperation", "kind" : "remoteSourceControl", "location" : "https://github.com/pinterest/PINOperation.git", "state" : { "revision" : "40504c156a68b20f98f7ddc73a115cbb7893be25", "version" : "1.2.2" } }, { "identity" : "plcrashreporter", "kind" : "remoteSourceControl", "location" : "https://github.com/microsoft/PLCrashReporter.git", "state" : { "revision" : "b1a342da19ed9b3af61ea2efa7656c2af30aeb7c", "version" : "1.11.0" } }, { "identity" : "pmkvobserver", "kind" : "remoteSourceControl", "location" : "https://github.com/GoodNotes/PMKVObserver.git", "state" : { "revision" : "ad5d91316125c4e0c2b777b2aff58ec47a79b677", "version" : "4.1.4" } }, { "identity" : "promisekit", "kind" : "remoteSourceControl", "location" : "https://github.com/mxcl/PromiseKit.git", "state" : { "revision" : "5b90042bb419e6f3b1719c973f37e1eab46ce991", "version" : "6.21.0" } }, { "identity" : "purchases-ios", "kind" : "remoteSourceControl", "location" : "https://github.com/RevenueCat/purchases-ios", "state" : { "revision" : "3ad7fab62d44dd7053d6531d5b0bc90e0e4724a7", "version" : "4.18.0" } }, { "identity" : "reachability", "kind" : "remoteSourceControl", "location" : "https://github.com/master-nevi/Reachability", "state" : { "branch" : "master", "revision" : "a481cf8c72831ce582fcc800ba5121ea9f981043" } }, { "identity" : "rncryptor", "kind" : "remoteSourceControl", "location" : "https://github.com/RNCryptor/RNCryptor", "state" : { "revision" : "5e3bbf44f08bf90049537cb8902d8f4fa911a79a", "version" : "5.1.0" } }, { "identity" : "rxdatasources", "kind" : "remoteSourceControl", "location" : "https://github.com/RxSwiftCommunity/RxDataSources.git", "state" : { "revision" : "90c29b48b628479097fe775ed1966d75ac374518", "version" : "5.0.2" } }, { "identity" : "rxgesture", "kind" : "remoteSourceControl", "location" : "https://github.com/RxSwiftCommunity/RxGesture.git", "state" : { "revision" : "1b137c576b4aaaab949235752278956697c9e4a0", "version" : "4.0.4" } }, { "identity" : "rxoptional", "kind" : "remoteSourceControl", "location" : "https://github.com/RxSwiftCommunity/RxOptional.git", "state" : { "revision" : "10820dd92601e8cf7b71c763fc7a1cf4d1bb14f5", "version" : "5.0.5" } }, { "identity" : "rxswift", "kind" : "remoteSourceControl", "location" : "https://github.com/ReactiveX/RxSwift.git", "state" : { "revision" : "b4307ba0b6425c0ba4178e138799946c3da594f8", "version" : "6.5.0" } }, { "identity" : "safariactivity", "kind" : "remoteSourceControl", "location" : "https://github.com/Ceylo/SafariActivity", "state" : { "revision" : "4bc3584fc07bb33e8a651bfcc62f0c3e5d515978", "version" : "2.0.0" } }, { "identity" : "sdwebimage", "kind" : "remoteSourceControl", "location" : "https://github.com/SDWebImage/SDWebImage.git", "state" : { "revision" : "fb50c1d20f24db5322b2f8f379de3618f75fe08e", "version" : "5.15.5" } }, { "identity" : "spectre", "kind" : "remoteSourceControl", "location" : "https://github.com/kylef/Spectre.git", "state" : { "revision" : "26cc5e9ae0947092c7139ef7ba612e34646086c7", "version" : "0.10.1" } }, { "identity" : "swift-argument-parser", "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-argument-parser", "state" : { "revision" : "fee6933f37fde9a5e12a1e4aeaa93fe60116ff2a", "version" : "1.2.2" } }, { "identity" : "swift-async-algorithms", "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-async-algorithms", "state" : { "revision" : "9cfed92b026c524674ed869a4ff2dcfdeedf8a2a", "version" : "0.1.0" } }, { "identity" : "swift-case-paths", "kind" : "remoteSourceControl", "location" : "https://github.com/pointfreeco/swift-case-paths.git", "state" : { "revision" : "fc45e7b2cfece9dd80b5a45e6469ffe67fe67984", "version" : "0.14.1" } }, { "identity" : "swift-collections", "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-collections", "state" : { "branch" : "release/1.1", "revision" : "8c7b8536ea0d21faeeb05229aa7537e9e2636794" } }, { "identity" : "swift-log", "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-log.git", "state" : { "revision" : "32e8d724467f8fe623624570367e3d50c5638e46", "version" : "1.5.2" } }, { "identity" : "swift-protobuf", "kind" : "remoteSourceControl", "location" : "https://github.com/GoodNotes/swift-protobuf.git", "state" : { "revision" : "613298d913ef3b234ce5a7ff9a9d1ab52c1bcc25", "version" : "1.20.3" } }, { "identity" : "swift-snapshot-testing", "kind" : "remoteSourceControl", "location" : "https://github.com/pointfreeco/swift-snapshot-testing", "state" : { "revision" : "cef5b3f6f11781dd4591bdd1dd0a3d22bd609334", "version" : "1.11.0" } }, { "identity" : "swiftcheck", "kind" : "remoteSourceControl", "location" : "git@github.com:typelift/SwiftCheck.git", "state" : { "revision" : "077c096c3ddfc38db223ac8e525ad16ffb987138", "version" : "0.12.0" } }, { "identity" : "swiftcsv", "kind" : "remoteSourceControl", "location" : "https://github.com/swiftcsv/SwiftCSV.git", "state" : { "revision" : "96fa14b92e88e0befdbc8bc31c7c2c9594a30060", "version" : "0.8.1" } }, { "identity" : "swifttreesitter", "kind" : "remoteSourceControl", "location" : "https://github.com/ChimeHQ/SwiftTreeSitter", "state" : { "revision" : "df25a52f72ebc5b50ae20d26d1363793408bb28b", "version" : "0.7.1" } }, { "identity" : "swiftui-introspect", "kind" : "remoteSourceControl", "location" : "https://github.com/siteline/SwiftUI-Introspect", "state" : { "revision" : "84196bab1c7f05ad8c3c2a5bfb3058b1211e189f", "version" : "0.6.1" } }, { "identity" : "swiftui-webview", "kind" : "remoteSourceControl", "location" : "https://github.com/kylehickinson/SwiftUI-WebView", "state" : { "revision" : "a67dcaff2377573a51f75761bb6e768b78931909", "version" : "0.3.0" } }, { "identity" : "swiftybeaver", "kind" : "remoteSourceControl", "location" : "https://github.com/SwiftyBeaver/SwiftyBeaver", "state" : { "revision" : "12b5acf96d98f91d50de447369bd18df74600f1a", "version" : "1.9.6" } }, { "identity" : "swiftydropbox", "kind" : "remoteSourceControl", "location" : "https://github.com/GoodNotes/SwiftyDropbox.git", "state" : { "branch" : "feature/spm", "revision" : "be78fe0edd28b5bce337354b972a5e8bbeb05235" } }, { "identity" : "swiftymarkdown", "kind" : "remoteSourceControl", "location" : "https://github.com/SimonFairbairn/SwiftyMarkdown.git", "state" : { "revision" : "dde451ab4ed9b77b328e21baa471fdfa0cf61369", "version" : "1.2.4" } }, { "identity" : "tpl", "kind" : "remoteSourceControl", "location" : "git@github.com:GoodNotes/tpl.git", "state" : { "revision" : "9ccd0b656236025902baec7248c8f4dad746ced2" } }, { "identity" : "uiimageviewalignedswift", "kind" : "remoteSourceControl", "location" : "https://github.com/sochalewski/UIImageViewAlignedSwift", "state" : { "revision" : "c51914ca25aa3721da1812fa0d4d69064e778391", "version" : "0.8.3" } }, { "identity" : "uritemplate.swift", "kind" : "remoteSourceControl", "location" : "https://github.com/kylef/URITemplate.swift.git", "state" : { "branch" : "master", "revision" : "a309673fdf86e4919a0250730e461ac533a03b3a" } }, { "identity" : "userleap-ios-sdk-releases", "kind" : "remoteSourceControl", "location" : "https://github.com/GoodNotes/userleap-ios-sdk-releases", "state" : { "revision" : "dd9fab059512491917095af68b92e612dc472f5f", "version" : "4.13.0" } }, { "identity" : "webrtc", "kind" : "remoteSourceControl", "location" : "https://github.com/stasel/WebRTC.git", "state" : { "revision" : "a08c6eecc40dce290b108bb9bb53040c0b478077", "version" : "111.0.0" } }, { "identity" : "xctest-dynamic-overlay", "kind" : "remoteSourceControl", "location" : "https://github.com/pointfreeco/xctest-dynamic-overlay", "state" : { "revision" : "62041e6016a30f56952f5d7d3f12a3fd7029e1cd", "version" : "0.8.3" } }, { "identity" : "zipfoundation", "kind" : "remoteSourceControl", "location" : "https://github.com/weichsel/ZIPFoundation.git", "state" : { "revision" : "22bfd0ad22e1b2057088180e8e9c66e204755098" } } ], "version" : 2 } ```
If using CocoaPods, the project's Podfile.lock
Expand
Podfile.lock
snippet```yml Replace this line with the contents of your Podfile.lock! ```