USBToolBox / tool

the USBToolBox tool
MIT License
936 stars 62 forks source link

Not works On Windows 11 (release 21H2) and Laptop MSI Bravo B5DD #29

Closed HiPSOW closed 2 years ago

HiPSOW commented 2 years ago

Testing with latest version avaible: 0.0.9

Describe the bug Running Windows.exe on my laptop in a administrator cmd window results in:

#######################################################

USBToolBox 0.0.9

#######################################################

Saved Data: None

D. Discover Ports S. Select Ports and Build Kext C. Change Settings Q. Quit

Select an option: D

#######################################################

Port Discovery

#######################################################

Getting controllers... Traceback (most recent call last): File "Windows.py", line 149, in File "Windows.py", line 32, in init File "base.py", line 49, in init File "base.py", line 679, in monu File "utils.py", line 204, in start File "utils.py", line 188, in select File "base.py", line 221, in discover_ports File "Windows.py", line 111, in get_controllers File "Windows.py", line 35, in update_usbdump File "usbdump.py", line 228, in get_controllers File "usbdump.py", line 145, in serialize_hub TypeError: 'NoneType' object is not iterable [1280] Failed to execute script Windows

C:\Data\Install\Platform\OS\Mac_OS\Tools\USB_ToolBox\RELEASES\0.0.9>

Debugging information attached

Hardware:

Additional context Executed on cmd (user) and cmd with adminitrative permissions. with usb 3 attached in a port or,with none usb attached, same error. Windows11_debug.zip

HiPSOW commented 2 years ago

I have noMachine software that mounts a virtual USBs , when i go to device manager and disable this virtual usb ports, the error change to:

#######################################################

USBToolBox 0.0.9

#######################################################

Saved Data: None

D. Discover Ports S. Select Ports and Build Kext C. Change Settings Q. Quit

Select an option: D #######################################################

Port Discovery

#######################################################

Getting controllers... Traceback (most recent call last): File "Windows.py", line 149, in File "Windows.py", line 32, in init File "base.py", line 49, in init File "base.py", line 679, in monu File "utils.py", line 204, in start File "utils.py", line 188, in select File "base.py", line 221, in discover_ports File "Windows.py", line 111, in get_controllers File "Windows.py", line 35, in update_usbdump File "usbdump.py", line 212, in get_controllers File "json__init__.py", line 346, in loads File "json\decoder.py", line 337, in decode File "json\decoder.py", line 355, in raw_decode json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) [14300] Failed to execute script Windows

C:\Data\Install\Platform\OS\Mac_OS\Tools\USB_ToolBox\RELEASES\0.0.9>

C:\Data\Install\Platform\OS\Mac_OS\Tools\USB_ToolBox\RELEASES\0.0.9>debug_dump.exe Traceback (most recent call last): File "debug_dump.py", line 82, in File "json__init__.py", line 346, in loads File "json\decoder.py", line 337, in decode File "json\decoder.py", line 355, in raw_decode json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) [8176] Failed to execute script debug_dump

C:\Data\Install\Platform\OS\Mac_OS\Tools\USB_ToolBox\RELEASES\0.0.9>

image

dhinakg commented 2 years ago

Yea, I can reproduce this on my local machine too. Working on it.

dhinakg commented 2 years ago

Please test with 0.1.0, it should fix your issue

dhinakg commented 2 years ago

Closing as no response, please create a new issue if this still persists