camera/multiple-resolution-images fails with obscure errors

Bug #1435402 reported by Chris Gregan
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox Provider - Base
Fix Released
High
Po-Hsu Lin

Bug Description

Build Version/Date: Checkbox-ng 0.16~ppa~ubuntu14.04.1
Environment used for testing: Dell Tulip 14.04: https://certification.canonical.com/hardware/201501-16351/submission/102212/

Summary:
The Multiple resolutions script fails in this test run and returns errors that are not human readable. It seems a resolution analysis fails, but the error does not say which one or really why. We should rework the failure output of this script to better report reasons for failure.

It was also noted that the files the script saves for analysis are kept in tmp, and they should really be in the session files for later analysis.

Steps to Reproduce:
Run camera/multiple-resolution-images on Tulip 17 BDW 201501-16351

Expected result:
1) If resolution test fails, error reported should be which one and why

Actual result:
libv4l2: error got 4 consecutive frame decode errors, last error: v4l-convert: error resolution is not a multiple of dctsizeFailed to validate image /tmp/camera_test_MJPG960x540fsiybuvb.jpg

Related branches

Changed in plainbox-provider-checkbox:
milestone: none → 0.20
Changed in plainbox-provider-checkbox:
milestone: 0.20 → future
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

This issue could be found on 201501-16341, a 15.04 SRU system.

Changed in plainbox-provider-checkbox:
status: New → Confirmed
Po-Hsu Lin (cypressyew)
tags: added: 201501-16341 taipei-lav
tags: added: taipei-lab
removed: taipei-lav
Po-Hsu Lin (cypressyew)
Changed in plainbox-provider-checkbox:
assignee: nobody → Po-Hsu Lin (cypressyew)
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

I found one interesting thing after print out the command from camera_test script, I found that it will try to use a "MJPG" palette, the printed command looks like this:
fswebcam -v -D 1 -S 50 --no-banner -d /dev/video0 -r 1280x720 /tmp/camera_test_MJPG1280x720injjhd48.jpg -p MJPG

However, if you copy and run this line on the very same machine, fswebcam will complain that this option does not exist:
Unrecognised palette format "MJPG". Supported formats:
PNG
JPEG
MJPEG

not sure why it could work with the script.

Po-Hsu Lin (cypressyew)
Changed in plainbox-provider-checkbox:
status: Confirmed → In Progress
importance: Undecided → High
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

OK, I found the reason why it could work with the script even we provided an unrecognized palette, we have a fallback method that would use gstreamer to capture the picture when fswebcam fail to do its job.

And when it try to use v4l2src to capture image, it fail with resolution 960x540 and raising this issue.

Po-Hsu Lin (cypressyew)
Changed in plainbox-provider-checkbox:
milestone: future → 0.22
Po-Hsu Lin (cypressyew)
Changed in plainbox-provider-checkbox:
status: In Progress → Fix Committed
Changed in plainbox-provider-checkbox:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.