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

v4.4 has crashed due to hybrid torrents added by previous release #15955

Closed
Informartiste opened this issue Jan 7, 2022 · 113 comments
Closed

v4.4 has crashed due to hybrid torrents added by previous release #15955

Informartiste opened this issue Jan 7, 2022 · 113 comments
Assignees
Milestone

Comments

@Informartiste
Copy link

Informartiste commented Jan 7, 2022

qBittorrent & operating system versions

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.19044 x86_64

What is the problem?

Caught signal: SIGSEGV

#  0 qbittorrent.exe      0x00007ff75ef5984c straceWin::getBacktrace()[ app\stacktrace_win.h : 220 ]
#  1 qbittorrent.exe      0x00007ff75ef5a9cb sigAbnormalHandler(signum)[ app\main.cpp : 368 ]
#  2 qbittorrent.exe      0x00007ff75fd8f715 _seh_filter_exe(xcptnum, pxcptinfoptrs)[ minkernel\crts\ucrt\src\appcrt\misc\exception_filter.cpp : 215 ]
#  3 qbittorrent.exe      0x00007ff75fe14ab7 `__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      0x00007ff75fd7015c __C_specific_handler(ExceptionRecord, EstablisherFrame, ContextRecord, DispatcherContext)[ d:\agent\_work\1\s\src\vctools\crt\vcruntime\src\eh\riscchandler.cpp : 277 ]
#  5 ntdll.dll            0x00007ff9a26b20cf _chkstk()
#  6 ntdll.dll            0x00007ff9a2661454 RtlRaiseException()
#  7 ntdll.dll            0x00007ff9a26b0bfe KiUserExceptionDispatcher()
#  8 qbittorrent.exe      0x00007ff75f214a95 libtorrent::file_storage::file_path(index, index, save_path)[ g:\qbittorrent\libtorrent\src\file_storage.cpp : 983 ]
#  9 qbittorrent.exe      0x00007ff75efa094f BitTorrent::TorrentImpl::TorrentImpl(session, nativeSession, nativeHandle, params)[ base\bittorrent\torrentimpl.cpp : 283 ]
# 10 qbittorrent.exe      0x00007ff75ef9143f BitTorrent::Session::createTorrent(nativeHandle)[ base\bittorrent\session.cpp : 4600 ]
# 11 qbittorrent.exe      0x00007ff75ef91caa BitTorrent::Session::handleAddTorrentAlert(p)[ base\bittorrent\session.cpp : 4665 ]
# 12 qbittorrent.exe      0x00007ff75ef91198 BitTorrent::Session::handleAlert(a, a)[ base\bittorrent\session.cpp : 4516 ]
# 13 qbittorrent.exe      0x00007ff75ef90f0f BitTorrent::Session::readAlerts()[ base\bittorrent\session.cpp : 4479 ]
# 14 qbittorrent.exe      0x00007ff75ef90550 BitTorrent::Session::startUpTorrents()[ base\bittorrent\session.cpp : 4387 ]
# 15 qbittorrent.exe      0x00007ff75ef50546 Application::exec(params, params)[ app\application.cpp : 672 ]
# 16 qbittorrent.exe      0x00007ff75ef5a7a9 main(argc, argv)[ app\main.cpp : 311 ]
# 17 qbittorrent.exe      0x00007ff75fd4a45f WinMain()
# 18 qbittorrent.exe      0x00007ff75fd51132 __scrt_common_main_seh()[ d:\agent\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl : 288 ]
# 19 KERNEL32.DLL         0x00007ff9a1b27034 BaseThreadInitThunk()
# 20 ntdll.dll            0x00007ff9a2662651 RtlUserThreadStart()

Steps to reproduce

It happens each time i start qBittorent

Additional context

I installed qbittorent 4.4.0 today and since it crashes when i launch it.
I got the main qbittorent screen which seems Ok and an alert saying "qBittorrent has crashed
Please file a bug report at http://bugs.qbittorrent.org and provide the following information: ..."

When I close the alert, the main qbittorent closes itself too

Log(s) & preferences file(s)

No response

@Informartiste
Copy link
Author

By the way, the logs talk about the file "d:\agent_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl :" but there is no such file.

@glassez glassez added this to the 4.4.1 milestone Jan 7, 2022
@glassez glassez added the Core label Jan 7, 2022
@glassez glassez self-assigned this Jan 7, 2022
@glassez glassez added the Crash label Jan 7, 2022
@mzso
Copy link

mzso commented Jan 7, 2022

@Informartiste
Were you using search in QB? That is when it crashes for me as described in #15958 .

@Informartiste
Copy link
Author

@mzso You mean search on the Internet for torrent from inside qBittorrent ? No, never.
I often use filter to search inside my torrents, but as it happens when I launch it, I don't even use filtering

@Informartiste
Copy link
Author

This one #15886 seems very similar to mine

What is strange is qBittorrent seems to work, I can see the upload/download speed evolving, but I cant use it while the windows with the crash alert is still opened. And qBittorrent closes itself when I close the alert windows.

@Informartiste
Copy link
Author

Maybe I have a clue ...

In #15886 they talk about Category.
I used categories on many of my torrents by right-clicking torrents then applying a category.
When I upgraded to 4.4 qBittorrent was working but I was unable to put or change category to torrents. Then I right-clicked a torrent, chose Property and created a category on Torrents. I created the category because my usual ones weren't available.
Then, for some reasons, I rebooted my computer and qBittorent stopped to run well.

@Informartiste
Copy link
Author

I installed qBittorrent 4.3.9, it runs without crashing ...

@mzso
Copy link

mzso commented Jan 7, 2022

@Informartiste commented on 2022. jan. 7. 15:53 CET:

This one #15886 seems very similar to mine

What is strange is qBittorrent seems to work, I can see the upload/download speed evolving, but I cant use it while the windows with the crash alert is still opened. And qBittorrent closes itself when I close the alert windows.

Probably the because they designed the crash capture feature that way. Which is unfortunate, because otherwise QB would be usable, at least to shut down normally.

@glassez
Copy link
Member

glassez commented Jan 9, 2022

Which is unfortunate, because otherwise QB would be usable, at least to shut down normally.

Could you suggest a code that would determine whether it can continue to work in this or that crash case? This is usually not possible.

@mzso
Copy link

mzso commented Jan 9, 2022

@glassez commented on 2022. jan. 9. 10:38 CET:

Which is unfortunate, because otherwise QB would be usable, at least to shut down normally.

Could you suggest a code that would determine whether it can continue to work in this or that crash case? This is usually not possible.

Well I'm guessing that allowing to start a normal shutdown process couldn't hurt. At worst it fails, and we're no worse off.

@TagerW
Copy link

TagerW commented Jan 10, 2022

Looks like I have the same problem ...
image

Caught signal: SIGSEGV

