#843 closed defect (fixed)
3D labeling broken (traceback)
Reported by: | Elaine Meng | Owned by: | Tom Goddard |
---|---|---|---|
Priority: | blocker | Milestone: | |
Component: | Graphics | Version: | |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Notify when closed: | Platform: | all | |
Project: | ChimeraX |
Description
UCSF ChimeraX version: 0.1 (2017-09-15)
OpenGL version: 4.1 NVIDIA-10.17.5 355.10.05.45f01
OpenGL renderer: NVIDIA GeForce GTX 675MX OpenGL Engine
OpenGL vendor: NVIDIA Corporation
open 2gbp
label ligand res
An error occurred in drawing the scene. Redrawing graphics is now stopped to avoid a continuous stream of error messages. To restart graphics use the command "graphics restart" after changing the settings that caused the error.
Traceback (most recent call last):
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/updateloop.py", line 44, in draw_new_frame
view.draw(check_for_changes = False)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/graphics/view.py", line 194, in draw
draw_opaque(r, mdraw)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/graphics/drawing.py", line 1266, in draw_opaque
_draw_multiple(drawings, renderer, identity(), Drawing.OPAQUE_DRAW_PASS)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/graphics/drawing.py", line 1281, in _draw_multiple
d.draw(renderer, place, draw_pass, selected_only)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/graphics/drawing.py", line 606, in draw
self._draw_children(renderer, pp, draw_pass, selected_only)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/graphics/drawing.py", line 637, in _draw_children
d.draw(renderer, place, draw_pass, selected_only)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/graphics/drawing.py", line 606, in draw
self._draw_children(renderer, pp, draw_pass, selected_only)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/graphics/drawing.py", line 637, in _draw_children
d.draw(renderer, place, draw_pass, selected_only)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/label/label3d.py", line 223, in draw
Drawing.draw(self, renderer, place, draw_pass, selected_only)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/graphics/drawing.py", line 606, in draw
self._draw_children(renderer, pp, draw_pass, selected_only)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/graphics/drawing.py", line 637, in _draw_children
d.draw(renderer, place, draw_pass, selected_only)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/label/label3d.py", line 397, in draw
self._update_label_texture() # This needs to be done during draw in case texture delete needed.
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/label/label3d.py", line 416, in _update_label_texture
rgba = text_image_rgba(text, rgba8, s, self.font, app_data_dir)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/label/label2d.py", line 288, in text_image_rgba
ti = QImage(r.width()+2*pad, r.height()+2*pad, QImage.Format_ARGB32)
TypeError: unsupported operand type(s) for +: 'int' and 'str'
Change History (2)
comment:1 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:2 by , 8 years ago
Component: | Unassigned → Graphics |
---|
Fixed.
Broke label code when fixing status line which was using label code to draw text.