-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
Wrong message type is passed from device #154
Comments
@vladimirvolek is this still a thing? |
what I'm somewhat sure is happening here is this:
I'm not sure what's the appropriate place to resolve this. We might want bridge to clear the queue when reconnecting to the device. Or we might want Connect to send a Cancel when the pop-up is closed (i don't know if that's possible though). Or maybe bridge should send the Cancel when a wait is interrupted? Or it could poll the USB descriptor even when nobody is reading, to catch stray messages like this one. Not much we can do on the firmware side though. As far as the device knows, nothing is wrong. You can't take back the USB message that you already sent. |
This is an interesting idea! cc @karel-3d |
That would probably break the "post" and "read" messages that's implemented
for debug link
…On Thu, Mar 28, 2019, 1:26 AM Jan Pochyla ***@***.***> wrote:
Or it could poll the USB descriptor even when nobody is reading, to catch
stray messages like this one.
This is an interesting idea! cc @karel-3d <https://github.com/karel-3d>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/trezor/trezor-core/issues/295#issuecomment-477292950>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAGZ8aSXRNXc1BmkZ6EqBNXipeA45Z8-ks5va7frgaJpZM4Vtx6b>
.
|
bridge can maybe wait for the stray messages in the case "call" call (not
separate "post" and "read" call) is interrupted between the input and
output part
but this waiting has to be cancelled when another call then posts something
to the device
(I don't currently have any free time for playing with bridge. :/ )
…On Thu, Mar 28, 2019, 1:26 AM Jan Pochyla ***@***.***> wrote:
Or it could poll the USB descriptor even when nobody is reading, to catch
stray messages like this one.
This is an interesting idea! cc @karel-3d <https://github.com/karel-3d>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/trezor/trezor-core/issues/295#issuecomment-477292950>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAGZ8aSXRNXc1BmkZ6EqBNXipeA45Z8-ks5va7frgaJpZM4Vtx6b>
.
|
I dare to say this is not a firmware issue, I'm suggesting to move this to trezord-go then. @prusnak could you move it? I don't think I have permissions for that. |
Transferred |
Does the explorer work with UDP emulator? I can't see anything there. ....oh that's because it's on github.io and trezord has whitelisted origins for trezor.io. Maybe it would be a good idea to add an option for whitelisting more origins? (#155) |
...well adding github.io to the allowed websites didn't help. I still see "no connected devices" in the explorer. |
I got the same issue with the device itself. Tested FFX and Chrome, wallet works (through bridge), not sure where is the issue. |
Oh, I needed to manually remove |
When I played with it, it is not easy to implement, because. On cancelling of the call, we automatically "release" the device, which automatically closes the device on USB level. So now, we will need to periodically, when cancelled during waiting for call read, do
|
Fixed in #156 but I am not sure it's worth the added complexity (and probably some new bugs in the new code). |
Note that Connect (therefore Suite) now has a workaround for this (see trezor/connect#561 as linked). |
How to reproduce:
You should see
The current message from the device should be 'Features' not 'PassphraseRequest'. Maybe is cached?
console log:
The text was updated successfully, but these errors were encountered: