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

4.2.0alpha2 Silent Crash - Integer Divide by Zero Exception (0xC0000094) #11332

Open
xavier2k6 opened this issue Oct 5, 2019 · 8 comments

Comments

@xavier2k6
Copy link

commented Oct 5, 2019

Please provide the following information

qBittorrent version and Operating System

(4.2.0alpha2 Windows 10 Pro 64bit OS Build 18362.388)

If on linux, libtorrent-rasterbar and Qt version

(n/a)

What is the problem

(Silent Crash - Integer Divide by Zero Exception (0xC0000094) logged in Event Viewer)

What is the expected behavior

(type here)

Steps to reproduce

(n/a)

Extra info(if any)

(Faulting application name: qbittorrent.exe, version: 4.2.0.0, time stamp: 0x5d892ceb
Faulting module name: qbittorrent.exe, version: 4.2.0.0, time stamp: 0x5d892ceb
Exception code: 0xc0000094
Fault offset: 0x000000000032f8f3
Faulting process ID: 0x19d0
Faulting application start time: 0x01d57a8843d81a22
Faulting application path: C:\Program Files\qBittorrent\qbittorrent.exe
Faulting module path: C:\Program Files\qBittorrent\qbittorrent.exe
Report ID: 3e1430fd-431a-49cc-ac93-ebd7ce044c51
Faulting package full name:
Faulting package-relative application ID:

Fault bucket 1687573083591469764, type 4
Event Name: APPCRASH
Response: Not available
Cab Id: 0

Problem signature:
P1: qbittorrent.exe
P2: 4.2.0.0
P3: 5d892ceb
P4: qbittorrent.exe
P5: 4.2.0.0
P6: 5d892ceb
P7: c0000094
P8: 000000000032f8f3
P9:
P10:

Attached files:
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER5B0A.tmp.dmp
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER5DCA.tmp.WERInternalMetadata.xml
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER5DDB.tmp.xml
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER5DD9.tmp.csv
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER5DF9.tmp.txt

These files may be available here:
\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_qbittorrent.exe_f641b052e9b5d8c955206ab7f3bdbee7ae739f57_c0c9f0c9_eb8b695d-d2db-4df5-bc24-2c6e886e2638

Analysis symbol:
Rechecking for solution: 0
Report Id: 3e1430fd-431a-49cc-ac93-ebd7ce044c51
Report Status: 268435456
Hashed bucket: 20c24611055a0153576b76c743faeac4
Cab Guid: 0)

@xavier2k6

This comment has been minimized.

Copy link
Author

commented Oct 5, 2019

#11281 had it in alpha1 too, haven't time currently for a stacktrace. sorry.

@jagannatharjun

This comment has been minimized.

Copy link
Contributor

commented Oct 5, 2019

I myself is running alpha version for some time didn't notice anything for now. Can you add steps to reproduce?

@xavier2k6

This comment has been minimized.

Copy link
Author

commented Oct 5, 2019

@jagannatharjun Currently can't reproduce it as it happened at two different times with two different versions while doing different things.
Will have to attach debugger for stack trace but don't know when or how long before it may happen again or what may trigger it to happen on purpose.

@xavier2k6

This comment has been minimized.

Copy link
Author

commented Oct 15, 2019

Stacktrace - Integer divide-by-zero - code c0000094.txt

@sledgehammer999 managed to capture a stacktrace.

Faulting application name: qbittorrent.exe, version: 4.2.0.0, time stamp: 0x5d892ceb
Faulting module name: qbittorrent.exe, version: 4.2.0.0, time stamp: 0x5d892ceb
Exception code: 0xc0000094
Fault offset: 0x000000000032f91c
Faulting process ID: 0x142c
Faulting application start time: 0x01d5838cf46e415f
Faulting application path: C:\Program Files\qBittorrent\qbittorrent.exe
Faulting module path: C:\Program Files\qBittorrent\qbittorrent.exe
Report ID: c6dc7183-9e95-4cf3-8bb1-e2db0384ee9f
Faulting package full name:
Faulting package-relative application ID:

Fault bucket 2080143321715235140, type 4
Event Name: APPCRASH
Response: Not available
Cab Id: 0

Problem signature:
P1: qbittorrent.exe
P2: 4.2.0.0
P3: 5d892ceb
P4: qbittorrent.exe
P5: 4.2.0.0
P6: 5d892ceb
P7: c0000094
P8: 000000000032f91c
P9:
P10:

Attached files:
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER1A1.tmp.dmp
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER7EB.tmp.WERInternalMetadata.xml
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER7FC.tmp.xml
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER7FA.tmp.csv
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER80B.tmp.txt

These files may be available here:
\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_qbittorrent.exe_d89b40b9ed3bae79bde7e6e586f792ef6178e9_c0c9f0c9_c600dd2f-74ee-435f-a3d2-b1469bb44904

Analysis symbol:
Rechecking for solution: 0
Report Id: c6dc7183-9e95-4cf3-8bb1-e2db0384ee9f
Report Status: 268435456
Hashed bucket: 1cf67994e5183820acde27547cbcd944
Cab Guid: 0

@thalieht

This comment has been minimized.

Copy link
Contributor

commented Oct 16, 2019

If i'm reading it correctly, it seems that it crashed in libtorrent?

FAULTING_IP: 
qbittorrent!libtorrent::`anonymous namespace'::unchoke_compare_anti_leech+1dc [g:\qbittorrent\libtorrent\src\choker.cpp @ 206]

There is a division in that line:
https://github.com/arvidn/libtorrent/blob/84f10d05caff0d20213280951752797d166e1759/src/choker.cpp#L206 (RC_1_1 branch).
That function has changed in libt 1.2.

@Chocobo1

This comment has been minimized.

Copy link
Member

commented Oct 16, 2019

If i'm reading it correctly, it seems that it crashed in libtorrent?

Indeed! Lets bring this to @arvidn attention.

@arvidn

This comment has been minimized.

Copy link

commented Oct 16, 2019

is this suggesting that t2_total, i.e. t2->torrent_file().num_pieces() can be 0?
does this happen with a magnet link by any chance?

@xavier2k6

This comment has been minimized.

Copy link
Author

commented Oct 16, 2019

Yes to magnet link!
Was able to reproduce this issue by adding a torrent via magnet link.......while it's loading metadata, click another magnet link & then another & then another......it's after adding 4 or 5 torrents via magnet in succession while still loading metadata that it crashes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.