qBittorrent
qBittorrent copied to clipboard
Master branch (Crash on exit) with Qt 6.5.0 Beta 1
qBittorrent & operating system versions
qBittorrent: v4.6.0alpha1 Operating system: Microsoft Windows 10 Pro x64 22H2 [Version 10.0.19045.2364] Qt 6.5.0 Beta 1 libtorrent-rasterbar: 1.2.18 & 2.0.8
What is the problem?
Silent crash on exit.
Exception code: 0xc0000409 is logged in Eventvwr & there's a small dump file in %LOCALAPPDATA%\CrashDumps
See stack traces under "Additional context".
NOTE: Also appears to be an issue on Ubuntu with Translations!
Steps to reproduce
Source of preliminary Qt 6.5.0 Beta based branch
- Download Windows based build from here
- Launch qBittorrent CI Build with Qt 6.5.0 Beta 1 and then exit.
Additional context
Analysis of Crash Dump from %LOCALAPPDATA%\CrashDumps
Attached Debugger & received below stack trace:
[12/27/2022 4:42:02 PM]
Thread exited. Exiting thread - System ID: 2172. Exit code - 0x00000000
Thread exited. Exiting thread - System ID: 5684. Exit code - 0x00000000
Thread exited. Exiting thread - System ID: 1648. Exit code - 0x00000000
Thread exited. Exiting thread - System ID: 8272. Exit code - 0x00000000
Thread exited. Exiting thread - System ID: 2988. Exit code - 0x00000000
Thread exited. Exiting thread - System ID: 10860. Exit code - 0x00000000
Thread exited. Exiting thread - System ID: 15232. Exit code - 0x00000000
Thread exited. Exiting thread - System ID: 7244. Exit code - 0x00000000
Thread exited. Exiting thread - System ID: 4596. Exit code - 0x00000000
Thread exited. Exiting thread - System ID: 7456. Exit code - 0x00000000
Thread exited. Exiting thread - System ID: 8404. Exit code - 0x00000000
Thread exited. Exiting thread - System ID: 14040. Exit code - 0x00000000
Exception 0XC0000005 on thread 13776.
Stack Trace
RetAddr : Args to Child : Call Site
00007ffe`fe1ac817 : 00000190`2921ef60 00000000`005606d4 00000063`8a1d8e90 00007ff6`7fa0912f : Qt6Core!QAbstractEventDispatcher::filterNativeEvent+0x60
00007ffe`fe1adf83 : 00000000`00000000 00000063`8a1d9079 00000000`00000000 00000000`00000000 : qwindows!qt_plugin_query_metadata_v2+0xaac7
*** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\WINDOWS\System32\USER32.dll -
00007fff`66a2e7e8 : 00000000`00000000 00000190`25000000 00000000`00000001 00000000`00000000 : qwindows!qt_plugin_query_metadata_v2+0xc233
00007fff`66a2e36c : 00000000`00000000 00007ffe`fe1adee0 00000000`005606d4 00007fff`00000090 : USER32!CallWindowProcW+0x3f8
00007fff`66a40c23 : 00000000`00000000 00000000`00000000 00000000`00000000 00007fff`6753bc7a : USER32!DispatchMessageW+0x39c
00007fff`68050ef4 : 0000a8ab`cf811e92 00000000`00000000 00000190`3e357fa0 00007ffe`fe1ffa47 : USER32!SendMessageTimeoutW+0x143
00007fff`65e82384 : 00007ffe`fe1faee0 00000000`00000000 00000190`3e357fa0 00000000`00000000 : ntdll!KiUserCallbackDispatcher+0x24
*** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\WINDOWS\System32\win32u.dll -
00007ffe`fe1faee0 : 00000000`00000000 00000190`3e357fa0 00000000`00000000 00007ffe`fe2626d0 : win32u!NtUserDestroyWindow+0x14
00007ffe`fe1f85d7 : 00000063`8a1d9450 00001992`7ff76df3 00000190`3e357fa0 00000000`00000000 : qwindows!qt_plugin_query_metadata_v2+0x59190
*** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\Users\PC\Desktop\Qt 6.5 Pre-Release Testing\qBittorrent-CI_Windows-x64_libtorrent-1.2.18_Qt 6.5 Pre-Release Testing #1446\Qt6Gui.dll -
00007ffe`fee98401 : 00000000`00000000 00000190`39a86df0 00000000`00000000 00000190`3e357fa0 : qwindows!qt_plugin_query_metadata_v2+0x56887
*** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\Users\PC\Desktop\Qt 6.5 Pre-Release Testing\qBittorrent-CI_Windows-x64_libtorrent-1.2.18_Qt 6.5 Pre-Release Testing #1446\Qt6Widgets.dll -
00007ffe`fe84d2e7 : 00000190`311a6f50 00000000`00000000 00000190`39900e40 00000190`39900e40 : Qt6Gui!QWindowPrivate::destroy+0x131
00007ffe`fe84d54b : 00000190`39900e40 00000190`39900e40 00000000`00000001 00007ffe`fe338fde : Qt6Widgets!QWidgetPrivate::deleteTLSysExtra+0xd7
00007ffe`fe847da5 : 00000190`2921adc0 00000000`60606301 00000000`00000000 00000000`60606318 : Qt6Widgets!QWidget::destroy+0x22b
*** WARNING: Unable to verify checksum for qbittorrent.exe
00007ff6`7fa0912f : 00000190`39900e40 00000190`34514f50 00000000`00000001 00000190`34518f80 : Qt6Widgets!QWidget::~QWidget+0x555
00007ffe`fe333416 : 00000063`8a1d9860 00000190`2d126fe0 00000000`00000001 00007ff6`80963000 : qbittorrent!Application::cleanup+0x34f [D:\a\qBittorrent\qBittorrent\src\app\application.cpp @ 1203]
00007ffe`fe3357c4 : 00000190`2921adc0 00000000`00000003 00000000`00000003 00007ff6`7fa67f01 : Qt6Core!QObject::qt_static_metacall+0x1866
00007ffe`fe2f7c88 : 00000000`00000000 00000063`8a1d9a20 00000000`00000000 00000000`00000000 : Qt6Core!QMetaObject::activate+0x84
00007ff6`7fb59bd8 : 00000063`8a1da170 00007ffe`fe8f8f01 00000190`39900e40 00000000`00000000 : Qt6Core!QCoreApplication::exit+0x58
00007ffe`fe84f284 : 00000000`00000000 00000000`00000000 00000000`00000000 00000190`00000000 : qbittorrent!MainWindow::closeEvent+0x4d8 [D:\a\qBittorrent\qBittorrent\src\gui\mainwindow.cpp @ 1168]
00007ff6`7fb5bf5d : 00000063`8a1da170 00000190`39900e40 00000063`8a1da170 00000190`39900e40 : Qt6Widgets!QWidget::event+0x634
00007ffe`fe810cbe : 00000190`29220ff0 00000190`2921ce00 00000190`2921ce00 00000190`39900e40 : qbittorrent!MainWindow::event+0x18d [D:\a\qBittorrent\qBittorrent\src\gui\mainwindow.cpp @ 1242]
00007ffe`fe80fd91 : 00000190`29220ff0 00000063`8a1d9d30 00000000`00000000 00000190`29220ff0 : Qt6Widgets!QApplicationPrivate::notify_helper+0x10e
00007ffe`fe2f9e35 : 00000190`2921adc0 00000190`39900e40 00000063`8a1da170 00000190`00000000 : Qt6Widgets!QApplication::notify+0x1891
00007ffe`fe851718 : 00000063`8a1da208 00000000`00000000 00000190`39900e40 00000000`00000000 : Qt6Core!QCoreApplication::notifyInternal2+0xc5
00007ffe`fe86b21c : 00000063`8a1da960 00000063`8a1da279 00000190`3e357fa0 00000063`8a1da960 : Qt6Widgets!QWidgetPrivate::handleClose+0x98
00007ffe`fee98968 : 00000190`3e359e80 00000190`22c50000 00000000`00000000 00007fff`68001dec : Qt6Widgets!QWidgetRepaintManager::updateStaticContentsSize+0x6ac
00007ffe`fe86bcba : 00000001`00000010 00007fff`68001dec 00000190`3e357fa0 00000000`00000000 : Qt6Gui!QWindow::event+0x268
00007ffe`fe810cbe : 00000190`29220ff0 00000190`2921ce00 00000190`29220ff0 00000063`8a1da960 : Qt6Widgets!QWidgetRepaintManager::updateStaticContentsSize+0x114a
00007ffe`fe80fd91 : 00000190`29220ff0 00000063`8a1da520 00000000`00000000 00000190`29220ff0 : Qt6Widgets!QApplicationPrivate::notify_helper+0x10e
00007ffe`fe2f9e35 : 00000190`2921adc0 00000190`3e357fa0 00000063`8a1da960 00000190`00000000 : Qt6Widgets!QApplication::notify+0x1891
00007ffe`fee579db : 00000063`8a1dac20 00007ffe`fe3dcf9b 00000063`8a1da9a0 00000063`8a1dabf0 : Qt6Core!QCoreApplication::notifyInternal2+0xc5
00007ffe`fee9e0c8 : 00000190`3e357fa0 00000190`39910ff0 00000063`8a1daa10 00000190`39ca0fd0 : Qt6Gui!QGuiApplicationPrivate::processCloseEvent+0xab
00007ffe`fee97d74 : 00000190`376a0ff0 00000190`39900e40 00000063`8a1dac20 00000190`445afe80 : Qt6Gui!QWindowSystemInterface::handleEnterEvent<QWindowSystemInterface::SynchronousDelivery>+0x488
00007ff6`7fb5133f : 00000000`00000037 00000063`8a1dac20 00000063`8a1dac20 00000000`00000000 : Qt6Gui!QWindow::close+0x64
00007ffe`fe304d61 : 00000000`00000007 00000063`8a1dab80 00000190`2921ef01 00000063`8a1dac20 : qbittorrent!MainWindow::qt_metacall+0x4f [D:\a\qBittorrent\qBittorrent\build\src\gui\qbt_gui_autogen\EWIEGA46WW\moc_mainwindow.cpp @ 798]
00007ffe`fe33349d : 00000190`39910ff0 00000190`39910ff0 00000190`34682cc0 00000190`311a6f50 : Qt6Core!QMetaObject::metacall+0x41
00007ffe`fe3357c4 : 00000190`39910ff0 00000000`00000007 00000000`00000003 00007ffe`fe99bd01 : Qt6Core!QObject::qt_static_metacall+0x18ed
00007ffe`ff12b561 : 00000190`39914e50 ffffffff`ffffffff 00000190`39910ff0 00007ffe`fe863591 : Qt6Core!QMetaObject::activate+0x84
00007ffe`fe999669 : 00000190`39ca2c10 00000015`00000300 00000063`8a1dad40 00007ffe`fe9aa7eb : Qt6Gui!QAction::activate+0x171
00007ffe`fe999504 : 00000190`39ca2c10 00000063`8a1dad40 00000190`39910ff0 00000063`8a1dad70 : Qt6Widgets!QMenu::actionGeometry+0x429
00007ffe`fe99f7aa : 00000190`39910ff0 00000040`00000013 00000190`39910ff0 00000040`00000013 : Qt6Widgets!QMenu::actionGeometry+0x2c4
00007ffe`fe84edb4 : 00000040`00000013 00000190`39ca2c10 00000063`8a1dba00 00007ffe`fe3f10d1 : Qt6Widgets!QMenu::mouseReleaseEvent+0x11a
00007ffe`fe99aea0 : 00000000`00000000 00007ffe`fe351946 00000190`39ca2c10 00000190`3867a900 : Qt6Widgets!QWidget::event+0x164
00007ffe`fe810cbe : 00000190`29220ff0 00000190`2921ce00 00000063`8a1dba00 00000190`29220ff0 : Qt6Widgets!QMenu::event+0x320
00007ffe`fe80ec59 : 00000063`8a1dba00 00000063`8a1db100 00000190`39cb0ff0 00000190`39cb0ff0 : Qt6Widgets!QApplicationPrivate::notify_helper+0x10e
00007ffe`fe2f9e35 : 00000190`00000000 00000190`39ca0fd0 00000063`8a1dba00 00000190`00000001 : Qt6Widgets!QApplication::notify+0x759
00007ffe`fe81493f : 00000000`00000000 00000063`8a1db530 00007ffe`fed7d6b0 00000063`8a1dbad0 : Qt6Core!QCoreApplication::notifyInternal2+0xc5
00007ffe`fe86d63d : 00000000`00000000 00000000`00000000 00000000`00000000 00000190`39cb0ff0 : Qt6Widgets!QApplicationPrivate::sendMouseEvent+0x3ef
00007ffe`fe86b7a3 : 00000190`441a1888 00007fff`3e0029fd 00000190`29220ff0 00000190`22c50000 : Qt6Widgets!QWidgetRepaintManager::updateStaticContentsSize+0x2acd
00007ffe`fe810cbe : 00000190`29220ff0 00000190`2921ce00 00000190`29220ff0 00000063`8a1dc410 : Qt6Widgets!QWidgetRepaintManager::updateStaticContentsSize+0xc33
00007ffe`fe80fd91 : 00000190`29220ff0 00000063`8a1dbd80 00000000`00000000 00000190`29220ff0 : Qt6Widgets!QApplicationPrivate::notify_helper+0x10e
00007ffe`fe2f9e35 : 00000190`2921adc0 00000190`2b714fa0 00000063`8a1dc410 00000190`00000000 : Qt6Widgets!QApplication::notify+0x1891
00007ffe`fee59019 : 00000190`40939ff0 00000190`3867a900 00000190`40939ff0 00000000`00000000 : Qt6Core!QCoreApplication::notifyInternal2+0xc5
00007ffe`feea70c8 : 00000190`2a7c7fe0 00000000`00000001 00000190`42da1f80 00000000`00000000 : Qt6Gui!QGuiApplicationPrivate::processMouseEvent+0x799
00007ffe`fe458f10 : 00000000`000000a4 00000190`33c2af70 00000190`33c2af70 00000000`00000025 : Qt6Gui!QWindowSystemInterface::sendWindowSystemEvents+0xe8
00007ffe`ff0f5c89 : 00000000`00000000 00000000`00000000 00000190`33c2af70 00000190`2a7c7fe0 : Qt6Core!QEventDispatcherWin32::processEvents+0x90
00007ffe`fe2ff784 : 00000000`00000080 00000000`00000080 00000190`33c2af70 00000190`29220ff0 : Qt6Gui!QWindowsGuiEventDispatcher::processEvents+0x19
00007ffe`fe2f7bbd : 00000063`8a1df940 00000190`2921ef60 00000190`2921ef60 00000000`00000000 : Qt6Core!QEventLoop::exec+0x194
00007ff6`7fa0a095 : 00000190`2921adc0 00000190`38b8cfd0 00000190`0000000e 00000190`38b8cfd0 : Qt6Core!QCoreApplication::exec+0x15d
00007ff6`7fa178fe : 00000000`00000000 00000190`2921ad00 00007ff6`7fa36700 00000190`3309efe0 : qbittorrent!Application::exec+0x575 [D:\a\qBittorrent\qBittorrent\src\app\application.cpp @ 851]
00007ff6`800ae0cd : 00000000`00000001 00000000`00000000 00000190`2921adc0 00000190`2921adc0 : qbittorrent!main+0x4de [D:\a\qBittorrent\qBittorrent\src\app\main.cpp @ 270]
00007ff6`8007ac42 : 00000000`00000001 00007ff6`8007acb9 00000190`29216ff0 00000190`29214ed0 : qbittorrent!qtEntryPoint+0x15d [C:\Users\qt\work\qt\qtbase\src\entrypoint\qtentrypoint_win.cpp @ 50]
(Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : qbittorrent!invoke_main+0x21 [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 102]
00007fff`67337614 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : qbittorrent!__scrt_common_main_seh+0x106 [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 288]
00007fff`680026a1 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : KERNEL32!BaseThreadInitThunk+0x14
00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x21
[12/27/2022 4:42:03 PM]
Action limit of 1 reached for Exception 'C0000005::'.
[12/27/2022 4:42:04 PM]
Second chance exception - 0XC000041D caused by thread with System ID: 13776
Log(s) & preferences file(s)
No response
Still happens with latest master commit & official Qt 6.5.0 release:
Exception 0XC0000005 on thread 11128.
Stack Trace
RetAddr : Args to Child : Call Site
00007ffd`479da2e7 : 00000145`d6ddaf60 00000000`00410226 00000043`430f8b10 00000000`00000000 : Qt6Core!QAbstractEventDispatcher::filterNativeEvent+0x60
00007ffd`479dba53 : 00000000`00000000 00000043`430f8cf9 00000000`00000000 00000000`00000000 : qwindows!qt_plugin_query_metadata_v2+0x8597
*** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\WINDOWS\System32\USER32.dll -
00007ffd`6554e858 : 00000000`00000000 00000145`d2400000 00000000`00000001 00000000`00000000 : qwindows!qt_plugin_query_metadata_v2+0x9d03
00007ffd`6554e3dc : 00000000`00000000 00007ffd`479db9b0 00000000`00410226 00007ffd`00000090 : USER32!CallWindowProcW+0x3f8
00007ffd`65560c33 : 00000000`00000000 00000000`00000000 00000000`00000000 00007ffd`66cdbc7a : USER32!DispatchMessageW+0x39c
00007ffd`66fb0eb4 : 0000598a`f054ace9 00000000`00000000 00000145`e7067fa0 00007ffd`47a2fc27 : USER32!SendMessageTimeoutW+0x143
00007ffd`64732384 : 00007ffd`47a2b020 00000000`00000000 00000145`e7067fa0 00000000`00000000 : ntdll!KiUserCallbackDispatcher+0x24
*** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\WINDOWS\System32\win32u.dll -
00007ffd`47a2b020 : 00000000`00000000 00000145`e7067fa0 00000000`00000000 00007ffd`47a92688 : win32u!NtUserDestroyWindow+0x14
00007ffd`47a286b7 : 00000043`430f90d0 00009a43`19275ab6 00000145`e7067fa0 00000000`00000000 : qwindows!qt_plugin_query_metadata_v2+0x592d0
*** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\Users\PC\Desktop\qBittorrent-CI_Windows-x64_libtorrent-RC_2_0_Qt-6.5.0_Use latest dependencies #1504\Qt6Gui.dll -
00007ffd`34287b31 : 00000000`00000000 00000145`ee349df0 00000000`00000000 00000145`e7067fa0 : qwindows!qt_plugin_query_metadata_v2+0x56967
*** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\Users\PC\Desktop\qBittorrent-CI_Windows-x64_libtorrent-RC_2_0_Qt-6.5.0_Use latest dependencies #1504\Qt6Widgets.dll -
00007ffd`3498d397 : 00000145`e92aef50 00000000`00000000 00000145`ea900e30 00000145`ea900e30 : Qt6Gui!QWindowPrivate::destroy+0x131
00007ffd`3498d5fb : 00000145`ea900e30 00000145`ea900e30 00000000`00000001 00007ffd`33ce94ce : Qt6Widgets!QWidgetPrivate::deleteTLSysExtra+0xd7
00007ffd`34987d45 : 00000145`d6dd6cf0 00000000`60606301 00000000`00000000 00000000`60606318 : Qt6Widgets!QWidget::destroy+0x22b
*** WARNING: Unable to verify checksum for qbittorrent.exe
00007ff6`7f76893f : 00000145`ea900e30 00000145`ee158f50 00000000`00000001 00000145`ee15cf80 : Qt6Widgets!QWidget::~QWidget+0x555
00007ffd`33ce3826 : 00000043`430f9420 00000145`d910bfe0 00000000`00000001 00000043`430f9978 : qbittorrent!Application::cleanup+0x34f [D:\a\qBittorrent\qBittorrent\src\app\application.cpp @ 1274]
00007ffd`33ce5cf4 : 00000145`d6dd6cf0 00007ff6`00000003 00000000`00000003 00000000`00000001 : Qt6Core!QObject::qt_static_metacall+0x1906
00007ffd`33ca7b98 : 00000000`00000000 00000043`430f96a0 00000000`00000000 00000000`00000000 : Qt6Core!QMetaObject::activate+0x84
00007ff6`7f8c28c9 : 00000000`00000000 00000043`430f9601 00000000`ffffffff 00000000`00000000 : Qt6Core!QCoreApplication::exit+0x58
00007ffd`3498f334 : 00000000`00000000 00000043`430f9e20 00000000`00000000 00000145`00000000 : qbittorrent!MainWindow::closeEvent+0x529 [D:\a\qBittorrent\qBittorrent\src\gui\mainwindow.cpp @ 1193]
00007ff6`7f8c4c8d : 00000043`430f9e20 00000145`ea900e30 00000043`430f9e20 00000145`ea900e30 : Qt6Widgets!QWidget::event+0x634
00007ffd`34950cae : 00000145`d6ddcff0 00000145`d6dd8e00 00000145`d6dd8e00 00000145`ea900e30 : qbittorrent!MainWindow::event+0x18d [D:\a\qBittorrent\qBittorrent\src\gui\mainwindow.cpp @ 1268]
00007ffd`3494fd81 : 00000145`d6ddcff0 00000043`430f99e0 00000000`00000000 00000145`d6ddcff0 : Qt6Widgets!QApplicationPrivate::notify_helper+0x10e
00007ffd`33ca9d65 : 00000145`d6dd6cf0 00000145`ea900e30 00000043`430f9e20 00000145`00000000 : Qt6Widgets!QApplication::notify+0x1891
00007ffd`349917c8 : 00000043`430f9eb8 00000000`00000000 00000145`ea900e30 00000000`00000000 : Qt6Core!QCoreApplication::notifyInternal2+0xc5
00007ffd`349ab24c : 00000043`430fa610 00000043`430f9f29 00000145`e7067fa0 00000043`430fa610 : Qt6Widgets!QWidgetPrivate::handleClose+0x98
00007ffd`34288098 : 00000145`e923ee80 00000145`d0020000 00000000`00000000 00007ffd`66f61dec : Qt6Widgets!QWidgetRepaintManager::updateStaticContentsSize+0x6cc
00007ffd`349abcea : 00000001`00000010 00007ffd`66f61dec 00000145`e7067fa0 00000000`00000000 : Qt6Gui!QWindow::event+0x268
00007ffd`34950cae : 00000145`d6ddcff0 00000145`d6dd8e00 00000145`d6ddcff0 00000043`430fa610 : Qt6Widgets!QWidgetRepaintManager::updateStaticContentsSize+0x116a
00007ffd`3494fd81 : 00000145`d6ddcff0 00000043`430fa1d0 00000000`00000000 00000145`d6ddcff0 : Qt6Widgets!QApplicationPrivate::notify_helper+0x10e
00007ffd`33ca9d65 : 00000145`d6dd6cf0 00000145`e7067fa0 00000043`430fa610 00000145`00000000 : Qt6Widgets!QApplication::notify+0x1891
00007ffd`34246cab : 00000043`430fa8d0 00007ffd`33d8d2eb 00000043`430fa650 00000043`430fa8a0 : Qt6Core!QCoreApplication::notifyInternal2+0xc5
00007ffd`3428d872 : 00000145`e7067fa0 00000145`ee249ff0 00000043`430fa6c0 00000145`ee532fd0 : Qt6Gui!QGuiApplicationPrivate::processCloseEvent+0xab
00007ffd`342874a4 : 00000145`eda38ff0 00000145`ea900e30 00000043`430fa8d0 00000145`e7960e80 : Qt6Gui!QWindowSystemInterface::handleEnterEvent<QWindowSystemInterface::SynchronousDelivery>+0x502
00007ff6`7f8b928f : 00000000`00000037 00000043`430fa8d0 00000043`430fa8d0 00000000`00000000 : Qt6Gui!QWindow::close+0x64
00007ffd`33cb4cf1 : 00000000`00000007 00000043`430fa830 00000145`d6ddaf01 00000043`430fa8d0 : qbittorrent!MainWindow::qt_metacall+0x4f [D:\a\qBittorrent\qBittorrent\build\src\gui\qbt_gui_autogen\EWIEGA46WW\moc_mainwindow.cpp @ 798]
00007ffd`33ce38ad : 00000145`ee249ff0 00000145`ee249ff0 00000145`ee3d9cc0 00000145`e92aef50 : Qt6Core!QMetaObject::metacall+0x41
00007ffd`33ce5cf4 : 00000145`ee249ff0 00000000`00000007 00000000`00000003 00007ffd`34adba01 : Qt6Core!QObject::qt_static_metacall+0x198d
00007ffd`3451bbd1 : 00000145`ee24be50 00000145`ee542ff0 00000145`ee249ff0 00007ffd`349a3581 : Qt6Core!QMetaObject::activate+0x84
00007ffd`34ad928d : 00000043`430fa9f0 00000015`00000300 00000145`ee532fd0 00007ffd`34aea3bb : Qt6Gui!QAction::activate+0x171
00007ffd`34ad90d0 : 00000145`ee534c10 00000043`430fa9f0 00000145`ee249ff0 00000043`430faa20 : Qt6Widgets!QMenu::actionGeometry+0x48d
00007ffd`34adf3da : 00000145`ee249ff0 0000003f`00000031 00000145`ee249ff0 0000003f`00000032 : Qt6Widgets!QMenu::actionGeometry+0x2d0
00007ffd`3498ee64 : 0000003f`00000031 00000145`ee534c10 00000043`430fb6b0 00007ffd`33da14d1 : Qt6Widgets!QMenu::mouseReleaseEvent+0x11a
00007ffd`34adaad0 : 00000000`00000000 00000000`00000000 00000145`ee534c10 00000145`e223c900 : Qt6Widgets!QWidget::event+0x164
00007ffd`34950cae : 00000145`d6ddcff0 00000145`d6dd8e00 00000043`430fb6b0 00000145`d6ddcff0 : Qt6Widgets!QMenu::event+0x320
00007ffd`3494ec40 : 00000043`430fb6b0 00000043`430fadb0 00000145`ee542ff0 00000145`ee542ff0 : Qt6Widgets!QApplicationPrivate::notify_helper+0x10e
00007ffd`33ca9d65 : 00000145`00000000 00000145`ee532fd0 00000043`430fb6b0 00000145`00000001 : Qt6Widgets!QApplication::notify+0x750
00007ffd`3495492f : 00000043`430fb6b0 00007ffd`3427a502 00007ffd`34ebe660 00000043`430fb780 : Qt6Core!QCoreApplication::notifyInternal2+0xc5
00007ffd`349ad66d : 00000000`00000000 00000000`00000000 00000000`00000000 00000145`ee542ff0 : Qt6Widgets!QApplicationPrivate::sendMouseEvent+0x3ef
00007ffd`349ab7d3 : 00000145`fa5443a8 00007ffd`4c1b29fd 00000145`d6ddcff0 00000145`d0020000 : Qt6Widgets!QWidgetRepaintManager::updateStaticContentsSize+0x2aed
00007ffd`34950cae : 00000145`d6ddcff0 00000145`d6dd8e00 00000145`d6ddcff0 00000043`430fc0c0 : Qt6Widgets!QWidgetRepaintManager::updateStaticContentsSize+0xc53
00007ffd`3494fd81 : 00000145`d6ddcff0 00000043`430fba30 00000000`00000000 00000145`d6ddcff0 : Qt6Widgets!QApplicationPrivate::notify_helper+0x10e
00007ffd`33ca9d65 : 00000145`d6dd6cf0 00000145`dc2fafa0 00000043`430fc0c0 00000145`00000000 : Qt6Widgets!QApplication::notify+0x1891
00007ffd`34248253 : 00000145`e2238ff0 00000145`e223c900 00000145`e2238ff0 00000043`430fc0e0 : Qt6Core!QCoreApplication::notifyInternal2+0xc5
00007ffd`34296e48 : 00000145`d847efe0 00000000`00000001 00000145`f15ccf80 00000000`00000000 : Qt6Gui!QGuiApplicationPrivate::processMouseEvent+0x703
00007ffd`33e09440 : 00000000`000000a4 00000145`d088ff70 00000145`d088ff70 00000043`430fc9f0 : Qt6Gui!QWindowSystemInterface::sendWindowSystemEvents+0xe8
00007ffd`344e5e79 : 00000000`00000000 00000000`00000000 00000145`d088ff70 00000145`d847efe0 : Qt6Core!QEventDispatcherWin32::processEvents+0x90
00007ffd`33caf6b4 : 00000000`00000080 00000000`00000080 00000145`d088ff70 00000145`d6ddcff0 : Qt6Gui!QWindowsGuiEventDispatcher::processEvents+0x19
00007ffd`33ca7acd : 00000043`430ff620 00000145`d6ddaf60 00000145`d6ddaf60 00000000`00000000 : Qt6Core!QEventLoop::exec+0x194
00007ff6`7f76978e : 00000145`d6dd6cf0 00000145`e8d08fd0 00000145`0000000f 00000145`e8d08fd0 : Qt6Core!QCoreApplication::exec+0x15d
00007ff6`7f77778b : 00000145`d6dd6d20 00007ff6`7f796720 00000145`e8e9efe0 00000145`d03c9fa0 : qbittorrent!Application::exec+0x54e [D:\a\qBittorrent\qBittorrent\src\app\application.cpp @ 921]
00007ff6`7feea91d : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : qbittorrent!main+0x6fb [D:\a\qBittorrent\qBittorrent\src\app\main.cpp @ 261]
00007ff6`7feb68b2 : 00000000`00000001 00007ff6`7feb6929 00000145`d6dd2ff0 00000145`d6dd0f00 : qbittorrent!qtEntryPoint+0x15d [C:\Users\qt\work\qt\qtbase\src\entrypoint\qtentrypoint_win.cpp @ 50]
(Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : qbittorrent!invoke_main+0x21 [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 102]
00007ffd`65067604 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : qbittorrent!__scrt_common_main_seh+0x106 [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 288]
00007ffd`66f626a1 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : KERNEL32!BaseThreadInitThunk+0x14
00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x21
Action limit of 1 reached for Exception 'C0000005::'.
[4/14/2023 8:42:20 PM]
Second chance exception - 0XC000041D caused by thread with System ID: 11128
Stack Trace
RetAddr : Args to Child : Call Site
00007ffd`479da2e7 : 00000145`d6ddaf60 00000000`00410226 00000043`430f8b10 00000000`00000000 : Qt6Core!QAbstractEventDispatcher::filterNativeEvent+0x60
00007ffd`479dba53 : 00000000`00000000 00000043`430f8cf9 00000000`00000000 00000000`00000000 : qwindows!qt_plugin_query_metadata_v2+0x8597
00007ffd`6554e858 : 00000000`00000000 00000145`d2400000 00000000`00000001 00000000`00000000 : qwindows!qt_plugin_query_metadata_v2+0x9d03
00007ffd`6554e3dc : 00000000`00000000 00007ffd`479db9b0 00000000`00410226 00007ffd`00000090 : USER32!CallWindowProcW+0x3f8
00007ffd`65560c33 : 00000000`00000000 00000000`00000000 00000000`00000000 00007ffd`66cdbc7a : USER32!DispatchMessageW+0x39c
00007ffd`66fb0eb4 : 0000598a`f054ace9 00000000`00000000 00000145`e7067fa0 00007ffd`47a2fc27 : USER32!SendMessageTimeoutW+0x143
00007ffd`64732384 : 00007ffd`47a2b020 00000000`00000000 00000145`e7067fa0 00000000`00000000 : ntdll!KiUserCallbackDispatcher+0x24
00007ffd`47a2b020 : 00000000`00000000 00000145`e7067fa0 00000000`00000000 00007ffd`47a92688 : win32u!NtUserDestroyWindow+0x14
00007ffd`47a286b7 : 00000043`430f90d0 00009a43`19275ab6 00000145`e7067fa0 00000000`00000000 : qwindows!qt_plugin_query_metadata_v2+0x592d0
00007ffd`34287b31 : 00000000`00000000 00000145`ee349df0 00000000`00000000 00000145`e7067fa0 : qwindows!qt_plugin_query_metadata_v2+0x56967
00007ffd`3498d397 : 00000145`e92aef50 00000000`00000000 00000145`ea900e30 00000145`ea900e30 : Qt6Gui!QWindowPrivate::destroy+0x131
00007ffd`3498d5fb : 00000145`ea900e30 00000145`ea900e30 00000000`00000001 00007ffd`33ce94ce : Qt6Widgets!QWidgetPrivate::deleteTLSysExtra+0xd7
00007ffd`34987d45 : 00000145`d6dd6cf0 00000000`60606301 00000000`00000000 00000000`60606318 : Qt6Widgets!QWidget::destroy+0x22b
00007ff6`7f76893f : 00000145`ea900e30 00000145`ee158f50 00000000`00000001 00000145`ee15cf80 : Qt6Widgets!QWidget::~QWidget+0x555
00007ffd`33ce3826 : 00000043`430f9420 00000145`d910bfe0 00000000`00000001 00000043`430f9978 : qbittorrent!Application::cleanup+0x34f [D:\a\qBittorrent\qBittorrent\src\app\application.cpp @ 1274]
00007ffd`33ce5cf4 : 00000145`d6dd6cf0 00007ff6`00000003 00000000`00000003 00000000`00000001 : Qt6Core!QObject::qt_static_metacall+0x1906
00007ffd`33ca7b98 : 00000000`00000000 00000043`430f96a0 00000000`00000000 00000000`00000000 : Qt6Core!QMetaObject::activate+0x84
00007ff6`7f8c28c9 : 00000000`00000000 00000043`430f9601 00000000`ffffffff 00000000`00000000 : Qt6Core!QCoreApplication::exit+0x58
00007ffd`3498f334 : 00000000`00000000 00000043`430f9e20 00000000`00000000 00000145`00000000 : qbittorrent!MainWindow::closeEvent+0x529 [D:\a\qBittorrent\qBittorrent\src\gui\mainwindow.cpp @ 1193]
00007ff6`7f8c4c8d : 00000043`430f9e20 00000145`ea900e30 00000043`430f9e20 00000145`ea900e30 : Qt6Widgets!QWidget::event+0x634
00007ffd`34950cae : 00000145`d6ddcff0 00000145`d6dd8e00 00000145`d6dd8e00 00000145`ea900e30 : qbittorrent!MainWindow::event+0x18d [D:\a\qBittorrent\qBittorrent\src\gui\mainwindow.cpp @ 1268]
00007ffd`3494fd81 : 00000145`d6ddcff0 00000043`430f99e0 00000000`00000000 00000145`d6ddcff0 : Qt6Widgets!QApplicationPrivate::notify_helper+0x10e
00007ffd`33ca9d65 : 00000145`d6dd6cf0 00000145`ea900e30 00000043`430f9e20 00000145`00000000 : Qt6Widgets!QApplication::notify+0x1891
00007ffd`349917c8 : 00000043`430f9eb8 00000000`00000000 00000145`ea900e30 00000000`00000000 : Qt6Core!QCoreApplication::notifyInternal2+0xc5
00007ffd`349ab24c : 00000043`430fa610 00000043`430f9f29 00000145`e7067fa0 00000043`430fa610 : Qt6Widgets!QWidgetPrivate::handleClose+0x98
00007ffd`34288098 : 00000145`e923ee80 00000145`d0020000 00000000`00000000 00007ffd`66f61dec : Qt6Widgets!QWidgetRepaintManager::updateStaticContentsSize+0x6cc
00007ffd`349abcea : 00000001`00000010 00007ffd`66f61dec 00000145`e7067fa0 00000000`00000000 : Qt6Gui!QWindow::event+0x268
00007ffd`34950cae : 00000145`d6ddcff0 00000145`d6dd8e00 00000145`d6ddcff0 00000043`430fa610 : Qt6Widgets!QWidgetRepaintManager::updateStaticContentsSize+0x116a
00007ffd`3494fd81 : 00000145`d6ddcff0 00000043`430fa1d0 00000000`00000000 00000145`d6ddcff0 : Qt6Widgets!QApplicationPrivate::notify_helper+0x10e
00007ffd`33ca9d65 : 00000145`d6dd6cf0 00000145`e7067fa0 00000043`430fa610 00000145`00000000 : Qt6Widgets!QApplication::notify+0x1891
00007ffd`34246cab : 00000043`430fa8d0 00007ffd`33d8d2eb 00000043`430fa650 00000043`430fa8a0 : Qt6Core!QCoreApplication::notifyInternal2+0xc5
00007ffd`3428d872 : 00000145`e7067fa0 00000145`ee249ff0 00000043`430fa6c0 00000145`ee532fd0 : Qt6Gui!QGuiApplicationPrivate::processCloseEvent+0xab
00007ffd`342874a4 : 00000145`eda38ff0 00000145`ea900e30 00000043`430fa8d0 00000145`e7960e80 : Qt6Gui!QWindowSystemInterface::handleEnterEvent<QWindowSystemInterface::SynchronousDelivery>+0x502
00007ff6`7f8b928f : 00000000`00000037 00000043`430fa8d0 00000043`430fa8d0 00000000`00000000 : Qt6Gui!QWindow::close+0x64
00007ffd`33cb4cf1 : 00000000`00000007 00000043`430fa830 00000145`d6ddaf01 00000043`430fa8d0 : qbittorrent!MainWindow::qt_metacall+0x4f [D:\a\qBittorrent\qBittorrent\build\src\gui\qbt_gui_autogen\EWIEGA46WW\moc_mainwindow.cpp @ 798]
00007ffd`33ce38ad : 00000145`ee249ff0 00000145`ee249ff0 00000145`ee3d9cc0 00000145`e92aef50 : Qt6Core!QMetaObject::metacall+0x41
00007ffd`33ce5cf4 : 00000145`ee249ff0 00000000`00000007 00000000`00000003 00007ffd`34adba01 : Qt6Core!QObject::qt_static_metacall+0x198d
00007ffd`3451bbd1 : 00000145`ee24be50 00000145`ee542ff0 00000145`ee249ff0 00007ffd`349a3581 : Qt6Core!QMetaObject::activate+0x84
00007ffd`34ad928d : 00000043`430fa9f0 00000015`00000300 00000145`ee532fd0 00007ffd`34aea3bb : Qt6Gui!QAction::activate+0x171
00007ffd`34ad90d0 : 00000145`ee534c10 00000043`430fa9f0 00000145`ee249ff0 00000043`430faa20 : Qt6Widgets!QMenu::actionGeometry+0x48d
00007ffd`34adf3da : 00000145`ee249ff0 0000003f`00000031 00000145`ee249ff0 0000003f`00000032 : Qt6Widgets!QMenu::actionGeometry+0x2d0
00007ffd`3498ee64 : 0000003f`00000031 00000145`ee534c10 00000043`430fb6b0 00007ffd`33da14d1 : Qt6Widgets!QMenu::mouseReleaseEvent+0x11a
00007ffd`34adaad0 : 00000000`00000000 00000000`00000000 00000145`ee534c10 00000145`e223c900 : Qt6Widgets!QWidget::event+0x164
00007ffd`34950cae : 00000145`d6ddcff0 00000145`d6dd8e00 00000043`430fb6b0 00000145`d6ddcff0 : Qt6Widgets!QMenu::event+0x320
00007ffd`3494ec40 : 00000043`430fb6b0 00000043`430fadb0 00000145`ee542ff0 00000145`ee542ff0 : Qt6Widgets!QApplicationPrivate::notify_helper+0x10e
00007ffd`33ca9d65 : 00000145`00000000 00000145`ee532fd0 00000043`430fb6b0 00000145`00000001 : Qt6Widgets!QApplication::notify+0x750
00007ffd`3495492f : 00000043`430fb6b0 00007ffd`3427a502 00007ffd`34ebe660 00000043`430fb780 : Qt6Core!QCoreApplication::notifyInternal2+0xc5
00007ffd`349ad66d : 00000000`00000000 00000000`00000000 00000000`00000000 00000145`ee542ff0 : Qt6Widgets!QApplicationPrivate::sendMouseEvent+0x3ef
00007ffd`349ab7d3 : 00000145`fa5443a8 00007ffd`4c1b29fd 00000145`d6ddcff0 00000145`d0020000 : Qt6Widgets!QWidgetRepaintManager::updateStaticContentsSize+0x2aed
00007ffd`34950cae : 00000145`d6ddcff0 00000145`d6dd8e00 00000145`d6ddcff0 00000043`430fc0c0 : Qt6Widgets!QWidgetRepaintManager::updateStaticContentsSize+0xc53
00007ffd`3494fd81 : 00000145`d6ddcff0 00000043`430fba30 00000000`00000000 00000145`d6ddcff0 : Qt6Widgets!QApplicationPrivate::notify_helper+0x10e
00007ffd`33ca9d65 : 00000145`d6dd6cf0 00000145`dc2fafa0 00000043`430fc0c0 00000145`00000000 : Qt6Widgets!QApplication::notify+0x1891
00007ffd`34248253 : 00000145`e2238ff0 00000145`e223c900 00000145`e2238ff0 00000043`430fc0e0 : Qt6Core!QCoreApplication::notifyInternal2+0xc5
00007ffd`34296e48 : 00000145`d847efe0 00000000`00000001 00000145`f15ccf80 00000000`00000000 : Qt6Gui!QGuiApplicationPrivate::processMouseEvent+0x703
00007ffd`33e09440 : 00000000`000000a4 00000145`d088ff70 00000145`d088ff70 00000043`430fc9f0 : Qt6Gui!QWindowSystemInterface::sendWindowSystemEvents+0xe8
00007ffd`344e5e79 : 00000000`00000000 00000000`00000000 00000145`d088ff70 00000145`d847efe0 : Qt6Core!QEventDispatcherWin32::processEvents+0x90
00007ffd`33caf6b4 : 00000000`00000080 00000000`00000080 00000145`d088ff70 00000145`d6ddcff0 : Qt6Gui!QWindowsGuiEventDispatcher::processEvents+0x19
00007ffd`33ca7acd : 00000043`430ff620 00000145`d6ddaf60 00000145`d6ddaf60 00000000`00000000 : Qt6Core!QEventLoop::exec+0x194
00007ff6`7f76978e : 00000145`d6dd6cf0 00000145`e8d08fd0 00000145`0000000f 00000145`e8d08fd0 : Qt6Core!QCoreApplication::exec+0x15d
00007ff6`7f77778b : 00000145`d6dd6d20 00007ff6`7f796720 00000145`e8e9efe0 00000145`d03c9fa0 : qbittorrent!Application::exec+0x54e [D:\a\qBittorrent\qBittorrent\src\app\application.cpp @ 921]
00007ff6`7feea91d : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : qbittorrent!main+0x6fb [D:\a\qBittorrent\qBittorrent\src\app\main.cpp @ 261]
00007ff6`7feb68b2 : 00000000`00000001 00007ff6`7feb6929 00000145`d6dd2ff0 00000145`d6dd0f00 : qbittorrent!qtEntryPoint+0x15d [C:\Users\qt\work\qt\qtbase\src\entrypoint\qtentrypoint_win.cpp @ 50]
(Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : qbittorrent!invoke_main+0x21 [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 102]
00007ffd`65067604 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : qbittorrent!__scrt_common_main_seh+0x106 [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 288]
00007ffd`66f626a1 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : KERNEL32!BaseThreadInitThunk+0x14
00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x21
Action limit of 1 reached for Exception 'C000041D::'.
Possibly related to https://github.com/qbittorrent/qBittorrent/issues/18841. You can try commenting out this line and recompiling. https://github.com/qbittorrent/qBittorrent/blob/5dcc14153f046209f1067299494a82e5294d883a/src/app/application.cpp#L289
Possibly related to https://github.com/qbittorrent/qBittorrent/issues/18841.
I can reproduce this issue with appveyor builds which was using Qt 5.15.2 so it isn't limited to Qt 6.5.
Appveyor stacktraces:
Exception 0XC0000005 on thread 3168.
Stack Trace
RetAddr : Args to Child : Call Site
00007ffe`a3f12d0b : 000001f5`a82e3f80 00000000`000a05c0 00000097`bd3fef10 00007ffe`b00345c5 : Qt5Core!QAbstractEventDispatcher::filterNativeEvent+0x61
00007ffe`a3f1468d : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : qwindows+0x12d0b
*** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\WINDOWS\System32\USER32.dll -
00007ffe`c7ebe858 : 00000000`00000000 000001f5`a3880000 00000000`00000001 00000000`00000000 : qwindows+0x1468d
00007ffe`c7ebe3dc : 00000000`00000001 00007ffe`a3f145f0 00000000`000a05c0 00007ffe`00000090 : USER32!CallWindowProcW+0x3f8
00007ffe`c7ed0c33 : 00000000`00000000 00000000`00000000 00000000`00000000 00007ffe`c91ebc6a : USER32!DispatchMessageW+0x39c
00007ffe`c9e10eb4 : 0000db1e`ea791b64 00000000`00000001 000001f5`a9fdcfa0 00007ffe`a3f09298 : USER32!SendMessageTimeoutW+0x143
00007ffe`c7d52384 : 00007ffe`a3f04b1c 000001f5`abb22f20 00000000`00000001 000001f5`b30a2e50 : ntdll!KiUserCallbackDispatcher+0x24
*** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\WINDOWS\System32\win32u.dll -
00007ffe`a3f04b1c : 000001f5`abb22f20 00000000`00000001 000001f5`b30a2e50 00000000`00000000 : win32u!NtUserDestroyWindow+0x14
00007ffe`a3f02426 : 000001f5`a9b04fe0 00003a6d`08bdabbc 000001f5`b30a4e30 000001f5`a9fdcfa0 : qwindows+0x4b1c
*** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\Users\PC\Desktop\qBittorrent-Appveyor_Windows-x64_Bump python version minimum requirement\Qt5Gui.dll -
00007ffe`9819a1da : 000001f5`b30a2e50 00000000`00000000 000001f5`b30a2e50 00000000`00000000 : qwindows+0x2426
*** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\Users\PC\Desktop\qBittorrent-Appveyor_Windows-x64_Bump python version minimum requirement\Qt5Widgets.dll -
00007ffe`9b0662d4 : 00007ffe`97e79ce8 000001f5`b30a2e50 00000000`00000000 000001f5`b30a2e50 : Qt5Gui!QWindowPrivate::destroy+0x21a
00007ffe`9b066597 : 000001f5`b30a2e50 000001f5`b30a2e50 000001f5`b30a4e30 00000000`00000000 : Qt5Widgets!QWidgetPrivate::deleteTLSysExtra+0xf4
00007ffe`9b061fea : 00007ffe`97e79ce8 00000000`00000000 00000000`60606018 00000000`00000000 : Qt5Widgets!QWidget::destroy+0x287
*** WARNING: Unable to verify checksum for C:\Users\PC\Desktop\qBittorrent-Appveyor_Windows-x64_Bump python version minimum requirement\qbittorrent.exe
00007ff7`e161eb03 : 000001f5`b2fa8f90 000001f5`b30a2e50 00007ffe`97e79d10 00007ffe`97e79ce8 : Qt5Widgets!QWidget::~QWidget+0x6aa
00007ffe`97d71d49 : 00000004`00000008 000001f5`aa050fe0 000001f5`a82e3f01 000001f5`aa052fa0 : qbittorrent!Application::cleanup+0x313 [C:\qbittorrent\src\app\application.cpp @ 1286]
00007ffe`97d51b25 : 000001f5`a82dde50 00000097`00000003 000001f5`a82dfe80 00007ffe`98176e01 : Qt5Core!QObject::qt_static_metacall+0x1409
00007ffe`97d51aaf : 000001f5`a82e7fb8 00000000`00000000 00000000`00000000 00007ffe`97e71c90 : Qt5Core!QCoreApplicationPrivate::execCleanup+0x55
00007ff7`e161f85a : 000001f5`a82dde50 000001f5`b5194fd0 000001f5`b5194fd0 000001f5`b5194fd0 : Qt5Core!QCoreApplication::exec+0x16f
00007ff7`e162aaae : 000001f5`a82dde50 00007ff7`e1839550 000001f5`b26c2fa0 000001f5`b5624fa0 : qbittorrent!Application::exec+0x52a [C:\qbittorrent\src\app\application.cpp @ 933]
00007ff7`e184c1e7 : 00000000`00000000 00000000`00000000 00000000`00000000 000001f5`a82dbf90 : qbittorrent!main+0x77e [C:\qbittorrent\src\app\main.cpp @ 261]
00007ff7`e184b782 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : qbittorrent!WinMain+0x157 [C:\Users\qt\work\qt\qtbase\src\winmain\qtmain_win.cpp @ 97]
(Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : qbittorrent!invoke_main+0x21 [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 102]
00007ffe`c9bd7614 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : qbittorrent!__scrt_common_main_seh+0x106 [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 288]
00007ffe`c9dc26a1 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : KERNEL32!BaseThreadInitThunk+0x14
00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x21
[5/21/2023 10:28:30 AM]
Action limit of 1 reached for Exception 'C0000005::'.
[5/21/2023 10:28:31 AM]
Second chance exception - 0XC000041D caused by thread with System ID: 3168
Stack Trace
RetAddr : Args to Child : Call Site
00007ffe`a3f12d0b : 000001f5`a82e3f80 00000000`000a05c0 00000097`bd3fef10 00007ffe`b00345c5 : Qt5Core!QAbstractEventDispatcher::filterNativeEvent+0x61
00007ffe`a3f1468d : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : qwindows+0x12d0b
00007ffe`c7ebe858 : 00000000`00000000 000001f5`a3880000 00000000`00000001 00000000`00000000 : qwindows+0x1468d
00007ffe`c7ebe3dc : 00000000`00000001 00007ffe`a3f145f0 00000000`000a05c0 00007ffe`00000090 : USER32!CallWindowProcW+0x3f8
00007ffe`c7ed0c33 : 00000000`00000000 00000000`00000000 00000000`00000000 00007ffe`c91ebc6a : USER32!DispatchMessageW+0x39c
00007ffe`c9e10eb4 : 0000db1e`ea791b64 00000000`00000001 000001f5`a9fdcfa0 00007ffe`a3f09298 : USER32!SendMessageTimeoutW+0x143
00007ffe`c7d52384 : 00007ffe`a3f04b1c 000001f5`abb22f20 00000000`00000001 000001f5`b30a2e50 : ntdll!KiUserCallbackDispatcher+0x24
00007ffe`a3f04b1c : 000001f5`abb22f20 00000000`00000001 000001f5`b30a2e50 00000000`00000000 : win32u!NtUserDestroyWindow+0x14
00007ffe`a3f02426 : 000001f5`a9b04fe0 00003a6d`08bdabbc 000001f5`b30a4e30 000001f5`a9fdcfa0 : qwindows+0x4b1c
00007ffe`9819a1da : 000001f5`b30a2e50 00000000`00000000 000001f5`b30a2e50 00000000`00000000 : qwindows+0x2426
00007ffe`9b0662d4 : 00007ffe`97e79ce8 000001f5`b30a2e50 00000000`00000000 000001f5`b30a2e50 : Qt5Gui!QWindowPrivate::destroy+0x21a
00007ffe`9b066597 : 000001f5`b30a2e50 000001f5`b30a2e50 000001f5`b30a4e30 00000000`00000000 : Qt5Widgets!QWidgetPrivate::deleteTLSysExtra+0xf4
00007ffe`9b061fea : 00007ffe`97e79ce8 00000000`00000000 00000000`60606018 00000000`00000000 : Qt5Widgets!QWidget::destroy+0x287
00007ff7`e161eb03 : 000001f5`b2fa8f90 000001f5`b30a2e50 00007ffe`97e79d10 00007ffe`97e79ce8 : Qt5Widgets!QWidget::~QWidget+0x6aa
00007ffe`97d71d49 : 00000004`00000008 000001f5`aa050fe0 000001f5`a82e3f01 000001f5`aa052fa0 : qbittorrent!Application::cleanup+0x313 [C:\qbittorrent\src\app\application.cpp @ 1286]
00007ffe`97d51b25 : 000001f5`a82dde50 00000097`00000003 000001f5`a82dfe80 00007ffe`98176e01 : Qt5Core!QObject::qt_static_metacall+0x1409
00007ffe`97d51aaf : 000001f5`a82e7fb8 00000000`00000000 00000000`00000000 00007ffe`97e71c90 : Qt5Core!QCoreApplicationPrivate::execCleanup+0x55
00007ff7`e161f85a : 000001f5`a82dde50 000001f5`b5194fd0 000001f5`b5194fd0 000001f5`b5194fd0 : Qt5Core!QCoreApplication::exec+0x16f
00007ff7`e162aaae : 000001f5`a82dde50 00007ff7`e1839550 000001f5`b26c2fa0 000001f5`b5624fa0 : qbittorrent!Application::exec+0x52a [C:\qbittorrent\src\app\application.cpp @ 933]
00007ff7`e184c1e7 : 00000000`00000000 00000000`00000000 00000000`00000000 000001f5`a82dbf90 : qbittorrent!main+0x77e [C:\qbittorrent\src\app\main.cpp @ 261]
00007ff7`e184b782 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : qbittorrent!WinMain+0x157 [C:\Users\qt\work\qt\qtbase\src\winmain\qtmain_win.cpp @ 97]
(Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : qbittorrent!invoke_main+0x21 [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 102]
00007ffe`c9bd7614 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : qbittorrent!__scrt_common_main_seh+0x106 [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 288]
00007ffe`c9dc26a1 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : KERNEL32!BaseThreadInitThunk+0x14
00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x21
Action limit of 1 reached for Exception 'C000041D::'.
@Chocobo1 I can't reproduce this though with Qt 6.2.4/Qt 6.3.2/Qt 6.4.3 ??! reference builds -> https://github.com/xavier2k6/qBittorrent/actions/runs/5037443889
@Chocobo1 I can't reproduce this though with Qt 6.2.4/Qt 6.3.2/Qt 6.4.3 ??! reference builds -> https://github.com/xavier2k6/qBittorrent/actions/runs/5037443889
Indeed. #18841 could be right about it. However the curious case is Qt5 from appveyor. AFAIK that Qt5 is quite old and hasn't updated for some time yet it crashes too.
However the curious case is Qt5 from appveyor. AFAIK that Qt5 is quite old and hasn't updated for some time yet it crashes too.
Have you managed to test master with any newer Qt5 versions Qt 5.15.3 -> Qt 5.15.9 than AppVeyor's provided Qt 5.15.2?
I've checked the last AppVeyor build available for backport under the 4.5.x branch & don't experience the silent crash so it seems to be a master issue.
Could there be some Qt 5/6 conditional/define overlooked or not in place??
For reference Qt 6.5.1 also silently crashes.
Posting correct referenced links from #18841 below:
- https://bugreports.qt.io/browse/QTBUG-102321
- https://bugreports.qt.io/browse/QTBUG-112670
Is "qBittorrent v3.2.0alpha started" a placeholder or something that should've been removed/updated??
https://github.com/qbittorrent/qBittorrent/blob/a35dbc6df7cdae99efd5d097527fc393e03c6449/src/app/application.cpp#L294
Is
"qBittorrent v3.2.0alpha started"a placeholder or something that should've been removed/updated??
Hint for the translators what %1 may contain.
Hint for the translators what %1 may contain.
@thalieht Thanks!
Have you managed to test master with any newer Qt5 versions Qt 5.15.3 -> Qt 5.15.9 than AppVeyor's provided Qt 5.15.2?
I haven't.
Posting correct referenced links from https://github.com/qbittorrent/qBittorrent/issues/18841 below:
In addition, https://github.com/qbittorrent/qBittorrent/blob/5dcc14153f046209f1067299494a82e5294d883a/src/app/application.cpp#L289 could be revised or conditionally disabled depending on Qt6 version...
could be revised or conditionally disabled depending on Qt6 version...
The steps of saving stuffs should be performed in the cleanup().
I made a patch and it seems to work. https://github.com/brvphoenix/qBittorrent/commit/7aaf3da71b02fe447bd525a772525475129274a4
I made a patch and it seems to work. brvphoenix@7aaf3da
Could you elaborate what is the fundamental difference in the shutdown flow that fixes the problem? Why did you extract cleanup methods from destructors of some classes? Were they the remaining parts of their destructors that cause the problem by being called in the previous place?
Could you elaborate what is the fundamental difference in the shutdown flow that fixes the problem?
This has been explained in #18841. The reason of crash may be at https://doc.qt.io/qt-6/qobject.html#dtor.QObject.
Deleting a [QObject](https://doc.qt.io/qt-6/qobject.html) while pending events are waiting to be delivered can cause a crash.
Why did you extract cleanup methods from destructors of some classes?
I delete all the objects in qapplication destructor. According to qapplication::exec, we should use aboutToQuit() to ensure the data will not be lost because unexpected shutdown.
Were they the remaining parts of their destructors that cause the problem by being called in the previous place?
I can't figure out what exactly is causing this crash. I‘m using the qbittorrent-nox, and the crash appears at this line. https://github.com/qbittorrent/qBittorrent/blob/a35dbc6df7cdae99efd5d097527fc393e03c6449/src/app/application.cpp#L1259
I have no crash on both Windows and Linux after updated Qt to 6.5.1.
I have no crash on both Windows and Linux after updated Qt to 6.5.1.
I still did with Qt 6.5.1 previously.....I'm a few commits behind master branch so will test again......
I have no crash on both Windows and Linux after updated Qt to 6.5.1.
I still did with Qt 6.5.1 previously..
Strange... It looks like I made a mistake after all. At least on Windows, it still crashes. I'll double-check on Linux tomorrow.
@glassez Ya, it still silently crashes with Qt 6.5.1
https://github.com/xavier2k6/qBittorrent/actions/runs/5145785713
I can reproduce this issue with appveyor builds which was using Qt 5.15.2 so it isn't limited to Qt 6.5.
Ticket title changed.
Addressed in PR https://github.com/qbittorrent/qBittorrent/pull/19169