Skip to content

Crash when checking torrent with piece size of 256.0 MiB #21011

@YouMiNope

Description

@YouMiNope

qBittorrent & operating system versions

qBittorrent: 4.6.5 x64
Operating system: Windows 10 22H2

What is the problem?

I have a torrent that contains 3813 files with a total size of 279.43GiB, when checking it consumes all my 16Gb RAM and then crash. I assume there is some algorithm flaw in the checking codes that need to be fixed.

Steps to reproduce

  1. check a LARGE size torrent (in my case, 279.43GiB)
  2. you wait the memory fill up
  3. witness your computer crash

Additional context

My RAM useage:
image

qbittorrent:
image

Log(s) & preferences file(s)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Confirmed bugAn issue confirmed by project team to be considered as a bugCrashLibtorrentWaiting upstreamWaiting for changes in dependent libraries

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions