3D test doesn't exit

Bug #855788 reported by Achim
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Checkbox
Fix Released
High
Jeff Lane 
checkbox (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

As it seems the 3D test doesn't exit, it seems to run forever.
Attached is a text file with some system information.

checkbox:
  Installed: 0.12.8+bzr1060+201109211528~oneiric1
  Candidate: 0.12.8+bzr1060+201109211528~oneiric1
  Version table:
 *** 0.12.8+bzr1060+201109211528~oneiric1 0
        500 http://ppa.launchpad.net/checkbox-dev/ppa/ubuntu/ oneiric/main i386 Packages
        100 /var/lib/dpkg/status
     0.12.7 0
        500 http://archive.ubuntu.com/ubuntu/ oneiric/main i386 Packages

Related branches

Revision history for this message
Achim (ach1m) wrote :
Achim (ach1m)
affects: ubuntu-friendly → checkbox
Revision history for this message
Jeff Lane  (bladernr) wrote :

Hi, thanks for reporting this.

Can you specify which test it was? (In the UI, the name of the test appears in the title bar at the top of the UI window)

If it's the test that runs glxgears (the test name is graphics/glxgears) then the test does require the user to close the gears program.

I think this could certainly stand to be changed... but can you confirm it is the glxgears test you're referring to?

Changed in checkbox:
status: New → Incomplete
Revision history for this message
Jeff Lane  (bladernr) wrote :

assuming this is glxgears, this could easily be fixed with a bit of shell code to auto close the glxgears window...

that's assuming it works at all. On my system, mesa_utils isn't installed by default, so I never get to see this test :( which is odd... I opened a different bug about that earlier.

Changed in checkbox:
importance: Undecided → Medium
importance: Medium → Low
milestone: none → 0.12.8
Revision history for this message
Achim (ach1m) wrote :

Yes it is the test "graphics/glxgears".

If I close the glxgears window I get a message that says:
"Test graphics/glxgears from suite __graphics__ failed. Do you want to report a bug?"
I can choose between "Yes" and "No", If I press "Yes" apport seems to collect some data but no browser window opens.

So I guess glxgears doesn't close cleanly.

Revision history for this message
Jeff Lane  (bladernr) wrote :

If you don't mind... you successfully ran glxgears... do you have mesa_utils installed on your Oneiric system?

Did you install mesa_utils manually?

Can you provide the output of apt-cache policy mesa_utils??

I ask because on my fresh Oneiric installation, mesa_utils is not installed at all, and I can't even try running that test, because it depends on mesa_utils being present.

Revision history for this message
Achim (ach1m) wrote :

Yes mesa_utils is installed. I installed it manually some time ago.

mesa-utils:
  Installed: 8.0.1+git20110129+d8f7d6b-0ubuntu2
  Candidate: 8.0.1+git20110129+d8f7d6b-0ubuntu2
  Version table:
 *** 8.0.1+git20110129+d8f7d6b-0ubuntu2 0
        500 http://archive.ubuntu.com/ubuntu/ oneiric/universe i386 Packages
        100 /var/lib/dpkg/status

If I close glxgears I get the following error:
XIO: fatal IO error 104 (Connection reset by peer) on X server ":0"
      after 459 requests (459 known processed) with 0 events remaining.

I think that is the reason why the test fails.

Revision history for this message
Jeff Lane  (bladernr) wrote :

Yeah, this seems to be the fault of glxgears... happens on Natty too...

Interestingly, on both, if you close the window using the window controls, glxgears and glxheads on both natty and oneiric exit with a 1.

If you do something more creative like this:

kill -2 `pidof glxgears`

you get different exit codes like 131, 129, 147, etc, depending on the signal used to kill glxgears...

Seems like it may be impossible to cleanly exit glxgears :/

Changed in checkbox:
status: Incomplete → Confirmed
Revision history for this message
Jeff Lane  (bladernr) wrote :

setting high because this needs to be dealt with before the final freeze

Changed in checkbox:
status: Confirmed → In Progress
assignee: nobody → Jeff Lane (bladernr)
importance: Low → High
Revision history for this message
Jeff Lane  (bladernr) wrote :

Just pushed a branch that simply removes this test from the default test list.

Achim is correct and everything I tried resulted in strange exit codes.

There IS a perfectly simple solution, and that is changing the test description to add:

"Once you see the gears appear and verity that they are moving, press the Escape (ESC) button to close the test."

Pressing Escape will cleanly close glxgears and return a 0 exit status. ANYTHING but pressing escape will result in a non-zero exit.

A second idea would be to wrap glxgears in some shell code to snag the exit status and simply return 0 every time and let the user manually select Yes or No in the checkbox dialog.

However, both of those ideas, while simple to implement, are moot because mesa-utils has been moved out of main and into Universe, so no Oneiric system will have glxgears installed anyway.

Since we don't require installation of packages from Universe for UF testing, the only viable option is to remove the test all-together and the revisit this in P and try to put in a better test.

Changed in checkbox:
status: In Progress → Fix Committed
Ara Pulido (ara)
Changed in checkbox (Ubuntu):
status: New → Triaged
Ara Pulido (ara)
Changed in checkbox (Ubuntu):
status: Triaged → Fix Released
Changed in checkbox:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Bug attachments

Remote bug watches

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