/usr/lib/checkbox/bin/camera_test:KeyError:/usr/share/checkbox/scripts/camera_test@558:detect:_supported_resolutions_to_string

Bug #1235426 reported by errors.ubuntu.com bug bridge on 2013-10-04
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Provider for Plainbox - Checkbox
Low
Zygmunt Krynicki
plainbox-provider-checkbox (Ubuntu)
Undecided
Unassigned

Bug Description

The Ubuntu Error Tracker has been receiving reports about a problem regarding checkbox. This problem was most recently seen with version 0.16.6, the problem page at https://errors.ubuntu.com/problem/dcf5bd49c03f68dc8e3c27bcb55f04b734730d4e contains more details.

Related branches

Daniel Manrique (roadmr) wrote :

Traceback (most recent call last):
  File "/usr/share/checkbox/scripts/camera_test", line 558, in <module>
    sys.exit(getattr(camera, args.test)())
  File "/usr/share/checkbox/scripts/camera_test", line 207, in detect
    self._supported_resolutions_to_string(resolutions).replace(
  File "/usr/share/checkbox/scripts/camera_test", line 312, in _supported_resolutions_to_string
    for res in resolution['resolutions']:
KeyError: 'resolutions'

It could be related to a localization problem but I'm not sure. Of the 5 instances logged last month, one has en_CA (English/Canada) locale which shouldn't have localization issues. There are two Russian, one Chinese and one Portuguese.

Daniel Manrique (roadmr) on 2013-10-04
tags: added: scripts
Zygmunt Krynicki (zyga) on 2014-04-23
affects: checkbox → plainbox-provider-checkbox
Zygmunt Krynicki (zyga) wrote :

Having looked at the code it's definitely not a localization problem as we add all the data to the dictionary there ourselves.

Zygmunt Krynicki (zyga) wrote :

The sequence of operations there is a little confusing but I think there's a way for one loop to run zero iterations to cause this effect

Zygmunt Krynicki (zyga) wrote :

Found it, patch in progress

Changed in plainbox-provider-checkbox:
status: New → In Progress
importance: Undecided → Low
assignee: nobody → Zygmunt Krynicki (zkrynicki)
milestone: none → 0.6
Changed in plainbox-provider-checkbox:
milestone: 0.6 → 0.7
Changed in plainbox-provider-checkbox:
status: In Progress → Fix Committed
milestone: 0.7 → 0.6
Changed in plainbox-provider-checkbox:
status: Fix Committed → Fix Released
affects: checkbox (Ubuntu) → plainbox-provider-checkbox (Ubuntu)
Changed in plainbox-provider-checkbox (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers