You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Specifically, these crashes started appearing in large numbers after an update that introduced a new resetDatabase() method. This method is called on some users' devices and always after Firebase.configure(). Here is the method:
extensionCoreDataMainContext{func resetDatabase(){self.managedObjectContext.perform{do{tryself.stack.persistentStoreCoordinator.managedObjectModel.entities.forEach{ entity in
if let name = entity.name {letfetch=NSFetchRequest<NSFetchRequestResult>(entityName: name)letrequest=NSBatchDeleteRequest(fetchRequest: fetch)tryself.managedObjectContext.execute(request)}}tryself.managedObjectContext.save()}catch{print("Reset database failure with error: \(error.localizedDescription)")}}}}
In my understanding, this resetDatabase() should only affect a specific CoreDataStack. Even if Firebase also uses SQLite, it shouldn't be affected, right? I noticed issue #12796 mentioned a similar situation, but it seems there hasn't been a conclusion yet.
I'm attaching some related stack traces here. If you need any other information or if there's something I might have done wrong, please let me know. Thanks for all your hard work for the community, you guys are really doing a great job.
Sorry for the delayed response due to the crash issues we've been dealing with over the past couple of days.
Earlier today, we confirmed that these crashes, including the BBSCRUtility issue, were caused by an obfuscation tool provided by one of our suppliers. Over the past month, this supplier has consistently denied any issues with their tool, which is why we did not initially suspect or test it.
Most of the crash reports were related to APM, which is why I chose to open an issue here. After removing the obfuscation tool, the APM, store_shellcode, and BBSCRUtility issues have not reoccurred.
I apologize for any inconvenience and for taking up your time with this issue. I am also sorry for opening an issue here before thoroughly investigating the root cause on my end. 🙏
Description
Since our app's release of a certain version update, there has been a huge amount of random crashes related to APM, such as:
and so on.
Specifically, these crashes started appearing in large numbers after an update that introduced a new
resetDatabase()
method. This method is called on some users' devices and always afterFirebase.configure()
. Here is the method:In my understanding, this
resetDatabase()
should only affect a specific CoreDataStack. Even if Firebase also uses SQLite, it shouldn't be affected, right? I noticed issue #12796 mentioned a similar situation, but it seems there hasn't been a conclusion yet.I'm attaching some related stack traces here. If you need any other information or if there's something I might have done wrong, please let me know. Thanks for all your hard work for the community, you guys are really doing a great job.
stacktrace.zip
Reproducing the issue
No response
Firebase SDK Version
10.22.1
Xcode Version
15.3
Installation Method
Swift Package Manager
Firebase Product(s)
Analytics, Crashlytics, DynamicLinks
Targeted Platforms
iOS
Relevant Log Output
No response
If using Swift Package Manager, the project's Package.resolved
Expand
Package.resolved
snippetIf using CocoaPods, the project's Podfile.lock
Expand
Podfile.lock
snippetReplace this line with the contents of your Podfile.lock!
The text was updated successfully, but these errors were encountered: