qBittorrent icon indicating copy to clipboard operation
qBittorrent copied to clipboard

Crash on MacOS Sonoma

Open rdanalex opened this issue 1 year ago • 11 comments

qBittorrent & operating system versions

qBittorrent version: v5.0.0 (64-bit) Libtorrent version: 1.2.19.0 Qt version: 6.7.3 Boost version: 1.86.0 OpenSSL version: 3.3.2 zlib version: 1.2.12 OS version: macOS Sonoma (14.7) 23.6.0 x86_64

What is the problem?

qBittorrent version: v5.0.0 (64-bit) Libtorrent version: 1.2.19.0 Qt version: 6.7.3 Boost version: 1.86.0 OpenSSL version: 3.3.2 zlib version: 1.2.12 OS version: macOS Sonoma (14.7) 23.6.0 x86_64 Caught signal: SIGSEGV

 0# getStacktrace() in /Applications/qbittorrent.app/Contents/MacOS/qbittorrent
 1# (anonymous namespace)::abnormalExitHandler(int) in /Applications/qbittorrent.app/Contents/MacOS/qbittorrent
 2# _sigtramp in /usr/lib/system/libsystem_platform.dylib
 3# BitTorrent::TorrentInfo::name() const in /Applications/qbittorrent.app/Contents/MacOS/qbittorrent
 4# BitTorrent::TorrentImpl::name() const in /Applications/qbittorrent.app/Contents/MacOS/qbittorrent
 5# BitTorrent::SessionImpl::handleStateUpdateAlert(libtorrent::v1_2::state_update_alert const*) in /Applications/qbittorrent.app/Contents/MacOS/qbittorrent
 6# BitTorrent::SessionImpl::handleAlert(libtorrent::alert const*) in /Applications/qbittorrent.app/Contents/MacOS/qbittorrent
 7# BitTorrent::SessionImpl::readAlerts() in /Applications/qbittorrent.app/Contents/MacOS/qbittorrent
 8# QObject::event(QEvent*) in /Applications/qbittorrent.app/Contents/MacOS/qbittorrent
 9# QApplicationPrivate::notify_helper(QObject*, QEvent*) in /Applications/qbittorrent.app/Contents/MacOS/qbittorrent
10# QApplication::notify(QObject*, QEvent*) in /Applications/qbittorrent.app/Contents/MacOS/qbittorrent
11# QCoreApplication::notifyInternal2(QObject*, QEvent*) in /Applications/qbittorrent.app/Contents/MacOS/qbittorrent
12# QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) in /Applications/qbittorrent.app/Contents/MacOS/qbittorrent
13# QCocoaEventDispatcherPrivate::processPostedEvents() in /Applications/qbittorrent.app/Contents/MacOS/qbittorrent
14# QCocoaEventDispatcherPrivate::postedEventsSourceCallback(void*) in /Applications/qbittorrent.app/Contents/MacOS/qbittorrent
15# __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
16# __CFRunLoopDoSource0 in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
17# __CFRunLoopDoSources0 in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
18# __CFRunLoopRun in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
19# CFRunLoopRunSpecific in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
20# RunCurrentEventLoopInMode in /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
21# ReceiveNextEventCommon in /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
22# _BlockUntilNextEventMatchingListInModeWithFilter in /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
23# _DPSNextEvent in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
24# -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
25# -[NSApplication run] in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
26# QCocoaEventDispatcher::processEvents(QFlags) in /Applications/qbittorrent.app/Contents/MacOS/qbittorrent
27# QEventLoop::exec(QFlags) in /Applications/qbittorrent.app/Contents/MacOS/qbittorrent
28# QCoreApplication::exec() in /Applications/qbittorrent.app/Contents/MacOS/qbittorrent
29# Application::exec() in /Applications/qbittorrent.app/Contents/MacOS/qbittorrent
30# main in /Applications/qbittorrent.app/Contents/MacOS/qbittorrent
31# start in /usr/lib/dyld

Steps to reproduce

on automatic exit when torrents complete this error occurs. in previous version I didnt get this error.

Additional context

No response

Log(s) & preferences file(s)

No response

rdanalex avatar Sep 30 '24 08:09 rdanalex

got similar error at handleStateUpdateAlert on linux too

qb 5.0.0, boost 1.86.0 nad qt 6.8.0

Caught signal: SIGSEGV

 0# getStacktrace[abi:cxx11]() in /usr/bin/qbittorrent-nox
 1# 0x000055B05E3426C1 in /usr/bin/qbittorrent-nox
 2# 0x00007F85DB25B050 in /lib/x86_64-linux-gnu/libc.so.6
 3# BitTorrent::InfoHash::InfoHash(libtorrent::info_hash_t const&) in /usr/bin/qbittorrent-nox
 4# BitTorrent::SessionImpl::handleStateUpdateAlert(libtorrent::v2::state_update_alert const*) in /usr/bin/qbittorrent-nox
 5# BitTorrent::SessionImpl::handleAlert(libtorrent::alert const*) in /usr/bin/qbittorrent-nox
 6# BitTorrent::SessionImpl::readAlerts() in /usr/bin/qbittorrent-nox
 7# QObject::event(QEvent*) in /export/nvme-512g/proj/include/lib/libQt6Core.so.6
 8# QCoreApplication::notifyInternal2(QObject*, QEvent*) in /export/nvme-512g/proj/include/lib/libQt6Core.so.6
 9# QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) in /export/nvme-512g/proj/include/lib/libQt6Core.so.6
10# 0x00007F85DB8462C7 in /export/nvme-512g/proj/include/lib/libQt6Core.so.6
11# g_main_context_dispatch in /lib/x86_64-linux-gnu/libglib-2.0.so.0
12# 0x00007F85DA91EA38 in /lib/x86_64-linux-gnu/libglib-2.0.so.0
13# g_main_context_iteration in /lib/x86_64-linux-gnu/libglib-2.0.so.0
14# QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) in /export/nvme-512g/proj/include/lib/libQt6Core.so.6
15# QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) in /export/nvme-512g/proj/include/lib/libQt6Core.so.6
16# QCoreApplication::exec() in /export/nvme-512g/proj/include/lib/libQt6Core.so.6
17# Application::exec() in /usr/bin/qbittorrent-nox
18# main in /usr/bin/qbittorrent-nox
19# 0x00007F85DB24624A in /lib/x86_64-linux-gnu/libc.so.6
20# __libc_start_main in /lib/x86_64-linux-gnu/libc.so.6
21# _start in /usr/bin/qbittorrent-nox

trim21 avatar Oct 18 '24 03:10 trim21

Do you have share limits configured?

glassez avatar Oct 18 '24 05:10 glassez

what's "limits configured" ?

trim21 avatar Oct 18 '24 05:10 trim21

on automatic exit when torrents complete this error occurs

Can you reproduce this crash? Does this happen every time "on automatic exit when torrents complete"?

glassez avatar Oct 18 '24 05:10 glassez

And please don't ignore to provide recent qBittorrent log. It could give some info about crash circumstances.

glassez avatar Oct 18 '24 05:10 glassez

on automatic exit when torrents complete this error occurs

Can you reproduce this crash? Does this happen every time "on automatic exit when torrents complete"?

I can't , my crash happens on startup. and no qBittorrent log.

Maybe it's not same bug...

trim21 avatar Oct 18 '24 09:10 trim21

I can't , my crash happens on startup

So there is no crash when you started qBittorrent next time?

Maybe it's not same bug...

It is very likely that they are really different.

glassez avatar Oct 18 '24 11:10 glassez

So there is no crash when you started qBittorrent next time?

no, it crash on startup every time I start it from previous profile, and no crash with empty profile directory.

trim21 avatar Oct 18 '24 11:10 trim21

So there is no crash when you started qBittorrent next time?

no, it crash on startup every time I start it from previous profile

Could you provide me this profile for testing?

glassez avatar Oct 18 '24 12:10 glassez

I just find the reason, it's not a bug of qbittorrent.

I compile qbittorent by myself with cmake, and cmake didn't choose correct boost.

I have 2 boost on my OS, cmake find boost 1.81 but somehow it didn't choose the correct version, but choose boost 1.74 installed by apt, and get SIGSEGV. add -DBOOST_ROOT=... fix this.

trim21 avatar Oct 18 '24 12:10 trim21

seems that error occurs when "Confirmation on auto-exit when downloads finish" is enabled

rdanalex avatar Oct 23 '24 09:10 rdanalex