USBToolBox / tool

the USBToolBox tool
MIT License
936 stars 62 forks source link

Can't discovery on Windows 20H2 #17

Closed Matgen84 closed 3 years ago

Matgen84 commented 3 years ago

Hello,

Trying to use this tool on my PC Windows 20H2. USBTool 0.0.8

I select option D (discovery). Few second later, the tool closes itself. It crashes using cmd.

Getting controllers... Traceback (most recent call last): File "Windows.py", line 149, in <module> File "Windows.py", line 32, in __init__ File "base.py", line 50, in __init__ File "base.py", line 680, in monu File "utils.py", line 204, in start File "utils.py", line 188, in select File "base.py", line 222, in discover_ports File "Windows.py", line 111, in get_controllers File "Windows.py", line 35, in update_usbdump File "usbdump.py", line 221, in get_controllers File "usbdump.py", line 185, in serialize_hub File "usbdump.py", line 185, in serialize_hub File "usbdump.py", line 182, in serialize_hub KeyError: 'DeviceId' [4604] Failed to execute script Windows

Any solutions, please

dhinakg commented 3 years ago

Can you please run debug_dump.exe from here and upload the resulting file?

Matgen84 commented 3 years ago

Done. Debug file in attachment. Thanks

Debug-USBTool.txt

dhinakg commented 3 years ago

Sorry, the version I've linked to logs the version, while the file you uploaded doesn't, suggesting that that's from 0.0.8.

Please download from the link below:

Click here to download

or open this link: https://github.com/USBToolBox/tool/suites/2720080689/artifacts/59938899

Matgen84 commented 3 years ago

Hi Sorry for my bad english: I download 0.0.8 from Release page

When I download from your link Windows Defender detect: Trojan:Win32/Sabsik.FL.A!ml Why ? Same issue : I select option D (discovery). Few second later, the tool closes itself. It crashes using cmd. debug.txt

dhinakg commented 3 years ago

I've released 0.0.9 which hopefully fixes this, please test.

Matgen84 commented 3 years ago

Thanks. Release 0.0.9: Discover Ports works and display the listing of USB ports. When I plug in a USB device into each port. I don't show my USB3 device. debug_009.txt

My config: Gigabyte Aorus Master Z390, i7 9770K

dhinakg commented 3 years ago

Well, it's good that it's not crashing now at least.

In the debug log you sent, did you have anything else plugged in besides these?

image

If you have something that is not showing up, it's best to send a debug log with it plugged in.

Matgen84 commented 3 years ago

Strangely, this morning, my USB3 key was not detected. But now it is working perfectly.

I don't find how to unselect Ports unwanted. Let me know

Thank you

dhinakg commented 3 years ago

To unselect ports, just type their number again, like you did to select them. If you're trying to disable ports detected as companions too, you can turn that off in settings.

Anyways, thank you for testing! I'm gonna close this issue now