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

Trezor One slow to connect or not at all #815

Closed
VegArchie opened this issue Jan 27, 2023 · 10 comments
Closed

Trezor One slow to connect or not at all #815

VegArchie opened this issue Jan 27, 2023 · 10 comments

Comments

@VegArchie
Copy link

I see an issue on multiple PCs running Windows 10 where a Trezor One will be slow to connect (30-60sec) at every step. It will also fail to recognize a correct PIN.

This does not occur on every PC, however, I think the common factor between the two that it failed on is Bitdefender Total Security (Virus Scan).

I tried entering in all Sparrow folders in the exceptions settings as well as disabling virus scan. I also tried running Sparrow as admin. However the issue persists. It seems as though something is high-jacking the USB connection to the Trezor One.

Note: Trezor T and Ledger X do NOT have this problem.

For example: Trying to add a Trezor One in the "connect hardware screen" and runing a scan will take over 30sec to find the Trezor. Clicking "Unlock" will take another 30+sec for the pin entry graphic to show. Entereing the correct pin (either manually in the text field or using the dots) will result in an immediate failure with the error message "LIBUSB_ERROR_ACCESS [-3]"
The pin numbers will remain on the Trezor One screen.

image

@VegArchie
Copy link
Author

Note: About 1 in every 10 tries the Trezor One will connect.

@craigraw
Copy link
Collaborator

Unfortunately there's not much Sparrow can do about an anti-virus, but you can set the anti-virus to exclude the internal utility Sparrow runs to communicate with the hardware wallet. Configure the anti-virus to ignore the hwi folder in Sparrow Home. See this FAQ to find it: https://sparrowwallet.com/docs/faq.html#where-does-sparrow-store-data

@VegArchie
Copy link
Author

I had already excluded that folder. it didn't make a difference.

Considering that other apps, including the Trezor suite, don't have access problems, is there some other reason why sparrow would have difficulty with only the Trezor one?

@craigraw
Copy link
Collaborator

Considering that other apps, including the Trezor suite, don't have access problems, is there some other reason why sparrow would have difficulty with only the Trezor one?

The Trezor Suite will not execute the hwi utility, relying instead on it's own internal code (since it created by the hww manufacturer).

You can try executing hwi.exe directly on the command line to see what happens. Possibly there is a clue there that explains what's going on with your system.

@craigraw
Copy link
Collaborator

craigraw commented Feb 6, 2023

Any update here? If there's nothing that can be done on the Sparrow side, I'd like to close this off.

@VegArchie
Copy link
Author

I am having trouble finding a way to execute the hwi.exe directly. It isn't part of the sparrow files (it isn't located in the hwi folder either) and the individual EXE on github is a different version. Any suggestions?

@craigraw
Copy link
Collaborator

craigraw commented Feb 8, 2023

It is in the hwi folder I mentioned previously, although the name is longer as it is extracted from the Sparrow install on use. You can still call it as normal though: hwi-2.1.1.xxxxx...exe enumerate.

@VegArchie
Copy link
Author

I think this may be part of the problem. The only file (including hidden files) that appears in C:\Users\USER\AppData\Roaming\Sparrow\hwi is hwi-2.1.18667571028405941001.tmp. I even tried calling hwi-2.1.18667571028405941001.exe enumerate in command prompt anyway, and it said it doesn't exist.

@craigraw
Copy link
Collaborator

craigraw commented Feb 9, 2023

Try calling hwi-2.1.18667571028405941001.tmp enumerate - sorry, I wasn't near a Window machine previously to check.

@VegArchie
Copy link
Author

Figured it out. It's the bitdefender firewall. Excluding in virus scan section did nothing, nor did allowing sparrow.exe full access through firewall. I had to turn the feature off completely. Once I do, HWI enumerate went from 45 seconds delay to 5 seconds.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants