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

qB ver 4.5.0 crashes when trying to paste using an empty clipboard, Fixed via (QTBUG-110070) #18317

Closed
Damaj301damaj-lol opened this issue Dec 30, 2022 · 15 comments
Labels
Confirmed bug An issue confirmed by project team to be considered as a bug Crash Qt bugs Bug resides in Qt library

Comments

@Damaj301damaj-lol
Copy link

qBittorrent & operating system versions

qBittorrent version: v4.5.0 (64-bit)

Libtorrent version: 2.0.8.0

Qt version: 6.4.0

Boost version: 1.80.0

OpenSSL version: 1.1.1s

zlib version: 1.2.13

OS version: Windows 11 Version 21H2 10.0.22000 x86_64

What is the problem?

Caught signal: SIGSEGV

 0# qt_startup_hook in qbittorrent
 1# qt_startup_hook in qbittorrent
 2# qt_startup_hook in qbittorrent
 3# qt_startup_hook in qbittorrent
 4# qt_startup_hook in qbittorrent
 5# qt_startup_hook in qbittorrent
 6# _chkstk in ntdll
 7# RtlRestoreContext in ntdll
 8# KiUserExceptionDispatcher in ntdll
 9# qt_startup_hook in qbittorrent
10# qt_startup_hook in qbittorrent
11# qt_startup_hook in qbittorrent
12# qt_startup_hook in qbittorrent
13# qt_startup_hook in qbittorrent
14# qt_startup_hook in qbittorrent
15# qt_startup_hook in qbittorrent
16# qt_startup_hook in qbittorrent
17# qt_startup_hook in qbittorrent
18# qt_startup_hook in qbittorrent
19# qt_startup_hook in qbittorrent
20# qt_startup_hook in qbittorrent
21# 0x00007FF67C568835 in qbittorrent
22# 0x00007FF67C5678A0 in qbittorrent
23# qt_startup_hook in qbittorrent
24# qt_startup_hook in qbittorrent
25# qt_startup_hook in qbittorrent
26# 0x00007FF67C568835 in qbittorrent
27# 0x00007FF67C56866D in qbittorrent
28# qt_startup_hook in qbittorrent
29# qt_startup_hook in qbittorrent
30# qt_startup_hook in qbittorrent
31# qt_startup_hook in qbittorrent
32# qt_startup_hook in qbittorrent
33# qt_startup_hook in qbittorrent
34# qt_startup_hook in qbittorrent
35# qt_startup_hook in qbittorrent
36# qt_startup_hook in qbittorrent
37# qt_startup_hook in qbittorrent
38# qt_startup_hook in qbittorrent
39# qt_startup_hook in qbittorrent
40# BaseThreadInitThunk in KERNEL32
41# RtlUserThreadStart in ntdll

Steps to reproduce

  1. Start Downloading
  2. Go to Edit Trackers (i think other input boxes have this issue)
  3. Paste but there is nothing in your clipboard
  4. Crash!

Additional context

No response

Log(s) & preferences file(s)

No response

@xavier2k6 xavier2k6 added Confirmed bug An issue confirmed by project team to be considered as a bug Crash labels Dec 30, 2022
@xavier2k6
Copy link
Member

xavier2k6 commented Dec 30, 2022

Doesn't seem to happen with Qt 5.

  1. Go to Edit Trackers

Right click/context menu

empty clipboard crash


Also crashes with add trackers under trackers tab:

empty clipboard crash 2

@Damaj301damaj-lol
Copy link
Author

I wonder, is this a bug on all platforms or just windows

@thalieht
Copy link
Contributor

I wonder, is this a bug on all platforms or just windows

All (tested in linux) since it looks like a Qt bug.

@thalieht thalieht added the Qt bugs Bug resides in Qt library label Dec 30, 2022
@xavier2k6
Copy link
Member

xavier2k6 commented Dec 30, 2022

it looks like a Qt bug.

Maybe, or it's a change in Qt's behavior/handling of mime data.....

  • This issue only appears with Qt 6.4.0/6.4.1 & 6.5.0 Beta 1 (Qt <= 6.3.2 unaffected)

Also crashes in peers tab.

@Damaj301damaj-lol
Copy link
Author

it looks like a Qt bug.

Maybe, or it's a change in Qt's behavior/handling of mime data.....

  • This issue only appears with Qt 6.4.0/6.4.1 & 6.5.0 Beta 1 (Qt <= 6.3.2 unaffected)

Also crashes in peers tab.

Should this be reported to Qt instead of here?

@KaXaSA

This comment was marked as off-topic.

@BackMountainDevil
Copy link

qBittorrent has crashed

this web http://bugs.qbittorrent.org 404 for me.


qBittorrent version: v4.5.0 (64-bit)
Libtorrent version: 2.0.8.0
Qt version: 6.4.1
Boost version: 1.80.0
OpenSSL version: 3.0.7
zlib version: 1.2.13
OS version: EndeavourOS 5.15.86-1-lts x86_64

Caught signal: SIGSEGV

```
 0# getStacktrace[abi:cxx11]() in qbittorrent
 1# 0x00005635738B8D37 in qbittorrent
 2# 0x00007FE21BBB7A00 in /usr/lib/libc.so.6
 3# QWidgetTextControl::insertFromMimeData(QMimeData const*) in /usr/lib/libQt6Widgets.so.6
 4# QWidgetTextControl::processEvent(QEvent*, QTransform const&, QWidget*) in /usr/lib/libQt6Widgets.so.6
 5# QWidgetTextControl::processEvent(QEvent*, QPointF const&, QWidget*) in /usr/lib/libQt6Widgets.so.6
 6# QTextEdit::keyPressEvent(QKeyEvent*) in /usr/lib/libQt6Widgets.so.6
 7# QWidget::event(QEvent*) in /usr/lib/libQt6Widgets.so.6
 8# QFrame::event(QEvent*) in /usr/lib/libQt6Widgets.so.6
 9# QApplicationPrivate::notify_helper(QObject*, QEvent*) in /usr/lib/libQt6Widgets.so.6
10# QApplication::notify(QObject*, QEvent*) in /usr/lib/libQt6Widgets.so.6
11# QCoreApplication::notifyInternal2(QObject*, QEvent*) in /usr/lib/libQt6Core.so.6
12# 0x00007FE21DBDCF5B in /usr/lib/libQt6Widgets.so.6
13# QApplicationPrivate::notify_helper(QObject*, QEvent*) in /usr/lib/libQt6Widgets.so.6
14# QCoreApplication::notifyInternal2(QObject*, QEvent*) in /usr/lib/libQt6Core.so.6
15# QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) in /usr/lib/libQt6Gui.so.6
16# QWindowSystemInterface::sendWindowSystemEvents(QFlags) in /usr/lib/libQt6Gui.so.6
17# 0x00007FE2183A93E0 in /usr/lib/qt6/plugins/platforms/../../../libQt6XcbQpa.so.6
18# g_main_context_dispatch in /usr/lib/libglib-2.0.so.0
19# 0x00007FE21B949C89 in /usr/lib/libglib-2.0.so.0
20# g_main_context_iteration in /usr/lib/libglib-2.0.so.0
21# QEventDispatcherGlib::processEvents(QFlags) in /usr/lib/libQt6Core.so.6
22# QEventLoop::exec(QFlags) in /usr/lib/libQt6Core.so.6
23# QCoreApplication::exec() in /usr/lib/libQt6Core.so.6
24# Application::exec(QList const&) in qbittorrent
25# main in qbittorrent
26# 0x00007FE21BBA2290 in /usr/lib/libc.so.6
27# __libc_start_main in /usr/lib/libc.so.6
28# _start in qbittorrent

```

@Damaj301damaj-lol
Copy link
Author

Steps to reproduce

1. Start Downloading
2. Go to Edit Trackers (i think other input boxes have this issue)
3. Paste but there is nothing in your clipboard
4. Crash!

Also crashes on my end.

I have a similar(?) issue, that happens less frequently:

qBittorrent version: v4.5.0 (64-bit)
Libtorrent version: 2.0.8.0
Qt version: 6.4.0
Boost version: 1.80.0
OpenSSL version: 1.1.1s
zlib version: 1.2.13
OS version: Windows 10 Version 22H2 10.0.19045 x86_64
Caught signal: SIGSEGV

0# qt_startup_hook in qbittorrent
1# qt_startup_hook in qbittorrent
2# qt_startup_hook in qbittorrent
3# qt_startup_hook in qbittorrent
4# qt_startup_hook in qbittorrent
5# qt_startup_hook in qbittorrent
6# _chkstk in ntdll
7# RtlRaiseException in ntdll
8# KiUserExceptionDispatcher in ntdll
9# qt_startup_hook in qbittorrent
10# qt_startup_hook in qbittorrent
11# qt_startup_hook in qbittorrent
12# qt_startup_hook in qbittorrent
13# qt_startup_hook in qbittorrent
14# qt_startup_hook in qbittorrent
15# qt_startup_hook in qbittorrent
16# qt_startup_hook in qbittorrent
17# qt_startup_hook in qbittorrent
18# 0x00007FF73F0D8835 in qbittorrent
19# 0x00007FF73F0D866D in qbittorrent
20# qt_startup_hook in qbittorrent
21# qt_startup_hook in qbittorrent
22# qt_startup_hook in qbittorrent
23# qt_startup_hook in qbittorrent
24# qt_startup_hook in qbittorrent
25# qt_startup_hook in qbittorrent
26# qt_startup_hook in qbittorrent
27# qt_startup_hook in qbittorrent
28# qt_startup_hook in qbittorrent
29# qt_startup_hook in qbittorrent
30# qt_startup_hook in qbittorrent
31# BaseThreadInitThunk in KERNEL32
32# RtlUserThreadStart in ntdll

Context:
The client was minimized in the system tray.
I have a PowerShell script that run after torrents finishes download (PowerShell actually opens)

When/how it happens:

  1. The download finishes
  2. The PowerShell script runs fine
  3. At the same time, the qBittorrent client crashes.

Keep in mind that this issue doesn't happen super often. I had a similar issue with the qt5 version, except it was a lot more frequent.

I think it would be better if you open up a new issue about that

@Damaj301damaj-lol
Copy link
Author

Damaj301damaj-lol commented Jan 12, 2023

UPDATE: reported the bug to Qt here and the developers acknowledged it as critical and are currently working on a fix.

Should i close this issue or is it preferable to keep it up until the issue has been fixed by Qt? @xavier2k6

@xavier2k6
Copy link
Member

@Damaj301damaj-lol Will leave it open for now, also you should've probably had pasted or at least linked the stack traces from #18317 (comment) & mentioned the regression from #18317 (comment) in your Qt Bug Report to have aided in narrowing down the issue for Qt Dev's as your link to this ticket is broken over there.

@xavier2k6

This comment was marked as off-topic.

@Damaj301damaj-lol
Copy link
Author

Damaj301damaj-lol commented Jan 13, 2023

@Damaj301damaj-lol Will leave it open for now, also you should've probably had pasted or at least linked the stack traces from #18317 (comment) & mentioned the regression from #18317 (comment) in your Qt Bug Report to have aided in narrowing down the issue for Qt Dev's as your link to this ticket is broken over there.

A pull request has already been filled i doubt they need more assistance (here)

@Damaj301damaj-lol
Copy link
Author

Damaj301damaj-lol commented Jan 13, 2023

UPDATE (again): a pull request to fix this issue was merged into the development and base Qt branch, View the pull request here

@Damaj301damaj-lol
Copy link
Author

I will close this issue since it resolved on Qt's side

@xavier2k6
Copy link
Member

I can confirm that the fix from QTBUG-110070 which is included in Qt 6.4.3 & Qt 6.5.0 resolves the reported issue for this ticket.

@xavier2k6 xavier2k6 changed the title qB ver 4.5.0 crashes when trying to paste using an empty clipboard qB ver 4.5.0 crashes when trying to paste using an empty clipboard, Fixed via (QTBUG-110070) Oct 10, 2023
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

No branches or pull requests

5 participants