qbittorrent / qBittorrent

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

Newer versions of qBittorrent crash at least twice a day (on my computer). #18730

Closed persona-joker closed 7 months ago

persona-joker commented 1 year ago

qBittorrent & operating system versions

qBittorrent: v4.5.2 (64-bit) Operating system: Windows 10 Enterprise 21H2 10.0.19044 x64 Qt: 5.15.8 libtorrent-rasterbar: 1.2.18.0

What is the problem?

Newer versions of qBittorrent crash at least twice a day (on my computer). The problem happens with 4.3.9, 4.4.5, and 4.5.2 4.1.9 does NOT crash.

I want to use 4.5.2, and here's my crash report:

qBittorrent version: v4.5.2 (64-bit) Libtorrent version: 1.2.18.0 Qt version: 5.15.8 Boost version: 1.81.0 OpenSSL version: 1.1.1t zlib version: 1.2.13 OS version: Windows 10 Version 2009 10.0.19044 x86_64

Caught signal: SIGABRT

 0# boost::stacktrace::basic_stacktrace >::init at G:\QBITTORRENT\boost_1_81_0\boost\stacktrace\stacktrace.hpp:78
 1# getStacktrace at G:\QBITTORRENT\qbt-src-4.5.2-RC_1_2\src\app\stacktrace.cpp:35
 2# `anonymous namespace'::abnormalExitHandler at G:\QBITTORRENT\qbt-src-4.5.2-RC_1_2\src\app\signalhandler.cpp:103
 3# raise at minkernel\crts\ucrt\src\appcrt\misc\signal.cpp:547
 4# abort at minkernel\crts\ucrt\src\appcrt\startup\abort.cpp:71
 5# terminate at minkernel\crts\ucrt\src\appcrt\misc\terminate.cpp:58
 6# FindHandler at D:\a\_work\1\s\src\vctools\crt\vcruntime\src\eh\frame.cpp:735
 7# __InternalCxxFrameHandler at D:\a\_work\1\s\src\vctools\crt\vcruntime\src\eh\frame.cpp:399
 8# __InternalCxxFrameHandlerWrapper at D:\a\_work\1\s\src\vctools\crt\vcruntime\src\eh\frame.cpp:234
 9# __CxxFrameHandler4 at D:\a\_work\1\s\src\vctools\crt\vcruntime\src\eh\risctrnsctrl.cpp:306
10# _chkstk in ntdll
11# RtlRaiseException in ntdll
12# RtlRaiseException in ntdll
13# RaiseException in KERNELBASE
14# _CxxThrowException at D:\a\_work\1\s\src\vctools\crt\vcruntime\src\eh\throw.cpp:75
15# boost::throw_exception at G:\QBITTORRENT\boost_1_81_0\boost\throw_exception.hpp:157
16# boost::asio::detail::do_throw_error at G:\QBITTORRENT\boost_1_81_0\boost\asio\detail\impl\throw_error.ipp:42
17# boost::asio::detail::socket_select_interrupter::open_descriptors at G:\QBITTORRENT\boost_1_81_0\boost\asio\detail\impl\socket_select_interrupter.ipp:66
18# boost::asio::detail::select_reactor::restart_reactor::do_complete at G:\QBITTORRENT\boost_1_81_0\boost\asio\detail\impl\select_reactor.ipp:335
19# boost::asio::detail::win_iocp_io_context::do_one at G:\QBITTORRENT\boost_1_81_0\boost\asio\detail\impl\win_iocp_io_context.ipp:474
20# boost::asio::detail::win_iocp_io_context::run at G:\QBITTORRENT\boost_1_81_0\boost\asio\detail\impl\win_iocp_io_context.ipp:204
21# std::thread::_Invoke >,0> at C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\include\thread:55
22# thread_start at minkernel\crts\ucrt\src\appcrt\startup\thread.cpp:97
23# BaseThreadInitThunk in KERNEL32
24# RtlUserThreadStart in ntdll

Steps to reproduce

  1. Start up qBittorrent 4.5.2
  2. Wait until it crashes

Additional context

No response

Log(s) & preferences file(s)

Here are my logs and preferences. I redacted some info (in the files) that may be sensitive. logs and preferences.zip

glassez commented 1 year ago

Do you use some kind of Proxy/VPN?

@arvidn Looks like some boost.asio exception unhandled in libtorrent code.

persona-joker commented 1 year ago

Yes, I use Ivacy VPN when I use qBittorrent.

xavier2k6 commented 1 year ago

Possibly relevant too -> https://github.com/qbittorrent/qBittorrent/issues/18255#issuecomment-1475087975 & (FYI/Reminder) -> https://github.com/chriskohlhoff/asio/issues/1061

persona-joker commented 1 year ago

Looks like this is a known issue. I figured out a few things. qBit crashes every time my VPN disconnects. All I have to do is intentionally disconnect my VPN, and qBit 4.5.2 will crash. 4.2.5 doesn't crash. 4.3.0 and 4.3.0.1 both crash. I'm guessing that the following change in 4.3.0 is why 4.3.0 and everything newer crashes: "OTHER: Support for libtorrent 1.1.x is dropped (Chocobo1)"

xavier2k6 commented 7 months ago

Duplicate of #17082