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 when changing save paths for group of files that shared same previous save path except had different capitalization #22015

Open
oapy123 opened this issue Dec 16, 2024 · 0 comments
Labels

Comments

@oapy123
Copy link

oapy123 commented Dec 16, 2024

qBittorrent & operating system versions

qBittorrent: 5.0.2 x64
Operationg system: Windows 10 Pro x64 10.0.19045

What is the problem?

1st crash info

qBittorrent version: v5.0.2 (64-bit)
Libtorrent version: 1.2.19.0
Qt version: 6.7.3
Boost version: 1.86.0
OpenSSL version: 3.4.0
zlib version: 1.3.1
OS version: Windows 10 Version 22H2 10.0.19045 x86_64

Caught signal: SIGSEGV

 0# boost::stacktrace::basic_stacktrace >::init at G:\QBITTORRENT\boost_1_86_0\boost\stacktrace\stacktrace.hpp:111
 1# getStacktrace at G:\QBITTORRENT\qbt-src-5.0.2\src\app\stacktrace.cpp:35
 2# `anonymous namespace'::abnormalExitHandler at G:\QBITTORRENT\qbt-src-5.0.2\src\app\signalhandler.cpp:103
 3# _seh_filter_exe at minkernel\crts\ucrt\src\appcrt\misc\exception_filter.cpp:219
 4# `__scrt_common_main_seh'::`1'::filt$0 at D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:304
 5# __C_specific_handler at D:\a\_work\1\s\src\vctools\crt\vcruntime\src\eh\riscchandler.cpp:389
 6# _chkstk in ntdll
 7# RtlRaiseException in ntdll
 8# KiUserExceptionDispatcher in ntdll
 9# libtorrent::file_storage::file_path at G:\QBITTORRENT\libtorrent\src\file_storage.cpp:824
10# BitTorrent::TorrentImpl::actualFilePath at G:\QBITTORRENT\qbt-src-5.0.2\src\base\bittorrent\torrentimpl.cpp:985
11# BitTorrent::TorrentImpl::handleFileCompletedAlert at G:\QBITTORRENT\qbt-src-5.0.2\src\base\bittorrent\torrentimpl.cpp:2377
12# BitTorrent::SessionImpl::dispatchTorrentAlert at G:\QBITTORRENT\qbt-src-5.0.2\src\base\bittorrent\sessionimpl.cpp:5735
13# BitTorrent::SessionImpl::handleAlert at G:\QBITTORRENT\qbt-src-5.0.2\src\base\bittorrent\sessionimpl.cpp:5625
14# BitTorrent::SessionImpl::readAlerts at G:\QBITTORRENT\qbt-src-5.0.2\src\base\bittorrent\sessionimpl.cpp:5509
15# QMetaCallEvent::placeMetaCall in qbittorrent
16# QObject::event in qbittorrent
17# QApplicationPrivate::notify_helper in qbittorrent
18# QApplication::notify in qbittorrent
19# QCoreApplication::notifyInternal2 in qbittorrent
20# QCoreApplicationPrivate::sendPostedEvents in qbittorrent
21# QWindowsGuiEventDispatcher::sendPostedEvents in qbittorrent
22# QEventDispatcherWin32::processEvents in qbittorrent
23# QWindowsGuiEventDispatcher::processEvents in qbittorrent
24# QEventLoop::exec in qbittorrent
25# QCoreApplication::exec in qbittorrent
26# Application::exec at G:\QBITTORRENT\qbt-src-5.0.2\src\app\application.cpp:975
27# main at G:\QBITTORRENT\qbt-src-5.0.2\src\app\main.cpp:328
28# QSqlCachedResult::setNumericalPrecisionPolicy in qbittorrent
29# __scrt_common_main_seh at D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
30# BaseThreadInitThunk in KERNEL32
31# RtlUserThreadStart in ntdll

2nd crash info

qBittorrent version: v5.0.2 (64-bit)
Libtorrent version: 1.2.19.0
Qt version: 6.7.3
Boost version: 1.86.0
OpenSSL version: 3.4.0
zlib version: 1.3.1
OS version: Windows 10 Version 22H2 10.0.19045 x86_64

Caught signal: SIGSEGV

 0# boost::stacktrace::basic_stacktrace >::init at G:\QBITTORRENT\boost_1_86_0\boost\stacktrace\stacktrace.hpp:111
 1# getStacktrace at G:\QBITTORRENT\qbt-src-5.0.2\src\app\stacktrace.cpp:35
 2# `anonymous namespace'::abnormalExitHandler at G:\QBITTORRENT\qbt-src-5.0.2\src\app\signalhandler.cpp:103
 3# _seh_filter_exe at minkernel\crts\ucrt\src\appcrt\misc\exception_filter.cpp:219
 4# `__scrt_common_main_seh'::`1'::filt$0 at D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:304
 5# __C_specific_handler at D:\a\_work\1\s\src\vctools\crt\vcruntime\src\eh\riscchandler.cpp:389
 6# _chkstk in ntdll
 7# RtlRaiseException in ntdll
 8# KiUserExceptionDispatcher in ntdll
 9# libtorrent::file_storage::file_path at G:\QBITTORRENT\libtorrent\src\file_storage.cpp:824
10# BitTorrent::TorrentImpl::actualFilePath at G:\QBITTORRENT\qbt-src-5.0.2\src\base\bittorrent\torrentimpl.cpp:985
11# BitTorrent::TorrentImpl::handleFileCompletedAlert at G:\QBITTORRENT\qbt-src-5.0.2\src\base\bittorrent\torrentimpl.cpp:2377
12# BitTorrent::SessionImpl::dispatchTorrentAlert at G:\QBITTORRENT\qbt-src-5.0.2\src\base\bittorrent\sessionimpl.cpp:5735
13# BitTorrent::SessionImpl::handleAlert at G:\QBITTORRENT\qbt-src-5.0.2\src\base\bittorrent\sessionimpl.cpp:5625
14# BitTorrent::SessionImpl::readAlerts at G:\QBITTORRENT\qbt-src-5.0.2\src\base\bittorrent\sessionimpl.cpp:5509
15# QMetaCallEvent::placeMetaCall in qbittorrent
16# QObject::event in qbittorrent
17# QApplicationPrivate::notify_helper in qbittorrent
18# QApplication::notify in qbittorrent
19# QCoreApplication::notifyInternal2 in qbittorrent
20# QCoreApplicationPrivate::sendPostedEvents in qbittorrent
21# QWindowsGuiEventDispatcher::sendPostedEvents in qbittorrent
22# QEventDispatcherWin32::processEvents in qbittorrent
23# QWindowsGuiEventDispatcher::processEvents in qbittorrent
24# QEventLoop::exec in qbittorrent
25# QCoreApplication::exec in qbittorrent
26# Application::exec at G:\QBITTORRENT\qbt-src-5.0.2\src\app\application.cpp:975
27# main at G:\QBITTORRENT\qbt-src-5.0.2\src\app\main.cpp:328
28# QSqlCachedResult::setNumericalPrecisionPolicy in qbittorrent
29# __scrt_common_main_seh at D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
30# BaseThreadInitThunk in KERNEL32
31# RtlUserThreadStart in ntdll

Steps to reproduce

  1. Have a group of files mapped to the same network folder but have some of them with the drive name capitalized and some not capitalized
  2. Select all of those files and remap them to a different network folder

Additional context

Problem Description

I have some files in a few different folders on a network drive...recently used a file manager to move the files to another network share folder...which caused qBittorrent to show their status as MISSING FILES...so in qBittorrent, I selected all the files sharing the same old folder and right-click > set location > selected new folder. Then repeat for each "group" of files to update their folder mappings.

Changing save path worked file as long as all the files I selected to remap all had the same exact previous save path. e.g.:
File 1 \server\Parent Folder\Sub Folder 1
File 2 \server\Parent Folder\Sub Folder 1
File 3 \server\Parent Folder\Sub Folder 1
or
File 3 \server\Parent Folder\Sub Folder 2
File 4 \server\Parent Folder\Sub Folder 2
File 5 \server\Parent Folder\Sub Folder 2

It seemed to fail when I tried to change paths for a group of files that had a minor difference - capitalization in the save path:
File 6 \server\Parent Folder 2\Sub Folder
File 7 \SERVER\Parent Folder 2\Sub Folder

Even though the mappings lead to the same place, I guess I mistakenly used different capitalization when adding the save path in. This was repeatable error because I had this difference in capitalization across two different folders that I had to remap. I actually remapped a bunch of files across 4 different network save paths. As long as all files in each batch had the same network save path (including capitalization), everything worked fine. However if one batch of files had the same save path but with differing capitalization, this caused it to crash.

Log file attached

Note I could not find any qbittorrent.conf file in APPDATA/Roaming and yes I have hidden files option showing

Log(s) & preferences file(s)

qbittorrent.log

@thalieht thalieht added the Crash label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants