-
Notifications
You must be signed in to change notification settings - Fork 312
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
Add loading indicator for camera preview while trying to scan QR codes #1576
Comments
I'll handle this as part of work on #1582 |
[#1576] 2/3: QR Scan loading indicator
Video: On the video, you can see that wallet hangs for some time after first iteration of animation (wallet process hangs and is not responding for some time, 3-5 seconds). Doesn't matter how many times I try - it's always like this. I didn't see it before but also animation wasn't present before. Could it be that it's causing this delay now? Should I create a separate issue for this? |
I believe the hang time is individual and relies on hardware (lightly discussed here). I also think it was most likely there before (can check with the current 2.0 version). Since this is expected I would opt for a separate issue. I'll dig more and see if I can find a workaround. |
I dug some more, tried a different qr scanner, profiled the performance of simpler implementations - doesn't look the hang is fixable. How about we show a non-animating "Loading WebCam" text instead? |
Isn't the hanging spinner due to the time set here
|
That's just a delay I put so at least the first cycle of the loading animation runs before it freezes :/ Detailed explanation here |
@drptbl I've worked on my own implementation of the qr scanner to address this. The version can be updated from my fork ranbena/fix/qr-hang. (lmk if you need assistance with this) This is a WIPKnown issues - preview fps might be low, preview dimensions might be off |
@ranbena Previews: In addition to that, there is an error thrown in console while trying to login with private key (however it doesn't affect functionality): |
@drptbl thanks for giving this a try. "Scan QR" hangThe login issue that you now presented is baffling yet interesting. It's important to make a distinction - when clicking the "Scan QR" button, two consecutive steps occur 1) So it looks like step 1 hangs immensely, while step 2 (which is what this fix actually handles) is much shorter, especially on the 2nd attempt. So in order to understand this I need to know:
I might insert some console logs and ask you to rerun. Perhaps it'll give some insight. THANKS @drptbl!!! We'll get through this!! Error messageThis message is a result of the #1732 polling feature, but it's not an actual error and has no such significance. The error throwing method is a hacky (but elegant) way of exiting a function to later be caught.. |
Closing this issue for now as the original issue is resolved in 2.1.0 |
Wallet version or commit SHA:
design-v2
branch (9e2d017)Environment:
MacBook Pro (13-inch, 2017), macOS Mojave 10.14
Reproduction steps:
Description:
I'm experiencing a 5secs+ delay before preview show up, seeing a gray empty space for that time. Loading indicator would indicate that we're waiting for something.
Screenshots/Video:
https://i.imgur.com/88Kx0fw.gifv
The text was updated successfully, but these errors were encountered: