Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash after moving files in 4.4.0rc1 #15779

Closed
13xforever opened this issue Nov 23, 2021 · 11 comments · Fixed by #16158
Closed

Crash after moving files in 4.4.0rc1 #15779

13xforever opened this issue Nov 23, 2021 · 11 comments · Fixed by #16158
Labels
Confirmed bug An issue confirmed by project team to be considered as a bug Crash Qt bugs Bug resides in Qt library

Comments

@13xforever
Copy link

13xforever commented Nov 23, 2021

qBittorrent & operating system versions

qBittorrent version: v4.4.0rc1 (64-bit)
Libtorrent version: 2.0.4.0
Qt version: 6.2.0
Boost version: 1.76.0
OpenSSL version: 1.1.1l
zlib version: 1.2.11
OS version: Windows 11 Version 21H2 10.0.22000 x86_64

What is the problem?

Caught signal: SIGSEGV

#  0 qbittorrent.exe      0x00007ff65c7a14d1 straceWin::getBacktrace()[ Z:\qBittorrent\src\app\stacktrace_win.h : 220 ]
#  1 qbittorrent.exe      0x00007ff65c7a288d sigAbnormalHandler(signum)[ Z:\qBittorrent\src\app\main.cpp : 367 ]
#  2 qbittorrent.exe      0x00007ff65cc852be _seh_filter_exe(xcptnum, pxcptinfoptrs)[ minkernel\crts\ucrt\src\appcrt\misc\exception_filter.cpp : 215 ]
#  3 qbittorrent.exe      0x00007ff65cce4143 `__scrt_common_main_seh'::`1'::filt$0()[ d:\a01\_work\6\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl : 304 ]
#  4 qbittorrent.exe      0x00007ff65cc64738 __C_specific_handler(ExceptionRecord, EstablisherFrame, ContextRecord, DispatcherContext)[ d:\a01\_work\6\s\src\vctools\crt\vcruntime\src\eh\riscchandler.cpp : 376 ]
#  5 ntdll.dll            0x00007ffae25a82ff _chkstk()

Steps to reproduce

  1. have a non-paused torrent (may be inactive)
  2. try to right-click and Set Location

Additional context

This may be QT6 specific issue, I haven't had this problem in beta

Log(s) & preferences file(s)

No response

@13xforever 13xforever changed the title Crash after moving files in 4.4.0b1 Crash after moving files in 4.4.0rc1 Nov 23, 2021
@glassez
Copy link
Member

glassez commented Nov 23, 2021

Steps to reproduce

  1. have a non-paused torrent (may be inactive)
  2. try to right-click and Set Location

Are you really able to reproduce this problem by repeating these steps?
Does it affect any torrent or any special ones?

@13xforever
Copy link
Author

13xforever commented Nov 23, 2021

It happened both times I tried to move files, but I did some tests and it seem that the crash happens when I move files from inside folder with japanese name somewhere else (it didn't happen when I tried to move files inside it never mind it seems to be random, but it's very easy to reproduce by moving in and out of the folder with japanese name)

it might be irrelevant, but my system locale is US English with UTF-8 support
system locale

@thalieht thalieht added the Crash label Nov 23, 2021
@ghost
Copy link

ghost commented Nov 24, 2021

I also experience this crash. In my case I am moving Japanese torrent into non-Japanese path. Crash doesn't happen every time, but often enough to be easy to reproduce.

As a side-note, I use English system locale and UTF-8 is disabled.

@xavier2k6
Copy link
Member

@eggpa Do you have any stack trace? What operating system?


10.0.22000

@13xforever Isn't that build version Windows 11 & not 10??

