Skip to content

sum & product models hanging sasview (Trac #766) #880

@RichardHeenan

Description

@RichardHeenan

on creating a new sum or product model, an _user is being appended to the name, this causes a hang. Trace back below.

Andrew thinks that (a) a new model is created on compilation, (b) it gets written to disk, (c) on being reloaded it conflicts with the one already in memory. [It does cleverly seem to update the models list without having to do "load plugin models", but perhaps that is the weak point?]

If close sasview and start a new session, the newly created model works fine, without any _user appended to the name.

Traceback (most recent call last):
File "C:\stfc\sasview4\sasview\src\sas\sasgui\perspectives\fitting\fitpage.py", line 1269, in _on_select_model
self._set_dipers_Param(event=None)
File "C:\stfc\sasview4\sasview\src\sas\sasgui\perspectives\fitting\basepage.py", line 2263, in _set_dipers_Param
self._reset_dispersity()
File "C:\stfc\sasview4\sasview\src\sas\sasgui\perspectives\fitting\basepage.py", line 2343, in _reset_dispersity
self.save_current_state()
File "C:\stfc\sasview4\sasview\src\sas\sasgui\perspectives\fitting\basepage.py", line 802, in save_current_state
self.state.model = self.model.clone()
File "C:\stfc\sasview4\sasview\src\sas\sascalc\calculator\BaseComponent.py", line 176, in clone
return self._clone(obj)
File "C:\Users\rkh98.sasview\plugin_models\rkh_sph_hardsph_v5.py", line 100, in _clone
obj.params = copy.deepcopy(self.params)
AttributeError: 'NoneType' object has no attribute 'deepcopy'

Migrated from http://trac.sasview.org/ticket/766

{
    "status": "closed",
    "changetime": "2016-10-11T15:03:56",
    "_ts": "2016-10-11 15:03:56.573599+00:00",
    "description": "on creating a new sum or product model, an _user is being appended to the name, this causes a hang. Trace back below.\n\nAndrew thinks that (a) a new model is created on compilation, (b) it gets written to disk, (c) on being reloaded it conflicts with the one already in memory. [It does cleverly seem to update the models list without having to do \"load plugin models\", but perhaps that is the weak point?]\n\nIf close sasview and start a new session, the newly created model works fine, without any _user appended to the name.\n--------------------------------------------\n\nTraceback (most recent call last):\n  File \"C:\\stfc\\sasview4\\sasview\\src\\sas\\sasgui\\perspectives\\fitting\\fitpage.py\", line 1269, in _on_select_model\n    self._set_dipers_Param(event=None)\n  File \"C:\\stfc\\sasview4\\sasview\\src\\sas\\sasgui\\perspectives\\fitting\\basepage.py\", line 2263, in _set_dipers_Param\n    self._reset_dispersity()\n  File \"C:\\stfc\\sasview4\\sasview\\src\\sas\\sasgui\\perspectives\\fitting\\basepage.py\", line 2343, in _reset_dispersity\n    self.save_current_state()\n  File \"C:\\stfc\\sasview4\\sasview\\src\\sas\\sasgui\\perspectives\\fitting\\basepage.py\", line 802, in save_current_state\n    self.state.model = self.model.clone()\n  File \"C:\\stfc\\sasview4\\sasview\\src\\sas\\sascalc\\calculator\\BaseComponent.py\", line 176, in clone\n    return self._clone(obj)\n  File \"C:\\Users\\rkh98\\.sasview\\plugin_models\\rkh_sph_hardsph_v5.py\", line 100, in _clone\n    obj.params     = copy.deepcopy(self.params)\nAttributeError: 'NoneType' object has no attribute 'deepcopy'\n",
    "reporter": "richardh",
    "cc": "",
    "resolution": "fixed",
    "workpackage": "SasView Bug Fixing",
    "time": "2016-10-10T21:17:22",
    "component": "SasView",
    "summary": "sum & product models hanging sasview",
    "priority": "critical",
    "keywords": "",
    "milestone": "SasView 4.1.0",
    "owner": "mathieu",
    "type": "defect"
}

Metadata

Metadata

Assignees

Labels

CriticalHigh priorityDefectBug or undesirable behaviour

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions