Opened 7 years ago

Closed 7 years ago

#1218 closed defect (fixed)

can't report a bug

Reported by: Greg Couch Owned by: Tom Goddard
Priority: critical Milestone: 0.8
Component: Infrastructure Version: 0.7
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

And in this case, reporting a bug should not be an option.

When starting ChimeraX on a system that doesn't support OpenGL 3.3 (Oracle VM VirtualBox only support 2.1), the error dialog pops up, with the "Report Bug" button, but it doesn't work. The traceback in the log is:

Traceback (most recent call last):
  File "/home/gregc/chimerax-centos-test/lib/python3.6/site-packages/chimerax/core/toolshed/info.py", line 527, in start_tool
    ti = api._api_caller.start_tool(api, session, self, tool_info)
  File "/home/gregc/chimerax-centos-test/lib/python3.6/site-packages/chimerax/core/toolshed/__init__.py", line 1183, in start_tool
    return cls._get_func(api, "start_tool")(session, ti.name)
  File "/home/gregc/chimerax-centos-test/lib/python3.6/site-packages/chimerax/bug_reporter/__init__.py", line 21, in start_tool
    tool = BugReporter(session, tool_name)
  File "/home/gregc/chimerax-centos-test/lib/python3.6/site-packages/chimerax/bug_reporter/bug_reporter_gui.py", line 111, in __init__
    gi.setText(self.opengl_info())
  File "/home/gregc/chimerax-centos-test/lib/python3.6/site-packages/chimerax/bug_reporter/bug_reporter_gui.py", line 301, in opengl_info
    r.make_current()
  File "/home/gregc/chimerax-centos-test/lib/python3.6/site-packages/chimerax/core/graphics/opengl.py", line 377, in make_current
    return self._opengl_context.make_current()
  File "/home/gregc/chimerax-centos-test/lib/python3.6/site-packages/chimerax/core/graphics/opengl.py", line 119, in make_current
    raise RuntimeError("Context initialization failed, could not make graphics context current")
RuntimeError: Context initialization failed, could not make graphics context current

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/gregc/chimerax-centos-test/lib/python3.6/site-packages/chimerax/log/tool.py", line 250, in _report_a_bug
    show_bug_reporter(self.session)
  File "/home/gregc/chimerax-centos-test/lib/python3.6/site-packages/chimerax/bug_reporter/__init__.py", line 35, in show_bug_reporter
    tool = bi.start_tool(session, tool_name)
  File "/home/gregc/chimerax-centos-test/lib/python3.6/site-packages/chimerax/core/toolshed/info.py", line 533, in start_tool
    "start_tool() failed for tool %s in bundle %s:\n%s" % (tool_name, self.name, str(e)))
chimerax.core.toolshed.ToolshedError: start_tool() failed for tool Bug Reporter in bundle ChimeraX-Bug-Reporter:
Context initialization failed, could not make graphics context current

chimerax.core.toolshed.ToolshedError: start_tool() failed for tool Bug Reporter in bundle ChimeraX-Bug-Reporter:
Context initialization failed, could not make graphics context current

File "/home/gregc/chimerax-centos-test/lib/python3.6/site-packages/chimerax/core/toolshed/info.py", line 533, in start_tool
"start_tool() failed for tool %s in bundle %s:\n%s" % (tool_name, self.name, str(e)))

Change History (2)

comment:1 by Eric Pettersen, 7 years ago

Component: UnassignedInfrastructure
Owner: set to Tom Goddard
Status: newassigned

comment:2 by Tom Goddard, 7 years ago

Resolution: fixed
Status: assignedclosed

Fixed. Don't raise error in bug reporter when getting opengl version if no opengl context.

Still allow reporting a bug since this will let the user give us feedback. The error message saying inadequate OpenGL version and update your driver is clear enough so I don't expect they will report it often.

Note: See TracTickets for help on using tickets.