#  0 qbittorrent.exe      0x00007ff73a47984c straceWin::getBacktrace()[ app\stacktrace_win.h : 220 ]
#  1 qbittorrent.exe      0x00007ff73a47a9cb sigAbnormalHandler(signum)[ app\main.cpp : 368 ]
#  2 qbittorrent.exe      0x00007ff73b2af715 _seh_filter_exe(xcptnum, pxcptinfoptrs)[ minkernel\crts\ucrt\src\appcrt\misc\exception_filter.cpp : 215 ]
#  3 qbittorrent.exe      0x00007ff73b334ab7 `__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      0x00007ff73b29015c __C_specific_handler(ExceptionRecord, EstablisherFrame, ContextRecord, DispatcherContext)[ d:\agent\_work\1\s\src\vctools\crt\vcruntime\src\eh\riscchandler.cpp : 277 ]
#  5 ntdll.dll            0x00007ffda39920cf _chkstk()
#  6 ntdll.dll            0x00007ffda3941454 RtlRaiseException()
#  7 ntdll.dll            0x00007ffda3990bfe KiUserExceptionDispatcher()
#  8 qbittorrent.exe      0x00007ff73a734a95 libtorrent::file_storage::file_path(index, index, save_path)[ g:\qbittorrent\libtorrent\src\file_storage.cpp : 983 ]
#  9 qbittorrent.exe      0x00007ff73a4c094f BitTorrent::TorrentImpl::TorrentImpl(session, nativeSession, nativeHandle, params)[ base\bittorrent\torrentimpl.cpp : 283 ]
# 10 qbittorrent.exe      0x00007ff73a4b143f BitTorrent::Session::createTorrent(nativeHandle)[ base\bittorrent\session.cpp : 4600 ]
# 11 qbittorrent.exe      0x00007ff73a4b1caa BitTorrent::Session::handleAddTorrentAlert(p)[ base\bittorrent\session.cpp : 4665 ]
# 12 qbittorrent.exe      0x00007ff73a4b1198 BitTorrent::Session::handleAlert(a, a)[ base\bittorrent\session.cpp : 4516 ]
# 13 qbittorrent.exe      0x00007ff73a4b0f0f BitTorrent::Session::readAlerts()[ base\bittorrent\session.cpp : 4479 ]
# 14 qbittorrent.exe      0x00007ff73a4b0550 BitTorrent::Session::startUpTorrents()[ base\bittorrent\session.cpp : 4387 ]
# 15 qbittorrent.exe      0x00007ff73a470546 Application::exec(params, params)[ app\application.cpp : 672 ]
# 16 qbittorrent.exe      0x00007ff73a47a7a9 main(argc, argv)[ app\main.cpp : 311 ]
# 17 qbittorrent.exe      0x00007ff73b26a45f WinMain()
# 18 qbittorrent.exe      0x00007ff73b271132 __scrt_common_main_seh()[ d:\agent\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl : 288 ]
# 19 KERNEL32.DLL         0x00007ffda19f7034 BaseThreadInitThunk()
# 20 ntdll.dll            0x00007ffda3942651 RtlUserThreadStart()

@TagerW
Copy link

TagerW commented Jan 10, 2022

I installed qBittorrent 4.3.9, it runs without crashing ...

I tried to do the same.
But version 4.3.9 also became unstable ...
image

qBittorrent version: v4.3.9 (64-bit)
Libtorrent version: 1.2.14.0
Qt version: 5.15.2
Boost version: 1.76.0
OpenSSL version: 1.1.1l
zlib version: 1.2.11
OS version: Windows 10 Version 2009 10.0.19043 x86_64

Caught signal: SIGABRT

#  0 qbittorrent.exe      0x00007ff7593e8cbc straceWin::getBacktrace()[ app\stacktrace_win.h : 220 ]
#  1 qbittorrent.exe      0x00007ff7593e9deb sigAbnormalHandler(signum)[ app\main.cpp : 367 ]
#  2 qbittorrent.exe      0x00007ff75a0c6365 raise(signum)[ minkernel\crts\ucrt\src\appcrt\misc\signal.cpp : 541 ]
#  3 qbittorrent.exe      0x00007ff75a0d29b0 abort()[ minkernel\crts\ucrt\src\appcrt\startup\abort.cpp : 64 ]
#  4 qbittorrent.exe      0x00007ff75a0d22ff terminate()[ minkernel\crts\ucrt\src\appcrt\misc\terminate.cpp : 58 ]
#  5 qbittorrent.exe      0x00007ff75a0a0bd7 __scrt_unhandled_exception_filter(pointers)[ d:\agent\_work\1\s\src\vctools\crt\vcstartup\src\utility\utility_desktop.cpp : 91 ]
#  6 KERNELBASE.dll       0x00007ffda14cb7f7 UnhandledExceptionFilter()
#  7 ntdll.dll            0x00007ffda39951b0 memset()
#  8 ntdll.dll            0x00007ffda397c766 _C_specific_handler()
#  9 ntdll.dll            0x00007ffda39920cf _chkstk()
# 10 ntdll.dll            0x00007ffda3941454 RtlRaiseException()
# 11 ntdll.dll            0x00007ffda39411a5 RtlRaiseException()
# 12 KERNELBASE.dll       0x00007ffda13f4f69 RaiseException()
# 13 qbittorrent.exe      0x00007ff75a0bf4c1 _CxxThrowException(pExceptionObject, pThrowInfo)[ d:\agent\_work\1\s\src\vctools\crt\vcruntime\src\eh\throw.cpp : 129 ]
# 14 qbittorrent.exe      0x00007ff759696cb4 libtorrent::throw_invalid_handle()[ g:\qbittorrent\libtorrent\src\torrent_handle.cpp : 87 ]
# 15 qbittorrent.exe      0x00007ff759697910 libtorrent::torrent_handle::sync_call_ret(f)[ g:\qbittorrent\libtorrent\src\torrent_handle.cpp : 155 ]
# 16 qbittorrent.exe      0x00007ff759427727 BitTorrent::TorrentImpl::uploadLimit()[ base\bittorrent\torrentimpl.cpp : 1196 ]
# 17 qbittorrent.exe      0x00007ff7594f81b4 PropertiesWidget::loadDynamicData()[ gui\properties\propertieswidget.cpp : 416 ]
# 18 qbittorrent.exe      0x00007ff7594f73c3 PropertiesWidget::loadTorrentInfos(torrent)[ gui\properties\propertieswidget.cpp : 349 ]
# 19 qbittorrent.exe      0x00007ff759e67ab6 doActivate()
# 20 qbittorrent.exe      0x00007ff75959dc06 TransferListWidget::currentTorrentChanged(_t1)[ release\moc_transferlistwidget.cpp : 370 ]
# 21 qbittorrent.exe      0x00007ff75955ac57 TransferListWidget::currentChanged(current, __formal)[ gui\transferlistwidget.cpp : 1103 ]
# 22 qbittorrent.exe      0x00007ff759e67b43 doActivate()
# 23 qbittorrent.exe      0x00007ff759f502b3 QItemSelectionModel::currentChanged()
# 24 qbittorrent.exe      0x00007ff759f4d8bb QItemSelectionModel::setCurrentIndex()
# 25 qbittorrent.exe      0x00007ff7599e57f5 QAbstractItemView::mousePressEvent()
# 26 qbittorrent.exe      0x00007ff7599f74eb QTreeView::mousePressEvent()
# 27 qbittorrent.exe      0x00007ff7599bda35 QWidget::event()
# 28 qbittorrent.exe      0x00007ff7599da844 QFrame::event()
# 29 qbittorrent.exe      0x00007ff7599e5515 QAbstractItemView::viewportEvent()
# 30 qbittorrent.exe      0x00007ff759e6de1c QCoreApplicationPrivate::sendThroughObjectEventFilters()
# 31 qbittorrent.exe      0x00007ff7599a927c QApplicationPrivate::notify_helper()
# 32 qbittorrent.exe      0x00007ff7599a8270 QApplication::notify()
# 33 qbittorrent.exe      0x00007ff759e6da71 QCoreApplication::notifyInternal2()
# 34 qbittorrent.exe      0x00007ff7599a6fc0 QApplicationPrivate::sendMouseEvent()
# 35 qbittorrent.exe      0x00007ff759b2afa2 QWidgetWindow::handleMouseEvent()
# 36 qbittorrent.exe      0x00007ff759b29c45 QWidgetWindow::event()
# 37 qbittorrent.exe      0x00007ff7599a9290 QApplicationPrivate::notify_helper()
# 38 qbittorrent.exe      0x00007ff7599a8d88 QApplication::notify()
# 39 qbittorrent.exe      0x00007ff759e6da71 QCoreApplication::notifyInternal2()
# 40 qbittorrent.exe      0x00007ff759bd5dde QGuiApplicationPrivate::processMouseEvent()
# 41 qbittorrent.exe      0x00007ff759bd5405 QGuiApplicationPrivate::processWindowSystemEvent()
# 42 qbittorrent.exe      0x00007ff759c48a84 QWindowSystemInterface::sendWindowSystemEvents()
# 43 qbittorrent.exe      0x00007ff759f72d78 QEventDispatcherWin32::processEvents()
# 44 qbittorrent.exe      0x00007ff7598ddf61 QWindowsGuiEventDispatcher::processEvents()
# 45 qbittorrent.exe      0x00007ff759f76937 QEventLoop::exec()
# 46 qbittorrent.exe      0x00007ff759e6e00a QCoreApplication::exec()
# 47 qbittorrent.exe      0x00007ff7593df9fa Application::exec(params, params)[ app\application.cpp : 691 ]
# 48 qbittorrent.exe      0x00007ff7593e9bc0 main(argc, argv)[ app\main.cpp : 310 ]
# 49 qbittorrent.exe      0x00007ff75a09935f WinMain()
# 50 qbittorrent.exe      0x00007ff75a0a0282 __scrt_common_main_seh()[ d:\agent\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl : 288 ]
# 51 KERNEL32.DLL         0x00007ffda19f7034 BaseThreadInitThunk()
# 52 ntdll.dll            0x00007ffda3942651 RtlUserThreadStart()

@sledgehammer999
Copy link
Member

For the users experiencing crashes I have 2 questions:

  1. Do you use "categories" in your torrents?
  2. Do you experience crashes with the Qt6 version too? (needs Windows 10+)

@TagerW
Copy link

TagerW commented Jan 10, 2022

For the users experiencing crashes I have 2 questions:

  1. Do you use "categories" in your torrents?
  2. Do you experience crashes with the Qt6 version too? (needs Windows 10+)
  1. Yes
  2. Yes

@Informartiste
Copy link
Author

Informartiste commented Jan 10, 2022 via email

@sledgehammer999
Copy link
Member

Run 4.4.0 again and let it crash. Now look at the log file. By default in C:\Users\username\AppData\Local\qBittorrent\logs.
It should have some filepaths for your torrents printed in there. Do they look correct?

@sledgehammer999
Copy link
Member

Now look at the log file.

Remeber that the newest entries are the end of the file.

@TagerW
Copy link

TagerW commented Jan 10, 2022

image
I also noticed an oddity - several torrents have changed names. The names have become identical to the Torrent Hash...

@GoldenGuy

This comment has been minimized.

@sledgehammer999
Copy link
Member

@TagerW @GoldenGuy respond with details based on #15955 (comment)

@GoldenGuy

This comment has been minimized.

@glassez

This comment has been minimized.

@glassez
Copy link
Member

glassez commented Jan 11, 2022

#15977 (comment)
Seems it can be dependent from some particular torrent(s).
Can any of the affected users help in its search?
The author of the above comment used a very suboptimal algorithm, so he was scared by the possibility of searching among more torrents. In fact, if you use the half-division method, you can check 1000 torrents in a maximum of 20 iterations (run qBittorrent 20 times with different subsets of your torrents). Moreover, the effectiveness of the method increases with an increase in the number of elements. So for a maximum of 30 iterations, you can check about 30,000 torrents.

@glassez
Copy link
Member

glassez commented Jan 11, 2022

Do you use "categories" in your torrents?

It doesn't look like it could be related to Categories, because Categories don't affect the paths of files in the torrent, but only the "save path" of the torrent.
There may be something related to the file index indirection (used to hide .pad files) added recently.
But I'm confused with error source line libtorrent::file_storage::file_path(index, index, save_path)[ g:\qbittorrent\libtorrent\src\file_storage.cpp : 983. It is:
https://github.com/arvidn/libtorrent/blob/8e6e3c2d010f291ed526f2f3b964a9c04c699bda/src/file_storage.cpp#L983

aux::file_entry const& fe = m_files[index];

But if passed index is wrong it should have crashed on the previous line, no? Here:
https://github.com/arvidn/libtorrent/blob/8e6e3c2d010f291ed526f2f3b964a9c04c699bda/src/file_storage.cpp#L982

TORRENT_ASSERT_PRECOND(index >= file_index_t(0) && index < end_file());

@Archivist66
Copy link

I am not sure what "fixed" my crash.

I closed out 4.4.0 and restarted it. And now it acts like it never crashed.

Not getting the error anymore.

@RedSnt
Copy link

RedSnt commented Feb 8, 2022

I got the exact same error as OP, and I think what caused it was related to switching between SQLite and Fastresume files. After windows decided to restart my computer in the middle of the night, I woke up to a crashed qBittorrent, and I know for a FACT that I switched back to Fastresume files after using SQLite database for several weeks, because qBittorrent had begun taking forever to shut down.
And sure enough, following @Mr-Z-2697's advice and downgrading to 4.3.9, I was able to catch a handful of torrents that shouldn't be there. Rechecked the files, then deleted them, upgraded to 4.4.0 (qt6) and now everything is working as intended again, except for some of the columns having moved about and getting their width reset.

So yeah, it does look like fastresume files are the culprit somehow. Thanks for an otherwise great bittorrent experience 👍

@Archivist66
Copy link

Archivist66 commented Feb 8, 2022

I did Force Recheck a torrent that was in Errored. After it cleared that out, I think that is what made it work fine.

Not sure what exactly. But closed the crash window, which closed 4.4.0, and then restarted and the error was gone.

(Even though it still worked behind the crash screen. I could not click on anything behind the crash screen. Still was downloading files.)

@mzso
Copy link

mzso commented Feb 8, 2022

@RedSnt
Did you open (or find) an issue for the long shutdown problem with SQLite?

@BoogieNYC
Copy link

I had disk space issues and left about 10GB available (I was literally on fumes before cleaning up the main drive QB was using) and it didn't cure right away but after a few restarts it appeared to resolve itself.

I just wish QB would advise this without crashing sans explanation, but the end result is it's back to functioning so all's well that ends well.

@Archivist66
Copy link

Like my 4.4.0.

It started crashing for some reason. Then the next day, after attempting to see if it would work, it started up just like normal. And has been not crashing since.

I did notice that even though I could only close the crash message, that would close QB as well, it was working in the background as before. I could not do anything but close the crash message and program.

See what the next version states it fixed, added, etc.

@glassez glassez unpinned this issue Feb 16, 2022
@QuentinJones
Copy link

Still experiencing the same startup crash in 4.4.1

qBittorrent version: v4.4.1 (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.19044 x86_64

Caught signal: SIGSEGV

#  0 qbittorrent.exe      0x00007ff6fa19980c straceWin::getBacktrace()[ app\stacktrace_win.h : 220 ]
#  1 qbittorrent.exe      0x00007ff6fa19a98b sigAbnormalHandler(signum)[ app\main.cpp : 368 ]
#  2 qbittorrent.exe      0x00007ff6fafe0115 _seh_filter_exe(xcptnum, pxcptinfoptrs)[ minkernel\crts\ucrt\src\appcrt\misc\exception_filter.cpp : 215 ]
#  3 qbittorrent.exe      0x00007ff6fb066456 `__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      0x00007ff6fafc0b5c __C_specific_handler(ExceptionRecord, EstablisherFrame, ContextRecord, DispatcherContext)[ d:\agent\_work\1\s\src\vctools\crt\vcruntime\src\eh\riscchandler.cpp : 277 ]
#  5 ntdll.dll            0x00007ff9e8b120cf _chkstk()
#  6 ntdll.dll            0x00007ff9e8ac1454 RtlRaiseException()
#  7 ntdll.dll            0x00007ff9e8b10bfe KiUserExceptionDispatcher()
#  8 qbittorrent.exe      0x00007ff6fa456ed5 libtorrent::file_storage::file_path(index, index, save_path)[ g:\qbittorrent\libtorrent\src\file_storage.cpp : 983 ]
#  9 qbittorrent.exe      0x00007ff6fa1e15ba BitTorrent::TorrentImpl::TorrentImpl(session, nativeSession, nativeHandle, params)[ base\bittorrent\torrentimpl.cpp : 286 ]
# 10 qbittorrent.exe      0x00007ff6fa1d206f BitTorrent::Session::createTorrent(nativeHandle)[ base\bittorrent\session.cpp : 4724 ]
# 11 qbittorrent.exe      0x00007ff6fa1d28da BitTorrent::Session::handleAddTorrentAlert(p)[ base\bittorrent\session.cpp : 4789 ]
# 12 qbittorrent.exe      0x00007ff6fa1d1dc8 BitTorrent::Session::handleAlert(a, a)[ base\bittorrent\session.cpp : 4640 ]
# 13 qbittorrent.exe      0x00007ff6fa1d1b3f BitTorrent::Session::readAlerts()[ base\bittorrent\session.cpp : 4601 ]
# 14 qbittorrent.exe      0x00007ff6fa1d112c BitTorrent::Session::startUpTorrents()[ base\bittorrent\session.cpp : 4515 ]
# 15 qbittorrent.exe      0x00007ff6fa190506 Application::exec(params, params)[ app\application.cpp : 672 ]
# 16 qbittorrent.exe      0x00007ff6fa19a769 main(argc, argv)[ app\main.cpp : 311 ]
# 17 qbittorrent.exe      0x00007ff6faf9ae5f WinMain()
# 18 qbittorrent.exe      0x00007ff6fafa1b32 __scrt_common_main_seh()[ d:\agent\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl : 288 ]
# 19 KERNEL32.DLL         0x00007ff9e7b77034 BaseThreadInitThunk()
# 20 ntdll.dll            0x00007ff9e8ac2651 RtlUserThreadStart()

@glassez
Copy link
Member

glassez commented Feb 19, 2022

Still experiencing the same startup crash in 4.4.1

Hmm... The problem may be something else, but similar...
Do you have the opportunity to check the contents of the .fastresume files in order to compare the "info hashes" written there with the names of the files themself?

@QuentinJones
Copy link

Do you have the opportunity to check the contents of the .fastresume files in order to compare the "info hashes" written there with the names of the files themself?

I'd like to try to help, but not quite sure how to find the "info hash". Opening .fastresume in notepad I see a combination of readable stuff and garbage characters.
Also, if there isn't a programmatic way to check I've got an infeasible amount of .fastresume files to go through.

Can I safely clear out the .fastresume files and see if that fixes the issue without losing the torrents?

@glassez
Copy link
Member

glassez commented Feb 19, 2022

Also, if there isn't a programmatic way to check I've got an infeasible amount of .fastresume files to go through.

If I add some "guard" logic to the code, will you be able to test it using the build from GitHub?

@QuentinJones
Copy link

Yeah, I can do that.

@glassez
Copy link
Member

glassez commented Feb 19, 2022

Yeah, I can do that.

Ok, will do it in a few days.

@QuentinJones
Copy link

QuentinJones commented Feb 19, 2022

Ok, will do it in a few days.

Alright just let me know when it's ready.

I did find two torrent files where the status is "Missing Files". Force recheck or resuming them doesn't help fix them. The .fastresume files for them have an "info-hash20" key where the value seems to just be random characters including some unprintable ones. Not sure if that's what you might have been alluding to before.

@QuentinJones
Copy link

For what it's worth this was finally fixed for me in 4.4.2

@Informartiste
Copy link
Author

Same for me. Everything is fine again with 4.4.2.

Thanks

lmorand added a commit to lmorand/qBittorrent that referenced this issue Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests