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.Sample stuck at Device.ReadAsync in TrezorManagerBase.cs #38

Open
landoyjx opened this issue Jul 31, 2021 · 9 comments
Open

Trezor.Sample stuck at Device.ReadAsync in TrezorManagerBase.cs #38

landoyjx opened this issue Jul 31, 2021 · 9 comments

Comments

@landoyjx
Copy link

hi author
I still stuck at Device.ReadAsync in TrezorManagerBase.cs with follow information
device: Trezor One
firmware: latest
I just run Trezor.Net.Sample, the program hang at "Waiting for Trezor... Please plug it in if it is not connected"
I have plugged it in, and when i use trezorctl or Trezor Bridge to check, both of tools works. The device is ok.

In the Trezor.Net.Sample program, i change netcoreapp2.0 to netcoreapp 3.1

@MelbourneDeveloper
Copy link
Owner

Try the develop branch

Are you using Trezor 1, or Model T?

@landoyjx
Copy link
Author

landoyjx commented Aug 1, 2021

I am using Trezor 1. I checkout to develop, result is the same.

@landoyjx
Copy link
Author

landoyjx commented Aug 1, 2021

When i plug off the device, the sample program throw an IO exception:
Unhandled exception. System.IO.IOException: An error occurred while attempting to read from the device

@MelbourneDeveloper
Copy link
Owner

What is the firmware version?

@landoyjx
Copy link
Author

landoyjx commented Aug 1, 2021

it is 1.10.2

@landoyjx
Copy link
Author

landoyjx commented Aug 1, 2021

before upgrade to 1.10.2, i also test it with same result

@MelbourneDeveloper
Copy link
Owner

Maybe they made a breaking change...

Turn on all exceptions and try again.

Are you sure it's not just waiting for the pin code?

https://christianfindlay.com/2019/07/14/visual-studio-break-on-all-exceptions/

@landoyjx
Copy link
Author

landoyjx commented Aug 1, 2021

No, trezor screen is one lock, no pin input board. In sample code, TrezorManagerBroker have set timeout time.
with turn on all exception, it is still stuck on, this is the debug video: https://www.youtube.com/watch?v=w2Dso29Opwo

@MelbourneDeveloper
Copy link
Owner

Looks broken. I'll have a look when I've got free time

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