qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
27.09k stars 3.9k forks source link

Installed 4.4 - crashes on startup #16380

Closed gazumped closed 2 years ago

gazumped commented 2 years ago

qBittorrent & operating system versions

qBittorrent version: v4.4.0 (64-bit) OS version: Windows 10 Version 1709 10.0.16299 x86_64 Qt version: 5.15.2 Libtorrent version: 2.0.5.0

What is the problem?

qBittorrent has crashed Please file a bug report at http://bugs.qbittorrent.org/ and provide the following information:

qBittorrent version: v4.4.0 (64-bit) Libtorrent version: 2.0.5.0 Qt version: 5.15.2 Boost version: 1.78.0 OpenSSL version: 1.1.1m zlib version: 1.2.11 OS version: Windows 10 Version 1709 10.0.16299 x86_64

Caught signal: SIGSEGV

#  0 qbittorrent.exe      0x00007ff74d07984c straceWin::getBacktrace()[ app\stacktrace_win.h : 220 ]
#  1 qbittorrent.exe      0x00007ff74d07a9cb sigAbnormalHandler(signum)[ app\main.cpp : 368 ]
#  2 qbittorrent.exe      0x00007ff74deaf715 _seh_filter_exe(xcptnum, pxcptinfoptrs)[ minkernel\crts\ucrt\src\appcrt\misc\exception_filter.cpp : 215 ]
#  3 qbittorrent.exe      0x00007ff74df34ab7 `__scrt_common_main_seh'::`1'::filt$0()[ d:\agent\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl : 304 ]
#  4 qbittorrent.exe      0x00007ff74de9015c __C_specific_handler(ExceptionRecord, EstablisherFrame, ContextRecord, DispatcherContext)[ d:\agent\_work\1\s\src\vctools\crt\vcruntime\src\eh\riscchandler.cpp : 277 ]
#  5 ntdll.dll            0x00007ffc7bda4ecd _chkstk()
#  6 ntdll.dll            0x00007ffc7bd26058 RtlWalkFrameChain()
#  7 ntdll.dll            0x00007ffc7bda3dfe KiUserExceptionDispatcher()
#  8 qbittorrent.exe      0x00007ff74d13f794 CategoryFilterModel::torrentAdded(torrent)[ gui\categoryfiltermodel.cpp : 341 ]
#  9 qbittorrent.exe      0x00007ff74dc38d74 doActivate()
# 10 qbittorrent.exe      0x00007ff74d2304f9 BitTorrent::Session::torrentLoaded(_t1)[ release\moc_session.cpp : 768 ]
# 11 qbittorrent.exe      0x00007ff74d0b1921 BitTorrent::Session::createTorrent(nativeHandle)[ base\bittorrent\session.cpp : 4636 ]
# 12 qbittorrent.exe      0x00007ff74d0b1caa BitTorrent::Session::handleAddTorrentAlert(p)[ base\bittorrent\session.cpp : 4665 ]
# 13 qbittorrent.exe      0x00007ff74d0b1198 BitTorrent::Session::handleAlert(a, a)[ base\bittorrent\session.cpp : 4516 ]
# 14 qbittorrent.exe      0x00007ff74d0b0f0f BitTorrent::Session::readAlerts()[ base\bittorrent\session.cpp : 4479 ]
# 15 qbittorrent.exe      0x00007ff74d0b0550 BitTorrent::Session::startUpTorrents()[ base\bittorrent\session.cpp : 4387 ]
# 16 qbittorrent.exe      0x00007ff74d070546 Application::exec(params, params)[ app\application.cpp : 672 ]
# 17 qbittorrent.exe      0x00007ff74d07a7a9 main(argc, argv)[ app\main.cpp : 311 ]
# 18 qbittorrent.exe      0x00007ff74de6a45f WinMain()
# 19 qbittorrent.exe      0x00007ff74de71132 __scrt_common_main_seh()[ d:\agent\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl : 288 ]
# 20 KERNEL32.DLL         0x00007ffc79361fe4 BaseThreadInitThunk()
# 21 ntdll.dll            0x00007ffc7bd6cb81 RtlUserThreadStart()

Steps to reproduce

Install new version Click 'Finish' window with 'start' option active Receive 'crashed' notice

Additional context

I re-downloaded and re-installed in case of a download glitch, but there was no apparent change. When completing this form I noted 4.4 had loaded despite the crash report, but now shows 14 downloads against 300 that were previously listed.

Log(s) & preferences file(s)

qBittorrent.ini.txt qbittorrent.log watched_folders.json.txt

glassez commented 2 years ago

This crash is due to misconfiguration. Some previously added torrent has assigned category that is missed (doesn't exist in configuration file). Did you remove qBittorrent.ini before run updated qBittorrent? What version did you use before?

gazumped commented 2 years ago

Qt 6.2.2 version tried but also crashes. Reverting to qBittorrent 4.3.9...

qBittorrent has crashed Please file a bug report at http://bugs.qbittorrent.org/ and provide the following information:

qBittorrent version: v4.4.0 (64-bit) Libtorrent version: 2.0.5.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 1709 10.0.16299 x86_64

Caught signal: SIGSEGV

#  0 qbittorrent.exe      0x00007ff78dd14d81 straceWin::getBacktrace()[ Z:\qbittorrent-4.4.0\src\app\stacktrace_win.h : 220 ]
#  1 qbittorrent.exe      0x00007ff78dd1613d sigAbnormalHandler(signum)[ Z:\qbittorrent-4.4.0\src\app\main.cpp : 368 ]
#  2 qbittorrent.exe      0x00007ff78e20906e _seh_filter_exe(xcptnum, pxcptinfoptrs)[ minkernel\crts\ucrt\src\appcrt\misc\exception_filter.cpp : 215 ]
#  3 qbittorrent.exe      0x00007ff78e268ed8 `__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      0x00007ff78e1e8448 __C_specific_handler(ExceptionRecord, EstablisherFrame, ContextRecord, DispatcherContext)[ d:\a01\_work\6\s\src\vctools\crt\vcruntime\src\eh\riscchandler.cpp : 376 ]
#  5 ntdll.dll            0x00007ffc7bda4ecd _chkstk()
#  6 ntdll.dll            0x00007ffc7bd26058 RtlWalkFrameChain()
#  7 ntdll.dll            0x00007ffc7bda3dfe KiUserExceptionDispatcher()
#  8 qbittorrent.exe      0x00007ff78dedbfe5 CategoryFilterModel::torrentAdded(torrent)[ Z:\qbittorrent-4.4.0\src\gui\categoryfiltermodel.cpp : 341 ]
#  9 qbittorrent.exe      0x00007ff78da84e3e doActivate()
# 10 qbittorrent.exe      0x00007ff78da82216 QMetaObject::activate()
# 11 qbittorrent.exe      0x00007ff78dd613c3 BitTorrent::Session::torrentLoaded(_t1)[ Z:\qbittorrent-4.4.0\build\src\base\qbt_base_autogen\VKOXE6AELE\moc_session.cpp : 759 ]
# 12 qbittorrent.exe      0x00007ff78dd37447 BitTorrent::Session::createTorrent(nativeHandle)[ Z:\qbittorrent-4.4.0\src\base\bittorrent\session.cpp : 4636 ]
# 13 qbittorrent.exe      0x00007ff78dd3fdf3 BitTorrent::Session::handleAddTorrentAlert(p)[ Z:\qbittorrent-4.4.0\src\base\bittorrent\session.cpp : 4665 ]
# 14 qbittorrent.exe      0x00007ff78dd3fecb BitTorrent::Session::handleAlert(a, a)[ Z:\qbittorrent-4.4.0\src\base\bittorrent\session.cpp : 4516 ]
# 15 qbittorrent.exe      0x00007ff78dd4dbbb BitTorrent::Session::readAlerts()[ Z:\qbittorrent-4.4.0\src\base\bittorrent\session.cpp : 4479 ]
# 16 qbittorrent.exe      0x00007ff78dd5616a BitTorrent::Session::startUpTorrents()[ Z:\qbittorrent-4.4.0\src\base\bittorrent\session.cpp : 4387 ]
# 17 qbittorrent.exe      0x00007ff78dd096a0 Application::exec(params, params)[ Z:\qbittorrent-4.4.0\src\app\application.cpp : 672 ]
# 18 qbittorrent.exe      0x00007ff78dd16dc2 main(argc, argv)[ Z:\qbittorrent-4.4.0\src\app\main.cpp : 311 ]
# 19 qbittorrent.exe      0x00007ff78dd04f77 WinMain()
# 20 qbittorrent.exe      0x00007ff78e1e50e2 __scrt_common_main_seh()[ d:\a01\_work\6\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl : 288 ]
# 21 KERNEL32.DLL         0x00007ffc79361fe4 BaseThreadInitThunk()
# 22 ntdll.dll            0x00007ffc7bd6cb81 RtlUserThreadStart()
glassez commented 2 years ago

What version did you use before?

Qt 6.2.2 version tried but also crashes.

I mean what qBittorrent version did you use before v4.4?

gazumped commented 2 years ago

Thanks for the quick responses.
I used 4.3.9 previously. I reverted to that today, and have 339 current torrents, 322 completed. I did not remove qBittorrent.ini before running the new version - I didn't realise that was required. If there's a 'category' problem, would deleting all categories via right-click help? If not, how do I clear current entries?

glassez commented 2 years ago

I did not remove qBittorrent.ini before running the new version - I didn't realise that was required.

No. On contrary it can cause the same crash as you have.

rumanzo commented 2 years ago

I have similar error after reboot for update windows. I tried reinstalling qt6 version to qt5 and got no change.

qBittorrent has crashed
Please file a bug report at http://bugs.qbittorrent.org/ and provide the following information:

qBittorrent version: v4.4.0 (64-bit)
Libtorrent version: 2.0.5.0
Qt version: 5.15.2
Boost version: 1.78.0
OpenSSL version: 1.1.1m
zlib version: 1.2.11
OS version: Windows 10 Version 2009 10.0.22000 x86_64

Caught signal: SIGSEGV

#  0 qbittorrent.exe      0x00007ff6eb68984c straceWin::getBacktrace()[ app\stacktrace_win.h : 220 ]
#  1 qbittorrent.exe      0x00007ff6eb68a9cb sigAbnormalHandler(signum)[ app\main.cpp : 368 ]
#  2 qbittorrent.exe      0x00007ff6ec4bf715 _seh_filter_exe(xcptnum, pxcptinfoptrs)[ minkernel\crts\ucrt\src\appcrt\misc\exception_filter.cpp : 215 ]
#  3 qbittorrent.exe      0x00007ff6ec544ab7 `__scrt_common_main_seh'::`1'::filt$0()[ d:\agent\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl : 304 ]
#  4 qbittorrent.exe      0x00007ff6ec4a015c __C_specific_handler(ExceptionRecord, EstablisherFrame, ContextRecord, DispatcherContext)[ d:\agent\_work\1\s\src\vctools\crt\vcruntime\src\eh\riscchandler.cpp : 277 ]
#  5 ntdll.dll            0x00007ff8344086ef _chkstk()
#  6 ntdll.dll            0x00007ff834395aea RtlRestoreContext()
#  7 ntdll.dll            0x00007ff8344076fe KiUserExceptionDispatcher()
#  8 qbittorrent.exe      0x00007ff6eb944a95 libtorrent::file_storage::file_path(index, index, save_path)[ g:\qbittorrent\libtorrent\src\file_storage.cpp : 983 ]
#  9 qbittorrent.exe      0x00007ff6eb6d094f BitTorrent::TorrentImpl::TorrentImpl(session, nativeSession, nativeHandle, params)[ base\bittorrent\torrentimpl.cpp : 283 ]
# 10 qbittorrent.exe      0x00007ff6eb6c143f BitTorrent::Session::createTorrent(nativeHandle)[ base\bittorrent\session.cpp : 4600 ]
# 11 qbittorrent.exe      0x00007ff6eb6c1caa BitTorrent::Session::handleAddTorrentAlert(p)[ base\bittorrent\session.cpp : 4665 ]
# 12 qbittorrent.exe      0x00007ff6eb6c1198 BitTorrent::Session::handleAlert(a, a)[ base\bittorrent\session.cpp : 4516 ]
# 13 qbittorrent.exe      0x00007ff6eb6c0f0f BitTorrent::Session::readAlerts()[ base\bittorrent\session.cpp : 4479 ]
# 14 qbittorrent.exe      0x00007ff6eb6c0550 BitTorrent::Session::startUpTorrents()[ base\bittorrent\session.cpp : 4387 ]
# 15 qbittorrent.exe      0x00007ff6eb680546 Application::exec(params, params)[ app\application.cpp : 672 ]
# 16 qbittorrent.exe      0x00007ff6eb68a7a9 main(argc, argv)[ app\main.cpp : 311 ]
# 17 qbittorrent.exe      0x00007ff6ec47a45f WinMain()
# 18 qbittorrent.exe      0x00007ff6ec481132 __scrt_common_main_seh()[ d:\agent\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl : 288 ]
# 19 KERNEL32.DLL         0x00007ff832a754e0 BaseThreadInitThunk()
# 20 ntdll.dll            0x00007ff83436485b RtlUserThreadStart()
vangeliis commented 2 years ago

This crash is due to misconfiguration. Some previously added torrent has assigned category that is missed (doesn't exist in configuration file). Did you remove qBittorrent.ini before run updated qBittorrent? What version did you use before?

I have the exact same issue when upgrading from 4.3.9 to 4.4 in Win10. qBittorrent.ini is present in the AppData\Roaming\qBittorrent folder. Checked all torrents and can't find any with 'missing' categories, although some are 'Uncategorised'. Any ideas how to resolve this? Many thanks.

gazumped commented 2 years ago

Any ideas how to resolve this? - Not yet. Can't see any local issues that might be the problem. Back to 4.3.9 for the moment.

vangeliis commented 2 years ago

Perhaps the issue lies with the categories.json file? In my case there is a mismatch between the categories in my client and those in the categories.json file. Seems like when a category is added and/or deleted the categories.json isn't updated according? Could this be causing v4.4 to crash?

glassez commented 2 years ago

Perhaps the issue lies with the categories.json file? In my case there is a mismatch between the categories in my client and those in the categories.json file. Seems like when a category is added and/or deleted the categories.json isn't updated according? Could this be causing v4.4 to crash?

categories.json is used by v4.4+. Previously categories were stored in qBittorrent.ini. When you run qBittorrent v4.4+ and there is no categories.json file it "thinks" that it runs first time after update from previous release and performs "upgrade path", i.e. it imports categories from qBittorrent.ini. So if you run v4.4 then downgrade to v4.3, create some categories with it and assign these categories to torrents, then run v4.4 again (so it doesn't apply upgrade anymore because of existing categories.json) there are missing categories.

vangeliis commented 2 years ago

Perhaps the issue lies with the categories.json file? In my case there is a mismatch between the categories in my client and those in the categories.json file. Seems like when a category is added and/or deleted the categories.json isn't updated according? Could this be causing v4.4 to crash?

categories.json is used by v4.4+. Previously categories were stored in qBittorrent.ini. When you run qBittorrent v4.4+ and there is no categories.json file it "thinks" that it runs first time after update from previous release and performs "upgrade path", i.e. it imports categories from qBittorrent.ini. So if you run v4.4 then downgrade to v4.3, create some categories with it and assign these categories to torrents, then run v4.4 again (so it doesn't apply upgrade anymore because of existing categories.json) there are missing categories.

That's exactly what has happened in my case! Well spotted. Can I assume that deleting the categories.json and re-installing v4.4.0 should work without qBittorrent crashing at startup?

gazumped commented 2 years ago

New here, so I haven't found out how to add the previous comments before, but thanks @glassez - I renamed my categories.json to categories.json.old and will try updating again later... more here if it works!

kidcodea commented 2 years ago

installed 4.4 also here.... and also crashes on startup :\

qBittorrent version: v4.4.0 (64-bit) Libtorrent version: 2.0.5.0 Qt version: 5.15.2 Boost version: 1.78.0 OpenSSL version: 1.1.1m zlib version: 1.2.11 OS version: Windows 10 Version 2009 10.0.19042 x86_64

Caught signal: SIGSEGV


#  0 qbittorrent.exe      0x00007ff7ee01984c straceWin::getBacktrace()[ app\stacktrace_win.h : 220 ]
#  1 qbittorrent.exe      0x00007ff7ee01a9cb sigAbnormalHandler(signum)[ app\main.cpp : 368 ]
#  2 qbittorrent.exe      0x00007ff7eee4f715 _seh_filter_exe(xcptnum, pxcptinfoptrs)[ minkernel\crts\ucrt\src\appcrt\misc\exception_filter.cpp : 215 ]
#  3 qbittorrent.exe      0x00007ff7eeed4ab7 `__scrt_common_main_seh'::`1'::filt$0()[ d:\agent\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl : 304 ]
#  4 qbittorrent.exe      0x00007ff7eee3015c __C_specific_handler(ExceptionRecord, EstablisherFrame, ContextRecord, DispatcherContext)[ d:\agent\_work\1\s\src\vctools\crt\vcruntime\src\eh\riscchandler.cpp : 277 ]
#  5 ntdll.dll            0x00007ff8661920cf _chkstk()
#  6 ntdll.dll            0x00007ff866141454 RtlRaiseException()
#  7 ntdll.dll            0x00007ff866190bfe KiUserExceptionDispatcher()
#  8 qbittorrent.exe      0x00007ff7ee2d4a95 libtorrent::file_storage::file_path(index, index, save_path)[ g:\qbittorrent\libtorrent\src\file_storage.cpp : 983 ]
#  9 qbittorrent.exe      0x00007ff7ee06094f BitTorrent::TorrentImpl::TorrentImpl(session, nativeSession, nativeHandle, params)[ base\bittorrent\torrentimpl.cpp : 283 ]
# 10 qbittorrent.exe      0x00007ff7ee05143f BitTorrent::Session::createTorrent(nativeHandle)[ base\bittorrent\session.cpp : 4600 ]
# 11 qbittorrent.exe      0x00007ff7ee051caa BitTorrent::Session::handleAddTorrentAlert(p)[ base\bittorrent\session.cpp : 4665 ]
# 12 qbittorrent.exe      0x00007ff7ee051198 BitTorrent::Session::handleAlert(a, a)[ base\bittorrent\session.cpp : 4516 ]
# 13 qbittorrent.exe      0x00007ff7ee050f0f BitTorrent::Session::readAlerts()[ base\bittorrent\session.cpp : 4479 ]
# 14 qbittorrent.exe      0x00007ff7eebd0cba QMetaCallEvent::placeMetaCall()
# 15 qbittorrent.exe      0x00007ff7eebd1932 QObject::event()
# 16 qbittorrent.exe      0x00007ff7ee713240 QApplicationPrivate::notify_helper()
# 17 qbittorrent.exe      0x00007ff7ee712d38 QApplication::notify()
# 18 qbittorrent.exe      0x00007ff7eebdec59 QCoreApplication::notifyInternal2()
# 19 qbittorrent.exe      0x00007ff7eebdf9e6 QCoreApplicationPrivate::sendPostedEvents()
# 20 qbittorrent.exe      0x00007ff7ee5979e7 QWindowsGuiEventDispatcher::sendPostedEvents()
# 21 qbittorrent.exe      0x00007ff7eece3c38 QEventDispatcherWin32::processEvents()
# 22 qbittorrent.exe      0x00007ff7ee5979c1 QWindowsGuiEventDispatcher::processEvents()
# 23 qbittorrent.exe      0x00007ff7eece77f7 QEventLoop::exec()
# 24 qbittorrent.exe      0x00007ff7eebdf1ea QCoreApplication::exec()
# 25 qbittorrent.exe      0x00007ff7ee010642 Application::exec(params, params)[ app\application.cpp : 680 ]
# 26 qbittorrent.exe      0x00007ff7ee01a7a9 main(argc, argv)[ app\main.cpp : 311 ]
# 27 qbittorrent.exe      0x00007ff7eee0a45f WinMain()
# 28 qbittorrent.exe      0x00007ff7eee11132 __scrt_common_main_seh()[ d:\agent\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl : 288 ]
# 29 KERNEL32.DLL         0x00007ff864457034 BaseThreadInitThunk()
# 30 ntdll.dll            0x00007ff866142651 RtlUserThreadStart()
glassez commented 2 years ago

@kidcodea You are under #15955.

glassez commented 2 years ago

Can I assume that deleting the categories.json and re-installing v4.4.0 should work without qBittorrent crashing at startup?

Yes. Unless you added some categories when run v4.4 previously. Anyway you'll be able to add some categories in categories.json manually.

FYI, I'm going to add auto-recovery of such "lost" categories. But unfortunately it most likely won't be ready for v4.4.1 release.

vangeliis commented 2 years ago

Can I assume that deleting the categories.json and re-installing v4.4.0 should work without qBittorrent crashing at startup?

Yes. Unless you added some categories when run v4.4 previously. Anyway you'll be able to add some categories in categories.json manually.

FYI, I'm going to add auto-recovery of such "lost" categories. But unfortunately it most likely won't be ready for v4.4.1 release.

I can confirm that deleting/renaming the categories.json and re-installing v.4.4.0 works without crashing. Looks like when downgrading from 4.4 to 4.3.9 the uninstaller didn't remove the categories.json as one would expect?

glassez commented 2 years ago

uninstaller didn't remove the categories.json as one would expect?

Does uninstaller affect any user data? I suppose it shouldn't. Anyway it isn't a valid solution. There can be some categories added in v4.4 so they will be missing after downgrade. Downgrade can lead to "undefined behavior" generally so we never recommend it in any way other than using full backup of configuration/data from the same version you want downgrade to.

vangeliis commented 2 years ago

uninstaller didn't remove the categories.json as one would expect?

Does uninstaller affect any user data? I suppose it shouldn't. Anyway it isn't a valid solution. There can be some categories added in v4.4 so they will be missing after downgrade. Downgrade can lead to "undefined behavior" generally so we never recommend it in any way other than using full backup of configuration/data from the same version you want downgrade to.

We got to the bottom of this issue which is great, many thanks. Hopefully in future releases the categories can be 'saved/restored' when downgrading.

rumanzo commented 2 years ago

For me delete categories.json do nithing. QBittorrent just recreated this file again and crush But I find two fastresume file without torrent files, remove them, and now QBittorrent works, but my russian tatgs absolutely broken now

glassez commented 2 years ago

@rumanzo You are "off topic" here. Your issue is #15955.

thalieht commented 2 years ago

Duplicate of #16045