Opened 6 years ago

Closed 6 years ago

#2338 closed defect (fixed)

"surface cap false": local variable 'update' referenced before assignment

Reported by: yazan.abbas@… Owned by: Tom Goddard
Priority: normal Milestone:
Component: Surface Version:
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

The following bug report has been submitted:
Platform:        Linux-4.15.0-55-generic-x86_64-with-debian-stretch-sid
ChimeraX Version: 0.91 (2019-08-13)
Description
error when turning on/off surface cap

Log:
UCSF ChimeraX version: 0.91 (2019-08-13)  
© 2016-2019 Regents of the University of California. All rights reserved.  
How to cite UCSF ChimeraX  

> open /home/yazan/Dropbox/Abbas_etal_2019_brainV-
ATPase/Figures/FigureS9_cring_in_rotstate2and3/figS9_2.cxs format session

opened ChimeraX session  

> volume #7-15 style surface surfaceSmoothing true smoothingIterations 4
smoothingFactor 0.5 subdivideSurface true subdivisionLevels 1 smoothLines true
squareMesh true dimTransparency true meshLighting true

> color a1 #8ef826

> color b1 #9d42bf

> color cring1 #f4b0ef

> color d1 #96cff7

> color e1 #3465a4

> color f1 #CC0000

> color Ac451 #B2B2FF

Expected a collection of one of 'All', 'atoms', 'bonds', 'cartoons',
'pseudobonds', 'ribbons', 'rings', or 'surfaces' or a keyword  

> color a2 #8ef826

> color b2 #9d42bf

> color cring2 #f4b0ef

> color d2 #96cff7

> color e2 #3465a4

> color f2 #CC0000

> color Ac452 #B2B2FF

> color PRR2 #edd400

> color a3 #8ef826

> color b3 #9d42bf

> color cring3 #f4b0ef

> color d3 #96cff7

> color e3 #3465a4

> color f3 #CC0000

> color Ac453 #B2B2FF

> color PRR3 #edd400

> surface dust #4-15 size 40

> show a1 target c

> hide antdtohide target c

> show e1 target c

> show f1 target c

> lighting gentle shadows true intensity 0.2 qualityOfShadows normal direction
0,0,-1 multiShadow 512

> lighting gentle shadows true intensity 0.2 qualityOfShadows normal direction
0,0,-1 multiShadow 256

> lighting gentle shadows true intensity 0.2 qualityOfShadows normal direction
0,0,-1 multiShadow 128

> lighting soft shadows true intensity 0.2 qualityOfShadows normal direction
0,0,-1 multiShadow 128

> lighting soft shadows true intensity 0.2 qualityOfShadows normal direction
0,0,-1 multiShadow 256

> set silhouetteWidth 5

> save image /home/yazan/Dropbox/Abbas_etal_2019_brainV-
ATPase/Figures/FigureS9_cring_in_rotstate2and3/output/top1.png width 3600
height 3600 transparentBackground true

> lighting gentle shadows true intensity 0.2 qualityOfShadows normal direction
0,0,-1 multiShadow 1024

> lighting gentle shadows true intensity 0.1 qualityOfShadows normal direction
0,0,-1 multiShadow 1024

> lighting gentle shadows true intensity 0.1 qualityOfShadows normal direction
0,0,-1 multiShadow 512

> lighting gentle shadows true intensity 0.2 qualityOfShadows normal direction
0,0,-1 multiShadow 512

> lighting gentle shadows true intensity 0.1 qualityOfShadows normal direction
0,0,-1 multiShadow 512

> lighting gentle shadows true intensity 0.1 qualityOfShadows normal direction
0,0,-1 multiShadow 256

> save image /home/yazan/Dropbox/Abbas_etal_2019_brainV-
ATPase/Figures/FigureS9_cring_in_rotstate2and3/output/top1.png width 3600
height 3600 transparentBackground true

> hide a1 target c

> hide e1 target c

> hide f1 target c

