Monero-gui: Starting monero-core accesses the webcam for a split second

Created on 26 Mar 2017  路  8Comments  路  Source: monero-project/monero-gui

Starting the latest build of monero-core on win64, I can see my webcam activity light come on for a second or two before turning off. This only happens when launching monero-core. Quite concerning.

Platform is Windows 10 x64, webcam is a Logitech C920.

Most helpful comment

Sorry guys, this one is on me !
To add a QR Code scanner, i had to add a dependency to QtMultimedia (to access the camera).
I was not expecting it to do anything when the flag WITH_SCANNER is not activated.
Looks like https://github.com/monero-project/monero-core/blob/master/main.qml#L35 is already too much.
It is a little painful to do conditional includes in QML, and it will make the code a little more complex.
But now, i have a good reason for it :)

All 8 comments

I can confirm this too with build #677.

Windows 10 x64, built-in HP TrueVision HD on an HP Pavillion dv6.

Can confirm occurs on macOs 10.11 as well.

Sorry guys, this one is on me !
To add a QR Code scanner, i had to add a dependency to QtMultimedia (to access the camera).
I was not expecting it to do anything when the flag WITH_SCANNER is not activated.
Looks like https://github.com/monero-project/monero-core/blob/master/main.qml#L35 is already too much.
It is a little painful to do conditional includes in QML, and it will make the code a little more complex.
But now, i have a good reason for it :)

@SamsungGalaxyPlayer @dternyak @ddyzhang Can you confirm that this is fixed?

@Jaqueeee Haven't had a chance to test the latest build yet, will test when I get home.

From skimming the PR, it seems like we are simply moving the decision to include QR scanning to compile time. Is there any way to preserve QR code scanning in all builds, but only attempt to access the webcam when we are actually scanning? I'm assuming no, since it appears that qt is populating the available webcam list at start up.

@ddyzhang dunno, I think it might be doable, but not necessarily a good thing.

First, it relies on 2 new dependencies : libzbar and QtMultimedia. Libzbar has been reported to work on all majors platforms, yet i am not sure that it works with the 13 (11 in build bots, + android and ios) builds environnements. It was already skipped at compil time. I think that's the reason we did not see people complaining about it.
Also, QtMultimedia is quite a heavy lib, with multiple dependencies (like gstreamer). So, this complexifies the build (we already saw multiple people complaining about erros due to QtMultimedia) and produces a significantly bigger binary.

Second, for now, i don't see any use case to scan a qrcode in a laptop or desktop camera.
Eventually, it might be interesting to use it as an RPC between a non networked computer (acting as a cold storage) and a networked computer (acting as a view only wallet), for example, to forward a cold signed transaction or get the key images. But these would be marginal use cases.

@MoroccanMalinois Fair enough, thanks for your input! I've never used Qt much myself, so I'll trust your judgement on this one. Again, will test the new build when I get home.

Confirmed, issue fixed by PR #616, monero-core also starts a lot quicker now too!

Was this page helpful?
0 / 5 - 0 ratings