-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
Description
Description
Firebase pod Firebase/MLModelDownloader crashing when I attempt to download model from firebase
Thread 17: "Task created in a session that has been invalidated"
An abort signal terminated the process. Such crashes often happen because of an uncaught exception or unrecoverable error or calling the abort() function.
function
func downloadFile(with url: URL,
progressHandler: @escaping (Int64, Int64) -> Void,
completion: @escaping (Result<FileDownloaderResponse, Error>) -> Void) {
// TODO: Fail if download already in progress.
self.completion = completion
self.progressHandler = progressHandler
let downloadTask = downloadSession.downloadTask(with: url)
// Begin or resume model download.
downloadTask.resume()
self.downloadTask = downloadTask
}
Reproducing the issue
No response
Firebase SDK Version
11.15.0
Xcode Version
Version 16.4
Installation Method
CocoaPods
Firebase Product(s)
ML Model Downloader
Targeted Platforms
iOS
Relevant Log Output
*** Terminating app due to uncaught exception 'NSGenericException', reason: 'Task created in a session that has been invalidated'
*** First throw call stack:
(0x18b3480c0 0x1887e1abc 0x18ca3f780 0x18c809158 0x105445040 0x1054581c8 0x1054542c4 0x10545799c 0x1054579cc 0x10545440c 0x107402064 0x1073f919c 0x1054538d4 0x105457604 0x10545d808 0x10545e338 0x10545b488 0x18c87c634 0x18c87c3fc 0x1073e8584 0x107402064 0x1073f091c 0x1073f15d8 0x1073fd894 0x1073fceb0 0x2156e0a0c 0x2156e0aac)
libc++abi: terminating due to uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSGenericException', reason: 'Task created in a session that has been invalidated'
*** First throw call stack:
(0x18b3480c0 0x1887e1abc 0x18ca3f780 0x18c809158 0x105445040 0x1054581c8 0x1054542c4 0x10545799c 0x1054579cc 0x10545440c 0x107402064 0x1073f919c 0x1054538d4 0x105457604 0x10545d808 0x10545e338 0x10545b488 0x18c87c634 0x18c87c3fc 0x1073e8584 0x107402064 0x1073f091c 0x1073f15d8 0x1073fd894 0x1073fceb0 0x2156e0a0c 0x2156e0aac)
terminating due to uncaught exception of type NSException
Message from debugger: killedIf 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!