> hide surfaces

> hide cring1 target c

> select up

1147 atoms, 1169 bonds, 2 models selected  

> hide sel cartoons

> save image /home/yazan/Dropbox/Abbas_etal_2019_brainV-
ATPase/Figures/FigureS9_cring_in_rotstate2and3/output/top1_2.png width 3600
height 3600 transparentBackground true

Unknown command: silhouetteD  

> set silhouetteDepthJump 0.03

> set silhouetteDepthJump 0.01

> set silhouetteDepthJump 0.02

> set silhouetteDepthJump 0.03

> save image /home/yazan/Dropbox/Abbas_etal_2019_brainV-
ATPase/Figures/FigureS9_cring_in_rotstate2and3/output/top1_2.png width 3600
height 3600 transparentBackground true

> view list

Named views: side1, side1_2, side2, side2_2, side3, side3_2, top1, top2, top3  

> view side1

> show d1 target c

> view list

Named views: side1, side1_2, side2, side2_2, side3, side3_2, top1, top2, top3  

> view side1

> surface dust #4-15 size 40

> hide #!15 models

> hide #!14 models

> hide #!13 models

> hide #!12 models

> hide #!11 models

> show #!11 models

> hide #!9 models

> hide #!8 models

> hide #!11 models

> show cring1 target s

Exception ignored in: <function Buffer.__del__ at 0x7f57f81a0cb0>  
Traceback (most recent call last):  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/core/graphics/opengl.py", line 2441, in __del__  
% self.shader_variable_name)  
chimerax.core.graphics.opengl.OpenGLError: OpenGL buffer "None" was not
deleted before core.graphics.Buffer destroyed  
Exception ignored in: <function Buffer.__del__ at 0x7f57f81a0cb0>  
Traceback (most recent call last):  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/core/graphics/opengl.py", line 2441, in __del__  
% self.shader_variable_name)  
chimerax.core.graphics.opengl.OpenGLError: OpenGL buffer "None" was not
deleted before core.graphics.Buffer destroyed  
Exception ignored in: <function Buffer.__del__ at 0x7f57f81a0cb0>  
Traceback (most recent call last):  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/core/graphics/opengl.py", line 2441, in __del__  
% self.shader_variable_name)  
chimerax.core.graphics.opengl.OpenGLError: OpenGL buffer "None" was not
deleted before core.graphics.Buffer destroyed  

> select up

1182 atoms, 1201 bonds, 10 models selected  
Exception ignored in: <function Buffer.__del__ at 0x7f57f81a0cb0>  
Traceback (most recent call last):  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/core/graphics/opengl.py", line 2441, in __del__  
% self.shader_variable_name)  
chimerax.core.graphics.opengl.OpenGLError: OpenGL buffer "None" was not
deleted before core.graphics.Buffer destroyed  

> select up

1797 atoms, 1823 bonds, 10 models selected  

> select up

5775 atoms, 5869 bonds, 10 models selected  

> hide sel surfaces

> select clear

Expected a keyword  

> clip off

> select up

349 atoms, 360 bonds, 2 models selected  

> select up

1503 atoms, 1537 bonds, 2 models selected  

> select down

349 atoms, 360 bonds, 2 models selected  

> select up

1503 atoms, 1537 bonds, 2 models selected  

> select down

349 atoms, 360 bonds, 2 models selected  

> select up

1503 atoms, 1537 bonds, 2 models selected  

> select down

356 atoms, 360 bonds, 2 models selected  

> show b1 target s

Exception ignored in: <function Buffer.__del__ at 0x7f57f81a0cb0>  
Traceback (most recent call last):  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/core/graphics/opengl.py", line 2441, in __del__  
% self.shader_variable_name)  
chimerax.core.graphics.opengl.OpenGLError: OpenGL buffer "None" was not
deleted before core.graphics.Buffer destroyed  

> hide sel surfaces

> select clear

> select #1.29/c9:155@CG

1 atom, 1 model selected  
Exception ignored in: <function Buffer.__del__ at 0x7f57f81a0cb0>  
Traceback (most recent call last):  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/core/graphics/opengl.py", line 2441, in __del__  
% self.shader_variable_name)  
chimerax.core.graphics.opengl.OpenGLError: OpenGL buffer "None" was not
deleted before core.graphics.Buffer destroyed  

> select clear

> select #1.24/c4:13@CD1

1 atom, 1 model selected  
Exception ignored in: <function Buffer.__del__ at 0x7f57f81a0cb0>  
Traceback (most recent call last):  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/core/graphics/opengl.py", line 2441, in __del__  
% self.shader_variable_name)  
chimerax.core.graphics.opengl.OpenGLError: OpenGL buffer "None" was not
deleted before core.graphics.Buffer destroyed  

> select up

11 atoms, 11 bonds, 2 models selected  

> select up

243 atoms, 246 bonds, 2 models selected  

> select up

1068 atoms, 1083 bonds, 2 models selected  

> hide sel surfaces

> show #1.28/c8 target c

> toolshed show "Side View"

> view list

Named views: side1, side1_2, side2, side2_2, side3, side3_2, top1, top2, top3  

> view name side1_3

> set silhouetteDepthJump 0.02

> save image /home/yazan/Dropbox/Abbas_etal_2019_brainV-
ATPase/Figures/FigureS9_cring_in_rotstate2and3/output/side1.png width 3600
height 3600 transparentBackground true

> hide surfaces

> select up

1927 atoms, 1950 bonds, 5 models selected  

> select up

4969 atoms, 5065 bonds, 5 models selected  

> hide sel cartoons

> save image /home/yazan/Dropbox/Abbas_etal_2019_brainV-
ATPase/Figures/FigureS9_cring_in_rotstate2and3/output/side1_2.png width 3600
height 3600 transparentBackground true

> show sel cartoons

> select clear

> select up

634 atoms, 639 bonds, 2 models selected  

> select up

1068 atoms, 1083 bonds, 2 models selected  

> hide sel cartoons

> save image /home/yazan/Dropbox/Abbas_etal_2019_brainV-
ATPase/Figures/FigureS9_cring_in_rotstate2and3/output/side1_2.png width 3600
height 3600 transparentBackground true

> select #1.20/b:25

6 atoms, 5 bonds, 1 model selected  

> select up

356 atoms, 367 bonds, 2 models selected  

> show b1 target s

Exception ignored in: <function Buffer.__del__ at 0x7f57f81a0cb0>  
Traceback (most recent call last):  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/core/graphics/opengl.py", line 2441, in __del__  
% self.shader_variable_name)  
chimerax.core.graphics.opengl.OpenGLError: OpenGL buffer "None" was not
deleted before core.graphics.Buffer destroyed  

> hide sel surfaces

> select clear

> show cring1 target s

> select up

47 atoms, 44 bonds, 10 models selected  

> select up

810 atoms, 815 bonds, 10 models selected  

> select up

5340 atoms, 5415 bonds, 10 models selected  

> hide sel surfaces

> view list

Named views: side1, side1_2, side1_3, side2, side2_2, side3, side3_2, top1,
top2, top3  

> view side1_3

> select clear

> show a1 target c

> hide a1 target c

> view list

Named views: side1, side1_2, side1_3, side2, side2_2, side3, side3_2, top1,
top2, top3  

> view top2

> select S

1017 atoms, 96 models selected  
Exception ignored in: <function Buffer.__del__ at 0x7f57f81a0cb0>  
Traceback (most recent call last):  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/core/graphics/opengl.py", line 2441, in __del__  
% self.shader_variable_name)  
chimerax.core.graphics.opengl.OpenGLError: OpenGL buffer "None" was not
deleted before core.graphics.Buffer destroyed  
Exception ignored in: <function Buffer.__del__ at 0x7f57f81a0cb0>  
Traceback (most recent call last):  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/core/graphics/opengl.py", line 2441, in __del__  
% self.shader_variable_name)  
chimerax.core.graphics.opengl.OpenGLError: OpenGL buffer "None" was not
deleted before core.graphics.Buffer destroyed  
Exception ignored in: <function Buffer.__del__ at 0x7f57f81a0cb0>  
Traceback (most recent call last):  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/core/graphics/opengl.py", line 2441, in __del__  
% self.shader_variable_name)  
chimerax.core.graphics.opengl.OpenGLError: OpenGL buffer "None" was not
deleted before core.graphics.Buffer destroyed  
Exception ignored in: <function Buffer.__del__ at 0x7f57f81a0cb0>  
Traceback (most recent call last):  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/core/graphics/opengl.py", line 2441, in __del__  
% self.shader_variable_name)  
chimerax.core.graphics.opengl.OpenGLError: OpenGL buffer "None" was not
deleted before core.graphics.Buffer destroyed  
Exception ignored in: <function Buffer.__del__ at 0x7f57f81a0cb0>  
Traceback (most recent call last):  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/core/graphics/opengl.py", line 2441, in __del__  
% self.shader_variable_name)  
chimerax.core.graphics.opengl.OpenGLError: OpenGL buffer "None" was not
deleted before core.graphics.Buffer destroyed  
Exception ignored in: <function Buffer.__del__ at 0x7f57f81a0cb0>  
Traceback (most recent call last):  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/core/graphics/opengl.py", line 2441, in __del__  
% self.shader_variable_name)  
chimerax.core.graphics.opengl.OpenGLError: OpenGL buffer "None" was not
deleted before core.graphics.Buffer destroyed  

> hide surfaces

> hide cartoons

> hide cartoons

> hide #!1 models

> show #!2 models

> select clear

> show a2 target c

> hide antdtohide target c

> show b1 target c

> hide b1 target c

> show b2 target c

> select #2.20/b:44

7 atoms, 6 bonds, 1 model selected  

> select up

356 atoms, 367 bonds, 1 model selected  

> show b2 target s

> hide sel bonds

> hide sel surfaces

> select clear

> show cring2 target s

> show cring2 target s

> show cring2 target s

> save session /home/yazan/Dropbox/Abbas_etal_2019_brainV-
ATPase/Figures/FigureS9_cring_in_rotstate2and3/figS9_3.cxs

Traceback (most recent call last):  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/ui/gui.py", line 871, in <lambda>  
save_action.triggered.connect(lambda arg, s=self, sess=session:
s.file_save_cb(sess))  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/ui/gui.py", line 601, in file_save_cb  
self.save_dialog.display(self, session)  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/ui/save_dialog.py", line 138, in display  
fmt.save(session, filename)  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/core/session.py", line 1062, in save  
run(session, cmd)  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/core/commands/run.py", line 31, in run  
results = command.run(text, log=log)  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/core/commands/cli.py", line 2655, in run  
result = ci.function(session, **kw_args)  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/core/session.py", line 956, in save_session  
save(session, filename, **kw)  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/core/commands/save.py", line 61, in save  
fmt.export(session, filename, fmt.nicknames[0], **kw)  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/core/io.py", line 213, in export  
result = self.export_func(session, path, **kw)  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/core/session.py", line 769, in save  
session.save(output, version=version, include_maps=include_maps)  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/core/session.py", line 537, in save  
fserialize(stream, data)  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/core/serialize.py", line 63, in msgpack_serialize  
stream.write(packer.pack(obj))  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/core/safesave.py", line 118, in write  
self._f.write(buf)  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/gzip.py", line 264, in write  
self.fileobj.write(self.compress.compress(data))  
KeyboardInterrupt  
  
KeyboardInterrupt  
  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/gzip.py", line 264, in write  
self.fileobj.write(self.compress.compress(data))  
  
See log for complete Python traceback.  
  

> select clear

> select clear

Traceback (most recent call last):  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/core/updateloop.py", line 121, in _redraw_timer_callback  
def _redraw_timer_callback(self):  
KeyboardInterrupt  
  
KeyboardInterrupt  
  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/core/updateloop.py", line 121, in _redraw_timer_callback  
def _redraw_timer_callback(self):  
  
See log for complete Python traceback.  
  

> select clear

> save session /home/yazan/Dropbox/Abbas_etal_2019_brainV-
ATPase/Figures/FigureS9_cring_in_rotstate2and3/figS9_3.cxs

> show cring2 target s

> hide cring2 target s

> show cring2 target s

> hide cring2 target s

> view list

Named views: side1, side1_2, side1_3, side2, side2_2, side3, side3_2, top1,
top2, top3  

> view top2

> show cring2 target s

> view side1_2

> save /home/yazan/Desktop/image2.png supersample 3

> view top1

> view top1

> view side1

> view top2

> view side2

> view side3

> view side2_2

> view side2

> view side2_2

> view top2

> view top2

> save /home/yazan/Desktop/image3.png supersample 3

> view side1_3

> view side2

> view side2_2

> toolshed show "Side View"

> save /home/yazan/Desktop/image6.png supersample 3

> select clear

> toolshed show "Side View"

> toolshed show "Side View"

> view cofr false

> view

> view orient cofr false

> toolshed show "Side View"

> set bgColor white

> set bgColor gray

> set bgColor black

> set bgColor white

> show selAtoms surfaces

> hide selAtoms surfaces

Expected an objects specifier or a view name or a keyword  

> view list

Named views: side1, side1_2, side1_3, side2, side2_2, side3, side3_2, top1,
top2, top3  

> view top2

> view side2_2

> clip off

> view side2_2

> view side2

> view side2_2

> show cring2 target s

> clip off

> view side2_2

> toolshed show "Side View"

> view list

Named views: side1, side1_2, side1_3, side2, side2_2, side3, side3_2, top1,
top2, top3  

> view side2_2

> clip off

> view side2_2

> clip off

> clip off

> view side2

> view side2_2

> volume selMaps planes z orthoplanes off style solid

> volume #4 orthoplanes xyz positionPlanes 170,170,170 style solid region all

> volume #5 orthoplanes xyz positionPlanes 170,170,170 style solid region all

> volume #6 orthoplanes xyz positionPlanes 170,170,170 style solid region all

> volume #7 orthoplanes xyz positionPlanes 170,170,170 style solid region all

> volume #8 orthoplanes xyz positionPlanes 170,170,170 style solid region all

> volume #9 orthoplanes xyz positionPlanes 170,170,170 style solid region all

> volume #10 orthoplanes xyz positionPlanes 17,14,40 style solid region all

> volume #11 orthoplanes xyz positionPlanes 10,15,41 style solid region all

> volume #12 orthoplanes xyz positionPlanes 16,13,40 style solid region all

> volume #13 orthoplanes xyz positionPlanes 13,16,37 style solid region all

> volume #14 orthoplanes xyz positionPlanes 11,17,37 style solid region all

> volume #15 orthoplanes xyz positionPlanes 21,12,35 style solid region all

> volume selMaps region all orthoplanes off

> volume selMaps projectionMode 2d-xyz

> volume selMaps region all orthoplanes off

> volume selMaps appearance initial

> clip off

> close #4-15

> view list

Named views: side1, side1_2, side1_3, side2, side2_2, side3, side3_2, top1,
top2, top3  

> view side2_2

> color bfactor selAtoms

187443 atoms, 25392 residues, 102 surfaces, atom bfactor range 0.27 to 213  

> hide #!4 models

> hide #!5 models

> show #!5 models

> hide #!6 models

> show #!6 models

> hide #!6 models

> show #!6 models

> show #!4 models

> hide #!5 models

> hide #!6 models

> show #!6 models

> show #!5 models

