/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
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox Provider - Base
Fix Released
Low
Zygmunt Krynicki
plainbox-provider-checkbox (Ubuntu)
Fix Released
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.

Tags: scripts saucy

Related branches

Revision history for this message
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)
tags: added: scripts
Zygmunt Krynicki (zyga)
affects: checkbox → plainbox-provider-checkbox
Revision history for this message
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.

Revision history for this message
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

Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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