Opened 6 years ago

Closed 6 years ago

#2803 closed defect (fixed)

Dead 2D label being updated

Reported by: Elaine Meng Owned by: Eric Pettersen
Priority: normal Milestone:
Component: Graphics Version:
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

The following bug report has been submitted:
Platform:        Darwin-18.7.0-x86_64-i386-64bit
ChimeraX Version: 0.92 (2020-02-04)
Description
I deleted all 2D labels and arrows and then changed background color.

Log:
> open /Users/meng/Desktop/startup.cxc

> alias reset view orient; view initial

> alias start tool show $*

executed startup.cxc  
UCSF ChimeraX version: 0.92 (2020-02-04)  
© 2016-2020 Regents of the University of California. All rights reserved.  
How to cite UCSF ChimeraX  

> open test2.cxc

> open 1gfl

1gfl title:  
Structure of green fluorescent protein [more info...]  
  
Chain information for 1gfl #1  
---  
Chain | Description  
A B | green fluorescent protein  
  
  

> delete /B

> preset pub

Preset expands to these ChimeraX commands:

    
    
    set bg white
    graphics silhouettes t

  

> 2dlabels text "Green Fluorescent Protein" color light sea green size 26 xpos
> .03 ypos .92

> 2dlabels #2 ypos .03 size 40 frames 60

> wait 90

executed test2.cxc  

> windowsize 800 800

> windowsize

window size 571 364  

> windowsize 600 400

> close

> open /Users/meng/Desktop/test2.cxc

> open 1gfl

1gfl title:  
Structure of green fluorescent protein [more info...]  
  
Chain information for 1gfl #1  
---  
Chain | Description  
A B | green fluorescent protein  
  
  

> delete /B

> preset pub

Preset expands to these ChimeraX commands:

    
    
    set bg white
    graphics silhouettes t

  

> windowsize 600 400

> 2dlabels text "Green Fluorescent Protein" color light sea green size 26 xpos
> .03 ypos .92

> 2dlabels #2 ypos .03 size 40 frames 60

> wait 90

executed test2.cxc  

> 2dlabels #2 text "Fading now..." visibility false frames 100

> wait 100

> 2dlabels #2 text "here's an arrow" visibility true

> 2dlabels arrow start .6,.1 end .9,.1 color red

> 2dlabels arrow #3 start .5,.05 end .9,.1 color red

> 2dlabels arrow #3 start .5,.06 end .9,.1 color red

> 2dlabels arrow #3 start .5,.075 end .9,.1 color red

> 2dlabels arrow #3 start .5,.075 end .9,.2 color red

> close

> open test2.cxc

> open 1gfl

1gfl title:  
Structure of green fluorescent protein [more info...]  
  
Chain information for 1gfl #1  
---  
Chain | Description  
A B | green fluorescent protein  
  
  

> delete /B

> preset pub

Preset expands to these ChimeraX commands:

    
    
    set bg white
    graphics silhouettes t

  

> windowsize 600 400

> 2dlabels text "Green Fluorescent Protein" color light sea green size 26 xpos
> .03 ypos .92

> 2dlabels #2 ypos .03 size 40 frames 60

> wait 90

Invalid "text" argument: incomplete quoted text  

> 2dlabels #2 text "here's an arrow"

Invalid "text" argument: incomplete quoted text  

> close

> open /Users/meng/Desktop/test2.cxc

> open 1gfl

1gfl title:  
Structure of green fluorescent protein [more info...]  
  
Chain information for 1gfl #1  
---  
Chain | Description  
A B | green fluorescent protein  
  
  

> delete /B

> preset pub

Preset expands to these ChimeraX commands:

    
    
    set bg white
    graphics silhouettes t

  

> windowsize 600 400

> 2dlabels text "Green Fluorescent Protein" color light sea green size 26 xpos
> .03 ypos .92

> 2dlabels #2 ypos .03 size 40 frames 60

> wait 90

> 2dlabels #2 text "here's an arrow"

> 2dlabels arrow start .5,.075 end .9,.2 color red

> 2dlabels #2 text Fading... visibility false frames 100

> 2dlabels arrow #3 visibility false frames 100

> wait 100

> 2dlabels delete #2,3

executed test2.cxc  

> close

> open test2.cxc

> open 1gfl

1gfl title:  
Structure of green fluorescent protein [more info...]  
  
Chain information for 1gfl #1  
---  
Chain | Description  
A B | green fluorescent protein  
  
  

> delete /B

> preset pub

Preset expands to these ChimeraX commands:

    
    
    set bg white
    graphics silhouettes t

  

> windowsize 600 400

> 2dlabels text "Green Fluorescent Protein" color light sea green size 26 xpos
> .03 ypos .92

> 2dlabels #2 ypos .03 size 40 frames 60

> wait 90

> 2dlabels #2 text "here's an arrow"

> 2dlabels arrow start .5,.075 end .9,.2 color red

> wait 100

> 2dlabels #2 text Fading... visibility false frames 100

> 2dlabels arrow #3 visibility false frames 100

> wait 100

> 2dlabels delete #2,3

executed test2.cxc  

> close

> open test2.cxc

> open 1gfl

1gfl title:  
Structure of green fluorescent protein [more info...]  
  
Chain information for 1gfl #1  
---  
Chain | Description  
A B | green fluorescent protein  
  
  

> delete /B

> preset pub

Preset expands to these ChimeraX commands:

    
    
    set bg white
    graphics silhouettes t

  

> windowsize 600 400

> 2dlabels text "Green Fluorescent Protein" color light sea green size 26 xpos
> .03 ypos .92

> 2dlabels #2 ypos .03 size 40 frames 60

> wait 90

> 2dlabels #2 text "here's an arrow"

> 2dlabels arrow start .5,.075 end .9,.2 color red

> wait 100

> 2dlabels #2 text Fading... visibility false frames 100

> 2dlabels arrow #3 visibility false frames 100

> wait 100

> 2dlabels delete #2,3

executed test2.cxc  

> set bgColor black

Traceback (most recent call last):  
File
"/Users/meng/Desktop/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/triggerset.py", line 130, in invoke  
return self._func(self._name, data)  
File
"/Users/meng/Desktop/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/label/label2d.py", line 425, in _background_color_changed  
l.update_drawing()  
File
"/Users/meng/Desktop/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/label/label2d.py", line 515, in update_drawing  
d.needs_update = True  
AttributeError: 'NoneType' object has no attribute 'needs_update'  
  
Error processing trigger "setting changed":  
AttributeError: 'NoneType' object has no attribute 'needs_update'  
  
File
"/Users/meng/Desktop/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/label/label2d.py", line 515, in update_drawing  
d.needs_update = True  
  
See log for complete Python traceback.  
  
Traceback (most recent call last):  
File
"/Users/meng/Desktop/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/triggerset.py", line 130, in invoke  
return self._func(self._name, data)  
File
"/Users/meng/Desktop/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/label/label2d.py", line 425, in _background_color_changed  
l.update_drawing()  
File
"/Users/meng/Desktop/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/label/label2d.py", line 515, in update_drawing  
d.needs_update = True  
AttributeError: 'NoneType' object has no attribute 'needs_update'  
  
Error processing trigger "setting changed":  
AttributeError: 'NoneType' object has no attribute 'needs_update'  
  
File
"/Users/meng/Desktop/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/label/label2d.py", line 515, in update_drawing  
d.needs_update = True  
  
See log for complete Python traceback.  
  
Traceback (most recent call last):  
File
"/Users/meng/Desktop/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/triggerset.py", line 130, in invoke  
return self._func(self._name, data)  
File
"/Users/meng/Desktop/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/label/label2d.py", line 425, in _background_color_changed  
l.update_drawing()  
File
"/Users/meng/Desktop/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/label/label2d.py", line 515, in update_drawing  
d.needs_update = True  
AttributeError: 'NoneType' object has no attribute 'needs_update'  
  
Error processing trigger "setting changed":  
AttributeError: 'NoneType' object has no attribute 'needs_update'  
  
File
"/Users/meng/Desktop/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/label/label2d.py", line 515, in update_drawing  
d.needs_update = True  
  
See log for complete Python traceback.  
  




OpenGL version: 4.1 INTEL-12.10.14
OpenGL renderer: Intel Iris Pro OpenGL Engine
OpenGL vendor: Intel Inc.

Attachments (1)

bfp.cxc (367 bytes ) - added by Elaine Meng 6 years ago.
Added by email2trac

Download all attachments as: .zip

Change History (6)

comment:1 by Eric Pettersen, 6 years ago

Component: UnassignedGraphics
Owner: set to Eric Pettersen
Platform: all
Project: ChimeraX
Status: newaccepted
Summary: ChimeraX bug report submissionDead 2D label being updated

comment:2 by Eric Pettersen, 6 years ago

I can't reproduce this. I ran the last commands (starting from 2dlabels text "Green Fluorescent Protein"...) and bupkis. From the code. it would seem to require a 2D label (not arrow) with default coloring, but it sure looks like all the labels you create have specific colors assigned.

in reply to:  3 ; comment:3 by Elaine Meng, 6 years ago

start current daily build, then:

open bfp.cxc
close
set bgColor black

bfp.cxc

by Elaine Meng, 6 years ago

Attachment: bfp.cxc added

Added by email2trac

comment:4 by Eric Pettersen, 6 years ago

I see. The commands in the ticket do "2dlabels delete #2,​3" rather than "close" before the bgColor, and for me the bug only happens with the "close". Will investigate.

comment:5 by Eric Pettersen, 6 years ago

Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.