Using the View Report button causes Checkbox-qt to behave and exit abnormally

Bug #956307 reported by Daniel Manrique on 2012-03-15
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox
Undecided
Tiago Salem Herrmann

Bug Description

This tested on Checkbox 0.13.4.

Steps to reproduce:

1- Launch checkbox-qt
2- Deselect all tests
3- Select only "hotkey tests" (to do a quick test run)
4- Press "Start testing" and select "yes" on all tests
5- Click on 'View results'.
6- Close the browser that opens.
7- Exit checkbox-qt by closing the window.

Expected results:
- Browser opens to view the report
- No errors are logged
- Upon exit, a .cache/checkbox/plugins.bpickle with some configuration information remains.

Actual results:
- Browser does open correctly
- Trace 1 as shown below appears in the log file.
- When closing checkbox-qt, the plugins.bpickle file disappears and trace 2 (see further down below) appears in the logfile.

This keeps checkbox-qt from correctly remembering some user preferences, such as whether to resume or restart the run, and the abnormal exiting can cause unpredictable results.

TRACE 1:
2012-03-15 14:54:14,216 ERROR Exception in handler for D-Bus signal:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 214, in maybe_handle_message
    self._handler(*args, **kwargs)
  File "/home/roadmr/Documents/checkboxes/checkbox/trunk/checkbox_qt/qt_interface.py", line 66, in onReviewTestsClicked
    self.show_url(self.report_url)
  File "/home/roadmr/Documents/checkboxes/checkbox/trunk/checkbox/user_interface.py", line 190, in show_url
    sys.exit(0)
SystemExit: 0

TRACE 2:
OSError: [Errno 2] No such file or directory: '/tmp/checkboxYxs5Pl'
2012-03-15 14:56:49,173 ERROR Error running reactor.
Traceback (most recent call last):
  File "/home/roadmr/Documents/checkboxes/checkbox/trunk/checkbox/application.py", line 52, in run
    self.reactor.run()
  File "/home/roadmr/Documents/checkboxes/checkbox/trunk/checkbox/reactor.py", line 112, in run
    self.fire("stop")
  File "/home/roadmr/Documents/checkboxes/checkbox/trunk/checkbox/reactor.py", line 74, in fire
    results.append(handler(*args, **kwargs))
  File "./plugins/persist_info.py", line 60, in save
    self.persist.save()
  File "/home/roadmr/Documents/checkboxes/checkbox/trunk/checkbox/contrib/persist.py", line 136, in save
    os.rename(filepath, filepath+".old")
  File "./plugins/lock_prompt.py", line 69, in handler
    self._manager.reactor.stop_all()
  File "/home/roadmr/Documents/checkboxes/checkbox/trunk/checkbox/reactor.py", line 118, in stop_all
    raise StopAllException
StopAllException

Related branches

Daniel Manrique (roadmr) on 2012-03-15
Changed in checkbox:
milestone: none → 0.13.5
Changed in checkbox:
assignee: nobody → Tiago Salem Herrmann (tiagosh)
status: New → In Progress
Daniel Manrique (roadmr) on 2012-03-20
Changed in checkbox:
status: In Progress → Fix Committed
Ara Pulido (ara) on 2012-03-22
Changed in checkbox:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers