I/O error when trying to rename torrent files #238

Closed
opened 2026-02-21 14:57:48 -05:00 by deekerman · 8 comments
Owner

Originally created by @wget on GitHub (Dec 8, 2012).

Hi,

The title says it all.

After having downloaded a torrent file which has several files in it or not (it doesn't matter for this bug), and I try to rename some file from the qBittorrent UI at the bottom of the initial tab (after clicked on Content button), I got an I/O error displayed from the systray and sharing for this torrent file stopped.

This bug is Windows specific, as I couldn't reproduce it on ArchLinux.

Regards,

Originally created by @wget on GitHub (Dec 8, 2012). Hi, The title says it all. After having downloaded a torrent file which has several files in it or not (it doesn't matter for this bug), and I try to rename some file from the qBittorrent UI at the bottom of the initial tab (after clicked on Content button), I got an I/O error displayed from the systray and sharing for this torrent file stopped. This bug is Windows specific, as I couldn't reproduce it on ArchLinux. Regards,
deekerman 2026-02-21 14:57:48 -05:00
Author
Owner

@cdumez commented on GitHub (Dec 8, 2012):

@sledgehammer999 Could you look at this when you get a chance please?

@cdumez commented on GitHub (Dec 8, 2012): @sledgehammer999 Could you look at this when you get a chance please?
Author
Owner

@sledgehammer999 commented on GitHub (Dec 8, 2012):

I cannot reproduced. I use 3.0.6 on Windows XP sp2. This is what I did:

  1. Added torrent to qbittorrent(both single file and multi file)
  2. Selected torrent and clicked on "Content" tab
  3. Right-clicked on an item and selected "Rename..."
  4. Chose random name and clicked ok.
  5. No i/o errors and the file was renamed instantly on the disk.

Also I saved it to an internal NTFS disk.

Do you do something differently?

@sledgehammer999 commented on GitHub (Dec 8, 2012): I cannot reproduced. I use 3.0.6 on Windows XP sp2. This is what I did: 1. Added torrent to qbittorrent(both single file and multi file) 2. Selected torrent and clicked on "Content" tab 3. Right-clicked on an item and selected "Rename..." 4. Chose random name and clicked ok. 5. No i/o errors and the file was renamed instantly on the disk. Also I saved it to an internal NTFS disk. Do you do something differently?
Author
Owner

@wget commented on GitHub (Dec 8, 2012):

In answer to your comment, I retried.
Renaming simple file structure successes, but with files located in folders (as specified by the torrent) it fails when I try to rename the folder.

#Windows7 btw.

@wget commented on GitHub (Dec 8, 2012): In answer to your comment, I retried. Renaming simple file structure successes, but with files located in folders (as specified by the torrent) it fails when I try to rename the folder. #Windows7 btw.
Author
Owner

@wget commented on GitHub (Dec 8, 2012):

Here is a screenshot. If you need it without uncensored, please let me know.
Before the Reason statement, you have the torrent file name, and after the location of this folder.
qBittorrent.png

@wget commented on GitHub (Dec 8, 2012): Here is a screenshot. If you need it without uncensored, please let me know. Before the Reason statement, you have the torrent file name, and after the location of this folder. ![qBittorrent.png](https://f.cloud.github.com/assets/2997662/2054/2facd3d8-417f-11e2-9291-fef024052108.png)
Author
Owner

@sledgehammer999 commented on GitHub (Dec 8, 2012):

I got it to throw an error too this way:

  1. Add a multifile torrent to qbittorrent
  2. Select torrent and click on "Content" tab
  3. Right-clicked on the torrent's folder(root folder/first item) select "Rename..."
  4. Choose random name and click ok.
  5. The new folder will be created with zero sized files. (The download will continue as if nothing happened)
  6. Exit qbittorrent and launch it again
  7. After a few seconds it throws an IO error.

I'll try to debug, but I suspect that this is libtorrent related.

@sledgehammer999 commented on GitHub (Dec 8, 2012): I got it to throw an error too this way: 1. Add a multifile torrent to qbittorrent 2. Select torrent and click on "Content" tab 3. Right-clicked on the torrent's folder(root folder/first item) select "Rename..." 4. Choose random name and click ok. 5. The new folder will be created with zero sized files. (The download will continue as if nothing happened) 6. Exit qbittorrent and launch it again 7. After a few seconds it throws an IO error. I'll try to debug, but I suspect that this is libtorrent related.
Author
Owner

@cdumez commented on GitHub (Dec 8, 2012):

@sledgehammer999 Just in case, you should probably take a look at PropertiesWidget::renameSelectedFile().

@cdumez commented on GitHub (Dec 8, 2012): @sledgehammer999 Just in case, you should probably take a look at PropertiesWidget::renameSelectedFile().
Author
Owner

@nivensd commented on GitHub (Dec 16, 2012):

I get this error on ArchLinux when I try to rename the torrent itself or the folder containing the files.

@nivensd commented on GitHub (Dec 16, 2012): I get this error on ArchLinux when I try to rename the torrent itself or the folder containing the files.
Author
Owner

@sledgehammer999 commented on GitHub (Mar 9, 2013):

This was fixed either as a sideffect of pull request #295 or in new libtorrent code. I cannot reproduce it in git master code compiled with the RC_0_16 branch of libtorrent.

Can you confirm also? Try my alpha builds from here: http://qbforums.shiki.hu/index.php?topic=1747.msg5814#msg5814

I will reopen this if you comment that you can still reproduce the bug with my alpha builds.

@sledgehammer999 commented on GitHub (Mar 9, 2013): This was fixed either as a sideffect of pull request #295 or in new libtorrent code. I cannot reproduce it in git master code compiled with the RC_0_16 branch of libtorrent. Can you confirm also? Try my alpha builds from here: http://qbforums.shiki.hu/index.php?topic=1747.msg5814#msg5814 I will reopen this if you comment that you can still reproduce the bug with my alpha builds.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/qBittorrent#238
No description provided.