Bug 2299

Summary: guvcview crashes while terminating
Product: Fedora Reporter: Xavier Hourcade <public.oss>
Component: guvcviewAssignee: Thomas Moschny <thomas.moschny>
Status: RESOLVED EXPIRED    
Severity: minor CC: public.oss
Priority: P5    
Version: 16   
Hardware: x86_64   
OS: GNU/Linux   
namespace:
Attachments: ABRT report (logger)
ABRT report (logger) with guvcview-1.5.3-1.fc16.x86_64 from testing
ABRT report (logger) with guvcview-1.5.3-1.fc16.x86_64 from testing
ABRT missing backtrace with guvcview-1.5.3-1.fc16.x86_64 from testing
yum lse
ABRT missing backtrace with guvcview-1.5.3-1.fc16.x86_64 from testing

Description Xavier Hourcade 2012-04-26 15:27:43 CEST
Created attachment 866 [details]
ABRT report (logger)

How to reproduce

	1. Start guvcview normally 
	2. Close either of its two windows

Reproducible

	Always

Actual result

	Crash at close time.
        "Process /usr/bin/guvcview was killed by signal 11 (SIGSEGV)"

Expecting result

	Terminate without crashing

Additional info

	guvcview works fine, apart from this
	Full STDOUT is provided below, attaching ABRT report (logger)
	System installed from F16 KDE spin in January, up to date
	Crash occurs (at least) since April 15th 
	Webcam driver is built from syntekdriver source at sourceforge
 	  (but guvcview is the only software using the webcam and crashing,
 	  others work and close fine eg. Kopete, VLC, Google talkplugin or Skype)

[xaho@venus ~]$ guvcview                                                                           
guvcview 1.5.1                                                                                     
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
video device: /dev/video0 
Init. Syntek USB Video Camera (location: usb-0000:00:1a.7-3)
{ pixelformat = 'RGB3', description = 'rgb24' }
{ ?GSPCA? : width = 480, height = 480 }
fmtind:1 fsizeind: 1
{ pixelformat = 'RGB4', description = 'rgb32' }
   { not supported - request format(876758866) support at http://guvcview.sourceforge.net }
{ pixelformat = 'BGR3', description = 'bgr24' }
{ ?GSPCA? : width = 480, height = 480 }
fmtind:2 fsizeind: 1
{ pixelformat = 'BGR4', description = 'bgr32' }
   { not supported - request format(877807426) support at http://guvcview.sourceforge.net }
{ pixelformat = 'UYVY', description = 'uyvy' }
VIDIOC_ENUM_FRAMESIZES - Error enumerating frame sizes: Inappropriate ioctl for device
  Unable to enumerate frame sizes.
: Inappropriate ioctl for device
{ pixelformat = 'YUYV', description = 'yuyv' }
VIDIOC_ENUM_FRAMESIZES - Error enumerating frame sizes: Inappropriate ioctl for device
  Unable to enumerate frame sizes.
: Inappropriate ioctl for device
{ pixelformat = 'YU12', description = 'YU12' }
{ ?GSPCA? : width = 480, height = 480 }
fmtind:5 fsizeind: 1
{ pixelformat = 'YV12', description = 'YV12' }
{ ?GSPCA? : width = 480, height = 480 }
fmtind:6 fsizeind: 1
vid:174f 
pid:6a31 
driver:stk11xx
checking format: 859981650
Unable to set 1/25 fps
VIDIOC_S_PARM error: Inappropriate ioctl for device
fps is set to 1/30
drawing controls

NEXT_CTRL flag not supported
VIDIOC_G_EXT_CTRLS failed
   using VIDIOC_G_CTRL for user class controls
fps is set to 1/25
Checking video mode 480x480@32bpp : OK 
write /home/xaho/.guvcviewrc OK
Segmentation fault (core dumped)
Comment 1 Thomas Moschny 2012-05-14 10:28:35 CEST
Can you please try guvcview-1.5.3-1.fc16 from testing and see whether it still crashes?
Comment 2 Xavier Hourcade 2012-05-14 18:57:16 CEST
Created attachment 876 [details]
ABRT report (logger) with guvcview-1.5.3-1.fc16.x86_64 from testing

> Can you please try guvcview-1.5.3-1.fc16 from testing and see whether it still
> crashes?

Done, yes it still does.
Attaching new ABRT trace/report.
Comment 3 Xavier Hourcade 2012-05-14 19:28:01 CEST
Created attachment 877 [details]
ABRT report (logger) with guvcview-1.5.3-1.fc16.x86_64 from testing

Sorry for the "ABRT appends", reuploading.

Btw, trace event log keep reporting 4 missing debuginfo packages (see event log).

Here by default I only enable official Fedora repos, any other on-demand only.
So I installed manually the following

# yum UPTDBGFUSF in guvcview-debuginfo

and now get 

# yum lsi guvcview* | grep guvc
guvcview.x86_64           1.5.3-1.fc16 @rpmfusion-free-updates-testing          
guvcview-debuginfo.x86_64 1.5.3-1.fc16 @rpmfusion-free-updates-testing-debuginfo

but re-running the trace still report the 4 same packages as missing.
Comment 4 Thomas Moschny 2012-05-14 19:47:07 CEST
The trace itself is missing.

Regarding the 4 missing build-ids, do you have some extra packages installed?

What does "yum list extras" show?
Comment 5 Xavier Hourcade 2012-05-15 02:34:14 CEST
Created attachment 878 [details]
ABRT missing backtrace with guvcview-1.5.3-1.fc16.x86_64 from testing

> The trace itself is missing.

Oops, ¿what, how? ..indeed.
I should have carefully checked myself, I will accept a blame :)

( FWIW, went through ABRT wizard _again_ where backtrace *is* still accessible, both from its own tab and "click to edit" row on last screen, but hey! nope, "logger" reporter loose it between "now and then" - not included in the created log file. "Oh well", copy/paste always works :)

Anything else missing in there, that could help ?
Comment 6 Xavier Hourcade 2012-05-15 02:47:21 CEST
Created attachment 879 [details]
yum lse

> Regarding the 4 missing build-ids, do you have some extra packages installed?
> What does "yum list extras" show?

Sure, quite a few on this system (with much care, thou).

Like I write, I build the webcam .ko for each kernel.
Could the missing ones be his ?
Comment 7 Xavier Hourcade 2012-05-15 03:18:23 CEST
( fyi cf. ABRT, reported https://bugzilla.redhat.com/show_bug.cgi?id=821576 )
Comment 8 Xavier Hourcade 2012-05-15 07:44:59 CEST
Created attachment 880 [details]
ABRT missing backtrace with guvcview-1.5.3-1.fc16.x86_64 from testing

> Could the missing ones be his ?

Another blame for me, I must be blind :)

Could these decoding/format libs be implicated in such type of (GIU?) crash ?

So, from my trace I identified these atrpms (whose debuginfo repo wasn't set)
  libavcodec53-0.10.2-54.fc16.x86_64
  libavutil51-0.10.2-54.fc16.x86_64
  libx264_118-0.118-17_20111111.2245.fc16.x86_64
  libxavs1-0.1.51-2.fc16.x86_64

and assume they are matched by these:
  fmpeg-debuginfo-0.10.2-54.fc16.x86_64
  x264-debuginfo-0.118-17_20111111.2245.fc16.x86_64
  xavs-debuginfo-0.1.51-2.fc16.x86_64

Defined the repo, did (yum) install xavs ok, but others failed (deps issues).
Attempted to regenerate the trace in ABRT, which succeeded ...the opposite :D
It auto-installed them all, but now points libxavs.so.1 as the last missing (?)

Attached is the resulting trace, looks similar enough :)
Comment 9 Emmanuel Seyman 2013-02-12 01:41:58 CET
This version of Fedora will reach end of life today (2013-02-12) and RPMFusion will no longer be releasing updates for it. This bug will be set to RESOLVED:EXPIRED next week to reflect this.

If the problem persists after upgrading to the latest version of Fedora, please
update the version field of this bug (and re-open it if it has been closed).
Comment 10 Emmanuel Seyman 2013-02-19 03:29:57 CET
Setting to RESOLVED:EXPIRED since RPMFusion is no longer releasing updates for
this version of Fedora.