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
In the MZDownload.swift
in the " func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64)"
I am getting a bunch of crashes. It is always an index out of bounds exception on Line 210.
It seems as though while the download model is being updated asynchrounously, the download array is updated and the downloadingArray no longer contains the download model at the index specified.
The text was updated successfully, but these errors were encountered:
I've looked into it a bit more, and adding the check just causes weird behaviour (although with no crashes).
Pulling the inner logic out of the async block seems to fix the issue. Is there a reason that the inner logic is wrapped in a async block?
Object 0x2821a1a40 deallocated with retain count 2, reference mav have escaped from deinit. 2023-05-22 13:52:43.944428+0530 Pilgrim_app_jos[64500:11735455] Object 0x2821a1a40 deallocated with retain count 2, reference mav have escaped from deinit
In the MZDownload.swift
in the " func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64)"
I am getting a bunch of crashes. It is always an index out of bounds exception on Line 210.
It seems as though while the download model is being updated asynchrounously, the download array is updated and the downloadingArray no longer contains the download model at the index specified.
The text was updated successfully, but these errors were encountered: