qbittorrent / qBittorrent

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

Micro Transport Protocol (μTP) seemingly causing Realtek 2.5GbE controllers to reset (Event ID 10400, source NDIS)? #14019

Closed article10 closed 3 years ago

article10 commented 3 years ago

qBittorrent version and Operating System

v 4.3.1. Windows 10 20H2

If on linux, libtorrent-rasterbar and Qt version

(type here)

What is the problem

Ethernet connection dropping. Windows Event Viewer showing errors with Event ID: 10400, source NDIS: 'The network interface "Realtek Gaming 2.5GbE Family Controller" has begun resetting. There will be a momentary disruption in network connectivity while the hardware resets. Reason: The network driver detected that its hardware has stopped responding to commands. This network interface has reset 61 time(s) since it was last initialized.'

What is the expected behavior

No network interface resets due to hardware becoming non-responsive.

Steps to reproduce

Have a motherboard with 2.5GbE Ethernet adapter by Realtek. In my case "Realtek Gaming 2.5GbE Family Controller" Hardware IDs: _PCI\VEN_10EC&DEV_8125&SUBSYS_E0001458&REV_05 PCI\VEN_10EC&DEV_8125&SUBSYS_E0001458 PCI\VEN_10EC&DEV_8125&CC_020000 PCI\VEN_10EC&DEV_8125&CC0200

Start qBittorrent and let it run for a while in the background (with the Micro Transport Protocol or μTP protocol enabled?). It seems to occur more often when also using the PC with different apps at the same time, e.g. streaming video from YouTube in Firefox.

The connection will eventually drop. Using the "Troubleshoot problems" on the Network Internet access icon in the Windows 10 tray resets the network adapter and restores connectivity, until it happens again.

Windows Event Viewer will be showing Event ID: 10400 errors shown above. And some DNS Client Event 1014 such as "Name resolution for the name tracker.publicbt.com timed out".

Extra info(if any)

Event log screenshot (example): https://i.imgur.com/1RhE7Ij.png Realtek Gaming 2.5 GbE Family Controller driver version 10.39.212.2020 (comes with Windows 10). Also tried with Realtek https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software

Issue reported across motherboard manufacturers forums: ASRock: http://forum.asrock.com/forum_posts.asp?TID=14888&PN=4&title=realtek-25gbe-rtl8125-ndis-reset-problem where one of the last posts mentions: "I found the solution 1 week ago: I hope you have a torrent client on your machine guys? Because the problem is caused by μTP (Micro Transport Protocol). I use qBittorrent and since I switched the peer connection protocol to TCP only, the problem has disappeared, it has never been produced since, so I dare say that this was the problem. "

MSI : https://forum-en.msi.com/index.php?threads/realtek-pcie-2-5gbe-family-controller-resetting.345823/ with one of the last posts mentioning: "I can confirm I was using qbittorent when I had those issues too ! I'm gonna forward this to MSI."

Gigabyte Reddit they do as well: https://www.reddit.com/r/gigabyte/comments/hl8jig/z490_elite_ac_the_network_interface_has_begun/ "Also it seems to happen way more frequently when I stress the card using qBittorrent, like every minute or so."

XML of the error below:

mmc_KIT8ZH3Q51 xmloftherror.txt

FranciscoPombal commented 3 years ago

Thanks for the report, but this is more appropriate for the libtorrent issue tracker, which is where qBittorrent gets the uTP implementation from: https://github.com/arvidn/libtorrent. Still, uTP is just a protocol over UDP. This is pretty clearly a driver issue to me, it should not crash with some UDP packets.