Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#1989 closed defect (duplicate)

vseries play: model.single_color: 'NoneType' object is not subscriptable

Reported by: brandon.scott@… Owned by: Tom Goddard
Priority: normal Milestone:
Component: Volume Data Version:
Keywords: Cc: pett
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

The following bug report has been submitted:
Platform:        Windows-10-10.0.17134
ChimeraX Version: 0.9 (2019-03-08)
Description
Choosing a custom color for a surface seems to generate the error that 'collapses' the ids down to a single id

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

> open "X:\\\RO1-Data_LeaveAlone\\\20180921-wtFLM-55nmNT_Cell1mNGmem\\\\*.tif"

Opened map series
cell_CamB_ch0_stack0000_488nm_0000000msec_0008384533msecAbs_decon.tif, 200
images, grid size 664,742,138, pixel 1, shown at step 2, values uint16  

> view matrix camera
-0.76605,0.4869,-0.41964,-403.72,-0.64034,-0.52116,0.56423,1381.9,0.056022,0.70094,0.71101,1330.4

> view name ntViewFinal

> color name coolSteel #606090

Color 'coolSteel' is opaque, 37.65% red, 37.65% green, and 56.47% blue

  

> set bgColor #a0a0a0

> surface dust #1 size 1 metric "size rank"

> lighting depthCue false

> material dull

> lighting full

> movie encode

No frames have been recorded  

> movie record

> vseries play #1 range 0,99

Traceback (most recent call last):  
File "C:\Apps\ChimeraX\bin\lib\site-packages\chimerax\core\triggerset.py",
line 130, in invoke  
return self._func(self._name, data)  
File "C:\Apps\ChimeraX\bin\lib\site-packages\chimerax\model_panel\tool.py",
line 123, in <lambda>  
lambda *args, ft=self._fill_tree, ar=always_rebuild: ft(always_rebuild=ar))  
File "C:\Apps\ChimeraX\bin\lib\site-packages\chimerax\model_panel\tool.py",
line 147, in _fill_tree  
self._get_info(model, all_selected_models, part_selected_models)  
File "C:\Apps\ChimeraX\bin\lib\site-packages\chimerax\model_panel\tool.py",
line 216, in _get_info  
bg_color = self._model_color(obj)  
File "C:\Apps\ChimeraX\bin\lib\site-packages\chimerax\model_panel\tool.py",
line 239, in _model_color  
return model.single_color  
File "C:\Apps\ChimeraX\bin\lib\site-packages\chimerax\core\models.py", line
202, in _get_single_color  
return self.color if self.vertex_colors is None else None  
File "C:\Apps\ChimeraX\bin\lib\site-
packages\chimerax\core\graphics\drawing.py", line 511, in get_color  
return self._colors[0]  
TypeError: 'NoneType' object is not subscriptable  
  
Error processing trigger "frame drawn": 'NoneType' object is not
subscriptable:  
TypeError: 'NoneType' object is not subscriptable  
  
File "C:\Apps\ChimeraX\bin\lib\site-
packages\chimerax\core\graphics\drawing.py", line 511, in get_color  
return self._colors[0]  
  
See log for complete Python traceback.  
  

> movie encode "C:\\\Users\\\LLSM\\\Desktop\\\NanotubeSurface.mp4" quality
highest framerate 10

Movie saved to \C:Users\\...\Desktop\NanotubeSurface.mp4  
  




OpenGL version: 3.3.0 NVIDIA 430.86
OpenGL renderer: Quadro M4000/PCIe/SSE2
OpenGL vendor: NVIDIA Corporation

Change History (3)

comment:1 by pett, 6 years ago

Cc: pett added
Component: UnassignedVolume Data
Owner: set to Tom Goddard
Platform: all
Project: ChimeraX
Status: newassigned
Summary: ChimeraX bug report submissionvseries play: model.single_color: 'NoneType' object is not subscriptable

comment:2 by Tom Goddard, 6 years ago

Resolution: duplicate
Status: assignedclosed

You reported this same vseries error 4 weeks ago, bug #1919, and I believe it was fixed then. But you are using a March 2019 version of ChimeraX which of course would not have that fix. Update to the latest ChimeraX (daily build or 0.9 release candidate). If you still get this bug in a current ChimeraX definitely report it again.

in reply to:  3 ; comment:3 by Brandon.Scott@…, 6 years ago

My apologies, I completely forgot we reported that. I will get up to date again so that goes away, Thanks!


____________________

Brandon Scott, PhD

SDSMT, Nanoscience

________________________________
From: ChimeraX <ChimeraX-bugs-admin@cgl.ucsf.edu>
Sent: Monday, June 3, 2019 6:06 PM
Cc: Scott, Brandon L.; goddard@cgl.ucsf.edu; pett@cgl.ucsf.edu
Subject: [EXT] Re: [ChimeraX] #1989: vseries play: model.single_color: 'NoneType' object is not subscriptable

    *** This email is from an EXTERNAL sender. Use CAUTION before opening attachments or clicking links.***

#1989: vseries play: model.single_color: 'NoneType' object is not subscriptable
--------------------------------------+---------------------
          Reporter:  brandon.scott@…  |      Owner:  goddard
              Type:  defect           |     Status:  closed
          Priority:  normal           |  Milestone:
         Component:  Volume Data      |    Version:
        Resolution:  duplicate        |   Keywords:
        Blocked By:                   |   Blocking:
Notify when closed:                   |   Platform:  all
           Project:  ChimeraX         |
--------------------------------------+---------------------
Changes (by goddard):

 * status:  assigned => closed
 * resolution:   => duplicate


Comment:

 You reported this same vseries error 4 weeks ago, bug #1919, and I believe
 it was fixed then.  But you are using a March 2019 version of ChimeraX
 which of course would not have that fix.  Update to the latest ChimeraX
 (daily build or 0.9 release candidate).  If you still get this bug in a
 current ChimeraX definitely report it again.

--
Ticket URL: <https://plato.cgl.ucsf.edu/trac/ChimeraX/ticket/1989#comment:2>
ChimeraX <http://www.rbvi.ucsf.edu/chimerax/>
ChimeraX Issue Tracker
Note: See TracTickets for help on using tickets.