qbittorrent / qBittorrent

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

Crashed app #19436

Open Byrappa opened 1 year ago

Byrappa commented 1 year ago

qBittorrent & operating system versions

qBittorrent: v4.5.4 x64 Operating system: Windows 11 Version 2009 10.0.22621 x86_64 Qt version: 5.15.10 Libtorrent version: 1.2.19.0 Boost version: 1.82.0 OpenSSL version: 1.1.1u zlib version: 1.2.13

What is the problem?

Caught signal: SIGABRT

 0# boost::stacktrace::basic_stacktrace >::init at G:\QBITTORRENT\boost_1_82_0\boost\stacktrace\stacktrace.hpp:78
 1# getStacktrace at G:\QBITTORRENT\qbt-src-4.5.4\src\app\stacktrace.cpp:35
 2# `anonymous namespace'::abnormalExitHandler at G:\QBITTORRENT\qbt-src-4.5.4\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# libtorrent::aux::throw_ex at G:\QBITTORRENT\libtorrent\include\libtorrent\aux_\throw.hpp:49
16# libtorrent::torrent_handle::async_call),libtorrent::flags::bitfield_flag &> at G:\QBITTORRENT\libtorrent\src\torrent_handle.cpp:95
17# libtorrent::torrent_handle::save_resume_data at G:\QBITTORRENT\libtorrent\src\torrent_handle.cpp:376
18# BitTorrent::SessionImpl::saveResumeData at G:\QBITTORRENT\qbt-src-4.5.4\src\base\bittorrent\sessionimpl.cpp:2870
19# BitTorrent::SessionImpl::~SessionImpl at G:\QBITTORRENT\qbt-src-4.5.4\src\base\bittorrent\sessionimpl.cpp:589
20# BitTorrent::SessionImpl::`scalar deleting destructor' in qbittorrent
21# BitTorrent::Session::freeInstance at G:\QBITTORRENT\qbt-src-4.5.4\src\base\bittorrent\sessionimpl.cpp:352
22# Application::cleanup at G:\QBITTORRENT\qbt-src-4.5.4\src\app\application.cpp:1212
23# Application::~Application at G:\QBITTORRENT\qbt-src-4.5.4\src\app\application.cpp:225
24# std::unique_ptr >::~unique_ptr > at C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\include\memory:3216
25# _CallSettingFrameEncoded at D:\a\_work\1\s\src\vctools\crt\vcruntime\src\eh\amd64\handlers.asm:183
26# __FrameHandler4::FrameUnwindToState at D:\a\_work\1\s\src\vctools\crt\vcruntime\src\eh\frame.cpp:1146
27# __FrameHandler4::FrameUnwindToEmptyState at D:\a\_work\1\s\src\vctools\crt\vcruntime\src\eh\risctrnsctrl.cpp:234
28# __InternalCxxFrameHandler at D:\a\_work\1\s\src\vctools\crt\vcruntime\src\eh\frame.cpp:351
29# __InternalCxxFrameHandlerWrapper at D:\a\_work\1\s\src\vctools\crt\vcruntime\src\eh\frame.cpp:234
30# __CxxFrameHandler4 at D:\a\_work\1\s\src\vctools\crt\vcruntime\src\eh\risctrnsctrl.cpp:306
31# __GSHandlerCheck_EH4 at D:\a\_work\1\s\src\vctools\crt\vcstartup\src\gs\amd64\gshandlereh4.cpp:86
32# _chkstk in ntdll
33# RtlUnwindEx in ntdll
34# _C_specific_handler in ntdll
35# _chkstk in ntdll
36# RtlFindCharInUnicodeString in ntdll
37# RtlRaiseException in ntdll
38# RaiseException in KERNELBASE
39# _CxxThrowException at D:\a\_work\1\s\src\vctools\crt\vcruntime\src\eh\throw.cpp:75
40# libtorrent::aux::throw_ex at G:\QBITTORRENT\libtorrent\include\libtorrent\aux_\throw.hpp:49
41# libtorrent::session_handle::add_torrent at G:\QBITTORRENT\libtorrent\src\session_handle.cpp:391
42# libtorrent::session_handle::add_torrent at G:\QBITTORRENT\libtorrent\src\session_handle.cpp:397
43# BitTorrent::TorrentImpl::reload at G:\QBITTORRENT\qbt-src-4.5.4\src\base\bittorrent\torrentimpl.cpp:1674
44# BitTorrent::TorrentImpl::endReceivedMetadataHandling at G:\QBITTORRENT\qbt-src-4.5.4\src\base\bittorrent\torrentimpl.cpp:1635
45# BitTorrent::SessionImpl::fileSearchFinished at G:\QBITTORRENT\qbt-src-4.5.4\src\base\bittorrent\sessionimpl.cpp:2132
46# QtPrivate::QSlotObject const &),QtPrivate::List const &>,void>::impl at G:\QBITTORRENT\packages_msvc2022_64\qt5\include\QtCore\qobjectdefs_impl.h:425
47# QMetaCallEvent::placeMetaCall in qbittorrent
48# QObject::event in qbittorrent
49# QApplicationPrivate::notify_helper in qbittorrent
50# QApplication::notify in qbittorrent
51# QCoreApplication::notifyInternal2 in qbittorrent
52# QCoreApplicationPrivate::sendPostedEvents in qbittorrent
53# QWindowsGuiEventDispatcher::sendPostedEvents in qbittorrent
54# QEventDispatcherWin32::processEvents in qbittorrent
55# QWindowsGuiEventDispatcher::processEvents in qbittorrent
56# QEventLoop::exec in qbittorrent
57# QCoreApplication::exec in qbittorrent
58# Application::exec at G:\QBITTORRENT\qbt-src-4.5.4\src\app\application.cpp:879
59# main at G:\QBITTORRENT\qbt-src-4.5.4\src\app\main.cpp:261
60# WinMain in qbittorrent
61# __scrt_common_main_seh at D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
62# BaseThreadInitThunk in KERNEL32
63# RtlUserThreadStart in ntdll

Steps to reproduce

No response

Additional context

No response

Log(s) & preferences file(s)

No response

glassez commented 1 year ago

@Byrappa Could you match some event or action with this crash? For example, you added a new torrent (via Magnet URI), etc...

Byrappa commented 1 year ago

The client was active for four days continously, I had added over 600 new torrents via Magnet URI. Most of it paused, and only resuming it when previous downloads were finished. No more than 20-30 active torrents at a time. (Each less than a few mb, as there are hardly enough big files from academix records, but the quantity was more and the upload speed too low that it took hours to download even a 2-3 mb file.)

On the fifth day, I was adding a few new torrents via Magnet URI, and around 12-13 new torrent windows were open and waiting to download the metadata before I added it into the waiting list. When the client froze and stopped responding. I waited for around 5 mins, and then suddenly the app crashed and I got a new window with the above text.

glassez commented 1 year ago

On the fifth day, I was adding a few new torrents via Magnet URI, and around 12-13 new torrent windows were open and waiting to download the metadata before I added it into the waiting list.

Do you always wait for metadata downloaded before add torrents to list or do some torrents get metadata while already being in the list?

Byrappa commented 1 year ago

I always wait for the metadata to download. Previously, I used to add before waiting for the metadata, and 8 out of 10 times, I was never able to download the torrent. It would show me the number of seeders and leechers, but not the file size and wouldn't start downloading. I had to remove the torrent and add it again. Since then, I usually wait for the metadata to download before adding to the list.