Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Unable to load webcam to scan QR code in Fether even though webcam is working #466

Closed
ltfschoen opened this issue Mar 18, 2019 · 4 comments
Milestone

Comments

@ltfschoen
Copy link
Contributor

ltfschoen commented Mar 18, 2019

I'm using macOS 10.14 Mojave. If I try and send a transaction from a Parity Signer account, after I enter a recipient address, an amount, and click "Scan", and then scan the QR code using Parity Signer and click "Sign Transaction" on my mobile device, then when I click "Next Step" in Fether it displays "Webcam hardware error. Try restarting your computer", which corresponds to a NotReadableError occuring in fether-react/src/Scanner/Scanner.js. Restarting the computer does not resolve the issue. I've debugged the error in the catch block to be DOMException: Could not start video source.

Note that running sudo killall VDCAssistant; sudo killall AppleCameraAssistant does not resolve the issue.

Note that I have all the latest Software Updates installed.

However, if I go to "Finder > Applications > PhotoBooth", it opens and the FaceTime HD Camera (built-in) webcam starts working immediately with the green light illuminated on the screen.

The solution will need to update the error message that corresponds to NotReadableError, since restarting the computer may not be enough.

@Tbaut Tbaut added this to the 0.3-beta Mainnet milestone Mar 18, 2019
@Tbaut
Copy link
Collaborator

Tbaut commented Mar 18, 2019

Thanks for figuring that out. I think we have tons of info in the Readme right now that would probably fit better in a wiki. I'll figure out if we should use wiki.parity.io (there's a FAQ for Fether) or if we should use github's wiki

@ltfschoen
Copy link
Contributor Author

This is a known macOS issue on Mojave 10.14 and only happens in development environment when running an Electron app. It was necessary to go to System Preferences > Security & Privacy > Privacy > Camera, and ensure that the checkbox for the "Terminal" app is checked. See electron/electron#14801 (comment)

@ltfschoen
Copy link
Contributor Author

I've created these two PRs to address this issue:

amaury1093 pushed a commit that referenced this issue Apr 1, 2019
… FAQ (#482)

* fix: Relates to #466. Refer to Fether FAQ for instructions

* fix: Reword error messages to start with the Webcam word so its easier for users to troubleshoot using Fether FAQ

* feat: Add ExternalLink component to direct the user to the FAQ. Colour it blue

* review-fix: Modify webcam troubleshooting link text
@ltfschoen
Copy link
Contributor Author

Closing as the PRs mentioned address the issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants