Bug 14371 - guvcview seg faults on opening
Summary: guvcview seg faults on opening
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 5
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: has_procedure MGA5-32-OK MGA5-64-OK a...
Keywords: validated_update
: 14498 17310 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-10-26 02:41 CET by William Kenney
Modified: 2015-12-16 22:01 CET (History)
10 users (show)

See Also:
Source RPM: guvcview-1.7.3-3.mga5.i586.rpm
CVE:
Status comment:


Attachments
guvcview segmentation fault on launch (19.34 KB, text/plain)
2015-05-16 19:35 CEST, William Kenney
Details

Description William Kenney 2014-10-26 02:41:43 CET
guvcview seg faults on opening

Reproducible: 

Steps to Reproduce:
Comment 1 William Kenney 2014-10-26 02:44:29 CET
On real hardware, M3, KDE, 32-bit

Package(s) under test:
guvcview

default install of guvcview

[root@localhost wilcal]# urpmi guvcview
Package guvcview-1.7.3-3.mga5.i586 is already installed

Connect USB webcam

[wilcal@localhost ~]$ guvcview
guvcview 1.7.3
file guvcview_video.mkv has extension type 1
file guvcview_image.jpg has extension type 0
file guvcview_image.jpg has extension type 0
.....
.....
.....
Segmentation fault

Test platform:
Intel, P4 530J 3.0 GHz, 800MHz FSB, 1MB L2, LGA 775
GigaByte  GA-81915G Pro F4  i915G  LGA 775  MoBo
 Marvel Yukon 88E8001 Gigabit LAN
 Intel High Def Audio, Azalia (C-Media 9880) (snd-hda-intel)
 Intel Graphics Media Accelerator 900 (Intel 82915G)
Kingston 4GB (2 x 2GB) DDR400 PC-3200
250GB Seagate
Kingwin KF-91-BK SATA Mobile Rack
Kingwin KF-91-T-BK SATA Mobile Rack Tray
Sony CD/DVD-RW DWQ120AB2

Whiteboard: (none) => 5alpha2

David Walser 2014-10-26 16:11:48 CET

Assignee: bugsquad => mageia

Comment 2 Theodoros Kalamatianos 2014-11-10 22:57:04 CET
*** Bug 14498 has been marked as a duplicate of this bug. ***

CC: (none) => thkala

Comment 3 Matt Blank 2014-12-01 07:06:54 CET
It's segfaulting on Ubuntu 14.10 using a Logitech C920 also.

CC: (none) => electromage

Comment 4 Samuel Verschelde 2015-05-16 19:00:10 CEST
Is this bug still present?
Samuel Verschelde 2015-05-16 19:00:18 CEST

Keywords: (none) => NEEDINFO

Comment 5 William Kenney 2015-05-16 19:35:23 CEST
Created attachment 6562 [details]
guvcview segmentation fault on launch

(In reply to Samuel VERSCHELDE from comment #4)
> Is this bug still present?

Yup.
Samuel Verschelde 2015-05-16 20:48:21 CEST

Whiteboard: 5alpha2 => MGA5TOO

Sander Lepik 2015-05-17 11:30:02 CEST

Keywords: NEEDINFO => (none)
CC: (none) => mageia

Comment 6 Florian Hubold 2015-06-27 12:30:26 CEST
Similar issue was reported against guvcview 1.7.1 upstream where it segfaulted as it sometimes tries to open the first video device under /dev (/dev/video0) which may not be a webcam: https://sourceforge.net/p/guvcview/tickets/3/


Maybe you can check if there are other video devices there via
ls -al /dev/video*
and report this new segfault upstream. Actually from what I understood it should ask which video device to use if multiple ones are found, but that dialog doesn't pop up always. But it could be chosen via
guvcview -d /dev/video1 (for example).

Also try via 
LC_ALL=C guvcview --verbose
to get verbose output.
Here it looks like this when not finding any video device, for comparison

LC_ALL=C guvcview --verbose
guvcview 1.7.3
file guvcview_video.mkv has extension type 1
file guvcview_image.jpg has extension type 0
file guvcview_image.jpg has extension type 0
Video file suffix detected: 0
Image file suffix detected: 0
video_device: /dev/video0
vid_sleep: 0
cap_meth: 1
resolution: 640 x 480
windowsize: 560 x 560
default action: 0
mode: mjpg
fps: 1/25
Display Fps: 0
bpp: 0
hwaccel: 1
vid_codec: 8
sound: 1
sound Device: 0
sound samp rate: 0
sound Channels: 0
Sound delay: 0 nanosec
Sound Format: 80 
Pan Step: 2 degrees
Tilt Step: 2 degrees
Video Filter Flags: 0
image inc: 1
profile(default):/home/doktor5000/default.gpfl
starting portaudio...
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:947:(find_matching_chmap) Found no matching channel map
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
language catalog=> dir:/usr/share/locale type:C lang:de_DE.UTF-8 cat:guvcview.mo
Screen resolution is (1920 x 1200)
mjpg: setting format to MJPG
capture method = 1
video device: /dev/video0 
unable to detect video devices on your system (0)
ERROR opening V4L interface: No such file or directory
Init video returned -1
free audio mutex
VIDIOC_REQBUFS - Failed to delete buffers: Inappropriate ioctl for device (errno 25)
closed v4l2 strutures
free controls - vidState
cleaned allocations - 100%
Closing portaudio ...OK
Terminated.



It may be necessary to switch to new guvcview branch 2.0.x which the author recommends, see
https://sourceforge.net/p/guvcview/tickets/18/
https://sourceforge.net/p/guvcview/tickets/14/
https://sourceforge.net/p/guvcview/tickets/13/

CC: (none) => doktor5000

Comment 7 Marja Van Waes 2015-10-12 16:38:17 CEST
reassigning to BugSquad, because "nobody maintains guvcview now.

also CC'ing two guvcview-committers

CC: (none) => fundawang, marja11, rverschelde
Assignee: mageia => bugsquad

Comment 8 Chris Denice 2015-12-14 18:43:55 CET
*** Bug 17310 has been marked as a duplicate of this bug. ***

CC: (none) => jm.81000

Comment 9 Chris Denice 2015-12-15 00:28:26 CET
Hello there,
I have uploaded an upgraded package of guvcview version 2.0.2 for Mageia 5 in updates/testing. An upgrade was the easiest thing to do as this package was no longer maintained for a while.

You can test it if you have a "uvc" webcam by installing it and typing:

guvcview

in a terminal. A window should appear with various menus. If this is the case, then that's ok, the segfault is fixed (that's the case on my machine, and it works meaning you can see through your webcam).

