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

QR code dialog buttons not working properly #1067

Closed
onvej-sl opened this issue Jun 12, 2020 · 6 comments · Fixed by #1083
Closed

QR code dialog buttons not working properly #1067

onvej-sl opened this issue Jun 12, 2020 · 6 comments · Fixed by #1083
Assignees
Labels
bug Something isn't working as expected core Trezor Core firmware. Runs on Trezor Model T and T2B1.
Milestone

Comments

@onvej-sl
Copy link
Contributor

Neither of the buttons on the QR code dialog is responding properly. I have to tap it multiple times to invoke an action.

Firmware 2.3.1. It affects only device (not emulator).

image

@onvej-sl onvej-sl added core Trezor Core firmware. Runs on Trezor Model T and T2B1. bug Something isn't working as expected TT labels Jun 12, 2020
@tsusanka
Copy link
Contributor

@trezor/qa could you retest please?

@bosomt
Copy link

bosomt commented Jun 12, 2020

@tsusanka tested, this is happening with every version of FW for a long time.

Tested it now with 2.3.1 and it's sometime happens and sometime now.

I can record video when i press QR/Address button or OK button 10 times and it won't happen.
And sometimes it won't respond 10 times in row.

i can show you at Monday in office.

@sorooris
Copy link
Contributor

sorooris commented Jun 15, 2020

@tsusanka
QA NOK
Wallet: prod, commit here
Browser: any (tested Chromium)

Device fw versions:

Note: Confirming issue with both buttons - however, there is an inconsistent occurence of the described issue as @bosomt describes above.

@sorooris sorooris assigned tsusanka and unassigned sorooris Jun 15, 2020
@tsusanka tsusanka removed their assignment Jun 16, 2020
@tsusanka tsusanka added this to the backlog milestone Jun 16, 2020
@bosomt
Copy link

bosomt commented Jun 16, 2020

updated with new information.

QA NOK

Retested with following results:

2.1.1 7af1d58 OK
2.1.4 6a1a02c NOK

note: there were no public releases between 2.1.1 and 2.1.4

@tsusanka tsusanka modified the milestones: backlog, 2020-07 Jun 18, 2020
@tsusanka tsusanka added the W? label Jun 18, 2020
@andrewkozlik andrewkozlik self-assigned this Jun 25, 2020
@andrewkozlik
Copy link
Contributor

The bug is caused by a missing repaint check in Qr::on_render(), so the device keeps redrawing the QR code. It was effectively introduced in 3653432, although the distal cause was probably the fact that the function was already missing self.tainted = True before that.

There are several other on_render() methods where the repaint check is missing. Most of them have some sort of animation like ui.display.loader() or pulsating arrows, so in those cases it's intentional. In the Homescreen and Lockscreen classes the repaint check is handled in the dispatch method. So Qr::on_render() seems to be the only problematic case.

@bosomt
Copy link

bosomt commented Jun 26, 2020

QA OK
now I have 100% success when changing QR/address via touchscreen button

tested with current master f382f77 2.3.2
and current wallet Git Commit: 1f09c65d25eaf01aa3da804dfedf765b588d3559

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as expected core Trezor Core firmware. Runs on Trezor Model T and T2B1.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants