qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
25.89k stars 3.82k forks source link

Frequent crashing after opening qbittorent after a night of seeding #20869

Open UsmanTariq2 opened 1 month ago

UsmanTariq2 commented 1 month ago

qBittorrent & operating system versions

qBittorent : 4.6.4 Windows: 11

What is the problem?

After a night of seeding, when i open qbittorrent, it crashes and closes without a message of any kind

Steps to reproduce

No response

Additional context

No response

Log(s) & preferences file(s)

qbittorrent.log qBittorrent.zip

thalieht commented 1 month ago

it crashes and closes without a message of any kind

Not according to your log:

qBittorrent termination initiated qBittorrent is now ready to exit

UsmanTariq2 commented 1 month ago

Yeah there are multiple log files . Dont know which one of them has the crash information. Here all multiple logs.zip

If they not there then crash info is not in log file since this is 1 day of logs

thalieht commented 1 month ago

Yeah i don't think a crash would appear in logs. Anyway if it's a crash and you want to help https://github.com/qbittorrent/qBittorrent/issues/5785#issuecomment-250839116 FYI without steps to reproduce or a stacktrace there is nothing we can do to find the problem so we may as well close the issue if you don't want to do what's in the link.

xavier2k6 commented 1 month ago

@UsmanTariq2 If there really is a crash happening, which could be a silent CTD (Crash To Desktop) scenario - there should be some *.dmp files in %LOCALAPPDATA%\CrashDumps or %userprofile%\AppData\Roaming\qBittorrent or there should be some information/error report under Windows Logs->Application of eventvwr

If there are *.dmp files, could you please provide them.

Examples: Screenshot 2024-05-22 100625


Screenshot 2024-05-22 100547

UsmanTariq2 commented 1 month ago

I did not find a *.dmp file at either location

I did find the crash event in Event viewer crash.zip

xavier2k6 commented 1 month ago

I did not find a *.dmp file at either location

I did find the crash event in Event viewer crash.zip

shows a 0XC0000409 exception...

@UsmanTariq2 In your logs, there are a large quantity of part file read alerts for a multitude of torrents.....have they been removed from your D:\ by any chance?

UsmanTariq2 commented 1 month ago

U mean basically missing torrent files on local disk?

UsmanTariq2 commented 1 month ago

The answer is on drive D i have been downloading a single torrent in parts, selective files, then deleting them as i dont need them anymore and then downloading other parts of the torrent . So yes I do have 1 torrent like that

Some of the files are occupying the disk space but not downloaded. I have deleted those. They were probably created because i accidently clicked on the whole folder Hope that helps

xavier2k6 commented 1 month ago

Some of the files are occupying the disk space but not downloaded. I have deleted those.

Ahh....another user reported something similar to this previously I believe.

UsmanTariq2 commented 1 month ago

Link me to it, mabye i can corroborate

xavier2k6 commented 1 month ago

Link me to it, mabye i can corroborate

It may or may not be same/similar to this #20362

Can you also run sfc /scannow in an elevated command prompt to ensure no corrupt OS files.

BTW what version & build of Windows 11 is this on?

UsmanTariq2 commented 1 month ago

Ok it crashed again, same steps 1- Uncheck multiple files from a torrent inside qbittorent 2- Delete SOME of those files from your harddisk ( leave some there). Now there is a mismatch of files in hdd and in qbttorrent 3- Minimize the qbittorent and let it seed for a while ( 30 mins for me) 4- Upon maximizing briefly gets stuck and crashes without any message.

Other logs provided above. Hope thats enough for replication

xavier2k6 commented 1 month ago

@UsmanTariq2 Please update to qBittorrent 4.6.5.

If you still experience this issue/can reliably reproduce with that version & are willing to apply a debugger with defined rules, please let me know as I can't repro with current steps.

UsmanTariq2 commented 1 month ago

i upgraded to 4.6.5, let me check if that still happens. WIll report back .Yes i would be willing to do apply a debugger

UsmanTariq2 commented 2 weeks ago

Hello, Please tell me how do i apply the debugger so i can provide you with the information

xavier2k6 commented 2 weeks ago

I presume that it's still happening with 4.6.5?? as you were going to update/feedback.

UsmanTariq2 commented 2 weeks ago

yes it is still present

xavier2k6 commented 2 weeks ago

yes it is still present

Ok, I'll come back to you over the weekend.

UsmanTariq2 commented 2 weeks ago

Link the instructions for the debugger, i can follow them. Otherwise im waiting

xavier2k6 commented 2 weeks ago

To aid us in any silent CTD (Crash To Desktop) scenario on Windows OS, where no user presented Crash Report is provided.

Close any instance of qBittorrent!

Please download & install Debug Diagnostic Tool

Download & extract these predefined rules -> DebugDiag_Rules_14.Jun.24.zip to your desktop or where you would like to.

Screenshot 2024-03-13 131806

Run DebugDiag 2 Collection from your start menu. (There may be a COM+ dialog pop-up) On the bottom right of the main window, you will find an Import button. Click the Import button & point it to where you extracted the rules above. DebugDiag_Rules_14.Jun.24.ddconfig The debugger rules should show active. You may now start qBittorrent As soon as there's a crash while running qBittorrent - it will capture a "stacktrace"

This will hopefully help point us in the right direction to where there's a problem in the program.

Please provide any qBittorrent related logs from C:\Program Files\DebugDiag\Logs (This should contain stack traces we need)

NOTE:

Your memory usage will probably increase more so than normal & the program itself may become unresponsive for a period of time or lag in certain user interactions due to having a debugger attached.

As soon as a crash occurs/stacktrace is created, it will be ok to "deactivate rules" & exit the debugger.

UsmanTariq2 commented 2 weeks ago

Also, qbitorrent is consuming considerable cpu resources and getting my device heated up, whilst bittorent(recent switcher) didnt consume or heat up my device as much. Might be worth looking into as well

UsmanTariq2 commented 2 weeks ago

WIll get on this in a day or 2

xavier2k6 commented 6 days ago

@UsmanTariq2 Any further crashes??

UsmanTariq2 commented 6 days ago

DIdnt test it unfortunately. Will get on it

xavier2k6 commented 5 days ago

@UsmanTariq2 Can you also grab/install latest Microsoft Visual C++ Redistributable. Latest Microsoft Visual C++ Redistributable Version

UsmanTariq2 commented 5 days ago

will do