I have Segmentation fault issue on version 2.0.1
Hadn't on version 1.7.3 the day that i made update kernel 3.16.3 to 3.16.4 also updating guvcview 1.7.3 to 2.0.1 my copy guvcview can't start anymore.
Here are some outputs via term.
nili@crunchbang:~$ guvcview
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: Could not grab image (select timeout): Success
V4L2_CORE: Could not grab image (select timeout): Success
also...
nili@crunchbang:~$ guvcview -r /sdl
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: Could not grab image (select timeout): Resource temporarily unavailable
Segmentation fault
On first error, the config dialog stays/hang on screen i can edit stuff, the cam window never open.
the 2nd error "guvcview -r /sdl" both config and cam window close quickly after opened let say closed after 3sec.
I am running,
Linux crunchbang 3.16.0-4-686-pae #1 SMP Debian 3.16.7-2 (2014-11-06) i686 GNU/Linux
nili@crunchbang:~$ apt-cache policy guvcview
guvcview:
Installed: 2.0.1+debian-1
Candidate: 2.0.1+debian-1
Version table:
*** 2.0.1+debian-1 0
500 http://ftp.us.debian.org/debian/ jessie/main i386 Packages
100 /var/lib/dpkg/status
Diff:
Hi,
can you do a backtrace with gdb?
Also if you could test with the current git master, it would be great.
I've committed quite a few changes to git so it would be easier for me to debug and for you to test any fixes I make (also this will soon become version 2.0.2).
Regards,
Paulo
Hi, thank you Paulo, just checked with gdb fortunately cam window open just fine.
Strangely after gdb now i can open shortly /guvcview too.
Yet again there are some logs as you can see on term.
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: Could not grab image (select timeout): Resource temporarily unavailable
The most important to me is that gdm came to show the cam figure. I think to leave as it is for now, i'll use back gdm if this issue appear again. Thank you for telling me about gdm.
Last edit: Nili 2014-11-22
Same bug here... you can see in the screenshot that my vid is not showing.
thanks for any help you can provide
dennis@qiana ~ $ guvcview
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
dennis@qiana ~ $ guvcview -r /gdb
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: File exists
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: File exists
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: File exists
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: File exists
dennis@qiana ~ $ guvcview --version
Guvcview version 2.0.0
lsusb:
Bus 001 Device 005: ID 046d:09a1 Logitech, Inc. QuickCam Communicate MP/S5500
dennis@qiana ~ $ dmesg | grep Linux
[ 0.000000] Linux version 3.13.0-24-generic (buildd@batsu) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 (Ubuntu 3.13.0-24.47-generic 3.13.9)
[ 0.609726] Linux agpgart interface v0.103
[ 0.624077] usb usb1: Manufacturer: Linux 3.13.0-24-generic ehci_hcd
[ 0.640112] usb usb2: Manufacturer: Linux 3.13.0-24-generic ehci_hcd
[ 0.652111] usb usb3: Manufacturer: Linux 3.13.0-24-generic ehci_hcd
[ 0.652478] usb usb4: Manufacturer: Linux 3.13.0-24-generic uhci_hcd
[ 0.652796] usb usb5: Manufacturer: Linux 3.13.0-24-generic uhci_hcd
[ 0.653208] usb usb6: Manufacturer: Linux 3.13.0-24-generic xhci_hcd
[ 0.653594] usb usb7: Manufacturer: Linux 3.13.0-24-generic xhci_hcd
[ 13.952758] Linux video capture interface: v2.00
Hi,
You seem to be using version 2.0.0, please upgrade to 2.0.1
version 2.0.0 and earlier suffer from a bug that prevents from working with kernels >= 3.16
Regards,
Paulo
I still have issue too, most of time crash. The issue is like when i start my computer from reboot,the cam works fine, but once opened some videos with player/vlc 2 hours later the cam doesn't work anymore. Crashing both cam window and his config.
Only on first startup seems to work for a few hours.
Recent logs:
nili@crunchbang:~$ guvcview
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: Could not grab image (select timeout): Resource temporarily unavailable
Segmentation fault
Guvcview version 2.0.1
system: Linux crunchbang 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt2-1 (2014-12-08) i686 GNU/Linux
Just checked the teamviewer webcam, cam on this application working fine all time.
Hi,
The log doesn't give much information, you should increase verbosity:
'guvcview --verbosity=2'
Does the crash happens while recording to file or even in preview mode ?
Regards,
Paulo
2015-01-25 8:21 GMT+00:00 Nili spotnili@users.sf.net:
Related
Tickets:
#14Hi Paulo, thank you for tracking me... here's the "guvcview --verbosity=2" logs.
GUVCVIEW: language catalog=> dir:/usr/share/locale type:en_US.UTF-8 cat:guvcview.mo
GUVCVIEW: main thread (tid: 23447)
V4L2_CORE: Device Node Path: /dev/video0
VID/PID: 0c45 62c1
Sonix Technology Co., Ltd.
USB 2.0 Camera
serial: (null)
busnum: 4
devnum: 3
V4L2_CORE: language catalog=> dir:/usr/share/locale type:en_US.UTF-8 cat:gview_v4l2core.mo
V4L2_CORE: capture method mmap (1)
V4L2_CORE: video device: /dev/video0
V4L2_CORE: mapping control for Pan (relative)
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: mapping control for Tilt (relative)
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: mapping control for Pan Reset
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: mapping control for Tilt Reset
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: mapping control for Focus
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: mapping control for LED1 Mode
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: mapping control for LED1 Frequency
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: mapping control for Disable video processing
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: mapping control for Raw bits per pixel
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: Init. USB 2.0 Camera (location: usb-0000:00:1d.7-7)
{ pixelformat = 'YUYV', description = 'YUV 4:2:2 (YUYV)' }
{ discrete: width = 640, height = 480 }
Time interval between frame: 1/25,
{ discrete: width = 352, height = 288 }
Time interval between frame: 1/25,
{ discrete: width = 320, height = 240 }
Time interval between frame: 1/25,
{ discrete: width = 176, height = 144 }
Time interval between frame: 1/25,
{ discrete: width = 160, height = 120 }
Time interval between frame: 1/25,
{ discrete: width = 1280, height = 1024 }
Time interval between frame: 2/15,
{ pixelformat = 'RGB3', description = 'RGB3' }
{ discrete: width = 640, height = 480 }
Time interval between frame: 1/25,
{ discrete: width = 352, height = 288 }
Time interval between frame: 1/25,
{ discrete: width = 320, height = 240 }
Time interval between frame: 1/25,
{ discrete: width = 176, height = 144 }
Time interval between frame: 1/25,
{ discrete: width = 160, height = 120 }
Time interval between frame: 1/25,
{ discrete: width = 1280, height = 1024 }
Time interval between frame: 2/15,
{ pixelformat = 'BGR3', description = 'BGR3' }
{ discrete: width = 640, height = 480 }
Time interval between frame: 1/25,
{ discrete: width = 352, height = 288 }
Time interval between frame: 1/25,
{ discrete: width = 320, height = 240 }
Time interval between frame: 1/25,
{ discrete: width = 176, height = 144 }
Time interval between frame: 1/25,
{ discrete: width = 160, height = 120 }
Time interval between frame: 1/25,
{ discrete: width = 1280, height = 1024 }
Time interval between frame: 2/15,
{ pixelformat = 'YU12', description = 'YU12' }
{ discrete: width = 640, height = 480 }
Time interval between frame: 1/25,
{ discrete: width = 352, height = 288 }
Time interval between frame: 1/25,
{ discrete: width = 320, height = 240 }
Time interval between frame: 1/25,
{ discrete: width = 176, height = 144 }
Time interval between frame: 1/25,
{ discrete: width = 160, height = 120 }
Time interval between frame: 1/25,
{ discrete: width = 1280, height = 1024 }
Time interval between frame: 2/15,
{ pixelformat = 'YV12', description = 'YV12' }
{ discrete: width = 640, height = 480 }
Time interval between frame: 1/25,
{ discrete: width = 352, height = 288 }
Time interval between frame: 1/25,
{ discrete: width = 320, height = 240 }
Time interval between frame: 1/25,
{ discrete: width = 176, height = 144 }
Time interval between frame: 1/25,
{ discrete: width = 160, height = 120 }
Time interval between frame: 1/25,
{ discrete: width = 1280, height = 1024 }
Time interval between frame: 2/15,
V4L2_CORE: checking muxed H264 format support
V4L2_CORE: (libusb) checking for H264 unit id
control[0]:(int) 0x980900 'Brightness'
min:-128 max:127 step:1 def:5 curr:0
control[1]:(int) 0x980901 'Contrast'
min:0 max:100 step:1 def:30 curr:0
control[2]:(int) 0x980902 'Saturation'
min:0 max:100 step:1 def:0 curr:0
control[3]:(int) 0x980903 'Hue'
min:-40 max:40 step:1 def:0 curr:0
control[4]:(int) 0x980910 'Gamma'
min:1 max:100 step:1 def:20 curr:0
control[5]:(menu) 0x980918 'Power Line Frequency'
min:0 max:2 def:1 curr:0
menu[0]: [0] -> 'Disabled'
menu[1]: [1] -> '50 Hz'
menu[2]: [2] -> '60 Hz'
control[6]:(int) 0x98091c 'Backlight Compensation'
min:0 max:1 step:1 def:0 curr:0
control[7]:(menu) 0x9a0901 'Exposure, Auto'
min:0 max:3 def:3 curr:0
menu[0]: [1] -> 'Manual Mode'
menu[1]: [3] -> 'Aperture Priority Mode'
control[8]:(bool) 0x9a0903 'Exposure, Auto Priority'
def:0 curr:0
GUVCVIEW: setting video codec to 'dx50'
GUVCVIEW: setting audio codec to 'mp3'
GUVCVIEW: basename for my_video.mkv is my_video.mkv
GUVCVIEW: extension for my_video.mkv is mkv
GUVCVIEW: basename for my_photo.jpg is my_photo.jpg
GUVCVIEW: extension for my_photo.jpg is jpg
AUDIO: =======[ Output Device #1 ]=======
Description: Built-in Audio Analog Stereo
Name: alsa_output.pci-0000_00_1b.0.analog-stereo
Index: 0
Channels: 2
SampleRate: 44100
Latency: 0 (usec)
Card: 0
AUDIO: =======[ Input Device #1 ]=======
Description: Monitor of Built-in Audio Analog Stereo
Name: alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
Index: 0
Channels: 2 (default to: 2)
SampleRate: 44100
Latency: 0 (usec)
Card: 0
AUDIO: =======[ Input Device #2 ]=======
Description: Built-in Audio Analog Stereo
Name: alsa_input.pci-0000_00_1b.0.analog-stereo
Index: 1
Channels: 2 (default to: 2)
SampleRate: 48000
Latency: 0 (usec)
Card: 0
AUDIO: =======[ Input Device #3 ]=======
Description: USB 2.0 Camera Analog Mono
Name: alsa_input.usb-Sonix_Technology_Co.__Ltd._USB_2.0_Camera-02-Camera.analog-mono
Index: 2
Channels: 1 (default to: 1)
SampleRate: 16000
Latency: 0 (usec)
Card: 1
V4L2_CORE: checking format: YUYV
V4L2_CORE: mapped buffer[0] with length 614400 to pos 0xb3449000
V4L2_CORE: mapped buffer[1] with length 614400 to pos 0xb33b3000
V4L2_CORE: mapped buffer[2] with length 614400 to pos 0xb331d000
V4L2_CORE: mapped buffer[3] with length 614400 to pos 0xb3287000
GUVCVIEW: capture thread (tid: 23449)
RENDER: Initializing SDL2 render
(guvcview:23447): Gtk-WARNING **: Theme parsing error: gtk.css:78:33: Failed to import: Error opening file: No such file or directory
GUVCVIEW: (GUI) Screen resolution is (1280 x 1024)
GUVCVIEW: attaching v4l2 controls
GUVCVIEW: attaching video controls
GUVCVIEW: frame rates of resolution index 1 = 1
GUVCVIEW: fps is set to 1/25
GUVCVIEW: resolutions of format(1) = 6
GUVCVIEW: attaching audio controls
RENDER: video display 0 -> 1280x1024px @ 75hz
RENDER: setting window size to 640x480
V4L2_CORE: Could not grab image (select timeout): Resource temporarily unavailable
Segmentation fault
Nili Hi,
Could you debug the segfault with gdb or valgrind ?
also do you get any video preview at all before the segfault, or just
a black screen.
Regards,
Paulo
2015-01-26 11:02 GMT+00:00 Nili spotnili@users.sf.net:
Related
Tickets:
#14Hi again Paulo
No i don't get any video preview, both cam window and config crash before
opening a video image.
No black screen, just cam window tried to open but crash 2 sec after appear.
Only if i restart the system cam show the preview just fine, once the time
clock passed 1 to 3 hour doesn't work anymore with that crash things.
Here are logs provided from valgrind with command "valgrind --tool=memcheck
guvcview --verbosity=2" hope i am doing right because didn't know much for
this tool.
nili@crunchbang:~$ valgrind --tool=memcheck guvcview --verbosity=2
==30409== Memcheck, a memory error detector
==30409== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==30409== Using Valgrind-3.10.0 and LibVEX; rerun with -h for copyright info
==30409== Command: guvcview --verbosity=2
==30409==
GUVCVIEW: language catalog=> dir:/usr/share/locale type:en_US.UTF-8
cat:guvcview.mo
GUVCVIEW: main thread (tid: 30409)
V4L2_CORE: Device Node Path: /dev/video0
VID/PID: 0c45 62c1
Sonix Technology Co., Ltd.
USB 2.0 Camera
serial: (null)
busnum: 4
devnum: 3
V4L2_CORE: language catalog=> dir:/usr/share/locale type:en_US.UTF-8
cat:gview_v4l2core.mo
V4L2_CORE: capture method mmap (1)
V4L2_CORE: video device: /dev/video0
V4L2_CORE: mapping control for Pan (relative)
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: mapping control for Tilt (relative)
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: mapping control for Pan Reset
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: mapping control for Tilt Reset
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: mapping control for Focus
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: mapping control for LED1 Mode
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: mapping control for LED1 Frequency
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: mapping control for Disable video processing
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: mapping control for Raw bits per pixel
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: Init. USB 2.0 Camera (location: usb-0000:00:1d.7-7)
{ pixelformat = 'YUYV', description = 'YUV 4:2:2 (YUYV)' }
{ discrete: width = 640, height = 480 }
Time interval between frame: 1/25,
{ discrete: width = 352, height = 288 }
Time interval between frame: 1/25,
{ discrete: width = 320, height = 240 }
Time interval between frame: 1/25,
{ discrete: width = 176, height = 144 }
Time interval between frame: 1/25,
{ discrete: width = 160, height = 120 }
Time interval between frame: 1/25,
{ discrete: width = 1280, height = 1024 }
Time interval between frame: 2/15,
{ pixelformat = 'RGB3', description = 'RGB3' }
{ discrete: width = 640, height = 480 }
Time interval between frame: 1/25,
{ discrete: width = 352, height = 288 }
Time interval between frame: 1/25,
{ discrete: width = 320, height = 240 }
Time interval between frame: 1/25,
{ discrete: width = 176, height = 144 }
Time interval between frame: 1/25,
{ discrete: width = 160, height = 120 }
Time interval between frame: 1/25,
{ discrete: width = 1280, height = 1024 }
Time interval between frame: 2/15,
{ pixelformat = 'BGR3', description = 'BGR3' }
{ discrete: width = 640, height = 480 }
Time interval between frame: 1/25,
{ discrete: width = 352, height = 288 }
Time interval between frame: 1/25,
{ discrete: width = 320, height = 240 }
Time interval between frame: 1/25,
{ discrete: width = 176, height = 144 }
Time interval between frame: 1/25,
{ discrete: width = 160, height = 120 }
Time interval between frame: 1/25,
{ discrete: width = 1280, height = 1024 }
Time interval between frame: 2/15,
{ pixelformat = 'YU12', description = 'YU12' }
{ discrete: width = 640, height = 480 }
Time interval between frame: 1/25,
{ discrete: width = 352, height = 288 }
Time interval between frame: 1/25,
{ discrete: width = 320, height = 240 }
Time interval between frame: 1/25,
{ discrete: width = 176, height = 144 }
Time interval between frame: 1/25,
{ discrete: width = 160, height = 120 }
Time interval between frame: 1/25,
{ discrete: width = 1280, height = 1024 }
Time interval between frame: 2/15,
{ pixelformat = 'YV12', description = 'YV12' }
{ discrete: width = 640, height = 480 }
Time interval between frame: 1/25,
{ discrete: width = 352, height = 288 }
Time interval between frame: 1/25,
{ discrete: width = 320, height = 240 }
Time interval between frame: 1/25,
{ discrete: width = 176, height = 144 }
Time interval between frame: 1/25,
{ discrete: width = 160, height = 120 }
Time interval between frame: 1/25,
{ discrete: width = 1280, height = 1024 }
Time interval between frame: 2/15,
V4L2_CORE: checking muxed H264 format support
V4L2_CORE: (libusb) checking for H264 unit id
control[0]:(int) 0x980900 'Brightness'
min:-128 max:127 step:1 def:5 curr:0
control[1]:(int) 0x980901 'Contrast'
min:0 max:100 step:1 def:30 curr:0
control[2]:(int) 0x980902 'Saturation'
min:0 max:100 step:1 def:0 curr:0
control[3]:(int) 0x980903 'Hue'
min:-40 max:40 step:1 def:0 curr:0
control[4]:(int) 0x980910 'Gamma'
min:1 max:100 step:1 def:20 curr:0
control[5]:(menu) 0x980918 'Power Line Frequency'
min:0 max:2 def:1 curr:0
menu[0]: [0] -> 'Disabled'
menu[1]: [1] -> '50 Hz'
menu[2]: [2] -> '60 Hz'
control[6]:(int) 0x98091c 'Backlight Compensation'
min:0 max:1 step:1 def:0 curr:0
control[7]:(menu) 0x9a0901 'Exposure, Auto'
min:0 max:3 def:3 curr:0
menu[0]: [1] -> 'Manual Mode'
menu[1]: [3] -> 'Aperture Priority Mode'
control[8]:(bool) 0x9a0903 'Exposure, Auto Priority'
def:0 curr:0
==30409== Syscall param ioctl(VKI_V4L2_G_EXT_CTRLS).controls[].size points
to uninitialised byte(s)
==30409== at 0x4F87547: syscall (syscall.S:30)
==30409== by 0x6920001: ??? (in
/usr/lib/i386-linux-gnu/libv4lconvert.so.0.0.0)
==30409== by 0x6937D6C: ??? (in
/usr/lib/i386-linux-gnu/libv4lconvert.so.0.0.0)
==30409== by 0x6923EA1: v4lconvert_vidioc_g_ext_ctrls (in
/usr/lib/i386-linux-gnu/libv4lconvert.so.0.0.0)
==30409== by 0x50510FC: v4l2_ioctl (in
/usr/lib/i386-linux-gnu/libv4l2.so.0.0.0)
==30409== by 0x404F1A4: xioctl (in
/usr/lib/i386-linux-gnu/libgviewv4l2core-1.0.so.0.1.0)
==30409== by 0x4052FC3: get_v4l2_control_values (in
/usr/lib/i386-linux-gnu/libgviewv4l2core-1.0.so.0.1.0)
==30409== by 0x4050818: v4l2core_init_dev (in
/usr/lib/i386-linux-gnu/libgviewv4l2core-1.0.so.0.1.0)
==30409== by 0x804D40B: main (in /usr/bin/guvcview)
==30409== Address 0xbefd3304 is on thread 1's stack
==30409== in frame #6, created by get_v4l2_control_values (???)
==30409==
==30409== Syscall param ioctl(VKI_V4L2_G_EXT_CTRLS).controls[].reserved2
points to uninitialised byte(s)
==30409== at 0x4F87547: syscall (syscall.S:30)
==30409== by 0x6920001: ??? (in
/usr/lib/i386-linux-gnu/libv4lconvert.so.0.0.0)
==30409== by 0x6937D6C: ??? (in
/usr/lib/i386-linux-gnu/libv4lconvert.so.0.0.0)
==30409== by 0x6923EA1: v4lconvert_vidioc_g_ext_ctrls (in
/usr/lib/i386-linux-gnu/libv4lconvert.so.0.0.0)
==30409== by 0x50510FC: v4l2_ioctl (in
/usr/lib/i386-linux-gnu/libv4l2.so.0.0.0)
==30409== by 0x404F1A4: xioctl (in
/usr/lib/i386-linux-gnu/libgviewv4l2core-1.0.so.0.1.0)
==30409== by 0x4052FC3: get_v4l2_control_values (in
/usr/lib/i386-linux-gnu/libgviewv4l2core-1.0.so.0.1.0)
==30409== by 0x4050818: v4l2core_init_dev (in
/usr/lib/i386-linux-gnu/libgviewv4l2core-1.0.so.0.1.0)
==30409== by 0x804D40B: main (in /usr/bin/guvcview)
==30409== Address 0xbefd3308 is on thread 1's stack
==30409== in frame #6, created by get_v4l2_control_values (???)
==30409==
==30409== Syscall param ioctl(VKI_V4L2_G_EXT_CTRLS).controls[].ptr points
to uninitialised byte(s)
==30409== at 0x4F87547: syscall (syscall.S:30)
==30409== by 0x6920001: ??? (in
/usr/lib/i386-linux-gnu/libv4lconvert.so.0.0.0)
==30409== by 0x6937D6C: ??? (in
/usr/lib/i386-linux-gnu/libv4lconvert.so.0.0.0)
==30409== by 0x6923EA1: v4lconvert_vidioc_g_ext_ctrls (in
/usr/lib/i386-linux-gnu/libv4lconvert.so.0.0.0)
==30409== by 0x50510FC: v4l2_ioctl (in
/usr/lib/i386-linux-gnu/libv4l2.so.0.0.0)
==30409== by 0x404F1A4: xioctl (in
/usr/lib/i386-linux-gnu/libgviewv4l2core-1.0.so.0.1.0)
==30409== by 0x4052FC3: get_v4l2_control_values (in
/usr/lib/i386-linux-gnu/libgviewv4l2core-1.0.so.0.1.0)
==30409== by 0x4050818: v4l2core_init_dev (in
/usr/lib/i386-linux-gnu/libgviewv4l2core-1.0.so.0.1.0)
==30409== by 0x804D40B: main (in /usr/bin/guvcview)
==30409== Address 0xbefd330c is on thread 1's stack
==30409== in frame #6, created by get_v4l2_control_values (???)
==30409==
==30409== Syscall param ioctl(VKI_V4L2_G_EXT_CTRLS).controls[].ptr[] points
to unaddressable byte(s)
==30409== at 0x4F87547: syscall (syscall.S:30)
==30409== by 0x6920001: ??? (in
/usr/lib/i386-linux-gnu/libv4lconvert.so.0.0.0)
==30409== by 0x6937D6C: ??? (in
/usr/lib/i386-linux-gnu/libv4lconvert.so.0.0.0)
==30409== by 0x6923EA1: v4lconvert_vidioc_g_ext_ctrls (in
/usr/lib/i386-linux-gnu/libv4lconvert.so.0.0.0)
==30409== by 0x50510FC: v4l2_ioctl (in
/usr/lib/i386-linux-gnu/libv4l2.so.0.0.0)
==30409== by 0x404F1A4: xioctl (in
/usr/lib/i386-linux-gnu/libgviewv4l2core-1.0.so.0.1.0)
==30409== by 0x4052FC3: get_v4l2_control_values (in
/usr/lib/i386-linux-gnu/libgviewv4l2core-1.0.so.0.1.0)
==30409== by 0x4050818: v4l2core_init_dev (in
/usr/lib/i386-linux-gnu/libgviewv4l2core-1.0.so.0.1.0)
==30409== by 0x804D40B: main (in /usr/bin/guvcview)
==30409== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==30409==
==30409== Warning: set address range perms: large range [0x0, 0xbefd33f4)
(defined)
GUVCVIEW: setting video codec to 'dx50'
GUVCVIEW: setting audio codec to 'mp3'
Memcheck: the 'impossible' happened:
create_MC_Chunk: shadow area is accessible
host stacktrace:
==30409== at 0x3804CD20: show_sched_status_wrk (m_libcassert.c:319)
==30409== by 0x3804CE31: report_and_quit (m_libcassert.c:390)
==30409== by 0x3804D04E: panic (m_libcassert.c:465)
==30409== by 0x3804D04E: vgPlain_tool_panic (m_libcassert.c:480)
==30409== by 0x380237A7: create_MC_Chunk (mc_malloc_wrappers.c:215)
==30409== by 0x3802389B: vgMemCheck_new_block (mc_malloc_wrappers.c:366)
==30409== by 0x380239EE: vgMemCheck_malloc (mc_malloc_wrappers.c:385)
==30409== by 0x38099493: do_client_request (scheduler.c:1840)
==30409== by 0x38099493: vgPlain_scheduler (scheduler.c:1409)
==30409== by 0x380A6F11: thread_wrapper (syswrap-linux.c:103)
==30409== by 0x380A6F11: run_a_thread_NORETURN (syswrap-linux.c:156)
sched status:
running_tid=1
Thread 1: status = VgTs_Runnable
==30409== at 0x40291CC: malloc (vg_replace_malloc.c:296)
==30409== by 0x4F1C5B7: strdup (strdup.c:42)
==30409== by 0x80518A4: ??? (in /usr/bin/guvcview)
==30409== by 0x804D53B: main (in /usr/bin/guvcview)
Thread 2: status = VgTs_WaitSys
==30409== at 0x4F815BB: ??? (syscall-template.S:81)
==30409== by 0x507AF3A: ??? (in /lib/i386-linux-gnu/libusb-1.0.so.0.1.0)
==30409== by 0x4E8CEFA: start_thread (pthread_create.c:309)
==30409== by 0x4F8BDFD: clone (clone.S:129)
Note: see also the FAQ in the source distribution.
It contains workarounds to several common problems.
In particular, if Valgrind aborted or crashed after
identifying problems in your program, there's a good chance
that fixing those problems will prevent Valgrind aborting or
crashing, especially if it happened in m_mallocfree.c.
If that doesn't help, please report this bug to: www.valgrind.org
In the bug report, send all the above text, the valgrind
version, and what OS and version you are using. Thanks.
Thank you again,
Kindly regards and many thanks for the support.
Nili
On Mon, Jan 26, 2015 at 12:14 PM, Paulo Assis assisp@users.sf.net wrote:
Related
Tickets:
#14Hi,
Well valgrind crashed so it doesn't provide any useful information.
what about gdb ?
Also do you think you could test with the latest git version?
just install all of the dependencies:
sudo apt-get install intltool autotools-dev libsdl2-dev libgtk-3-dev
portaudio19-dev libpng12-dev libavcodec-dev libavutil-dev
libv4l-dev libudev-dev libusb-1.0-0-dev libpulse-dev libgsl-dev
get the code:
git clone git://git.code.sf.net/p/guvcview/git-master guvcview-git-master
and build:
cd guvcview-git-master
./bootstrap.sh
make distclean
mkdir build
cd build
../configure --prefix=/usr
make
sudo make install
Regards,
Paulo
2015-01-26 12:16 GMT+00:00 Nili spotnili@users.sf.net:
Related
Tickets:
#14Hi Paulo,
I am trying to do something with gdb but can't get a thing with "gdm
guvcview", i never done debug on Linux. Sorry.
here gdm logs:
nili@crunchbang:~$ gdb guvcview
GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
Any help with other gdm command please?
About installing/compiling guvcview-git-master
if i try to install those dependencies got a lot of new things on my
terminal like:
autoconf automake autotools-dev gir1.2-atspi-2.0 intltool libasound2-dev
libatk-bridge2.0-dev libatk1.0-dev libatspi2.0-dev libavahi-client-dev
libavahi-common-dev libcairo-script-interpreter2 libcairo2-dev
libdbus-1-dev libdbus-glib-1-dev libdrm-dev
libegl1-mesa-dev libexpat1-dev libfontconfig1-dev libfreetype6-dev
libgl1-mesa-dev libgles2-mesa-dev libglu1-mesa-dev libgtk-3-dev
libharfbuzz-dev libharfbuzz-gobject0 libice-dev libpango1.0-dev
libpixman-1-dev libpulse-dev libsdl2-2.0-0 libsdl2-dev
libsigsegv2 libsm-dev libudev-dev libwayland-dev libx11-xcb-dev
libxcb-dri2-0-dev libxcb-dri3-dev libxcb-glx0-dev libxcb-present-dev
libxcb-randr0-dev libxcb-render0-dev libxcb-shape0-dev libxcb-shm0-dev
libxcb-sync-dev libxcb-xfixes0-dev
libxcomposite-dev libxcursor-dev libxdamage-dev libxext-dev libxfixes-dev
libxft-dev libxi-dev libxinerama-dev libxkbcommon-dev libxrandr-dev
libxrender-dev libxshmfence-dev libxss-dev libxt-dev libxtst-dev libxv-dev
libxxf86vm-dev m4 mesa-common-dev
x11proto-composite-dev x11proto-damage-dev x11proto-dri2-dev
x11proto-fixes-dev x11proto-gl-dev x11proto-randr-dev x11proto-record-dev
x11proto-render-dev x11proto-scrnsaver-dev x11proto-video-dev
x11proto-xext-dev x11proto-xf86vidmode-dev
x11proto-xinerama-dev
I have bare minimal system "Crunchbang" testing, really i do not want to
install all those packages you know "spoil my philosophy of being minimal"
:)
pityingly, I can not compiling out this time, I do not want to break because
it is the primary system.
So any other help with gdm command would be a good alternative for me.
Thank you once again for your effort.
Kindly regards,
Nili
On Mon, Jan 26, 2015 at 1:40 PM, Paulo Assis assisp@users.sf.net wrote:
Related
Tickets:
#14Hi,
2015-01-26 15:50 GMT+00:00 Nili spotnili@users.sf.net:
Since guvcview is a multithreaded app you need some extra commands for
getting a backtrace for all threads.
You would also need the debug symbols (these are stripped when
building debian binary packages), for getting a more readable output,
but since you can't build the code from source, that's out of the
question.
In any case after execution stops and while in the gdb prompt do:
thread apply all bt
this should give a backtrace for all threads.
No, problem.
Actually I have daily built binary packages for git-master in my testing ppa:
https://launchpad.net/~pj-assis/+archive/ubuntu/testing/+packages
These are meant for ubuntu, but I think they should also have all
dependencies met in debian.
There are packages for both 14.04 and 14.10, try the later first, if
there are unmet dependencies then try the first.
Just download and install both guvcview and libguvcview-1.0-1
Please try the backtrace command described above .
Regards,
Paulo
Related
Tickets:
#14I just had another seg fault. What's most curious is that I had shut down guvcview!
I really like the simplicity of guvciew and it's still the best webcam software for Ubuntu that I have found... but it keeps crashing my system! :(
Here's the juicy bits from /var/log/kern.log
Feb 18 08:34:41 qiana kernel: [81878.131530] guvcview[19496]: segfault at 10 ip 00007f3daf232687 sp 00007f3d94c49c00 error 4 in libgviewaudio-1.0.so.1.0.0[7f3daf230000+8000]
Feb 18 08:37:17 qiana kernel: [82034.338584] uvcvideo: Failed to query (SET_CUR) UVC control 17 on unit 1: -32 (exp. 1).
Feb 18 08:37:20 qiana kernel: [82036.601322] uvcvideo: Failed to query (SET_CUR) UVC control 17 on unit 1: -32 (exp. 1).
Feb 18 08:37:20 qiana kernel: [82037.293774] uvcvideo: Failed to query (SET_CUR) UVC control 17 on unit 1: -32 (exp. 1).
Feb 18 09:46:47 qiana kernel: [ 0.000000] Initializing cgroup subsys cpuset
Removing any VLC tracert from my system seems to fix my issue, i have no crash anymore. Currently i am using mplayer2/smplayer no issue since a week. I can safely open guvcview without a crash.
Last edit: Nili 2015-03-29
This is on a raspberry Pi B+ (1G RAM, quad CPU @ 933Mhz), downloaded, compiled, and installed latest from git, a41ce238c81543eaabec4e632ce7fafc2ac05691
Ran with gdb:
Hi,
have you tried a different audio api:
(no audio)
guvcview --verbosity=2 --audio=none
(pulse --if enabled and pulse server is running)
guvcview --verbosity=2 --audio=pulse
the back-trace doesn't help much, it segfaults when calling
audio_portaudio_list_devices(audio_ctx) but it's not clear on the
reason.
could you please run this through valgrind, it should print some more
information on the reason for the segfault.
Regards,
Paulo
2016-01-07 0:48 GMT+00:00 rickyrockrat rickyrockrat@users.sf.net:
Related
Tickets:
#14--audio=none does give me a GUI to configure, but no video output, and the only way to exit is to Ctrl-Z, then kill -9 the process.
Hi,
make sure you have set the render api:
guvcview --render=sdl2 --audio=none --verbosity=2
and please post me the console output .
also if you could run it through valgrind it would be very helpful:
valgrind guvcview --audio=port --render=sdl2 --verbosity=3
this should help give a better idea of what is going on.
(also make sure to always get the latest code from git)
Best regards,
Paulo
2016-01-11 23:10 GMT+00:00 rickyrockrat rickyrockrat@users.sf.net:
Related
Tickets:
#14A lot of fixes and chnages in the latest release (2.0.3)
If the problem still persists in this one please reopen a new bug against it.
Regards,
Paulo