Trezor.Net icon indicating copy to clipboard operation
Trezor.Net copied to clipboard

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

Open landoyjx opened this issue 4 years ago • 9 comments

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

landoyjx avatar Jul 31 '21 23:07 landoyjx

Try the develop branch

Are you using Trezor 1, or Model T?

MelbourneDeveloper avatar Aug 01 '21 02:08 MelbourneDeveloper

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

landoyjx avatar Aug 01 '21 05:08 landoyjx

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

landoyjx avatar Aug 01 '21 06:08 landoyjx

What is the firmware version?

MelbourneDeveloper avatar Aug 01 '21 06:08 MelbourneDeveloper

it is 1.10.2

landoyjx avatar Aug 01 '21 07:08 landoyjx

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

landoyjx avatar Aug 01 '21 07:08 landoyjx

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/

MelbourneDeveloper avatar Aug 01 '21 08:08 MelbourneDeveloper

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

landoyjx avatar Aug 01 '21 10:08 landoyjx

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

MelbourneDeveloper avatar Aug 01 '21 10:08 MelbourneDeveloper