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

BadAccess, BadShmSeg #60

Closed
duart38 opened this issue Aug 4, 2018 · 15 comments
Closed

BadAccess, BadShmSeg #60

duart38 opened this issue Aug 4, 2018 · 15 comments
Labels
dependency Something isn't working but it's because of a dependency distro: debian

Comments

@duart38
Copy link

duart38 commented Aug 4, 2018

Please describe the issue in as much detail as possible, including any errors and traces

I get this when i run the test command

X Error: BadAccess (attempt to access private resource denied) 10
Extension: 130 (MIT-SHM)
Minor opcode: 1 (X_ShmAttach)
Resource id: 0x2e00003
X Error: BadShmSeg (invalid shared segment parameter) 128
Extension: 130 (MIT-SHM)
Minor opcode: 5 (X_ShmCreatePixmap)
Resource id: 0x2e0000d


Linux distribution (if applicable): Ubuntu 18.04.1
Howdy version:

@boltgolt
Copy link
Owner

boltgolt commented Aug 5, 2018

Could you try running it as sudo QT_X11_NO_MITSHM=1 howdy test?

To apply this fix permenatly add QT_X11_NO_MITSHM=1 to the bottom of /etc/environment.

@boltgolt boltgolt added bug Something isn't working distro: debian dependency Something isn't working but it's because of a dependency and removed bug Something isn't working labels Aug 5, 2018
@keckes
Copy link

keckes commented Aug 10, 2018

Hi there, thanks for putting this together!

I had the same issue upon trying to run sudo howdy test and the viewer window was blank.

I tried running sudo QT_X11_NO_MITSHM=1 howdy test and it worked, though the image it returned was basically blank (see attached) and not dynamic (the image didn't really change even as I moved my face closer to the camera/emitters or waved my hand in front of them).

When I try using howdy normally it just times out and I have to enter the password. I assume it's because the image is not actually dynamic (i.e. not even recognizing something that resembles a face).

I'm running Ubuntu 18.04 LTS on a Thinkpad T480s.
howdy-test

@boltgolt
Copy link
Owner

This is a known decoding error in some cameras, could you try running sudo howdy config and setting force_mjpeg to true?

@keckes
Copy link

keckes commented Aug 10, 2018

OK, did that and the test procedure gives an actual image -- great!

I just added two versions of my face (with and without glasses) to my profile then tried a few tests. Unfortunately I still get the timeout problem, so I still have to enter my password manually.

@boltgolt
Copy link
Owner

Try upping the certainty value, howdy might be recognizing you with too little match certainty.

@keckes
Copy link

keckes commented Aug 11, 2018

I upped the certainty value to 9 and lowered the dark_threshold to 1 but still got the timeout error.

I noticed that when I run the test procedure, the frame rate and exposure consistency seems to depend heavily on the distance between my face and the emitters/camera. Still, even when I added a new face based on the distance and position I felt was most consistent in the test procedure, I still get the timeout errors.

Any other suggestions?

@boltgolt
Copy link
Owner

boltgolt commented Oct 4, 2018

Following up on issues i forgot to reply to, are you still having this problem or did you fix it/uninstall Howdy?

@keckes
Copy link

keckes commented Oct 4, 2018 via email

@boltgolt
Copy link
Owner

boltgolt commented Oct 4, 2018

Greenish static is a new symptom for me, does this static also show up when you open Cheese (search for Cheese in the dash)? You might need to try out different webcams/video sizes in the Preferences menu.

@keckes
Copy link

keckes commented Oct 5, 2018 via email

@boltgolt
Copy link
Owner

boltgolt commented Oct 5, 2018

So Cheese is also just getting the garbage data? Does switching resolutions in the preferences change anything?

@keckes
Copy link

keckes commented Oct 8, 2018 via email

@boltgolt
Copy link
Owner

boltgolt commented Oct 8, 2018

Great! Could you set the frame size in sudo howdy config to that format:

frame_width = 400
frame_height = 400

This should fix the problem.

@nilmerg nilmerg mentioned this issue Oct 9, 2018
@nilmerg
Copy link

nilmerg commented Oct 9, 2018

Had the same problem, running it with sudo QT_X11_NO_MITSHM=1 howdy test finally worked.

@mbprado
Copy link

mbprado commented Dec 7, 2018

I had exactly the same issue.
I was able so see my image in test, but it never had been recognized. Also in test, using IR camera, it never shown the red circle around my face (testing with the normal camera, everything worked fine). I completely solved the issue with the steps bellow:

1 - To fix green image:
In howdy config, simply set ( no need to set force_mjpeg or anything else):
frame_width = 400
frame_height = 400

2 - To fix testing interface:
add the line to /etc/environment
QT_X11_NO_MITSHM=1

3 - Finally to get the correct detection, including the red circle in howdy test, I had to set bright and contrast the parameters in v4l:

v4l2-ctl -d /dev/video0 --set-ctrl=contrast=0
and:
v4l2-ctl -d /dev/video0 --set-ctrl=brightness=255
check with:

$ v4l2-ctl -d /dev/video0 --list-ctrls
brightness 0x00980900 (int) : min=0 max=255 step=1 default=128 value=255
contrast 0x00980901 (int) : min=0 max=255 step=1 default=32 value=0

Doing this, I had no more problem with detection using IR camera.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependency Something isn't working but it's because of a dependency distro: debian
Projects
None yet
Development

No branches or pull requests

5 participants