Opened 7 years ago

Closed 7 years ago

#1504 closed defect (fixed)

'close' with VR on: object of type 'NoneType' has no len()

Reported by: chimerax-bug-report@… Owned by: Tom Goddard
Priority: normal Milestone:
Component: VR Version:
Keywords: Cc:
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.8 (2018-12-05)
Description
(Describe the actions that caused this problem to occur here)

Log:
Startup Messages  
---  
note | available bundle cache has not been initialized yet  
  
UCSF ChimeraX version: 0.8 (2018-12-05)  
How to cite UCSF ChimeraX  

> open 6CVN

Summary of feedback from opening 6CVN fetched from pdb  
---  
notes | Fetching compressed mmCIF 6cvn from
http://files.rcsb.org/download/6cvn.cif  
Fetching CCD MET from http://ligand-expo.rcsb.org/reports/M/MET/MET.cif  
Fetching CCD ARG from http://ligand-expo.rcsb.org/reports/A/ARG/ARG.cif  
Fetching CCD GLU from http://ligand-expo.rcsb.org/reports/G/GLU/GLU.cif  
Fetching CCD ILE from http://ligand-expo.rcsb.org/reports/I/ILE/ILE.cif  
Fetching CCD VAL from http://ligand-expo.rcsb.org/reports/V/VAL/VAL.cif  
Fetching CCD HIS from http://ligand-expo.rcsb.org/reports/H/HIS/HIS.cif  
Fetching CCD GLN from http://ligand-expo.rcsb.org/reports/G/GLN/GLN.cif  
Fetching CCD ALA from http://ligand-expo.rcsb.org/reports/A/ALA/ALA.cif  
Fetching CCD GLY from http://ligand-expo.rcsb.org/reports/G/GLY/GLY.cif  
Fetching CCD CYS from http://ligand-expo.rcsb.org/reports/C/CYS/CYS.cif  
Fetching CCD ASN from http://ligand-expo.rcsb.org/reports/A/ASN/ASN.cif  
Fetching CCD LYS from http://ligand-expo.rcsb.org/reports/L/LYS/LYS.cif  
Fetching CCD PHE from http://ligand-expo.rcsb.org/reports/P/PHE/PHE.cif  
Fetching CCD TRP from http://ligand-expo.rcsb.org/reports/T/TRP/TRP.cif  
Fetching CCD SER from http://ligand-expo.rcsb.org/reports/S/SER/SER.cif  
Fetching CCD ASP from http://ligand-expo.rcsb.org/reports/A/ASP/ASP.cif  
Fetching CCD PRO from http://ligand-expo.rcsb.org/reports/P/PRO/PRO.cif  
Fetching CCD THR from http://ligand-expo.rcsb.org/reports/T/THR/THR.cif  
Fetching CCD TYR from http://ligand-expo.rcsb.org/reports/T/TYR/TYR.cif  
Fetching CCD LEU from http://ligand-expo.rcsb.org/reports/L/LEU/LEU.cif  
Fetching CCD GDP from http://ligand-expo.rcsb.org/reports/G/GDP/GDP.cif  
Fetching CCD GTP from http://ligand-expo.rcsb.org/reports/G/GTP/GTP.cif  
Fetching CCD MG from http://ligand-expo.rcsb.org/reports/M/MG/MG.cif  
  
6cvn title:  
Model of synthetic τ (R2x4) bound to the microtubule [more info...]  
  
Chain information for 6cvn #1  
---  
Chain | Description  
A C | Tubulin β chain  
B | Tubulin alpha-1B chain  
D | Microtubule-associated protein τ  
  
Non-standard residues in 6cvn #1  
---  
MG — magnesium ion  
  
6cvn mmCIF Assemblies  
---  
1| representative helical assembly  
2| helical asymmetric unit  
3| helical asymmetric unit, std helical frame  
  
  

> vr on

started SteamVR rendering  

> vr off

> close

> meeting vive.cgl.ucsf.edu

> vr on

started SteamVR rendering  

> close

Traceback (most recent call last):  
File "C:\Program Files\ChimeraX-Dec-5-2018\bin\lib\site-
packages\chimerax\core\triggerset.py", line 126, in invoke  
return self._func(self._name, data)  
File "C:\Program Files\ChimeraX-Dec-5-2018\bin\lib\site-
packages\chimerax\vive\vr.py", line 451, in next_frame  
self.process_controller_events()  
File "C:\Program Files\ChimeraX-Dec-5-2018\bin\lib\site-
packages\chimerax\vive\vr.py", line 479, in process_controller_events  
self.process_controller_buttons()  
File "C:\Program Files\ChimeraX-Dec-5-2018\bin\lib\site-
packages\chimerax\vive\vr.py", line 493, in process_controller_buttons  
for hc in self.hand_controllers():  
File "C:\Program Files\ChimeraX-Dec-5-2018\bin\lib\site-
packages\chimerax\vive\vr.py", line 657, in hand_controllers  
self._find_new_hand_controllers()  
File "C:\Program Files\ChimeraX-Dec-5-2018\bin\lib\site-
packages\chimerax\vive\vr.py", line 672, in _find_new_hand_controllers  
hc = HandControllerModel(d, self._session, vrs, parent=parent)  
File "C:\Program Files\ChimeraX-Dec-5-2018\bin\lib\site-
packages\chimerax\vive\vr.py", line 986, in __init__  
session.models.add([self], parent = parent)  
File "C:\Program Files\ChimeraX-Dec-5-2018\bin\lib\site-
packages\chimerax\core\models.py", line 428, in add  
d.add_drawing(m)  
File "C:\Program Files\ChimeraX-Dec-5-2018\bin\lib\site-
packages\chimerax\core\graphics\drawing.py", line 268, in add_drawing  
if self.display:  
File "C:\Program Files\ChimeraX-Dec-5-2018\bin\lib\site-
packages\chimerax\core\graphics\drawing.py", line 311, in get_display  
return self._any_displayed_positions and len(self._positions) > 0  
TypeError: object of type 'NoneType' has no len()  
  
Error processing trigger "new frame": object of type 'NoneType' has no len():  
TypeError: object of type 'NoneType' has no len()  
  
File "C:\Program Files\ChimeraX-Dec-5-2018\bin\lib\site-
packages\chimerax\core\graphics\drawing.py", line 311, in get_display  
return self._any_displayed_positions and len(self._positions) > 0  
  
See log for complete Python traceback.  
  




OpenGL version: 3.3.0 NVIDIA 398.35
OpenGL renderer: GeForce GTX 1070 with Max-Q Design/PCIe/SSE2
OpenGL vendor: NVIDIA Corporation

Change History (2)

comment:1 by Eric Pettersen, 7 years ago

Component: UnassignedVR
Owner: set to Tom Goddard
Platform: all
Project: ChimeraX
Status: newassigned
Summary: ChimeraX bug report submission'close' with VR on: object of type 'NoneType' has no len()

comment:2 by Tom Goddard, 7 years ago

Resolution: fixed
Status: assignedclosed

Fixed.

Code was not checking for new VR grouping model being deleted.

Note: See TracTickets for help on using tickets.