Bug 1560707 - cheese crashes with webcam on HD mode
Summary: cheese crashes with webcam on HD mode
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: cheese
Version: 27
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Matthias Clasen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-03-26 19:27 UTC by Ricardo Alonso
Modified: 2018-11-30 22:09 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-11-30 22:09:16 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
guvcview log file (58.94 KB, text/plain)
2018-03-26 19:27 UTC, Ricardo Alonso
no flags Details
lsusb output (6.98 KB, text/plain)
2018-03-26 19:36 UTC, Ricardo Alonso
no flags Details


Links
System ID Private Priority Status Summary Last Updated
GNOME Bugzilla 722165 0 None None None 2018-03-26 19:27:10 UTC

Description Ricardo Alonso 2018-03-26 19:27:11 UTC
Created attachment 1413310 [details]
guvcview log file

Description of problem:
Cheese crashes with the message "There was an error playing the video from the webcam" if the resolution is set to HD (1280x720). With 640x480 works fine. This makes the webcam to not work with several other applications, like flash, and most of the conference systems (bluejeans, blackboard, webex, etc). With Skype it works fine, so the problem could be in one of the shared libraries used. 

Similar bugs can be found in other distributions and also on previous versions.

https://bugzilla.redhat.com/show_bug.cgi?id=1056267 
https://bugzilla.gnome.org/show_bug.cgi?id=722165
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1305306

Version-Release number of selected component (if applicable):
cheese-3.26.0-1.fc27

How reproducible:
Always


Steps to Reproduce:
1. Open cheese
2. Open preferences
3. Set the photo and video resolution to 1280x720 in webcam tab. Click in close.


Actual results:
Image crashes and display the message "There was an error playing the video from the webcam". If the application is set to the hd resolution, it crashes just after opening the main window. 

Expected results:
Show the webcam video on HD. 


Additional info:
$ uname -a
Linux r1.ricardoalonso.local 4.14.18-300.fc27.x86_64 #1 SMP Thu Feb 8 01:35:31 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
]$ cheese 

(cheese:513): Gtk-WARNING **: Theme parsing error: cheese.css:7:35: The style property GtkScrollbar:min-slider-length is deprecated and shouldn't be used anymore. It will be removed in a future version

(cheese:513): Gdk-WARNING **: Native Windows taller than 65535 pixels are not supported
libv4l2: error got 4 consecutive frame decode errors, last error: v4l-convert: libjpeg error: End Of Image

(cheese:513): cheese-WARNING **: Failed to allocate a buffer: gstv4l2src.c(866): gst_v4l2src_create (): /GstCameraBin:camerabin/GstWrapperCameraBinSrc:camera_source/GstBin:bin35/GstV4l2Src:v4l2src1

Also presents the problem whem running guvcview. The log is attached.

Comment 1 Ricardo Alonso 2018-03-26 19:36:00 UTC
Created attachment 1413312 [details]
lsusb output

Comment 2 Gabriel M. Elder 2018-04-23 05:18:07 UTC
+1 for a "me too". Same as the original problem report, cheese works fine with 640x480 resolution. Selecting any higher resolutions results briefly in a partial, but mostly garbled image in the cheese application window image display region, followed by a black/blank image display region containing only the "There was an error playing video from the webcam" error message.

The full text of the relevant error messages I get when launching cheese via terminal are as follows:

"libv4l2: error got 4 consecutive frame decode errors, last error: v4l-convert: libjpeg error: End Of Image

(cheese:5480): cheese-WARNING **: Failed to allocate a buffer: gstv4l2src.c(866): gst_v4l2src_create (): /GstCameraBin:camerabin/GstWrapperCameraBinSrc:camera_source/GstBin:bin35/GstV4l2Src:v4l2src1"

It seems to me that the problem originates in one or more software components that cheese uses and relies upon (gstreamer and/or v4l), and propagates up to the user's face.

FWIW, hardware that I'm seeing this with is a Lenovo EasyCamera built-in webcam with usb id = 13d3:5173, but I suspect that does not matter.

Comment 3 Ricardo Alonso 2018-07-09 08:04:10 UTC
The problem seams to be corrected on F28 with versions:

$ cat /etc/redhat-release 
Fedora release 28 (Twenty Eight)
$ uname -a
Linux r1.ricardoalonso.local 4.17.2-200.fc28.x86_64 #1 SMP Mon Jun 18 20:09:31 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
$ dnf info cheese
Last metadata expiration check: 2 days, 20:22:36 ago on Fri 06 Jul 2018 12:40:14 BST.
Installed Packages
Name         : cheese
Epoch        : 2
Version      : 3.28.0
Release      : 1.fc28
Arch         : x86_64
Size         : 423 k
Source       : cheese-3.28.0-1.fc28.src.rpm
Repo         : @System
From repo    : fedora
Summary      : Application for taking pictures and movies from a webcam
URL          : https://wiki.gnome.org/Apps/Cheese
License      : GPLv2+
Description  : Cheese is a Photobooth-inspired GNOME application for taking pictures and
             : videos from a webcam. It can also apply fancy graphical effects.

Should the bug be closed?

Comment 4 Ben Cotton 2018-11-27 15:01:23 UTC
This message is a reminder that Fedora 27 is nearing its end of life.
On 2018-Nov-30  Fedora will stop maintaining and issuing updates for
Fedora 27. It is Fedora's policy to close all bug reports from releases
that are no longer maintained. At that time this bug will be closed as
EOL if it remains open with a Fedora  'version' of '27'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 27 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 5 Ben Cotton 2018-11-30 22:09:16 UTC
Fedora 27 changed to end-of-life (EOL) status on 2018-11-30. Fedora 27 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


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