Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash Exception code: 0xc0000409 Windows Server 2012 R2 as Unraid VM #13143

Closed
skidaddl3 opened this issue Jul 15, 2020 · 72 comments
Closed

Crash Exception code: 0xc0000409 Windows Server 2012 R2 as Unraid VM #13143

skidaddl3 opened this issue Jul 15, 2020 · 72 comments
Labels
Crash OS: Windows Issues specific to Windows

Comments

@skidaddl3
Copy link

skidaddl3 commented Jul 15, 2020

qBittorrent version and Operating System

4.2.5
Windows Server 2012 R2

If on linux, libtorrent-rasterbar and Qt version

N/A (Unsure if Unraid is relevant)

What is the problem

Crash Exception code: 0xc0000409 when right click on UI after several hours of Qbittorrent working. The UI does stuggle to open upon launching Qbittorrent too. To show UI, typically after about a minute righ clicking on the system tray icon helps to left click and focus the UI to the desktop (show the UI)

What is the expected behavior

No crashing

Steps to reproduce

As per the problem

Extra info(if any)

No SFC integrity violations, DISM also found no problems.
I have a feeling it is to do with Unraid's shared folder design, as I am using a Cache SDD drive and it is technically full. I am getting a lot of "...not enough space on the disk" file error alerts in QB log, however I have set the Unraid shared folder for Qbittorrent's "working directory" as 'Prefer'. The problem is a 2TB Cache SSD seems not to be enough and I also set Qbittorrent to "Pre-allocate disk space for all files" to avoid a different kind of congestion.

Process memory priority: Normal
Save resume data interval: 3 min
Recheck torrents on completion: enabled
Transfer list interval: 1000ms
Async I/O threads: 512
File pool size: 40
I have recently reduced the "Outstanding memory when checking torrents" from 1024MiB to 64MiB
Disk cache: -1 (Auto)
Cache expiry interval: 60s
Enable OS cache: enabled
Coalesce reads & writes: enabled
Piece extent affinity: disabled
Everything else should be stock, standard.

image
image

@xavier2k6
Copy link
Member

@skidaddl3 can you try build below:

Windows test build of 4.3.0(Alpha1) with listed libraries:

qBittorrent master   | 4.3.0 +git 9dfeeb9
libtorrent-rasterbar | 1.2.7 +git 89419b1
Qt                   | 5.15.0
OpenSSL              | 1.1.1g
zlib                 | 1.2.11
Boost                | 1.73

"Windows Test Build" download link below:
qBittorrent master +git 9dfeeb9 with Boost 1.73 + Qt 5.15 + libtorrent 1.2.7 +git 89419b1

Is your memory overclocked?

Did you check your memory? How to Test Your Computer’s RAM for Problems

@skidaddl3
Copy link
Author

skidaddl3 commented Jul 16, 2020

image
Unraid config:
image

I will try your suggestion.

@skidaddl3
Copy link
Author

Just crashed. I left it running maximised (in the foreground).
I clicked on a running torrent and no response.
I clicked on the system tray icon and it appeared to have minimised.
I right clicked on the system tray icon and the crash dialogue popped up:
image

@FranciscoPombal
Copy link
Member

@skidaddl3

Do you have mapped network drives? Perhaps some that might not always be available as well?

@FranciscoPombal FranciscoPombal added Crash OS: Windows Issues specific to Windows labels Jul 16, 2020
@xavier2k6
Copy link
Member

xavier2k6 commented Jul 16, 2020

@FranciscoPombal I've been reviewing 0xC0000409 errors here on qBittorrent tracker.

It seems this issue is localized to just the 64bit version of qBittorrent

may have something to do with OpenSSL? - ref: #9865 (comment)

1st reported instance was way back in (2013) with qBittorrent 3.0.9 on windows 7 64bit Home in #558 but didn't raise it's head again until (2018) - unsure what version of OpenSSL is used in 3.0.9 but presume it was before 1.1.0/1.1.1 timeframe was 1.0.1 series

Perhaps, @skidaddl3 could use one of your builds so we could see if the issue lies in the way OpenSSL is compiled?

EDIT: also, it seems the portableapps version seems more susceptible to this type of error......a clean profile as mentioned in another thread seems to not exhibit this issue.

EDIT: Interesting -> openssl/openssl#1592

@xavier2k6
Copy link
Member

@skidaddl3 next time #13143 (comment) appears or you reproduce, can you provide the details (copy/paste) what's in the scrollable window please?

@skidaddl3
Copy link
Author

skidaddl3 commented Jul 16, 2020

Thank you for your help, in any case! I'm sure others experiencing this appreciate it too.

Do you have mapped network drives? Perhaps some that might not always be available as well?

Yes, it is an Unraid SMB share:
tempsnip
It doesn't appear to be "not always available", as I would notice Windows having a connected drive whinge.
However, as mentioned in OP, Unraid has a special "mover" method when the share is set to "Prefer" or "Yes" to make use of a Cache drive (it can be any drive, SSD or HDD etc.). The array has quite slow writes and also I don't want a significant amount of array HDDs spinning due to torrents.

@skidaddl3 next time #13143 (comment) appears or you reproduce, can you provide the details (copy/paste) what's in the scrollable window please?

No dramas, I'll attempt to provide this when it occurs. I also tried looking for some kind of dump, however that the memory is 30GB, I wouldn't want to sieve through such data or be uploading it somewhere. I suppose I could/should lower that ceiling anyway...

@skidaddl3
Copy link
Author

And as I was writing the previous reply, QB has crashed.
I had the Execution Log tab open and I clicked back to the Transfers tab. The UI hung for a while and crashed without changing to the tab (still showing Execution Log tab).

Here is the crash text:
Problem signature:
Problem Event Name: BEX64
Application Name: qbittorrent.exe
Application Version: 4.3.0.0
Application Timestamp: 5ee6cfe1
Fault Module Name: qbittorrent.exe
Fault Module Version: 4.3.0.0
Fault Module Timestamp: 5ee6cfe1
Exception Offset: 0000000000dc8d2f
Exception Code: c0000409
Exception Data: 0000000000000007
OS Version: 6.3.9600.2.0.0.272.7
Locale ID: 3081
Additional Information 1: 0407
Additional Information 2: 0407b4561cc1b7af98f2989579c795d8
Additional Information 3: 2c9c
Additional Information 4: 2c9c03760ee46701d8d990ace0b0dae4

@skidaddl3
Copy link
Author

skidaddl3 commented Jul 16, 2020

I have reverted to 4.2.5 for now, because I think the beta had an issue with the Web UI connection profile as I couldn't connect on a remote computer. Even after re-setting the username/password.
That's not a big deal if you would like me to test further anything else with the beta or other builds. I feel like I can or am contributing.

Edit: Well the Web UI connection issue was to do with the Windows Firewall incoming rules, because I placed the 4.3.0(Alpha1) executable in a subfolder of qbittorrent's program file folder. (facepalm) Maybe there is some correlation with that webui connection, automatically adding torrents and the amount already in qbittorrent? I will check with a two-day run at least, after I find that the stack trace occurs in version 4.3.0(Alpha1)

@xavier2k6
Copy link
Member

xavier2k6 commented Jul 16, 2020

@skidaddl3 unfortunately, there's nothing in that info that's helpful from what i can see.

Please download & install Debug Diagnostic Tool v2 Update 3

(It would be great if you could do this for 4.2.5 build & 4.3.0alpha master build, if not too much hassle)

Download & extract these predefined rules
qBittorrent DebugDiag Rules_26.03.2020_Full PageHeap Enabled.zip to your desktop or where you would like to.

Run DebugDiag 2 Collection from your start menu.
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.
The debugger rules should show active & as soon as there's a crash - it will capture a "stacktrace"

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

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

As soon as a stacktrace is created, it will be ok to deactivate the rules & close/detach the debugger from qBittorrent

@FranciscoPombal
Copy link
Member

FranciscoPombal commented Jul 16, 2020

Possibly related to #13138, #13069.

@xavier2k6

Such builds are here:<removed inactive link to build it was a build of 83f1028 with the following patch on top>:

