iTorrent
iTorrent copied to clipboard
Why it crashes?
torrentLocalPath
"/var/mobile/Containers/Data/Application/A8CC1F82-58BF-4375-835E-4A31D1DF1467/Library/Caches/DiskFiles/faeeb9594b3d4c4594ef311e5fbe48c8.torrent"
Thread 1: EXC_BAD_ACCESS (code=1, address=0x1f)
Need more context. How to reproduce? Attach torrent file if crash specific to it.
Attach torrent file if crash specific to it. I tried a lot of torrent files and they crashed. The file path is real and valid. Why does it crash when I join the download queue. Is there a problem with the SDK method call?
Tell me steps for reproduce, I have no problems with torrent adding. As I see, the code on screenshot is not mine, so how I could tell you “why it’s crashing”?
Tell me steps for reproduce, I have no problems with torrent adding. As I see, the code on screenshot is not mine, so how I could tell you “why it’s crashing”?
I think so too, maybe there is a problem with my calling method. The way to reproduce is very simple, I integrated ITorrentframework into my project
- Download the torrent file
`
let temp = TorrentSdk.getFilesOfTorrentByPath(path: torrentLocalPath)!
let files = temp.files
files.forEach { $0.priority = .normalPriority }
if let hash = TorrentSdk.getTorrentFileHash(torrentPath: torrentLocalPath) {
TorrentSdk.addTorrent(torrentPath: torrentLocalPath, states: files.map { $0.priority })
TorrentSdk.startTorrent(hash: hash)
}
` 3."TorrentSdk.addTorrent" crashed I think I may have missed some configuration. I am also looking at the ITorrent APP to find the problem, thank you very much for your answer