qbittorrent / qBittorrent

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

Crashes when VPN connection changes or is disconnected 😞 #21848

Closed EviLFazZ closed 6 days ago

EviLFazZ commented 6 days ago

qBittorrent & operating system versions

qBittorrent version: v5.0.1 (64-bit) Libtorrent version: 1.2.19.0 Qt version: 6.7.3 Boost version: 1.86.0 OpenSSL version: 3.4.0 zlib version: 1.3.1 OS version: Windows 11 Version 23H2 10.0.22631 x86_64

What is the problem?

Only since v5 of qBittorrent, if my VPN changes (manually or automatically) or disconnected (manually or by network loss), it crashes, but did not have this issue with previous versions 😕

image

0# boost::stacktrace::basic_stacktrace >::init at G:\QBITTORRENT\boost_1_86_0\boost\stacktrace\stacktrace.hpp:111
1# getStacktrace at G:\QBITTORRENT\qbt-src-5.0.1\src\app\stacktrace.cpp:35
2# `anonymous namespace'::abnormalExitHandler at G:\QBITTORRENT\qbt-src-5.0.1\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# RtlFindCharInUnicodeString 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_86_0\boost\throw_exception.hpp:157
16# boost::asio::detail::do_throw_error at G:\QBITTORRENT\boost_1_86_0\boost\asio\detail\impl\throw_error.ipp:42
17# boost::asio::detail::socket_select_interrupter::open_descriptors at G:\QBITTORRENT\boost_1_86_0\boost\asio\detail\impl\socket_select_interrupter.ipp:89
18# boost::asio::detail::select_reactor::restart_reactor::do_complete at G:\QBITTORRENT\boost_1_86_0\boost\asio\detail\impl\select_reactor.ipp:343
19# boost::asio::detail::win_iocp_io_context::do_one at G:\QBITTORRENT\boost_1_86_0\boost\asio\detail\impl\win_iocp_io_context.ipp:476
20# boost::asio::detail::win_iocp_io_context::run at G:\QBITTORRENT\boost_1_86_0\boost\asio\detail\impl\win_iocp_io_context.ipp:206
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️⃣ Change VPN's location, iP, server, etc 2️⃣ Disconnect VPN 3️⃣ Disable any/all connections with the internet 4️⃣ Disable route/hub/switch 5️⃣ Unplug LAN/disable WiFi

Additional context

Also, who decided in v5 to use Windows accent colour as the text background... it is truly awful 🤮

image

Log(s) & preferences file(s)

qBittorrent - crash log - Nov'2024 - 01.log

xavier2k6 commented 6 days ago

@EviLFazZ First of all, thank you for a well presented ticket! - however, it's a duplicate of #17082 (still haven't been able to determine where the issue lies our code/one of our dependencies)

I would also just like to ask for clarification what VPN you are using & it's version & if you are using any other software with it like wireguard/firewall?

who decided in v5 to use Windows accent colour as the text background

See #21616

stalkerok commented 6 days ago

who decided in v5 to use Windows accent colour as the text background...

You can disable alternating row color.

EviLFazZ commented 6 days ago

..."however, it's a duplicate of #17082 (still haven't been able to determine where the issue lies our code/one of our dependencies)"

Thanks @xavier2k6, i did search a few times and did see this post #17082, but it did not seem similar, because as i said, i never had this issue with any previous version of qBittorrent and only started with v5.0, so i thought it best and proactive to post my exact issue, with supporting details 🤓

"...what VPN you are using & it's version & if you are using any other software with it like wireguard/firewall?"

Yes, i strictly use qBittorrent a VPN, with Wireguard enabled within the application and restrict qBittorrent to only connect when my VPN is actively working 🚫

I use PrivadoVPN with 'Wireguard' enabled and 'Kill Switch' enabled (that includes qBittorrent within the list among others) and currently is v3.10.0 🗒️

image

See #21616

Thanks and @stalkerok's suggestion helped 👍🏾 ...although it still would be nice to have "alternating row colours", and choose colour manually 💭