@glassez this may explain the short stacktrace (If Windows 11 SDK wasn't included at release/compile time?!)

@13xforever
Copy link
Author

Yes, it's Windows 11, I just copied from the crash info as is

@ghost
Copy link

ghost commented Nov 24, 2021

@xavier2k6, I do have stack trace, didn't post it because few top lines are the same so I thought it's not necessary, but here it is. I am using Windows 11 Pro N x64, version 21H2, build 22000.318, although in qBittorrent crash info it says Windows 10.

qBittorrent version: v4.4.0rc1 (64-bit)
Libtorrent version: 2.0.4.0
Qt version: 6.2.0
Boost version: 1.76.0
OpenSSL version: 1.1.1l
zlib version: 1.2.11
OS version: Windows 10 Version 2009 10.0.22000 x86_64

Caught signal: SIGSEGV

#  0 qbittorrent.exe      0x00007ff6b1ca14d1 straceWin::getBacktrace()[ Z:\qBittorrent\src\app\stacktrace_win.h : 220 ]
#  1 qbittorrent.exe      0x00007ff6b1ca288d sigAbnormalHandler(signum)[ Z:\qBittorrent\src\app\main.cpp : 367 ]
#  2 qbittorrent.exe      0x00007ff6b21852be _seh_filter_exe(xcptnum, pxcptinfoptrs)[ minkernel\crts\ucrt\src\appcrt\misc\exception_filter.cpp : 215 ]
#  3 qbittorrent.exe      0x00007ff6b21e4143 `__scrt_common_main_seh'::`1'::filt$0()[ d:\a01\_work\6\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl : 304 ]
#  4 qbittorrent.exe      0x00007ff6b2164738 __C_specific_handler(ExceptionRecord, EstablisherFrame, ContextRecord, DispatcherContext)[ d:\a01\_work\6\s\src\vctools\crt\vcruntime\src\eh\riscchandler.cpp : 376 ]
#  5 ntdll.dll            0x00007ffaad0a82ff _chkstk()
#  6 ntdll.dll            0x00007ffaad035a0a RtlRestoreContext()
#  7 ntdll.dll            0x00007ffaad0a730e KiUserExceptionDispatcher()
#  8 qbittorrent.exe      0x00007ff6b1365b1e QMenuPrivate::activateCausedStack()
#  9 qbittorrent.exe      0x00007ff6b1365d4f QMenuPrivate::activateAction()
# 10 qbittorrent.exe      0x00007ff6b1369255 QMenu::mouseReleaseEvent()
# 11 qbittorrent.exe      0x00007ff6b132ff34 QWidget::event()
# 12 qbittorrent.exe      0x00007ff6b13698e4 QMenu::event()
# 13 qbittorrent.exe      0x00007ff6b131a65e QApplicationPrivate::notify_helper()
# 14 qbittorrent.exe      0x00007ff6b1319344 QApplication::notify()
# 15 qbittorrent.exe      0x00007ff6b1a370fd QCoreApplication::notifyInternal2()
# 16 qbittorrent.exe      0x00007ff6b1317bc4 QApplicationPrivate::sendMouseEvent()
# 17 qbittorrent.exe      0x00007ff6b148198e QWidgetWindow::handleMouseEvent()
# 18 qbittorrent.exe      0x00007ff6b148084b QWidgetWindow::event()
# 19 qbittorrent.exe      0x00007ff6b131a65e QApplicationPrivate::notify_helper()
# 20 qbittorrent.exe      0x00007ff6b131a4df QApplication::notify()
# 21 qbittorrent.exe      0x00007ff6b1a370fd QCoreApplication::notifyInternal2()
# 22 qbittorrent.exe      0x00007ff6b10e652c QGuiApplicationPrivate::processMouseEvent()
# 23 qbittorrent.exe      0x00007ff6b10e5e62 QGuiApplicationPrivate::processWindowSystemEvent()
# 24 qbittorrent.exe      0x00007ff6b11aaf4c QWindowSystemInterface::sendWindowSystemEvents()
# 25 qbittorrent.exe      0x00007ff6b1b45d3d QEventDispatcherWin32::processEvents()
# 26 qbittorrent.exe      0x00007ff6b1251ed1 QWindowsGuiEventDispatcher::processEvents()
# 27 qbittorrent.exe      0x00007ff6b1b48dfa QEventLoop::exec()
# 28 qbittorrent.exe      0x00007ff6b1a37593 QCoreApplication::exec()
# 29 qbittorrent.exe      0x00007ff6b1c96b22 Application::exec(params)[ Z:\qBittorrent\src\app\application.cpp : 691 ]
# 30 qbittorrent.exe      0x00007ff6b1ca350d main(argc, argv)[ Z:\qBittorrent\src\app\main.cpp : 310 ]
# 31 qbittorrent.exe      0x00007ff6b1c92317 WinMain()
# 32 qbittorrent.exe      0x00007ff6b21613e2 __scrt_common_main_seh()[ d:\a01\_work\6\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl : 288 ]
# 33 KERNEL32.DLL         0x00007ffaac2754e0 BaseThreadInitThunk()
# 34 ntdll.dll            0x00007ffaad00485b RtlUserThreadStart()

@glassez
Copy link
Member

glassez commented Nov 25, 2021

I do have stack trace, didn't post it because few top lines are the same so I thought it's not necessary,

A few lines at the top have little use for us. They are always the same, since they relate to the logic of generating the stack trace itself.
I can't see the explicit relation of your Crash (based on the provided stack trace) with file operations, encodings, locale, etc. It seems to be happening somewhere in the Qt logic for Menu processing. Moreover, it seems to me that I have already noticed similar stack traces.
Can anyone affected try to test v4.4.0rc1 build based on Qt 5.12 instead of 6.2?

@ghost
Copy link

ghost commented Nov 25, 2021

I was not able to reproduce this problem on Qt 5.12.

As I was playing with Qt 6.2 I managed to get two more stack traces which are slightly different:

#  0 qbittorrent.exe      0x00007ff77f7214d1 straceWin::getBacktrace()[ Z:\qBittorrent\src\app\stacktrace_win.h : 220 ]
#  1 qbittorrent.exe      0x00007ff77f72288d sigAbnormalHandler(signum)[ Z:\qBittorrent\src\app\main.cpp : 367 ]
#  2 qbittorrent.exe      0x00007ff77fc052be _seh_filter_exe(xcptnum, pxcptinfoptrs)[ minkernel\crts\ucrt\src\appcrt\misc\exception_filter.cpp : 215 ]
#  3 qbittorrent.exe      0x00007ff77fc64143 `__scrt_common_main_seh'::`1'::filt$0()[ d:\a01\_work\6\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl : 304 ]
#  4 qbittorrent.exe      0x00007ff77fbe4738 __C_specific_handler(ExceptionRecord, EstablisherFrame, ContextRecord, DispatcherContext)[ d:\a01\_work\6\s\src\vctools\crt\vcruntime\src\eh\riscchandler.cpp : 376 ]
#  5 ntdll.dll            0x00007ff9bb9082ff _chkstk()
#  6 ntdll.dll            0x00007ff9bb895a0a RtlRestoreContext()
#  7 ntdll.dll            0x00007ff9bb90730e KiUserExceptionDispatcher()
#  8 qbittorrent.exe      0x00007ff77f4b70c0 QCoreApplication::notifyInternal2()
#  9 qbittorrent.exe      0x00007ff77ef01fa1 QWidgetWindow::handleMouseEvent()
# 10 qbittorrent.exe      0x00007ff77ef0084b QWidgetWindow::event()
# 11 qbittorrent.exe      0x00007ff77ed9a65e QApplicationPrivate::notify_helper()
# 12 qbittorrent.exe      0x00007ff77ed9a4df QApplication::notify()
# 13 qbittorrent.exe      0x00007ff77f4b70fd QCoreApplication::notifyInternal2()
# 14 qbittorrent.exe      0x00007ff77eb6652c QGuiApplicationPrivate::processMouseEvent()
# 15 qbittorrent.exe      0x00007ff77eb65e62 QGuiApplicationPrivate::processWindowSystemEvent()
# 16 qbittorrent.exe      0x00007ff77ec2af4c QWindowSystemInterface::sendWindowSystemEvents()
# 17 qbittorrent.exe      0x00007ff77f5c5d3d QEventDispatcherWin32::processEvents()
# 18 qbittorrent.exe      0x00007ff77ecd1ed1 QWindowsGuiEventDispatcher::processEvents()
# 19 qbittorrent.exe      0x00007ff77f5c8dfa QEventLoop::exec()
# 20 qbittorrent.exe      0x00007ff77f4b7593 QCoreApplication::exec()
# 21 qbittorrent.exe      0x00007ff77f716b22 Application::exec(params)[ Z:\qBittorrent\src\app\application.cpp : 691 ]
# 22 qbittorrent.exe      0x00007ff77f72350d main(argc, argv)[ Z:\qBittorrent\src\app\main.cpp : 310 ]
# 23 qbittorrent.exe      0x00007ff77f712317 WinMain()
# 24 qbittorrent.exe      0x00007ff77fbe13e2 __scrt_common_main_seh()[ d:\a01\_work\6\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl : 288 ]
# 25 KERNEL32.DLL         0x00007ff9b97d54e0 BaseThreadInitThunk()
# 26 ntdll.dll            0x00007ff9bb86485b RtlUserThreadStart()
#  0 qbittorrent.exe      0x00007ff77f7214d1 straceWin::getBacktrace()[ Z:\qBittorrent\src\app\stacktrace_win.h : 220 ]
#  1 qbittorrent.exe      0x00007ff77f72288d sigAbnormalHandler(signum)[ Z:\qBittorrent\src\app\main.cpp : 367 ]
#  2 qbittorrent.exe      0x00007ff77fc052be _seh_filter_exe(xcptnum, pxcptinfoptrs)[ minkernel\crts\ucrt\src\appcrt\misc\exception_filter.cpp : 215 ]
#  3 qbittorrent.exe      0x00007ff77fc64143 `__scrt_common_main_seh'::`1'::filt$0()[ d:\a01\_work\6\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl : 304 ]
#  4 qbittorrent.exe      0x00007ff77fbe4738 __C_specific_handler(ExceptionRecord, EstablisherFrame, ContextRecord, DispatcherContext)[ d:\a01\_work\6\s\src\vctools\crt\vcruntime\src\eh\riscchandler.cpp : 376 ]
#  5 ntdll.dll            0x00007ff9bb9082ff _chkstk()
#  6 ntdll.dll            0x00007ff9bb895a0a RtlRestoreContext()
#  7 ntdll.dll            0x00007ff9bb90730e KiUserExceptionDispatcher()
#  8 qbittorrent.exe      0x00007ff77ede5e05 QMenuPrivate::activateAction()
#  9 qbittorrent.exe      0x00007ff77ede9255 QMenu::mouseReleaseEvent()
# 10 qbittorrent.exe      0x00007ff77edaff34 QWidget::event()
# 11 qbittorrent.exe      0x00007ff77ede98e4 QMenu::event()
# 12 qbittorrent.exe      0x00007ff77ed9a65e QApplicationPrivate::notify_helper()
# 13 qbittorrent.exe      0x00007ff77ed99344 QApplication::notify()
# 14 qbittorrent.exe      0x00007ff77f4b70fd QCoreApplication::notifyInternal2()
# 15 qbittorrent.exe      0x00007ff77ed97bc4 QApplicationPrivate::sendMouseEvent()
# 16 qbittorrent.exe      0x00007ff77ef0198e QWidgetWindow::handleMouseEvent()
# 17 qbittorrent.exe      0x00007ff77ef0084b QWidgetWindow::event()
# 18 qbittorrent.exe      0x00007ff77ed9a65e QApplicationPrivate::notify_helper()
# 19 qbittorrent.exe      0x00007ff77ed9a4df QApplication::notify()
# 20 qbittorrent.exe      0x00007ff77f4b70fd QCoreApplication::notifyInternal2()
# 21 qbittorrent.exe      0x00007ff77eb6652c QGuiApplicationPrivate::processMouseEvent()
# 22 qbittorrent.exe      0x00007ff77eb65e62 QGuiApplicationPrivate::processWindowSystemEvent()
# 23 qbittorrent.exe      0x00007ff77ec2af4c QWindowSystemInterface::sendWindowSystemEvents()
# 24 qbittorrent.exe      0x00007ff77f5c5d3d QEventDispatcherWin32::processEvents()
# 25 qbittorrent.exe      0x00007ff77ecd1ed1 QWindowsGuiEventDispatcher::processEvents()
# 26 qbittorrent.exe      0x00007ff77f5c8dfa QEventLoop::exec()
# 27 qbittorrent.exe      0x00007ff77f4b7593 QCoreApplication::exec()
# 28 qbittorrent.exe      0x00007ff77f716b22 Application::exec(params)[ Z:\qBittorrent\src\app\application.cpp : 691 ]
# 29 qbittorrent.exe      0x00007ff77f72350d main(argc, argv)[ Z:\qBittorrent\src\app\main.cpp : 310 ]
# 30 qbittorrent.exe      0x00007ff77f712317 WinMain()
# 31 qbittorrent.exe      0x00007ff77fbe13e2 __scrt_common_main_seh()[ d:\a01\_work\6\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl : 288 ]
# 32 KERNEL32.DLL         0x00007ff9b97d54e0 BaseThreadInitThunk()
# 33 ntdll.dll            0x00007ff9bb86485b RtlUserThreadStart()

Additionally, I believe I found a way to reproduce this problem with a very high probability (was able to do it 10+ times in a row):

  1. right click on any torrent
  2. right click on "Set location..." and hold for about 2 seconds
  3. release right mouse button
  4. click "Cancel" in the newly opened file explorer
  5. crash should occur

Additionally, I noticed that sometimes qBittorrent crashes so badly that it doesn't even show the crash info :(

@thalieht thalieht added the Qt bugs Bug resides in Qt library label Nov 25, 2021
@xavier2k6 xavier2k6 added the Confirmed bug An issue confirmed by project team to be considered as a bug label Nov 26, 2021
@xavier2k6
Copy link
Member

xavier2k6 commented Nov 26, 2021

@eggpa Thank you!, can confirm that reproducible steps below result in a crash (Windows 10):

  1. right click on any torrent (doesn't matter if paused or active)
  2. right click on "Set location..." and hold for about 2 seconds
  3. release right mouse button
  4. click "Cancel" in the newly opened file explorer
  5. crash should occur

I can't reproduce it with official qBittorrent 4.3.9 or with v4.4.0rc1 (Qt5 version) which both use Qt5.15.2


qBittorrent version: v4.4.0rc1 (64-bit)
Libtorrent version: 2.0.4.0
Qt version: 6.2.0
Boost version: 1.76.0
OpenSSL version: 1.1.1l
zlib version: 1.2.11
OS version: Windows 10 Version 2009 10.0.19044 x86_64

Caught signal: SIGSEGV

#  0 qbittorrent.exe      0x00007ff622a914d1 straceWin::getBacktrace()[ Z:\qBittorrent\src\app\stacktrace_win.h : 220 ]
#  1 qbittorrent.exe      0x00007ff622a9288d sigAbnormalHandler(signum)[ Z:\qBittorrent\src\app\main.cpp : 367 ]
#  2 qbittorrent.exe      0x00007ff622f752be _seh_filter_exe(xcptnum, pxcptinfoptrs)[ minkernel\crts\ucrt\src\appcrt\misc\exception_filter.cpp : 215 ]
#  3 qbittorrent.exe      0x00007ff622fd4143 `__scrt_common_main_seh'::`1'::filt$0()[ d:\a01\_work\6\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl : 304 ]
#  4 qbittorrent.exe      0x00007ff622f54738 __C_specific_handler(ExceptionRecord, EstablisherFrame, ContextRecord, DispatcherContext)[ d:\a01\_work\6\s\src\vctools\crt\vcruntime\src\eh\riscchandler.cpp : 376 ]
#  5 ntdll.dll            0x00007ff9892f20cf _chkstk()
#  6 ntdll.dll            0x00007ff9892a1454 RtlRaiseException()
#  7 ntdll.dll            0x00007ff9892f0bfe KiUserExceptionDispatcher()
#  8 qbittorrent.exe      0x00007ff6228270c0 QCoreApplication::notifyInternal2()
#  9 qbittorrent.exe      0x00007ff622271fa1 QWidgetWindow::handleMouseEvent()
# 10 qbittorrent.exe      0x00007ff62227084b QWidgetWindow::event()
# 11 qbittorrent.exe      0x00007ff62210a65e QApplicationPrivate::notify_helper()
# 12 qbittorrent.exe      0x00007ff62210a4df QApplication::notify()
# 13 qbittorrent.exe      0x00007ff6228270fd QCoreApplication::notifyInternal2()
# 14 qbittorrent.exe      0x00007ff621ed652c QGuiApplicationPrivate::processMouseEvent()
# 15 qbittorrent.exe      0x00007ff621ed5e62 QGuiApplicationPrivate::processWindowSystemEvent()
# 16 qbittorrent.exe      0x00007ff621f9af4c QWindowSystemInterface::sendWindowSystemEvents()
# 17 qbittorrent.exe      0x00007ff622935d3d QEventDispatcherWin32::processEvents()
# 18 qbittorrent.exe      0x00007ff622041ed1 QWindowsGuiEventDispatcher::processEvents()
# 19 qbittorrent.exe      0x00007ff622938dfa QEventLoop::exec()
# 20 qbittorrent.exe      0x00007ff622827593 QCoreApplication::exec()
# 21 qbittorrent.exe      0x00007ff622a86b22 Application::exec(params)[ Z:\qBittorrent\src\app\application.cpp : 691 ]
# 22 qbittorrent.exe      0x00007ff622a9350d main(argc, argv)[ Z:\qBittorrent\src\app\main.cpp : 310 ]
# 23 qbittorrent.exe      0x00007ff622a82317 WinMain()
# 24 qbittorrent.exe      0x00007ff622f513e2 __scrt_common_main_seh()[ d:\a01\_work\6\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl : 288 ]
# 25 KERNEL32.DLL         0x00007ff9872c7034 BaseThreadInitThunk()
# 26 ntdll.dll            0x00007ff9892a2651 RtlUserThreadStart()

EDIT:
Attached debug diag & it appears to be an 0XC0000005 Exception (not much else to go on)

[11/26/2021 9:44:30 AM]
  Exception 0XC0000005 on thread 6040. DetailID = 2
  Stack Trace
RetAddr           : Args to Child                                                           : Call Site
00007ff6`22155d4f : 000001d3`726d8c00 00000062`7a4fac08 000001d3`726d8c10 00000000`00000000 : qbittorrent!QMenuPrivate::activateCausedStack+0x18a
00007ff6`22159255 : 000001d3`726d8c10 00000063`00000028 000001d3`726d8c10 000001d3`72886fd0 : qbittorrent!QMenuPrivate::activateAction+0x217
00007ff6`2211ff34 : 00000063`00000028 000001d3`726d8c10 000001d3`72886fd0 00000000`00000022 : qbittorrent!QMenu::mouseReleaseEvent+0x145
00007ff6`221598e4 : 00000062`7a4fb248 00007ff6`21f5ca44 000001d3`726d8c10 00007ff6`21f2ff40 : qbittorrent!QWidget::event+0x294
00007ff6`2210a65e : 000001d3`72886fd0 000001d3`72886fd0 00000062`7a4fba00 000001d3`605a5e00 : qbittorrent!QMenu::event+0x3a4
00007ff6`22109344 : 000001d3`72886fd0 00000000`00000005 00000000`00000000 00000000`00000005 : qbittorrent!QApplicationPrivate::notify_helper+0x172
00007ff6`228270fd : 000001d3`7ac98ff0 000001d3`605a9f50 00000062`7a4fba00 000001d3`72886fd0 : qbittorrent!QApplication::notify+0xd94
00007ff6`22107bc4 : 00000062`7a4fba28 00007ff6`21f2f419 00000000`00000000 00000000`00000000 : qbittorrent!QCoreApplication::notifyInternal2+0xbd
00007ff6`2227198e : 00000000`00000000 00000063`00000001 00000063`00000000 000001d3`7ac98ff0 : qbittorrent!QApplicationPrivate::sendMouseEvent+0x3b8
00007ff6`2227084b : 000001d3`6b524fa0 000001d3`6b524fa0 00000000`00000000 00000000`00000001 : qbittorrent!QWidgetWindow::handleMouseEvent+0x792
00007ff6`2210a65e : 000001d3`6b524fa0 000001d3`6b524fa0 00000062`7a4fc290 000001d3`605a5e00 : qbittorrent!QWidgetWindow::event+0x12b
00007ff6`2210a4df : 000001d3`605abff0 00000000`00000000 000001d3`605a3ee0 00000000`00000000 : qbittorrent!QApplicationPrivate::notify_helper+0x172
00007ff6`228270fd : 000001d3`605a3e00 000001d3`605a9f50 00000062`7a4fc290 000001d3`6a99af01 : qbittorrent!QApplication::notify+0x1f2f
00007ff6`21ed652c : 00000000`00000002 00000000`00000003 00000000`00000002 00000000`00000000 : qbittorrent!QCoreApplication::notifyInternal2+0xbd
00007ff6`21ed5e62 : 00000062`7a4fc650 00000000`00000000 000001d3`6a99af80 00007ff6`21f99a70 : qbittorrent!QGuiApplicationPrivate::processMouseEvent+0x594
00007ff6`21f9af4c : 00000000`00000001 00000000`00000000 00000000`00000001 000001d3`6a99af80 : qbittorrent!QGuiApplicationPrivate::processWindowSystemEvent+0x4aa
00007ff6`22935d3d : 00000000`00000024 00000062`7a4fc7b0 000001d3`62c4cef0 000001d3`62c4cef0 : qbittorrent!QWindowSystemInterface::sendWindowSystemEvents+0x130
00007ff6`22041ed1 : 00000000`00000000 00000000`00000000 00000062`7a4ff8b0 000001d3`62c4afe0 : qbittorrent!QEventDispatcherWin32::processEvents+0x6d
00007ff6`22938dfa : 00000000`00000024 00000000`00000000 00000062`7a4ff8b0 000001d3`7a4e0f70 : qbittorrent!QWindowsGuiEventDispatcher::processEvents+0x21
00007ff6`22827593 : 000001d3`605a9f50 000001d3`605a3ee0 000001d3`605a3fe8 00000000`00000000 : qbittorrent!QEventLoop::exec+0x132
00007ff6`22a86b22 : 000001d3`62ab6e80 00000000`00000000 000001d3`605a3fe8 000001d3`62ab6e80 : qbittorrent!QCoreApplication::exec+0x123
00007ff6`22a9350d : ffffffff`ffffffff 00000062`7a4ffc08 ffffffff`0000000b 000001d3`62ab6e80 : qbittorrent!Application::exec+0x462 [Z:\qBittorrent\src\app\application.cpp @ 691]
00007ff6`22a82317 : 00000000`00000001 000001d3`6059fff0 000001d3`6059df40 00000000`00000000 : qbittorrent!main+0x8fd [Z:\qBittorrent\src\app\main.cpp @ 310]
00007ff6`22f513e2 : 00000000`00000001 00000000`00000000 00000000`00000000 00000000`00000000 : qbittorrent!WinMain+0x127
(Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : qbittorrent!invoke_main+0x21 [d:\a01\_work\6\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 102]
00007ff9`872c7034 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : qbittorrent!__scrt_common_main_seh+0x106 [d:\a01\_work\6\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 288]
00007ff9`892a2651 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : KERNEL32!BaseThreadInitThunk+0x14
00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x21

@xavier2k6
Copy link
Member

@glassez BTW, I don't think this will be an issue in whatever official qBittorrent version will use Qt6 since set location is integrated into torrent options in master.......however it may pop up somewhere else & will require different repro steps.

@xavier2k6
Copy link
Member

Just checked with the latest master commit & Qt 6.2.2 since the set location option is back in the context menu using the repro steps & profile mode - observe crash, but now with slightly different stack trace.

qBittorrent version: v4.5.0alpha1 (64-bit)
Libtorrent version: 1.2.15.0
Qt version: 6.2.2
Boost version: 1.78.0
OpenSSL version: 1.1.1m
zlib version: 1.2.11
OS version: Windows 10 Version 2009 10.0.19044 x86_64

Caught signal: SIGSEGV

#  0 qbittorrent.exe      0x00007ff69f1d0fff straceWin::getBacktrace()[ D:\a\qBittorrent\qBittorrent\src\app\stacktrace_win.h : 220 ]
#  1 qbittorrent.exe      0x00007ff69f1d1cb7 sigAbnormalHandler(signum)[ D:\a\qBittorrent\qBittorrent\src\app\main.cpp : 368 ]
#  2 qbittorrent.exe      0x00007ff69f746848 _seh_filter_exe(xcptnum, pxcptinfoptrs)[ minkernel\crts\ucrt\src\appcrt\misc\exception_filter.cpp : 215 ]
#  3 qbittorrent.exe      0x00007ff69f7929b9 `__scrt_common_main_seh'::`1'::filt$0()[ d:\a01\_work\6\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl : 304 ]
#  4 qbittorrent.exe      0x00007ff69f72ccdc __C_specific_handler(ExceptionRecord, EstablisherFrame, ContextRecord, DispatcherContext)[ d:\a01\_work\6\s\src\vctools\crt\vcruntime\src\eh\riscchandler.cpp : 376 ]
#  5 ntdll.dll            0x00007ffbb56d20cf _chkstk()
#  6 ntdll.dll            0x00007ffbb5681454 RtlRaiseException()
#  7 ntdll.dll            0x00007ffbb56d0bfe KiUserExceptionDispatcher()
#  8 Qt6Widgets.dll       0x00007ffb775d0208 QMenu::actionGeometry()
#  9 Qt6Widgets.dll       0x00007ffb775cfec4 QMenu::actionGeometry()
# 10 Qt6Widgets.dll       0x00007ffb775d61fa QMenu::mouseReleaseEvent()
# 11 Qt6Widgets.dll       0x00007ffb7748cca0 QWidget::event()
# 12 Qt6Widgets.dll       0x00007ffb775d17bd QMenu::event()
# 13 Qt6Widgets.dll       0x00007ffb774521fd QApplicationPrivate::notify_helper()
# 14 Qt6Widgets.dll       0x00007ffb77450218 QApplication::notify()
# 15 Qt6Core.dll          0x00007ffb7687a034 QCoreApplication::notifyInternal2()
# 16 Qt6Widgets.dll       0x00007ffb77454d2f QApplicationPrivate::sendMouseEvent()
# 17 Qt6Widgets.dll       0x00007ffb774aba53 QWidgetPrivate::shouldDiscardSyncRequest()
# 18 Qt6Widgets.dll       0x00007ffb774a9ce2 QWidgetPrivate::shouldDiscardSyncRequest()
# 19 Qt6Widgets.dll       0x00007ffb774521fd QApplicationPrivate::notify_helper()
# 20 Qt6Widgets.dll       0x00007ffb774512eb QApplication::notify()
# 21 Qt6Core.dll          0x00007ffb7687a034 QCoreApplication::notifyInternal2()
# 22 Qt6Gui.dll           0x00007ffb76db651e QGuiApplicationPrivate::processMouseEvent()
# 23 Qt6Gui.dll           0x00007ffb76df5e78 QWindowSystemInterface::sendWindowSystemEvents()
# 24 Qt6Core.dll          0x00007ffb769c8552 QEventDispatcherWin32::processEvents()
# 25 Qt6Gui.dll           0x00007ffb77026349 QWindowsGuiEventDispatcher::processEvents()
# 26 Qt6Core.dll          0x00007ffb7687ed4e QEventLoop::exec()
# 27 Qt6Core.dll          0x00007ffb768780fb QCoreApplication::exec()
# 28 qbittorrent.exe      0x00007ff69f1c61da Application::exec(params)[ D:\a\qBittorrent\qBittorrent\src\app\application.cpp : 680 ]
# 29 qbittorrent.exe      0x00007ff69f1d243c main(argc, argv, argv)[ D:\a\qBittorrent\qBittorrent\src\app\main.cpp : 311 ]
# 30 qbittorrent.exe      0x00007ff69f75d157 WinMain(__formal, __formal, __formal, __formal)[ C:\Users\qt\work\qt\qtbase\src\entrypoint\qtentrypoint_win.cpp : 97 ]
# 31 qbittorrent.exe      0x00007ff69f729ea2 __scrt_common_main_seh()[ d:\a01\_work\6\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl : 288 ]
# 32 KERNEL32.DLL         0x00007ffbb4127034 BaseThreadInitThunk()
# 33 ntdll.dll            0x00007ffbb5682651 RtlUserThreadStart()
[1/16/2022 2:42:20 PM]
  Exception 0XC0000005 on thread 10680. DetailID = 2
  Stack Trace
RetAddr           : Args to Child                                                           : Call Site
00007ffb`775cfec4 : 0000016b`ceda0c10 0000005a`a36faf40 ffffffff`ffffffff 0000016b`beaf8fd0 : Qt6Widgets!QMenu::actionGeometry+0x608
00007ffb`775d61fa : 0000016b`bfe00ff0 00000062`00000047 0000016b`bfe00ff0 00000062`00000047 : Qt6Widgets!QMenu::actionGeometry+0x2c4
00007ffb`7748cca0 : 00000062`00000047 0000005a`a36fbbb0 0000005a`a36fbbb0 00007ffb`b568164a : Qt6Widgets!QMenu::mouseReleaseEvent+0x11a
00007ffb`775d17bd : 0000016b`beaf8f00 0000016b`c94fafa0 0000005a`a36fbbb0 00007ffb`76da4b52 : Qt6Widgets!QWidget::event+0x160
00007ffb`774521fd : 0000016b`bad72ff0 0000005a`a36fbbb0 0000005a`a36fbbb0 0000016b`beaf8fd0 : Qt6Widgets!QMenu::event+0xed
00007ffb`77450218 : 0000005a`a36fbbb0 0000005a`a36fb2f0 0000016b`bd44eff0 0000016b`bd44eff0 : Qt6Widgets!QApplicationPrivate::notify_helper+0x10d
00007ffb`7687a034 : 0000016b`00000000 0000016b`beaf8fd0 0000005a`a36fbbb0 00007ffb`00000002 : Qt6Widgets!QApplication::notify+0x808
00007ffb`77454d2f : 00000000`00000000 0000005a`a36fb740 00007ffb`7799e328 0000005a`a36fbce0 : Qt6Core!QCoreApplication::notifyInternal2+0xc4
00007ffb`774aba53 : 00000000`00000000 00000000`00000000 00000000`00000000 0000016b`bccbcff0 : Qt6Widgets!QApplicationPrivate::sendMouseEvent+0x3ef
00007ffb`774a9ce2 : 00000000`00000008 00007ffb`77536240 0000016b`bad72ff0 00007ffb`00000003 : Qt6Widgets!QWidgetPrivate::shouldDiscardSyncRequest+0x3623
00007ffb`774521fd : 0000016b`bad72ff0 0000016b`bad6ee00 0000016b`bad72ff0 0000016b`c3622fa0 : Qt6Widgets!QWidgetPrivate::shouldDiscardSyncRequest+0x18b2
00007ffb`774512eb : 00000000`00000000 0000005a`a36fbf70 00000000`00000000 0000016b`bad72ff0 : Qt6Widgets!QApplicationPrivate::notify_helper+0x10d
00007ffb`7687a034 : 0000016b`bad6ce00 0000016b`c3622fa0 0000005a`a36fc610 0000016b`c3622fa0 : Qt6Widgets!QApplication::notify+0x18db
00007ffb`76db651e : 0000016b`bcc74ff0 0000016b`c94fafa0 0000016b`bcc74ff0 0000005a`a36fc630 : Qt6Core!QCoreApplication::notifyInternal2+0xc4
00007ffb`76df5e78 : 0000016b`bce66fe0 00000000`00000001 0000016b`d19c7f80 0000016b`bce66fe0 : Qt6Gui!QGuiApplicationPrivate::processMouseEvent+0x7ae
00007ffb`769c8552 : 00000000`00000024 0000016b`bce68ef0 0000016b`bce68ef0 0000005a`a36fca90 : Qt6Gui!QWindowSystemInterface::sendWindowSystemEvents+0xe8
00007ffb`77026349 : 00000000`00000000 00000000`00000000 0000016b`c8c42f70 0000016b`bce66fe0 : Qt6Core!QEventDispatcherWin32::processEvents+0x72
00007ffb`7687ed4e : 00000000`00000000 00000000`00000000 0000016b`c8c42f70 0000016b`bad72ff0 : Qt6Gui!QWindowsGuiEventDispatcher::processEvents+0x19
00007ffb`768780fb : 0000005a`a36ffb20 00000000`00000000 00000000`00000000 00000000`00000000 : Qt6Core!QEventLoop::exec+0x19e
00007ff6`9f1c61da : 00000000`00000000 0000016b`bad6ce30 0000016b`bad6ce30 00000000`00000000 : Qt6Core!QCoreApplication::exec+0x15b
00007ff6`9f1d243c : 0000016b`bad6ce30 0000016b`bad6af00 0000016b`0000000b 0000016b`c75bfe10 : qbittorrent!Application::exec+0x46a [D:\a\qBittorrent\qBittorrent\src\app\application.cpp @ 680]
00007ff6`9f75d157 : 00000000`00000001 0000016b`bad68ff0 0000016b`bad6af90 ffffffff`ffffffff : qbittorrent!main+0x4fc [D:\a\qBittorrent\qBittorrent\src\app\main.cpp @ 311]
00007ff6`9f729ea2 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : qbittorrent!WinMain+0x157 [C:\Users\qt\work\qt\qtbase\src\entrypoint\qtentrypoint_win.cpp @ 97]
(Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : qbittorrent!invoke_main+0x21 [d:\a01\_work\6\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 102]
00007ffb`b4127034 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : qbittorrent!__scrt_common_main_seh+0x106 [d:\a01\_work\6\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 288]
00007ffb`b5682651 : 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::'.
[1/16/2022 2:42:40 PM]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Confirmed bug An issue confirmed by project team to be considered as a bug Crash Qt bugs Bug resides in Qt library
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants