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

Crash opening webcam on Windows 11 #1596

Open
BitTester21 opened this issue Jan 17, 2025 · 7 comments
Open

Crash opening webcam on Windows 11 #1596

BitTester21 opened this issue Jan 17, 2025 · 7 comments

Comments

@BitTester21
Copy link

Hi guys,

I have a issue with the camera.
I am running Sparrow 2.0.0 under Windows 11 Pro 24H2 (x64) on a DELL laptop. Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz 1.99 GHz.
The camera is the default "Integrated Webcam" that works in all other apps i have (Windows Camera app, Zoom, Browser, etc)

After opening the scan-option, Sparrow behaves unresponsive in both modes.Using HD or non HD option.
I get a black preview of the camera capture in the window, and the camera light indicator is ON, but nothing more.

Log says:

2025-01-17 12:37:13,112 ERROR [atomic-processor-1] c.s.s.c.WebcamScanDevice [null:-1] Timeout when requesting image!
2025-01-17 12:37:20,167 ERROR [frames-refresher-[0]] c.s.s.c.WebcamScanDevice [null:-1] Timeout when requesting image!
2025-01-17 12:37:26,608 ERROR [atomic-processor-1] c.s.s.c.WebcamScanDevice [null:-1] Timeout when requesting image!
2025-01-17 12:37:32,703 ERROR [frames-refresher-[0]] c.s.s.c.WebcamScanDevice [null:-1] Timeout when requesting image!
2025-01-17 12:47:16,468 WARN [Thread-1129] c.s.s.n.TcpTransport [null:-1] No response from server, setting read timeout to 8 secs

Any suggestions how i could proceed? Thanks!

@BitTester21 BitTester21 changed the title Crash opening webcam scan on Windows 11 Crash opening webcam on Windows 11 Jan 17, 2025
@craigraw
Copy link
Collaborator

It sounds like some kind of driver related incompatibility. You can try updating the camera in Device Manager, or uninstalling the driver and getting the system to reinstall the driver. If you have access to another webcam, it would be useful to know if that works. FWIW you have a very standard setup, so this is unusual - I have a Dell test machine running Windows as well, and the driver version is 10.0.19041.5129.

@BitTester21
Copy link
Author

Hi Craig!
My camera driver version is 10.0.26100.2454.
I have tried to update the driver but Windows tells me it is the latest version.
I don't have another camera to test with. I will try to get it and let you know.

@BitTester21
Copy link
Author

I got a Logitec webcam (C920) to try but it doesn't work either. I get the same error.
I have tried with the HD option on and off.
I have also verified that Sparrow is enabled in the privacy settings of the camera.

ERROR [atomic-processor-1] c.s.s.c.WebcamScanDevice [null:-1] Timeout when requesting image!
ERROR [frames-refresher-[0]] c.s.s.c.WebcamScanDevice [null:-1] Timeout when requesting image!

Image

Image

@craigraw
Copy link
Collaborator

Ok, it's looking less likely it's a driver issue then. It seems like something on your operating system is blocking Sparrow from accessing the webcam. Maybe try booting in Safe Mode and testing there?

@BitTester21
Copy link
Author

I have tried in Safe Mode and got the same error.
Is it likely to be a problem with python or some libraries?

I have installed other wallets and tools to test:

Blockstream Green Desktop : camera works. ✔️
Nunchuk Desktop: the camera does not work. ❌
Bitcoin Safe: camera not working. ❌
(https://github.com/andreasgriffin/bitcoin-safe)

SeedQReader: camera not working. ❌
(https://github.com/pythcoiner/SeedQReader)

In case it helps, in this app I have the following error:

[ERROR:[email protected]] global obsensor_uvc_stream_channel.cpp:156 cv::obsensor::getStreamChannelGroup Camera index out of range
[ WARN:[email protected]] global cap_msmf.cpp:1759 CvCapture_MSMF::grabFrame videoio(MSMF): can't grab frame. Error: -2147483638

@craigraw
Copy link
Collaborator

Interesting, it seems like a general problem. It's not a Python issue (Sparrow uses no Python for the webcam) - I suspect some kind of C library issue. Browser-based applications seem to be finding a way around it. Maybe try the advice here? https://sparrowwallet.com/docs/faq.html#your-system-is-missing-a-dependency-for-the-webcam

@BitTester21
Copy link
Author

Yes, I have read that article.
I have also reinstalled Microsoft Visual C++ 2010 Service Pack 1 Redistributable Package, and verified the DLLs in the “C:Windows\System32” directory.
I even checked the dependencies, and everything seems OK.

Image

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

No branches or pull requests

2 participants