qBittorrent icon indicating copy to clipboard operation
qBittorrent copied to clipboard

Crashes with v4.5.0

Open dntndnm opened this issue 2 years ago • 11 comments

qBittorrent & operating system versions

qBittorrent: 4.5.0 x64 Operating system: Windows 7 Ultimate sp1 x64 Qt: 5.15.7 libtorrent-rasterbar: 1.2.18.0

What is the problem?

The program just sits minimized, doing it's thing, seeding and whatnot and suddenly I get a message box from windows saying "the program closed" or stopped working or something similar and all I can do is close this message. So it's basically a crash. I will attach the two dump files I got after the crashes.

Steps to reproduce

I can't reproduce it, it happens without me doing anything. So far it happened 2 times.

Additional context

No response

Log(s) & preferences file(s)

Crashdumps: qbittorrent.exe.3124.zip qbittorrent.exe.3448.zip

dntndnm avatar Dec 08 '22 13:12 dntndnm

https://github.com/qbittorrent/qBittorrent/issues/18157 It? Look at the Windows event log.

stalkerok avatar Dec 08 '22 14:12 stalkerok

I looked at the windows event log. Here is what is says for the 2 crashes I've experienced so far:

Faulting application name: qbittorrent.exe, version: 4.5.0.0, time stamp: 0x63828827 Faulting module name: qbittorrent.exe, version: 4.5.0.0, time stamp: 0x63828827 Exception code: 0xc0000005 Fault offset: 0x00000000004f553e Faulting process id: 0xd78 Faulting application start time: 0x01d90afc149661d4 Faulting application path: C:\xxxxxxxxxx\qbittorrent.exe Faulting module path: C:\xxxxxxxxxx\qbittorrent.exe Report Id: 4d2af6d2-76f4-11ed-8d52-005056c00008


Faulting application name: qbittorrent.exe, version: 4.5.0.0, time stamp: 0x63828827 Faulting module name: qbittorrent.exe, version: 4.5.0.0, time stamp: 0x63828827 Exception code: 0xc0000005 Fault offset: 0x00000000004f83ca Faulting process id: 0xc34 Faulting application start time: 0x01d9095e51c550db Faulting application path: C:\xxxxxxxxxx\qbittorrent.exe Faulting module path: C:\xxxxxxxxxx\qbittorrent.exe Report Id: 58214735-7657-11ed-85ff-005056c00008


I would like to give the devs whatever info they need to fix this, because I like the program very much and it's annoying to have random crashes.

I tried to use the .pdb and the dump file myself to see if I can check for more info using WinDbg program, but I wasn't able to get much out of the program's report, it said symbol file missing. Anyway, I attached my dump files in my first post so I think those might contain more info than what I can provide by myself at this point.

But if there is more I can do, tell me. Thank you!

dntndnm avatar Dec 08 '22 16:12 dntndnm

@dntndnm The 2x dumps you posted are from a portableapps version this is unsupported by us & also the .pdb file isn't included with this version which is useless for us to get a proper stacktrace etc.

xavier2k6 avatar Dec 08 '22 21:12 xavier2k6

I will leave this open for now, in case you can reproduce with official qBittorrent version downloaded from https://www.qbittorrent.org/download.php

xavier2k6 avatar Dec 08 '22 21:12 xavier2k6

The verison of qBittorrent I'm running and having this crash with is definetly NOT a portableapps version. It is the official version and there is a .pdb file in it's root directory too.

These are the SHA256 checksums for these files if you want to check them against the official. aa61eb930b40f90ae5afda838d4b0c441160ca1e18a032dc5c2597abb980d2e5 *qbittorrent.exe 659ef0a075e922daec22f713c2a3d824e9ed73d98fec413df31d42695592c9a8 *qbittorrent.pdb

It is totally the official version.

Maybe you got confused by the directory name it's being run from because that contains the word "portableapps" and "portable" but that doesn't mean anythiing. I use the official version of qBittorrent downloaded from the official website.

So please check the dumps and try to figure out the cause of the crash. I'm not a programmer but I think with a dump file and a .pdb you can pretty much view where in the code the crash is happening. If you need more info from me, tell me.

Thank you!

dntndnm avatar Dec 09 '22 00:12 dntndnm

Ok, see if a stack trace can be obtained using any of the methods from here -> https://github.com/qbittorrent/qBittorrent/issues/18157#issuecomment-1342557571

xavier2k6 avatar Dec 09 '22 11:12 xavier2k6

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

qBittorrent version: v4.5.0 (64-bit) Libtorrent version: 1.2.18.0 Qt version: 5.15.7 Boost version: 1.80.0 OpenSSL version: 1.1.1s zlib version: 1.2.13 OS version: Windows 10 Version 2009 10.0.22623 x86_64

Caught signal: SIGSEGV

 0# 0x00007FF7CD2AAB10 in qbittorrent
 1# 0x00007FF7CD2A672E in qbittorrent
 2# 0x00007FF7CE0B47C4 in qbittorrent
 3# 0x00007FF7CE1316F4 in qbittorrent
 4# 0x00007FF7CE08D9A4 in qbittorrent
 5# _chkstk in ntdll
 6# RtlFindCharInUnicodeString in ntdll
 7# KiUserExceptionDispatcher in ntdll
 8# 0x00007FF7CD2F3441 in qbittorrent
 9# 0x00007FF7CD2F96D4 in qbittorrent
10# 0x00007FF7CD2F5A3F in qbittorrent
11# 0x00007FF7CD433589 in qbittorrent
12# 0x00007FF7CDE22173 in qbittorrent
13# 0x00007FF7CD48667D in qbittorrent
14# 0x00007FF7CD2E1350 in qbittorrent
15# 0x00007FF7CDE199AA in qbittorrent
16# 0x00007FF7CDE1A6E8 in qbittorrent
17# 0x00007FF7CD9723E0 in qbittorrent
18# 0x00007FF7CD971ED8 in qbittorrent
19# 0x00007FF7CDE2C7F5 in qbittorrent
20# 0x00007FF7CDE2D596 in qbittorrent
21# 0x00007FF7CD7D9B57 in qbittorrent
22# 0x00007FF7CDF3E146 in qbittorrent
23# 0x00007FF7CD7D9B31 in qbittorrent
24# 0x00007FF7CDF41E17 in qbittorrent
25# 0x00007FF7CDE2CD9A in qbittorrent
26# 0x00007FF7CD2965ED in qbittorrent
27# 0x00007FF7CD2A4478 in qbittorrent
28# 0x00007FF7CE0679CF in qbittorrent
29# 0x00007FF7CE06F182 in qbittorrent
30# BaseThreadInitThunk in KERNEL32
31# RtlUserThreadStart in ntdll

pmeenak avatar Dec 09 '22 17:12 pmeenak

10.0.22623

@pmeenak this is an insiders build & besides that stack trace is useless to us as it has no symbols for debugging etc.

xavier2k6 avatar Dec 09 '22 17:12 xavier2k6

Hi,

Please let me know what I have to do to correct this crashing.

Warm regards,

Palaniappan M Mobile: +91 9445518515

On Fri, Dec 9, 2022 at 11:14 PM xavier2k6 @.***> wrote:

10.0.22623

@pmeenak https://github.com/pmeenak this is an insiders build & besides that stack trace is useless to us as it has no symbols for debugging etc.

— Reply to this email directly, view it on GitHub https://github.com/qbittorrent/qBittorrent/issues/18180#issuecomment-1344585894, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABOV4GLG5UL5E5JYVOQEVVTWMNVWJANCNFSM6AAAAAASYFNDYA . You are receiving this because you were mentioned.Message ID: @.***>

pmeenak avatar Dec 09 '22 17:12 pmeenak

I wasn't sure whether to open a new report or just ride on this one... I'm using a completely different OS but in the past few days a client will just stop running. When I check the qbittorrent log, it shows no problem. Not sure what other logs would be useful. I was previously on 4.4.5, and prior to 4.5 they could run indefinitely, weeks at a time between reboots.

I have 12 x qbittorrent-nox 4.5 clients running in different jails. The small clients (<5000 torrents) have not crashed at all. The larger clients (all >18,000 torrents) randomly crash. The smaller clients have <100 threads at any given moment, where the larger clients have hundreds of threads, sometimes going to >1000 threads.

TrueNAS (FreeBSD) 13.1 qbittorrent-nox 4.5.0 Qt: | 5.15.5 Libtorrent: | 1.2.18.0 Boost: | 1.80.0 OpenSSL: | 1.1.1o-freebsd zlib: | 1.2.12

If I should open a separate report, let me know.

Jorsher avatar Dec 09 '22 21:12 Jorsher

Just a little notice, that I didn't abandon this issue, I'm still commited to give the devs the stacktrace they need, but I have a kind of "schedule" when I restart my torrenting machine (unless it crashes :) ) and the time hasn't come yet so I'm not yet running the windbg debug for qBittorrent yet. But soon™.

dntndnm avatar Dec 11 '22 15:12 dntndnm

Finally, after many days I got a crash and here is the WinDbg output:

Those many lines at the beginning about an "Unknown exception" happens right when I start running qBittorrent through WinDbg and there are many thousands of them. I just pasted the last few, but it's probably not related to this crash because these lines are always there and being printed continuously when the program is running.

Tue Dec 20 11:53:59.024 2022 (UTC + 1:00): (e08.e40): Unknown exception - code 000006ba (first chance) Tue Dec 20 11:53:59.026 2022 (UTC + 1:00): (e08.e40): Unknown exception - code 000006ba (first chance) Tue Dec 20 11:54:03.022 2022 (UTC + 1:00): (e08.e40): Unknown exception - code 000006ba (first chance) . . .

I hope the info will be helpful. And don't worry, even though I ran qBittorrent from a folder with the word "portable" in it, it is actually the official binary, just extracted out of the installer and run in portable mode.

Thank you for this great program! If you need more info I will try to help if I can.

qbittorrent v4.5.0 WinDbg log after crash happened 2022 12 20.txt

dntndnm avatar Dec 20 '22 12:12 dntndnm

qbittorrent v4.5.0 WinDbg log after crash happened 2022 12 20.txt

utp related in libtorrent.

STACK_TEXT:  
00000000`076adbf8 00000000`77d93f9f : 00000000`77d33c40 00000000`25583ab0 00000000`25583b50 00000000`ffffffff : ntdll!RtlpBreakPointHeap+0x21
00000000`076adc00 00000000`77ce79fc : 00000000`009b0000 00000000`50000163 00000000`00000220 00000000`00000250 : ntdll!RtlpAllocateHeap+0xcef
00000000`076adde0 00000000`77d926ed : 00000000`00000004 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlAllocateHeap+0x16c
00000000`076adef0 00000000`77d933c4 : 00000000`009b0000 00000000`50000163 00000000`00000000 00000001`50000063 : ntdll!RtlDebugAllocateHeap+0xcd
00000000`076adf50 00000000`77ce79fc : 00000000`009b0000 00000000`40000062 00000000`00000220 00000000`00000000 : ntdll!RtlpAllocateHeap+0x114
00000000`076ae130 00000001`409458c4 : 00000000`00000004 00000000`00000220 00000000`00b6a880 00000000`076ae260 : ntdll!RtlAllocateHeap+0x16c
00000000`076ae240 00000001`408fe8d7 : 00000000`076ae4e0 00000000`50000163 00000000`076adfb8 00000001`3ff23860 : qbittorrent!_malloc_base+0x44 [minkernel\crts\ucrt\src\appcrt\heap\malloc_base.cpp @ 34]
00000000`076ae270 00000001`3ff75a1d : 0000703c`ab9e3009 00000000`076ae4e0 00000000`076ae328 00000000`00000000 : qbittorrent!operator new+0x1f [d:\agent\_work\2\s\src\vctools\crt\vcstartup\src\heap\new_scalar.cpp @ 35]
00000000`076ae2a0 00000001`3ff84423 : 00000000`00a84cf0 00000000`076ae380 00000000`389bf110 00004d63`429bcaa4 : qbittorrent!libtorrent::construct_utp_impl+0x3d [g:\qbittorrent\libtorrent\src\utp_stream.cpp @ 630]
00000000`076ae2f0 00000001`3ff468c0 : 00004d63`429b4231 00000000`389bf120 00000000`00004230 00000000`0000007c : qbittorrent!libtorrent::utp_socket_manager::new_utp_socket+0x53 [g:\qbittorrent\libtorrent\src\utp_socket_manager.cpp @ 338]
00000000`076ae340 00000001`3ff83eed : 0000703c`ab9e3009 0000703c`ab9e3009 00000000`02fe6ea0 00000000`02fe0ae0 : qbittorrent!libtorrent::aux::instantiate_connection+0x80 [g:\qbittorrent\libtorrent\src\instantiate_connection.cpp @ 67]
00000000`076ae3b0 00000001`3fecbb64 : 00000000`076af900 00000000`076ae680 00000000`02fe0ae0 00000000`02f43d70 : qbittorrent!libtorrent::utp_socket_manager::incoming_packet+0x47d [g:\qbittorrent\libtorrent\src\utp_socket_manager.cpp @ 207]
00000000`076ae580 00000001`3feece4b : 00000000`cd031620 00000000`00000000 00000000`00000000 00000001`3fe32700 : qbittorrent!libtorrent::aux::session_impl::on_udp_packet+0x554 [g:\qbittorrent\libtorrent\src\session_impl.cpp @ 2460]
00000000`076af960 00000001`3fee9771 : 00000000`076afaf0 00000000`076afaf0 00000001`41122a88 00000001`409ff6c0 : qbittorrent!libtorrent::aux::allocating_handler<std::_Binder<std::_Unforced,void (__cdecl libtorrent::aux::session_impl::*)(std::weak_ptr<libtorrent::aux::session_udp_socket>,std::weak_ptr<libtorrent::aux::listen_socket_t>,enum libtorrent::aux::transport,boost::system::error_code const &),libtorrent::aux::session_impl *,std::weak_ptr<libtorrent::aux::session_udp_socket>,std::weak_ptr<libtorrent::aux::listen_socket_t>,enum libtorrent::aux::transport const &,std::_Ph<1> const &>,400>::operator()<boost::system::error_code const &,unsigned __int64 const &>+0xab [g:\qbittorrent\libtorrent\include\libtorrent\aux_\allocating_handler.hpp @ 101]
00000000`076afa30 00000001`3fe60849 : 00000000`00a67540 00000000`00000000 00000000`076afd50 00000000`00000000 : qbittorrent!boost::asio::detail::win_iocp_null_buffers_op<libtorrent::aux::allocating_handler<std::_Binder<std::_Unforced,void (__cdecl libtorrent::aux::session_impl::*)(std::weak_ptr<libtorrent::aux::session_udp_socket>,std::weak_ptr<libtorrent::aux::listen_socket_t>,enum libtorrent::aux::transport,boost::system::error_code const &),libtorrent::aux::session_impl *,std::weak_ptr<libtorrent::aux::session_udp_socket>,std::weak_ptr<libtorrent::aux::listen_socket_t>,enum libtorrent::aux::transport const &,std::_Ph<1> const &>,400>,boost::asio::any_io_executor>::do_complete+0x351 [g:\qbittorrent\boost_1_80_0\boost\asio\detail\win_iocp_null_buffers_op.hpp @ 112]
00000000`076afc50 00000001`3fe6029f : 00000000`00000000 00000000`00000000 00000000`076afe20 00000000`0a63d2d1 : qbittorrent!boost::asio::detail::win_iocp_io_context::do_one+0x419 [g:\qbittorrent\boost_1_80_0\boost\asio\detail\impl\win_iocp_io_context.ipp @ 474]
00000000`076afdd0 00000001`3fe62373 : 00000000`00000000 00000000`02f477d0 00000000`00000000 00000000`02f0ed30 : qbittorrent!boost::asio::detail::win_iocp_io_context::run+0x10f [g:\qbittorrent\boost_1_80_0\boost\asio\detail\impl\win_iocp_io_context.ipp @ 204]
00000000`076afeb0 00000001`3fe5f409 : 00000000`02f47fc0 00000000`00000000 9e0c2e5b`32d12870 00000000`076afb78 : qbittorrent!std::_LaunchPad<std::unique_ptr<std::tuple<<lambda_429b426b62d11088bf4a3540dd1b2f91> >,std::default_delete<std::tuple<<lambda_429b426b62d11088bf4a3540dd1b2f91> > > > >::_Go+0x53 [c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.16.27023\include\thr\xthread @ 230]
00000000`076aff00 00000001`4093826a : 00000000`02f47fc0 00000000`00000000 00000000`00000000 00000000`00000000 : qbittorrent!std::_Pad::_Call_func+0x19 [c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.16.27023\include\thr\xthread @ 209]
00000000`076aff30 00000000`77bb59cd : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : qbittorrent!thread_start<unsigned int (__cdecl*)(void *),1>+0x5a [minkernel\crts\ucrt\src\appcrt\startup\thread.cpp @ 97]
00000000`076aff60 00000000`77d1383d : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : kernel32!BaseThreadInitThunk+0xd
00000000`076aff90 00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x1d

Related #18157

thalieht avatar Dec 20 '22 14:12 thalieht

Closing due to https://github.com/qbittorrent/qBittorrent/issues/18157#issuecomment-1369067637, If anyone experiences this issue in latest qBittorrent version, then please open a new ticket with relevant info etc.

xavier2k6 avatar Dec 17 '23 13:12 xavier2k6