please describe what symptom you see, what you would expect to see instead and
how to reproduce it.
11/12/24 12:03 AM - File error alert. Torrent: "...". Reason: "... file_mmap (...) error: Invalid argument"
start a torrent that creates a several files in a subdirectory
start the torrent
stop the torrent
remove a file in a subdir and touch it, so it exists with zero bytes
force recheck
I think I triggered this by using an older version of qbittorrent that would touch files at zero bytes, then switched to qbittorrent that used new mmap version of libtorrent which caused this error, but it's easy to reproduce using the procedure with just latest libtorrent. I tried on a simple torrent that didn't use subdirectories, and the force recheck didn't have any issues, so I used a torrent that creates lots of subdirs and it triggered immediately when following my procedure.
Please provide the following information
libtorrent version (or branch):
please describe what symptom you see, what you would expect to see instead and how to reproduce it. 11/12/24 12:03 AM - File error alert. Torrent: "...". Reason: "... file_mmap (...) error: Invalid argument"
I think I triggered this by using an older version of qbittorrent that would touch files at zero bytes, then switched to qbittorrent that used new mmap version of libtorrent which caused this error, but it's easy to reproduce using the procedure with just latest libtorrent. I tried on a simple torrent that didn't use subdirectories, and the force recheck didn't have any issues, so I used a torrent that creates lots of subdirs and it triggered immediately when following my procedure.
This was reported as well in qbittorrent here, but I couldn't find if it was reported here: https://github.com/qbittorrent/qBittorrent/issues/20398