diff --git a/src/base/bittorrent/session.cpp b/src/base/bittorrent/session.cpp
index af6df18ae..c1a36ce1f 100644
--- a/src/base/bittorrent/session.cpp
+++ b/src/base/bittorrent/session.cpp
@@ -4718,7 +4718,7 @@ void Session::handleStateUpdateAlert(const lt::state_update_alert *p)
 void Session::handleSocks5Alert(const lt::socks5_alert *p) const
 {
     if (p->error) {
-        LogMsg(tr("SOCKS5 proxy error. Message: %1").arg(QString::fromStdString(p->message()))
+        LogMsg(tr("SOCKS5 proxy error. Message: %1 | error.message(): %2").arg(QString::fromStdString(p->message()), QString::fromStdString (p->error.mess      16 age()))
             , Log::WARNING);
     }
 }

diff --git a/src/base/bittorrent/torrenthandleimpl.cpp b/src/base/bittorrent/torrenthandleimpl.cpp
index 062ec56a7..09ddee2da 100644
--- a/src/base/bittorrent/torrenthandleimpl.cpp
+++ b/src/base/bittorrent/torrenthandleimpl.cpp
@@ -1417,6 +1417,9 @@ void TorrentHandleImpl::handleTrackerErrorAlert(const lt::tracker_error_alert *p
 
     m_trackerInfos[trackerUrl].lastMessage = message;
 
+    LogMsg(tr("<tracker_error_alert> error: %1 | failure reason: %2")
+        .arg(QString::fromStdString(p->error.message()), p->error_message()), Log::WARNING);
+
     // Starting with libtorrent 1.2.x each tracker has multiple local endpoints from which
     // an announce is attempted. Some endpoints might succeed while others might fail.
     // Emit the signal only if all endpoints have failed.

@skidaddl3
Copy link
Author

Your memory usage will probably increase more so than normal & the program itself may become unresponsive for a period of time due to having a debugger attached.
As soon as a stacktrace is created, it will be ok to deactivate the rules & close/detach the debugger from qBittorrent

Last night, QB did take a very long time to load to the point I left it, without the UI showing up. Now the UI is showing, it does appear to be running slow (even transfer speeds showing low speeds ~40KB/s, expect 5MB/s). I try interacting with transfers and nothing appears to be happening, no response. I am running version 4.2.5 with the debugger. Oh and as I was writing this, the right click Properties list has shown up.

image

I am going to reboot my Unraid server, because it is reporting strange behaviour. After, I will re-run the debugging process.

@skidaddl3
Copy link
Author

Possibly related to #13138

Could be related, as I do use mapped network drive and Sonarr, Radarr and Lidarr

@skidaddl3
Copy link
Author

I haven't seen a crash report of QB, but I have restarted the server a couple of times. I have checked the DebugDiag log folder and there are 4 text files in there.

Please find the logs here. I think there are some Stack Traces there.
https://mega.nz/folder/L9ximQyT#SuuS2qg3RNnXN9wUpVxSaw

@xavier2k6
Copy link
Member

@skidaddl3 only 2 stack traces there from what I can see, which none are of 0xC0000409 the stack traces are for 0x000006BA which has been encountered before in #11663 & the other is for 0xE06D7363 which has also been encountered before in #11661

So, you will have to test/try to reproduce for a bit longer I'm afraid.

@skidaddl3
Copy link
Author

skidaddl3 commented Jul 17, 2020

So, you will have to test/try to reproduce for a bit longer I'm afraid.

No problem. I figured that much, seen as there was no crash that I noticed.
Do you care which version I run, 4.2.5 or 4.3.0(Alpha1)?

@xavier2k6
Copy link
Member

Posting stack traces here for clarity:

click to expand Exception 0XE06D7363 stack trace with qBittorrent 4.2.5
[17/07/2020 9:33:46 AM]
  Exception 0XE06D7363 on thread 2128. DetailID = 1
  Stack Trace
RetAddr           : Args to Child                                                           : Call Site
00007ff7`05e2b349 : 00007ff7`06885c40 00000090`07c9b430 00000090`00000001 00000000`00000000 : KERNELBASE!RaiseException+0x6c
00007ff7`05378beb : 00007ff7`05140000 00000090`0fb98f80 00000090`0fb98ee0 00007ffd`553155b8 : qbittorrent!_CxxThrowException+0xad [d:\agent\_work\1\s\src\vctools\crt\vcruntime\src\eh\throw.cpp @ 133]
00007ff7`0537a1eb : 00000091`00000000 00000091`a88e5fe0 00000091`b2ad9fc0 00000091`98c40fc0 : qbittorrent!WebApplication::doProcessRequest+0x463 [g:\qbittorrent\qbittorrent-4.2.5\src\webui\webapplication.cpp @ 261]
00007ff7`05232156 : 00000090`0fb98ed0 00000090`07c9b8e0 00000000`ffffffff 00000091`b10bcfc0 : qbittorrent!WebApplication::processRequest+0x1bb [g:\qbittorrent\qbittorrent-4.2.5\src\webui\webapplication.cpp @ 455]
00007ff7`05c44f95 : 00007ffd`553cbf80 00007ffd`3fdf777f 00007ff7`068d6aa0 00000098`93eebff8 : qbittorrent!Http::Connection::read+0x166 [g:\qbittorrent\qbittorrent-4.2.5\src\base\http\connection.cpp @ 96]
00007ff7`05b95440 : 00000098`93eebff0 00000090`09f18fd0 00000098`93eebff0 00000000`000060c0 : qbittorrent!QMetaObject::activate+0x511
00007ff7`05b942a2 : 00000000`00000003 00000090`00000001 00000094`2e499e80 00000098`93eebff0 : qbittorrent!QAbstractSocketPrivate::emitReadyRead+0x3c
00007ff7`05bb8ff4 : 00000090`07c9bf10 00007ff7`05c4c885 00000090`09cc1e80 00000090`07c9bf10 : qbittorrent!QAbstractSocketPrivate::canReadNotification+0xf2
00007ff7`05be9a5d : 00000098`6054ffe0 00000090`09f18fd0 00000090`09f18fd0 00000000`0000005d : qbittorrent!QAbstractSocketEngine::readNotification+0x28
00007ff7`057b73eb : 00000090`09cc1e80 00000090`07c9bcf0 00000090`07c9bf10 00000098`6054ffe0 : qbittorrent!QReadNotifier::event+0x1d
00007ff7`057b6ef9 : 00000000`00000000 00000090`07c9bcf0 00000000`00000002 00000000`00000000 : qbittorrent!QApplicationPrivate::notify_helper+0x10b
00007ff7`05c4c5cc : 00000091`fce2cff0 00000090`07c9bf10 00000000`00000000 00000090`09cc5f80 : qbittorrent!QApplication::notify+0x1839
00007ff7`05d4d6e5 : 00000091`fce2cff0 00000090`07c9bf99 00000091`fce2cff0 00000000`000008c2 : qbittorrent!QCoreApplication::notifyInternal2+0xc4
00007ffd`551024fd : 00000000`00000400 00000090`07c9c0c8 00000090`07c9c0f8 00000000`009e0f24 : qbittorrent!qt_internal_proc+0x385
00007ffd`55102357 : 00000090`0cb39d70 00000090`07c9c188 00000000`009e0f24 00007ff7`05d4727e : USER32!DispatchMessageW+0x15d
00007ff7`05d4e928 : 00000090`09cc5f80 00000000`00000024 00000090`09e24fe0 00000090`07c8f000 : USER32!NotifyWinEvent+0x237
00007ff7`056eca51 : 00000000`00000001 00000000`00000000 00000000`00000000 00007ff7`00000000 : qbittorrent!QEventDispatcherWin32::processEvents+0x4c8
00007ff7`05d52171 : 00000000`00000000 00000000`00000014 00000090`09cc5f80 00000090`07c9f438 : qbittorrent!QWindowsGuiEventDispatcher::processEvents+0x21
00007ff7`05c4cb17 : 00000090`00000004 00000090`09cc5f80 00000090`00000024 00007ff7`00000004 : qbittorrent!QEventLoop::exec+0x229
00007ff7`051de757 : 00000090`096aef50 00000090`096aef50 00000090`096aef50 00000090`096aef50 : qbittorrent!QCoreApplication::exec+0x15f
(Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : qbittorrent!Application::exec+0x4a7 [g:\qbittorrent\qt-everywhere-src-5.13.2\qtbase\src\gui\kernel\qguiapplication.cpp @ 1788]
(Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : qbittorrent!Application::exec+0x4a7 [g:\qbittorrent\qt-everywhere-src-5.13.2\qtbase\src\widgets\kernel\qapplication.cpp @ 2859]
00007ff7`051e854c : 00000090`096aef50 00000000`00000001 00007ff7`06575cb8 00000090`0f9e6f90 : qbittorrent!Application::exec+0x4a7 [g:\qbittorrent\qbittorrent-4.2.5\src\app\application.cpp @ 624]
00007ff7`05e07a53 : 00000000`00000001 00000090`09cbdff0 00000090`096aef50 00000000`0000002d : qbittorrent!main+0x3fc [g:\qbittorrent\qbittorrent-4.2.5\src\app\main.cpp @ 290]
00007ff7`05e0c162 : 00000000`00000001 00000000`00000000 00007ff7`04676000 00000000`00000000 : qbittorrent!WinMain+0x127
(Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : qbittorrent!invoke_main+0x21 [d:\agent\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 102]
00007ffd`53f81412 : 00007ff7`05e0c1d0 00000000`00000000 00000000`00000000 00000000`00000000 : qbittorrent!__scrt_common_main_seh+0x106 [d:\agent\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 288]
00007ffd`552f54f4 : 00007ffd`53f813f0 00000000`00000000 00000000`00000000 00000000`00000000 : KERNEL32!BaseThreadInitThunk+0x22
00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x34
  Action limit of 1 reached for Exception 'E06D7363::'.
click to expand Exception 0X000006BA stack trace with qBittorrent 4.3.0
[17/07/2020 11:43:21 PM]
  Exception 0X000006BA on thread 2520. DetailID = 1
  Stack Trace
RetAddr           : Args to Child                                                           : Call Site
00007ff8`7e98d3d1 : 00000000`00000000 00007ff8`7e97ec15 00000026`0d10ff80 00000026`0d10ff90 : KERNELBASE!RaiseException+0x6c
00007ff8`7e98d394 : 00000000`000006ba 00000000`00000011 00000000`00000000 00000000`00000000 : RPCRT4!RpcRaiseException+0x51
00007ff8`7ea54da8 : 00000026`0b0eaa40 00007ff8`00000000 00000027`994f1d30 00000000`00000011 : RPCRT4!RpcRaiseException+0x14
00007ff8`7ea53fce : 00007ff8`7c6d2600 00000000`00000011 00000000`00000000 00007ff8`80aaa87d : RPCRT4!NdrClientCall3+0xed8
00007ff8`7c6d1b5e : 00007ff8`7c6d1c70 00000026`0b0eae40 00000000`00000000 00000027`2260ce70 : RPCRT4!NdrClientCall3+0xfe
00007ff8`7c6d1cfb : 00000027`2260ce70 00000027`2260ce70 00007ff8`7c6d1c70 00007ff8`7df7914a : davclnt!NPGetCaps+0x3be
00007ff8`7c7224e0 : 00007ff8`7c6d1c70 00000027`18992fb0 00000000`00000000 00007ff8`7c6d0000 : davclnt!NPOpenEnum+0x8b
00007ff8`7c722315 : 00000026`0b0eb1d0 00000026`00000001 00000026`00000000 00000000`00000000 : MPR!WNetOpenEnumW+0xb40
00007ff8`7f1a0b6c : 00000000`00000001 00000000`00000001 00000000`00000000 00000000`00000000 : MPR!WNetOpenEnumW+0x975
00007ff8`7f1a0ac5 : 00000000`00000001 00000000`00000001 00000026`0b0eb360 00007ff8`7f9d0e50 : SHELL32!Ordinal733+0x3dc
00007ff8`7f2f086e : 00000000`80004004 00000026`0b0eb360 00000026`0b0eb2b0 00000000`00000019 : SHELL32!Ordinal733+0x335
00007ff8`7f00760d : 00000015`00000000 c0c0c0c0`00000c09 00000000`80004004 00000026`0b0eb360 : SHELL32!SHCreateQueryCancelAutoPlayMoniker+0x3b48e
00007ff8`7f0080c4 : 00007ff8`806f78f0 00000026`de19dfa0 00000000`00000000 00000026`de19dfa0 : SHELL32!SHCreateItemWithParent+0x435d
00007ff8`7eff98a1 : 00000026`ac3f5fd0 00000027`118e3fe0 00000026`74d21ef8 00000027`118e3fe0 : SHELL32!SHCreateItemWithParent+0x4e14
00007ff8`7effb0bb : 00007ff8`806f71c0 00000026`0b0ebb31 00000000`00000000 00000000`80070057 : SHELL32!SHBindToFolderIDListParentEx+0x5f1
00007ff8`7effb11e : 00000000`00000000 00000026`0c920000 00000027`289bad10 00007ff8`7efb2298 : SHELL32!SHBindToFolderIDListParentEx+0x1e0b
00007ff8`7effb37c : 00000000`00000000 00000026`0b0ebd21 00000000`00000000 00000000`00000000 : SHELL32!SHBindToFolderIDListParentEx+0x1e6e
00007ff8`7f178c1b : 00000026`0b0ebe28 00007ff6`7a90cb30 00000000`00000000 00000000`00000000 : SHELL32!SHParseDisplayName+0x13c
00007ff6`7a03e6e7 : 00000000`ffffffff 00007ff6`7a037997 00000026`0b0ebe90 00000000`00000000 : SHELL32!SHCreateItemFromParsingName+0x9b
00007ff6`7a03e91f : 00000000`ffffffff 00000026`ad51bf10 00000000`ffffffff 00000027`41ac3fe0 : qbittorrent!volumeName+0x67 [C:\QBITTORRENT\qt-everywhere-src-5.15.0\qtbase\src\widgets\dialogs\qfilesystemmodel.cpp @ 1787]
00007ff6`7a03f58f : 00000026`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : qbittorrent!QFileSystemModelPrivate::addNode+0x12f [C:\QBITTORRENT\qt-everywhere-src-5.15.0\qtbase\src\widgets\dialogs\qfilesystemmodel.cpp @ 1819]
00007ff6`7a58bce0 : 00000027`6cf61ff0 00000000`00000030 00000000`00000028 00000027`6cf61ff0 : qbittorrent!QFileSystemModelPrivate::_q_fileSystemChanged+0x26f [C:\QBITTORRENT\qt-everywhere-src-5.15.0\qtbase\src\widgets\dialogs\qfilesystemmodel.cpp @ 1924]
00007ff6`79f38ddd : 00000027`6cf61ff0 00000026`0b0ec3b0 00000026`0d10be80 00000026`7b450f80 : qbittorrent!QObject::event+0x190 [C:\QBITTORRENT\qt-everywhere-src-5.15.0\qtbase\src\corelib\kernel\qobject.cpp @ 1314]
00007ff6`79f38297 : 00000026`0d10ff80 00007ff6`797d0000 00000000`00000001 00000000`00000000 : qbittorrent!QApplicationPrivate::notify_helper+0x1bd [C:\QBITTORRENT\qt-everywhere-src-5.15.0\qtbase\src\widgets\kernel\qapplication.cpp @ 3675]
00007ff6`7a59b4d0 : 00000026`7b450f80 00000026`54f2afe0 00000000`00000000 00000026`0d10ff80 : qbittorrent!QApplication::notify+0x1c67 [C:\QBITTORRENT\qt-everywhere-src-5.15.0\qtbase\src\widgets\kernel\qapplication.cpp @ 3625]
00007ff6`7a59c11a : 00000026`54f2afe0 00000026`0d10ffa4 00000026`7b450f80 00000026`0b0ec730 : qbittorrent!QCoreApplication::notifyInternal2+0x160 [C:\QBITTORRENT\qt-everywhere-src-5.15.0\qtbase\src\corelib\kernel\qcoreapplication.cpp @ 1061]
(Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : qbittorrent!QCoreApplication::sendEvent+0x19 [C:\QBITTORRENT\qt-everywhere-src-5.15.0\qtbase\src\corelib\kernel\qcoreapplication.cpp @ 1456]
00007ff6`79e32506 : 00000026`7b450f80 00000000`00000000 00000026`0cb50f20 00007ff6`79e324d0 : qbittorrent!QCoreApplicationPrivate::sendPostedEvents+0x21a [C:\QBITTORRENT\qt-everywhere-src-5.15.0\qtbase\src\corelib\kernel\qcoreapplication.cpp @ 1815]
(Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : qbittorrent!QEventDispatcherWin32::sendPostedEvents+0x33 [C:\QBITTORRENT\qt-everywhere-src-5.15.0\qtbase\src\corelib\kernel\qeventdispatcher_win.cpp @ 1075]
00007ff6`7a6cc8f7 : 00000000`00000000 00000000`00000000 00000000`00000000 00007ff6`7a86032c : qbittorrent!QWindowsGuiEventDispatcher::sendPostedEvents+0x46 [C:\QBITTORRENT\qt-everywhere-src-5.15.0\qtbase\src\platformsupport\eventdispatchers\qwindowsguieventdispatcher.cpp @ 81]
00007ff6`79e324b1 : 00000026`0d1aefe0 00000000`00000000 00000000`00000202 00007ff6`79e324a0 : qbittorrent!QEventDispatcherWin32::processEvents+0x67 [C:\QBITTORRENT\qt-everywhere-src-5.15.0\qtbase\src\corelib\kernel\qeventdispatcher_win.cpp @ 527]
00007ff6`7a6d0337 : 00000000`00000000 00007ff6`00000014 00000000`00000000 00000000`00000000 : qbittorrent!QWindowsGuiEventDispatcher::processEvents+0x21 [C:\QBITTORRENT\qt-everywhere-src-5.15.0\qtbase\src\platformsupport\eventdispatchers\qwindowsguieventdispatcher.cpp @ 74]
(Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : qbittorrent!QEventLoop::processEvents+0x1b [C:\QBITTORRENT\qt-everywhere-src-5.15.0\qtbase\src\corelib\kernel\qeventloop.cpp @ 139]
00007ff6`7a59b9bb : 00000026`0d113fb8 00000000`00000000 00000000`00000000 00007ff6`7a96ead8 : qbittorrent!QEventLoop::exec+0x1c7 [C:\QBITTORRENT\qt-everywhere-src-5.15.0\qtbase\src\corelib\kernel\qeventloop.cpp @ 232]
00007ff6`798563a9 : 00000026`0b0ef9f0 00000026`0cafef50 00000026`0b0efb30 00000026`19619ff0 : qbittorrent!QCoreApplication::exec+0x15b [C:\QBITTORRENT\qt-everywhere-src-5.15.0\qtbase\src\corelib\kernel\qcoreapplication.cpp @ 1369]
(Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : qbittorrent!QGuiApplication::exec+0x4f [C:\QBITTORRENT\qt-everywhere-src-5.15.0\qtbase\src\gui\kernel\qguiapplication.cpp @ 1867]
(Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : qbittorrent!QApplication::exec+0x4f [C:\QBITTORRENT\qt-everywhere-src-5.15.0\qtbase\src\widgets\kernel\qapplication.cpp @ 2811]
00007ff6`7986587c : ffffffff`ffffffff 00007ff6`7b216748 00000026`00000008 00000026`1952fe70 : qbittorrent!Application::exec+0x569 [C:\QBITTORRENT\qBittorrent-master\src\app\application.cpp @ 633]
00007ff6`7a81b7b7 : 00000000`00000001 00000000`00000000 00000026`0d109fc0 00000000`00000000 : qbittorrent!main+0x8bc [C:\QBITTORRENT\qBittorrent-master\src\app\main.cpp @ 290]
00007ff6`7a822782 : 00000000`00000000 00007ff6`7973e000 00000000`00000000 00000000`00000000 : qbittorrent!WinMain+0x157 [C:\QBITTORRENT\qt-everywhere-src-5.15.0\qtbase\src\winmain\qtmain_win.cpp @ 97]
(Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : qbittorrent!invoke_main+0x21 [d:\A01\_work\6\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 102]
00007ff8`7e2b1412 : 00007ff6`7a8227f0 00000000`00000000 00000000`00000000 00000000`00000000 : qbittorrent!__scrt_common_main_seh+0x106 [d:\A01\_work\6\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 288]
00007ff8`80a154f4 : 00007ff8`7e2b13f0 00000000`00000000 00000000`00000000 00000000`00000000 : KERNEL32!BaseThreadInitThunk+0x22
00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x34
  Action limit of 1 reached for Exception '000006BA::'.

@xavier2k6
Copy link
Member

Do you care which version I run, 4.2.5 or 4.3.0 beta?

Hopefully, if not too much to ask - I'd like to get a stack trace of C0000409 from both versions for now.

In time, I may get you to run another build with different libraries if you can.

@skidaddl3
Copy link
Author

skidaddl3 commented Jul 17, 2020

I'm running 4.2.5 until I get the 0xC0000409 code. I'll get onto 4.3.0 after (once we know we have it I guess)
No major data loss, so I'm not afraid or overly concerned to do the tests.
Edit: However it has taken at least 10 minutes for qbittorrent to load with the debugger on again. My concern is if it will even succeed in crashing while reproducing the error. I'm no developer, however have a feeling it's to do with some kind of timeout? - The crash that is?

@xavier2k6
Copy link
Member

The debugger will grab the stack trace whenever it happens anyway as long as it's still attached to the qBittorrent process.

@skidaddl3
Copy link
Author

Ok, so after leaving it run overnight, I notice it is still running (via task manager. CPU% fluctuates) where the occasional notification from qbittorrent mentions I/O error (most likely about not enough space but that info is always truncated).
I left click, nothing.
I right click, nothing.
Program still appears to be running (task manager).
I am uncertain also as to whether Unraid is doing some funky Linux ram bullshit, because qbittorrent is really the only thing running:
image

@xavier2k6
Copy link
Member

@skidaddl3 try enabling memory compression by opening & running windows powershell as admin & type enable-mmagent -memorycompression

@skidaddl3
Copy link
Author

@skidaddl3 try enabling memory compression by opening & running windows powershell as admin & type enable-mmagent -memorycompression

No such parameter "memorycompression"

@xavier2k6
Copy link
Member

did you type as is: enable-mmagent -memorycompression?

@skidaddl3
Copy link
Author

image

@xavier2k6
Copy link
Member

xavier2k6 commented Jul 18, 2020

please try enable-mmagent -mc can you show ouput of Get-MMAgent too?

@skidaddl3
Copy link
Author

PS C:\Users\Administrator> Get-MMAgent

ApplicationLaunchPrefetching : False
ApplicationPreLaunch : False
MaxOperationAPIFiles : 256
OperationAPI : False
PageCombining : False
PSComputerName :

It looks like the memory compression parameter doesn't exist from looking at the help contents of the command:
PS C:\Users\Administrator> help enable-mmagent

NAME
Enable-MMAgent

SYNOPSIS
Enables application launch prefetching, operation recorder API functionality, page combining, and application
prelaunch.

SYNTAX
Enable-MMAgent [-ApplicationLaunchPrefetching] [-ApplicationPreLaunch] [-AsJob] [-CimSession <CimSession[]>]
[-OperationAPI] [-PageCombining] [-ThrottleLimit ] []

@skidaddl3
Copy link
Author

skidaddl3 commented Jul 19, 2020

image

I have dropped the ram max for the vm since this morning.
I have noticed a C0000409 dump that I am now uploading to Mega.nz with the associated logs from DebugDiag.
Same link as above: https://mega.nz/folder/L9ximQyT#SuuS2qg3RNnXN9wUpVxSaw

@skidaddl3
Copy link
Author

New log uploaded with PID 5376 (no crash as I force killed it because it was running like a fat cow)
I will retry getting a crash again.

Sorry, I should have said that I installed the fresh Windows Server 2012 R2 Standard OS. I think it was running bad like before, due to DebugDiag rule activated before qbittorrent has been started. Qbittorrent runs fairly smooth, if I activate the rule AFTER starting qbittorrent.
Also it took a while for the OS to settle with all the updates.
I am continuing to run 4.3.0alpha1

@skidaddl3
Copy link
Author

thank you, will wait for new crash dump/log.

New crash dump uploaded with PID 3932 to match log

@xavier2k6
Copy link
Member

New crash dump uploaded with PID 3932 to match log

Was that using the build from https://github.com/FranciscoPombal/qBittorrent/suites/890570460/artifacts/10579779?

@skidaddl3
Copy link
Author

skidaddl3 commented Jul 26, 2020

Was that using the build from https://github.com/FranciscoPombal/qBittorrent/suites/890570460/artifacts/10579779?

Yes. I installed qbittorrent 4.2.5 (because it was a fresh OS install), migrated old qbittorrent appdata to retain torrent progress and did as per

I'll move the stable version and its associated files out of its root folder and replace with https://github.com/FranciscoPombal/qBittorrent/suites/890570460/artifacts/10579779 and attempt the stack trace logging

@skidaddl3
Copy link
Author

Was that using the build from https://github.com/FranciscoPombal/qBittorrent/suites/890570460/artifacts/10579779?

Yes. I installed qbittorrent 4.2.5 (because it was a fresh OS install), migrated old qbittorrent appdata to retain torrent progress and did as per

I'll move the stable version and its associated files out of its root folder and replace with https://github.com/FranciscoPombal/qBittorrent/suites/890570460/artifacts/10579779 and attempt the stack trace logging

I did not use the config file that comes with that build however...

@xavier2k6
Copy link
Member

xavier2k6 commented Jul 26, 2020

@skidaddl3 that's fine - thanks for clarification, seems that build is missing something for the purpose of debugging but have the stacktrace from log.

image

EDIT: @FranciscoPombal Any idea why above would happen for your build? (My build/official build seem to load crashdumps into VS 2019 without any issue.)

Please go ahead & de-activate the rules, detach the debugger from qBittorrent - should have enough of info gathered now from across 3 builds which use various libraries. Can always ask to attach again at later stage.

Will report back here with findings. (may be a few days)

@xavier2k6
Copy link
Member

@skidaddl3 0x000006BA & 0xE06D7363 may have just been fixed by arvidn/libtorrent#4922 which was being discussed in arvidn/libtorrent#4345

as for C0000409 - have all "hotfixes" been installed for "Windows Server 2012 R2"?

@skidaddl3
Copy link
Author

I will keep an eye on released update for qb

I will check if there are any relevant hotfixes when I get a chance. I doubt the server OS is not up to date

@xavier2k6
Copy link
Member

@skidaddl3 haven't forgot about this, I still need to fully go through dumps/logs - in the meantime can you try build below:

(This build should get rid of 0xE06D7363 & reduce the occurrence of 0x000006BA <- I don't believe this is fully eliminated yet)

Hopefully, you'll be able to confirm the above?!

Windows test build of 4.3.0(Alpha1) with listed libraries:

qBittorrent master   | 4.3.0 +git 4d1c5a8
libtorrent-rasterbar | 1.2.8 +git 6b7b624
Qt                   | 5.15.0
OpenSSL              | 1.1.1g
zlib                 | 1.2.11
Boost                | 1.73

Download Link

@skidaddl3
Copy link
Author

@xavier2k6 no problem. It has been a busy week for myself too.
I will try to set up the build this weekend to run as usual with debug logger.
Thank you for the update in any case!
Legend.

@skidaddl3
Copy link
Author

Running qb with debugger now.
image

Was busier than expected.
I shall keep you posted. Thank you.

@skidaddl3
Copy link
Author

New crash dump uploaded with PID 3720 to match log

@xavier2k6
Copy link
Member

New crash dump uploaded with PID 3720 to match log

Thanks, looks like the build referenced in #13143 (comment) doesn't fix 0xE06D7363 either 👎

In relation to 0xE06D7363, did you happen to manually ban any peers during this session??

@skidaddl3
Copy link
Author

No peers manually banned AFAIK

@skidaddl3
Copy link
Author

I am still interested in a fix. Was there any progress/news?
I am using the "stable" version 4.2.5
image
It is crashing on a daily basis.

@xavier2k6
Copy link
Member

@skidaddl3 no progress as such.....will provide another test build when I can.

@skidaddl3
Copy link
Author

skidaddl3 commented Sep 29, 2020

@xavier2k6 hi, sorry I missed your last test build download.
I have recently added some SSD hard drive storage for qbittorrent and it seems to have stopped the crashing
qBittorrent version 4.2.5
I had increased the Unraid cache drives from 2TB to 6TB
I had about a 5TB working used space that I needed.

I hope that makes sense.

@xavier2k6
Copy link
Member

Thanks for the feedback, I'd advise to keep this Open for now.

@skidaddl3
Copy link
Author

I just had one of these crashes, to which I have never seen before:

qBittorrent has crashed
Please file a bug report at http://bugs.qbittorrent.org and provide the following information:

qBittorrent version: v4.2.5 (64-bit)
Libtorrent version: 1.2.6.0
Qt version: 5.13.2
Boost version: 1.72.0
OpenSSL version: 1.1.1g
zlib version: 1.2.11
OS version: Windows Server 2012 R2 (6.3) 6.3.9600 x86_64

Caught signal: SIGSEGV

#  0 qbittorrent.exe      0x00007ff620627900 0x7ff620627900()
#  1 qbittorrent.exe      0x00007ff62062876d 0x7ff62062876d()
#  2 qbittorrent.exe      0x00007ff62128abe6 0x7ff62128abe6()
#  3 qbittorrent.exe      0x00007ff6212f73de 0x7ff6212f73de()
#  4 qbittorrent.exe      0x00007ff62126a9c8 0x7ff62126a9c8()
#  5 ntdll.dll            0x00007ffbab2e345d _chkstk()
#  6 ntdll.dll            0x00007ffbab2a4937 RtlRaiseException()
#  7 ntdll.dll            0x00007ffbab2e25ea KiUserExceptionDispatcher()
#  8 qbittorrent.exe      0x00007ff62078406b 0x7ff62078406b()
#  9 qbittorrent.exe      0x00007ff621084f95 0x7ff621084f95()
# 10 qbittorrent.exe      0x00007ff620bed5c3 0x7ff620bed5c3()
# 11 qbittorrent.exe      0x00007ff62108506d 0x7ff62108506d()
# 12 qbittorrent.exe      0x00007ff620c65209 0x7ff620c65209()
# 13 qbittorrent.exe      0x00007ff620c655b7 0x7ff620c655b7()
# 14 qbittorrent.exe      0x00007ff62108506d 0x7ff62108506d()
# 15 qbittorrent.exe      0x00007ff620c7ffd3 0x7ff620c7ffd3()
# 16 qbittorrent.exe      0x00007ff620c7e570 0x7ff620c7e570()
# 17 qbittorrent.exe      0x00007ff620c7e507 0x7ff620c7e507()
# 18 qbittorrent.exe      0x00007ff620c7f26b 0x7ff620c7f26b()
# 19 qbittorrent.exe      0x00007ff620c0ba01 0x7ff620c0ba01()
# 20 qbittorrent.exe      0x00007ff620bf73eb 0x7ff620bf73eb()
# 21 qbittorrent.exe      0x00007ff620bf63c8 0x7ff620bf63c8()
# 22 qbittorrent.exe      0x00007ff62108c5cc 0x7ff62108c5cc()
# 23 qbittorrent.exe      0x00007ff620bf5098 0x7ff620bf5098()
# 24 qbittorrent.exe      0x00007ff620d746e4 0x7ff620d746e4()
# 25 qbittorrent.exe      0x00007ff620d73495 0x7ff620d73495()
# 26 qbittorrent.exe      0x00007ff620bf73eb 0x7ff620bf73eb()
# 27 qbittorrent.exe      0x00007ff620bf6ef9 0x7ff620bf6ef9()
# 28 qbittorrent.exe      0x00007ff62108c5cc 0x7ff62108c5cc()
# 29 qbittorrent.exe      0x00007ff620e1c3a0 0x7ff620e1c3a0()
# 30 qbittorrent.exe      0x00007ff620e1ba7c 0x7ff620e1ba7c()
# 31 qbittorrent.exe      0x00007ff620e8c483 0x7ff620e8c483()
# 32 qbittorrent.exe      0x00007ff62118d727 0x7ff62118d727()
# 33 USER32.dll           0x00007ffbaaf324fd DispatchMessageW()
# 34 USER32.dll           0x00007ffbaaf32357 NotifyWinEvent()
# 35 qbittorrent.exe      0x00007ff62118e928 0x7ff62118e928()
# 36 qbittorrent.exe      0x00007ff620b2ca51 0x7ff620b2ca51()
# 37 qbittorrent.exe      0x00007ff621192171 0x7ff621192171()
# 38 qbittorrent.exe      0x00007ff62108cb17 0x7ff62108cb17()
# 39 qbittorrent.exe      0x00007ff62061e757 0x7ff62061e757()
# 40 qbittorrent.exe      0x00007ff62062854c 0x7ff62062854c()
# 41 qbittorrent.exe      0x00007ff621247a53 0x7ff621247a53()
# 42 qbittorrent.exe      0x00007ff62124c162 0x7ff62124c162()
# 43 KERNEL32.DLL         0x00007ffbab0b13f2 BaseThreadInitThunk()
# 44 ntdll.dll            0x00007ffbab2654f4 RtlUserThreadStart()

image
This happened as I selected three torrents which were in an "error state - missing" because Radarr had already grabbed them, and I Shift + Deleted the torrents.

@FranciscoPombal
Copy link
Member

@skidaddl3 This may be fixed with 4.3.0.1. Mind trying it out?

@skidaddl3
Copy link
Author

skidaddl3 commented Oct 23, 2020

@skidaddl3 This may be fixed with 4.3.0.1. Mind trying it out?

@FranciscoPombal thank you, qBittorrent prompted me to upgrade to 4.3.0 two days ago and yesterday I upgraded to 4.3.0.1

On version 4.3.0 I was getting a lot of torrents erroring out with a network error. I shall see how we go.

My previous comment
#13143 (comment) hasn't occured like it did again.
See how we go.

I usually check QB once a day.

Edit: Version 4.3.0.1
image

@skidaddl3
Copy link
Author

skidaddl3 commented Nov 13, 2020

"Errored: An unexpected network error occurred" qBittorrent remains to do a bunch daily. It typically shows up in a bunch. I have searched Google and there are other users with Network Shares that experience the same issue.

image

@skidaddl3
Copy link
Author

Just had a crash after leaving qBittorrent for about 4 days.
I did not have the debugger running unfortunately.

Problem signature:
Problem Event Name: BEX64
Application Name: qbittorrent.exe
Application Version: 4.3.0.1
Application Timestamp: 5f912cca
Fault Module Name: qbittorrent.exe
Fault Module Version: 4.3.0.1
Fault Module Timestamp: 5f912cca
Exception Offset: 0000000000ad48b3
Exception Code: c0000409
Exception Data: 0000000000000007
OS Version: 6.3.9600.2.0.0.272.7
Locale ID: 3081
Additional Information 1: 192b
Additional Information 2: 192bea2437671b2ba7bfbdee619bfc5b
Additional Information 3: d429
Additional Information 4: d4290123c11c6bbff80c86e10659ad5a

@xavier2k6
Copy link
Member

@skidaddl3 be great if you could get a new crash dump/stack trace with 4.3.0.1

"Errored: An unexpected network error occurred"

That's more than likely a conflict in your network setup!

@skidaddl3
Copy link
Author

@xavier2k6 and @FranciscoPombal
I'd like to thank you for the ongoing support here!
I have migrated to an Unraid -> Docker
image

So my testing is no longer valid for the Windows Server 2012 R2 qBittorrent version and I am sunsetting it.
Maybe it was something to do with my network setup? Who knows.

Again, cheers for the effort!

@FranciscoPombal FranciscoPombal added this to crashes, lockups, etc in Frequent/important issues Dec 16, 2020
@FranciscoPombal
Copy link
Member

@skidaddl3

Thank you for your participation.

If anyone else can reproduce this and shed more light into this in the future, please open a new issue report.

@qbittorrent qbittorrent locked as resolved and limited conversation to collaborators Dec 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Crash OS: Windows Issues specific to Windows
Projects
No open projects
Frequent/important issues
Crashes, lockups, etc
Development

No branches or pull requests

3 participants