> save session /home/yazan/Dropbox/Abbas_etal_2019_brainV-
ATPase/Figures/FigureS9_cring_in_rotstate2and3/figS9_cap.cxs

> clip off

> lighting simple

> rainbow selAtoms

> view list

Named views: side1, side1_2, side1_3, side2, side2_2, side3, side3_2, top1,
top2, top3  

> view side2_2

> view side2_2

> view side1_3

> view side2_2

> view side2_2

> view side1_3

> view side2_2

> surface cap true

Traceback (most recent call last):  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/cmd_line/tool.py", line 254, in execute  
cmd.run(cmd_text)  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/core/commands/cli.py", line 2655, in run  
result = ci.function(session, **kw_args)  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/surface/surfacecmds.py", line 307, in surface_cap  
if update:  
UnboundLocalError: local variable 'update' referenced before assignment  
  
UnboundLocalError: local variable 'update' referenced before assignment  
  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/surface/surfacecmds.py", line 307, in surface_cap  
if update:  
  
See log for complete Python traceback.  
  

> surface cap false

Traceback (most recent call last):  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/cmd_line/tool.py", line 254, in execute  
cmd.run(cmd_text)  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/core/commands/cli.py", line 2655, in run  
result = ci.function(session, **kw_args)  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/surface/surfacecmds.py", line 307, in surface_cap  
if update:  
UnboundLocalError: local variable 'update' referenced before assignment  
  
UnboundLocalError: local variable 'update' referenced before assignment  
  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/surface/surfacecmds.py", line 307, in surface_cap  
if update:  
  
See log for complete Python traceback.  
  

> surface cap true

Expected true or false or a keyword  

> surface cap false

Traceback (most recent call last):  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/cmd_line/tool.py", line 254, in execute  
cmd.run(cmd_text)  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/core/commands/cli.py", line 2655, in run  
result = ci.function(session, **kw_args)  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/surface/surfacecmds.py", line 307, in surface_cap  
if update:  
UnboundLocalError: local variable 'update' referenced before assignment  
  
UnboundLocalError: local variable 'update' referenced before assignment  
  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/surface/surfacecmds.py", line 307, in surface_cap  
if update:  
  
See log for complete Python traceback.  
  

> view list

Named views: side1, side1_2, side1_3, side2, side2_2, side3, side3_2, top1,
top2, top3  

> view side3_2

> view side2_2

> view side2_2

> show cring2 target s

> surface cap true

> surface cap false

Traceback (most recent call last):  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/cmd_line/tool.py", line 254, in execute  
cmd.run(cmd_text)  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/core/commands/cli.py", line 2655, in run  
result = ci.function(session, **kw_args)  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/surface/surfacecmds.py", line 307, in surface_cap  
if update:  
UnboundLocalError: local variable 'update' referenced before assignment  
  
UnboundLocalError: local variable 'update' referenced before assignment  
  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/surface/surfacecmds.py", line 307, in surface_cap  
if update:  
  
See log for complete Python traceback.  
  

> surface cap true




OpenGL version: 3.3.0 NVIDIA 418.56
OpenGL renderer: GeForce RTX 2070/PCIe/SSE2
OpenGL vendor: NVIDIA Corporation

Change History (3)

comment:1 by pett, 6 years ago

Component: UnassignedSurface
Owner: set to Tom Goddard
Platform: all
Project: ChimeraX
Status: newassigned
Summary: ChimeraX bug report submission"surface cap false": local variable 'update' referenced before assignment

comment:2 by pett, 6 years ago

Hi Yazan,

Thanks for reporting this problem. This ticket will also probably not get any attention until next week when Tom Goddard returns from vacation.

--Eric

Eric Pettersen
UCSF Computer Graphics Lab

comment:3 by Tom Goddard, 6 years ago

Resolution: fixed
Status: assignedclosed

Fixed.

"surface cap false" did not work unless offset or subdivision specified.

Note: See TracTickets for help on using tickets.