groupgets / GetThermal

Cross-platform USB thermal camera viewer
MIT License
233 stars 92 forks source link

Repeatably Denied Access #9

Closed atamanje closed 5 years ago

atamanje commented 6 years ago

Hello,

I am trying to use GetThermal on OpenSUSE 42.3. I have QT 5.11.1 installed and I am able to get the application to run, however, I am running Linux through Virtual Box. GetThermal builds correctly and reads the camera successfully but, no image is seen in the application. In the application output it reads, "uvc_open: Access denied (-3)".

Any help to solve this issue is appreciated. I have run qtcreator using the sudo command in the terminal but, it reports some text and is then aborted. I have also tried to run Virtual Box as an administrator on the computer I'm using and that has not helped. I have attached a screenshot of qtcreator and GetThermal as I was running Virtal Box using 'Run as Administrator'.

Thanks, Jessie A issue

kekiefer commented 6 years ago

Is this a duplicate of #8?

atamanje commented 6 years ago

Not exactly, I think I've narrowed down the problem to not running QtCreator using a sudo command. When I try to do this in the terminal, the action is aborted. My colleagues were able to use GetThermal properly using Ubuntu but, I am using OpenSUSE. Would you be able you suggest a fix, so that I can run QtCreator using the command 'sudo qtcreator'. image

kekiefer commented 6 years ago

Did you see the part in there that sets up the UDEV rules to give the non-root user permissions to control the USB device?

atamanje commented 6 years ago

About the UDEV rule, I entered the sudo command from one of the other closed issues, "sudo sh -c "echo 'SUBSYSTEMS==\"usb\", ATTRS{idVendor}==\"1e4e\", ATTRS{idProduct}==\"0100\", SYMLINK+=\"pt1\", GROUP=\"usb\", MODE=\"666\"' > /etc/udev/rules.d/99-pt1.rules""

and I tried running QtCreator using, "sudo DISPLAY=:0 ./GetThermal" which refers to GetThermal program in a debug directory (see image 1). This results in an I/O error (see image 2).

Image 1: image Image 2: image

atamanje commented 6 years ago

And even though I've run the UDEV rule command the "sudo qtcreator" command continues to get aborted, saying, "Could not connect to any X display."

kekiefer commented 6 years ago

if you're set up udev to give your user permissions to access usb, you don't need to run stuff as sudo anymore.

atamanje commented 6 years ago

Okay. So I feel like I almost have it. I am no longer denied access, which is great but, I still get an I/O error (uvc_open: I/O error (-1)) in QtCreator. What could be the cause of this?

image

kekiefer commented 6 years ago

So the same as #8. Please review that solution again and see if it works for you.

atamanje commented 6 years ago

Hmm. I looked at #8 again and I tried doing a rebuild to see if I too was trying to run on a broken build but, I still get that I/O error.

kekiefer commented 6 years ago

Well, I don't know. There is a Linux AppImage binary in releases that you could try (presuming it works on OpenSUSE). This might help to see if it's a build or platform issue.

kekiefer commented 6 years ago

Any update or should I close this?

soltnerXavier2 commented 2 years ago

I have a potential fix for this.

I had the same issue : Screenshot_20220301_134703 : [Potential origin] My guess is that the application do not have superuser right to acces uvc.

[Solution]