Opened 6 years ago

Closed 6 years ago

#2266 closed defect (fixed)

Color chooser outlives color button

Reported by: goddard@… Owned by: pett
Priority: normal Milestone:
Component: UI 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.91 (2019-07-30)
Description
Using a Model Panel color button to color a model, then closing the model, then clicking on the still shown color chooser causes this error.  Probably if a color button is showing the chooser and the button is deleted then the chooser should also be closed.

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

> open 6bb5 format mmCIF fromDatabase pdb

6bb5 title:  
Human Oxy-Hemoglobin [more info...]  
  
Chain information for 6bb5 #1  
---  
Chain | Description  
A | Hemoglobin subunit α  
B | Hemoglobin subunit β  
  
Non-standard residues in 6bb5 #1  
---  
HEM — protoporphyrin IX containing Fe (HEME)  
OXY — oxygen molecule  
  
6bb5 mmCIF Assemblies  
---  
1| author_and_software_defined_assembly  
  
  

> close

Traceback (most recent call last):  
File
"/Users/goddard/ucsf/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/color_button.py", line 46, in
_make_color_callback  
_color_callback(*args)  
File
"/Users/goddard/ucsf/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/color_button.py", line 104, in _color_changed_cb  
self.set_color(color)  
File
"/Users/goddard/ucsf/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/color_button.py", line 152, in set_color  
ColorButton.set_color(self, color)  
File
"/Users/goddard/ucsf/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/color_button.py", line 73, in set_color  
self.setStyleSheet('background-color: %s' % hex_color_name(color))  
RuntimeError: wrapped C/C++ object of type MultiColorButton has been deleted  
  
RuntimeError: wrapped C/C++ object of type MultiColorButton has been deleted  
  
File
"/Users/goddard/ucsf/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/color_button.py", line 73, in set_color  
self.setStyleSheet('background-color: %s' % hex_color_name(color))  
  
See log for complete Python traceback.  
  




OpenGL version: 4.1 ATI-2.11.20
OpenGL renderer: AMD Radeon Pro 580 OpenGL Engine
OpenGL vendor: ATI Technologies Inc.

Change History (3)

comment:1 by Tom Goddard, 6 years ago

Component: UnassignedUI
Owner: set to pett
Platform: all
Project: ChimeraX
Status: newassigned
Summary: ChimeraX bug report submissionColor chooser outlives color button

I guess the chooser was automatically closed before when its parent was set to be the button.

comment:2 by pett, 6 years ago

Status: assignedaccepted

comment:3 by pett, 6 years ago

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