Opened 5 years ago

Closed 5 years ago

#3469 closed defect (fixed)

_resize_dock_widget: 'QDockWidget' object has no attribute 'resizeDocks

Reported by: chimerax-bug-report@… Owned by: Tom Goddard
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:        Windows-10-10.0.19041
ChimeraX Version: 1.0 (2020-06-04 23:15:07 UTC)
Description
(Describe the actions that caused this problem to occur here)

Log:
UCSF ChimeraX version: 1.0 (2020-06-04)  
© 2016-2020 Regents of the University of California. All rights reserved.  
How to cite UCSF ChimeraX  

> open "C:\Users\nnoinaj\Google Drive\purdue\manuscripts\2020\wu-
> bakelar_etal_science\Figures\fig1\bamND_model_map\bamnd_mdff2_noh_real_space_refined.pdb"
> format pdb

Chain information for bamnd_mdff2_noh_real_space_refined.pdb #1  
---  
Chain | Description  
A | No description available  
B | No description available  
C | No description available  
D | No description available  
E | No description available  
  

> open "C:/Users/nnoinaj/Google Drive/purdue/manuscripts/2020/wu-
> bakelar_etal_science/Figures/fig1/bamND_model_map/BAM_E3.mrc"

Opened BAM_E3.mrc, grid size 200,200,200, pixel 1.05, shown at level 0.0143,
step 1, values float32  

> set bgColor white

> lighting soft

> hide atoms

> hide cartoons

> show cartoons

> volume #2 level 0.01804

> ui tool show "Segment Map"

Traceback (most recent call last):  
File "C:\Program Files\ChimeraX 1.0\bin\lib\site-
packages\chimerax\ui\widgets\composite.py", line 228, in toggle_panel_display  
_resize_dock_widget(self)  
File "C:\Program Files\ChimeraX 1.0\bin\lib\site-
packages\chimerax\ui\widgets\composite.py", line 238, in _resize_dock_widget  
p.window().resizeDocks([p], [p.widget().sizeHint().height()], Qt.Vertical)  
AttributeError: 'QDockWidget' object has no attribute 'resizeDocks'  
  
AttributeError: 'QDockWidget' object has no attribute 'resizeDocks'  
  
File "C:\Program Files\ChimeraX 1.0\bin\lib\site-
packages\chimerax\ui\widgets\composite.py", line 238, in _resize_dock_widget  
p.window().resizeDocks([p], [p.widget().sizeHint().height()], Qt.Vertical)  
  
See log for complete Python traceback.  
  
Segmenting BAM_E3.mrc, density threshold 0.018035  
Showing BAM_E3.seg - 0 regions, 0 surfaces  
Only showing 60 of 62 regions.  
Showing 60 of 62 region surfaces  
1568 watershed regions, grouped to 62 regions  
Smoothing and grouping, standard deviation 5 voxels  
Showing 28 region surfaces  
Got 28 regions after smoothing 5 voxels.  
Smoothing and grouping, standard deviation 6 voxels  
Showing 19 region surfaces  
Got 19 regions after smoothing 6 voxels.  
Smoothing and grouping, standard deviation 7 voxels  
Showing 5 region surfaces  
Got 5 regions after smoothing 7 voxels.  
Smoothing and grouping, standard deviation 8 voxels  
Showing 4 region surfaces  
Got 4 regions after smoothing 8 voxels.  
Ungrouped to 2 regions  
Ungrouped to 18 regions  
Ungrouped to 16 regions  
Segmenting BAM_E3.mrc, density threshold 0.018035  
Showing BAM_E3.seg - 0 regions, 0 surfaces  
Showing 62 region surfaces  
1568 watershed regions, grouped to 62 regions  

> split #1 chains

Chain information for bamnd_mdff2_noh_real_space_refined.pdb A #1.1  
---  
Chain | Description  
A | No description available  
  
Chain information for bamnd_mdff2_noh_real_space_refined.pdb B #1.2  
---  
Chain | Description  
B | No description available  
  
Chain information for bamnd_mdff2_noh_real_space_refined.pdb C #1.3  
---  
Chain | Description  
C | No description available  
  
Chain information for bamnd_mdff2_noh_real_space_refined.pdb D #1.4  
---  
Chain | Description  
D | No description available  
  
Chain information for bamnd_mdff2_noh_real_space_refined.pdb E #1.5  
---  
Chain | Description  
E | No description available  
  
