qBittorrent icon indicating copy to clipboard operation
qBittorrent copied to clipboard

Deleting Files Loaded in qBittorrent causes crash

Open pmayeur opened this issue 1 year ago • 14 comments

qBittorrent & operating system versions

qBittorrent: 4.6.2 x64 Operating system: Windows 10 Pro 21H1/19043.1415 x64 (10.0.19043)

What is the problem?

If a torrent is currently not paused but idle (not uploading or downloading) and you delete the files from the filesystem, some time in the future qbittorrent will freeze and crash once opened.

It doesnt seem a crash report is created, at least there is none in \AppData\Local\qBittorrent\logs

Steps to reproduce

  1. Download some files.
  2. While qbittorrent is running but files are not actively uploading or downloading delete files from filesystem
  3. Wait, eventually qbittorrent will freeze and crash

Additional context

No response

Log(s) & preferences file(s)

No response

pmayeur avatar Feb 02 '24 15:02 pmayeur

@pmayeur please look in %LOCALAPPDATA%\CrashDumps for any *.dmp files

xavier2k6 avatar Feb 02 '24 15:02 xavier2k6

@pmayeur They appear to be old dumps.

run eventvwr & proceed to Windows Logs->Application & see if any errors relating to qBittorrent

xavier2k6 avatar Feb 02 '24 16:02 xavier2k6

Those may have been from previous versions of qbittorrent (4.6.2). I upgraded to 4.6.3 today which is why i had the wrong version in the original description (edited). When it happens again I will link a new dump. Though this has been going on for a long time so I dont think version is too relevant. (Previous Issue: https://github.com/qbittorrent/qBittorrent/issues/16356)

To answer your request

Faulting application name: qbittorrent.exe, version: 4.6.2.0, time stamp: 0x65650cfa Faulting module name: qbittorrent.exe, version: 4.6.2.0, time stamp: 0x65650cfa Exception code: 0xc0000409 Fault offset: 0x0000000000be06f7 Faulting process id: 0x51d4 Faulting application start time: 0x01da530809b4fd9e Faulting application path: C:\Program Files\qBittorrent\qbittorrent.exe Faulting module path: C:\Program Files\qBittorrent\qbittorrent.exe Report Id: 131be6a9-a858-4519-b904-8a4fdeb16d55 Faulting package full name: Faulting package-relative application ID:

Faulting application name: qbittorrent.exe, version: 4.6.2.0, time stamp: 0x65650cfa Faulting module name: qbittorrent.exe, version: 4.6.2.0, time stamp: 0x65650cfa Exception code: 0xc0000409 Fault offset: 0x0000000000be06f7 Faulting process id: 0x1838 Faulting application start time: 0x01da512e0e0f3b79 Faulting application path: C:\Program Files\qBittorrent\qbittorrent.exe Faulting module path: C:\Program Files\qBittorrent\qbittorrent.exe Report Id: 193672ce-7020-41c7-8674-68dddd765e2f Faulting package full name: Faulting package-relative application ID:

pmayeur avatar Feb 02 '24 16:02 pmayeur

@pmayeur Can you run sfc /scannow in an elevated command prompt (administrator) & show results?

Which libtorrent version are you using?

xavier2k6 avatar Feb 02 '24 16:02 xavier2k6

Scan results:

CBS.log

libtorrent: 1.2.19.0

pmayeur avatar Feb 02 '24 17:02 pmayeur

@pmayeur Can you reproduce with libtorrent: 2.0.9 based build?

xavier2k6 avatar Feb 02 '24 17:02 xavier2k6

I will try, but looks like you can't have both versions of qbittorrent running at the same time.

pmayeur avatar Feb 02 '24 17:02 pmayeur

Can you run both versions of qbittorrent simultaneously? If so, I can try

You can extract files to a folder, say on your desktop & create a folder inside called profile

You will be able to add an example torrent for crash recreation purposes.......all settings will be default!

example:

Screenshot 2024-02-02 171154

xavier2k6 avatar Feb 02 '24 17:02 xavier2k6

@pmayeur If you are not comfortable with this, can you please provide an example torrent for testing

xavier2k6 avatar Feb 02 '24 17:02 xavier2k6

I am now using qbittorrent with libtorrent 2.0.9

I will try to reproduce and report back

pmayeur avatar Feb 03 '24 12:02 pmayeur

@xavier2k6 thanks for your help. I got another reproduction.

Here is the newest dmp and eventwr qbittorrent.exe.8392.dmp

Faulting application name: qbittorrent.exe, version: 4.6.3.0, time stamp: 0x65a478a1 Faulting module name: qbittorrent.exe, version: 4.6.3.0, time stamp: 0x65a478a1 Exception code: 0xc0000409 Fault offset: 0x0000000000c5cc77 Faulting process id: 0x20c8 Faulting application start time: 0x01da569a5fdb2045 Faulting application path: C:\Program Files\qBittorrent\qbittorrent.exe Faulting module path: C:\Program Files\qBittorrent\qbittorrent.exe Report Id: 5098e341-6ed6-433e-a0dd-ca287ee4ac75 Faulting package full name: Faulting package-relative application ID:

pmayeur avatar Feb 05 '24 12:02 pmayeur

qbittorrent.exe.15476.dmp

Here is another (downgraded lib torrent back to 1.x because 2.x has super laggy UX)

pmayeur avatar Feb 09 '24 00:02 pmayeur

I dont know how to remove the label "Waiting for Info". I think I've provided the info.

pmayeur avatar Feb 11 '24 17:02 pmayeur

OK, this happens after you "RIGHT CLICK"

So delete something from your system that is loaded but not actively transferring data. Wait 3 hours. Right click on a torrent in qbittorrent.

pmayeur avatar Mar 27 '24 22:03 pmayeur

Right click on a torrent in qbittorrent.

Is it the torrent that you deleted from the system or is it on any torrent?

Is it happening with libtorrent 1.2.x / 2.0.x or with both? (as I note you downgraded back to 1.2.x)

I just want to be clear on qBittorrent version being used & libtorrent version.

xavier2k6 avatar Mar 28 '24 10:03 xavier2k6