Suggested advisory:
========================

Upgraded guvcview packages to fix a segmentation fault when the program was started.

========================

Updated packages in core/updates_testing:
========================
guvcview-2.0.2-1.mga5.x86_64.rpm
lib(64)gviewaudio1-2.0.2-1.mga5.x86_64.rpm
lib(64)gviewaudio-devel-2.0.2-1.mga5.x86_64.rpm
lib(64)gviewencoder1-2.0.2-1.mga5.x86_64.rpm
lib(64)gviewencoder-devel-2.0.2-1.mga5.x86_64.rpm
lib(64)gviewrender1-2.0.2-1.mga5.x86_64.rpm
lib(64)gviewrender-devel-2.0.2-1.mga5.x86_64.rpm
lib(64)gviewv4l2core1-2.0.2-1.mga5.x86_64.rpm
lib(64)gviewv4l2core-devel-2.0.2-1.mga5.x86_64.rpm

CC: (none) => eatdirt
Hardware: i586 => All
Assignee: bugsquad => qa-bugs

David Walser 2015-12-15 01:30:16 CET

Version: Cauldron => 5
Whiteboard: MGA5TOO => (none)

Comment 10 Rémi Verschelde 2015-12-15 07:43:13 CET
Testing on Mageia 5 x86_64, I can confirm that the initial version segfaults, and the update candidate works fine. The GUI shows up, the webcam records properly, and I played around with a few parameters and could see them work (looks way better than qv4l2 btw, I'll keep it around :D).

Whiteboard: (none) => has_procedure MGA5-64-OK

Rémi Verschelde 2015-12-15 07:45:50 CET

Whiteboard: has_procedure MGA5-64-OK => has_procedure MGA5-64-OK advisory

Comment 11 William Kenney 2015-12-15 17:53:10 CET
On real hardware, M3, KDE, 32-bit

Package(s) under test:
guvcview

default install of guvcview

[root@localhost wilcal]# uname -a
Linux localhost 4.1.13-server-2.mga5 #1 SMP Wed Nov 11 01:51:29 UTC 2015 i686 i686 i686 GNU/Linux
[root@localhost wilcal]# urpmi guvcview
Package guvcview-1.7.3-3.mga5.i586 is already installed

Connect USB webcam

[wilcal@localhost ~]$ guvcview
guvcview 1.7.3
file guvcview_video.mkv has extension type 1
file guvcview_image.jpg has extension type 0
file guvcview_image.jpg has extension type 0
.....
.....
.....
Segmentation fault

[wilcal@localhost ~]$ kamoso ( works just fine )

install guvcview from updates_testing

[root@localhost wilcal]# urpmi guvcview
Package guvcview-2.0.2-1.mga5.i586 is already installed

guvcview launches just fine from a terminal or from its desktop icon
Comment 12 William Kenney 2015-12-15 17:54:03 CET
This update works fine.
Testing complete for MGA5, 32-bit & 64-bit
Validating the update.
Could someone from the sysadmin team push to updates.
Thanks

Keywords: (none) => validated_update
Whiteboard: has_procedure MGA5-64-OK advisory => has_procedure MGA5-32-OK MGA5-64-OK advisory
CC: (none) => sysadmin-bugs

Comment 13 Chris Denice 2015-12-16 10:18:34 CET
Great, thanks for the tests. I'll take maintainer-ship of it since I know it a bit now.
cheers.
Comment 14 Rémi Verschelde 2015-12-16 10:21:33 CET
(In reply to Chris Denice from comment #13)
I'll take maintainer-ship of it since I know it a bit now.

Awesome, thanks! :)
Comment 15 Mageia Robot 2015-12-16 22:01:47 CET
An update for this issue has been pushed to Mageia Updates repository.

http://advisories.mageia.org/MGAA-2015-0206.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.