Split bamnd_mdff2_noh_real_space_refined.pdb (#1) into 5 models  

> hide #!1 models

> hide #1.1 models

> hide #1.2 models

> hide #1.3 models

> hide #1.5 models

> hide #1.4 models

> show #1.1 models

> select #1.1

6183 atoms, 6326 bonds, 1 model selected  
Simulating map res 3.000, grid 1.000  

> molmap #1.1 3.000000 sigmaFactor 0.187 gridSpacing 1.000000 replace false

Please select a region to fit to  

> show #!4 models

> hide #!1 models

> hide #1.1 models

> hide #!3 models

> close #4

Traceback (most recent call last):  
File "C:\Program Files\ChimeraX 1.0\bin\lib\site-
packages\chimerax\segger\fit_dialog.py", line 294, in _fit  
self.Fit()  
File "C:\Program Files\ChimeraX 1.0\bin\lib\site-
packages\chimerax\segger\fit_dialog.py", line 1339, in Fit  
func()  
File "C:\Program Files\ChimeraX 1.0\bin\lib\site-
packages\chimerax\segger\fit_dialog.py", line 2237, in FitMapToSelRGroup  
mm = fmap.data.matrix()  
AttributeError: 'NoneType' object has no attribute 'matrix'  
  
AttributeError: 'NoneType' object has no attribute 'matrix'  
  
File "C:\Program Files\ChimeraX 1.0\bin\lib\site-
packages\chimerax\segger\fit_dialog.py", line 2237, in FitMapToSelRGroup  
mm = fmap.data.matrix()  
  
See log for complete Python traceback.  
  

> show #1.1 models

Traceback (most recent call last):  
File "C:\Program Files\ChimeraX 1.0\bin\lib\site-
packages\chimerax\segger\fit_dialog.py", line 294, in _fit  
self.Fit()  
File "C:\Program Files\ChimeraX 1.0\bin\lib\site-
packages\chimerax\segger\fit_dialog.py", line 1339, in Fit  
func()  
File "C:\Program Files\ChimeraX 1.0\bin\lib\site-
packages\chimerax\segger\fit_dialog.py", line 2237, in FitMapToSelRGroup  
mm = fmap.data.matrix()  
AttributeError: 'NoneType' object has no attribute 'matrix'  
  
AttributeError: 'NoneType' object has no attribute 'matrix'  
  
File "C:\Program Files\ChimeraX 1.0\bin\lib\site-
packages\chimerax\segger\fit_dialog.py", line 2237, in FitMapToSelRGroup  
mm = fmap.data.matrix()  
  
See log for complete Python traceback.  
  




OpenGL version: 3.3.0 NVIDIA 445.75
OpenGL renderer: GeForce RTX 2080 with Max-Q Design/PCIe/SSE2
OpenGL vendor: NVIDIA Corporation
Manufacturer: Micro-Star International Co., Ltd.
Model: GS65 Stealth 9SG
OS: Microsoft Windows 10 Enterprise (Build 19041)
Memory: 34,196,369,408
MaxProcessMemory: 137,438,953,344
CPU: 16 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz"
PyQt version: 5.12.3
Compiled Qt version: 5.12.4
Runtime Qt version: 5.12.8

Change History (5)

comment:1 by Eric Pettersen, 5 years ago

Component: UnassignedUI
Owner: set to Tom Goddard
Platform: all
Project: ChimeraX
Status: newassigned
Summary: ChimeraX bug report submission_resize_dock_widget: 'QDockWidget' object has no attribute 'resizeDocks

comment:2 by Tom Goddard, 5 years ago

The resizeDocks() error happens when collapsible panels in the undocked Segment Map window are collapsed. The code was trying to resize the dock widgets to reclaim the space from the collapsed panel. Fixed by handling the case when the tool is undocked.

But the actual bug the user was reporting is at the end of the log,

in FitMapToSelRGroup
mm = fmap.data.matrix()
AttributeError: 'NoneType' object has no attribute 'matrix'

comment:3 by Tom Goddard, 5 years ago

Resolution: can't reproduce
Status: assignedclosed

The user deleted a map and then tried to fit it into a segment. The map to fit is from a menu in the Fit to Segments tool which is a ModelMenuButton that is supposed to automatically remove deleted models. In my test that worked. So I am not sure how the user managed to try to fit a deleted map since it should not have been in the menu.

comment:4 by Tom Goddard, 5 years ago

Resolution: can't reproduce
Status: closedreopened

comment:5 by Tom Goddard, 5 years ago

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