id summary reporter owner description type status priority milestone component resolution keywords cc workpackage 663 errors in sasview.log from structure factor pkienzle wojciech "The following appeared in sasview.log on Windows for !SasView 4.0b1 when setting the model to onion with a hard sphere structure factor, changing to a hayter msa structure factor. No data needed, just the Compute button. {{{ 2016-09-21 09:45:27,384 INFO building onion-float64 for OpenCL Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz 2016-09-21 09:45:51,720 INFO building hardsphere-float64 for OpenCL Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz 2016-09-21 09:45:51,720 INFO building hardsphere-float64 for OpenCL Intel(R) Xeo n(R) CPU E5-2670 0 @ 2.60GHz 2016-09-21 09:45:58,913 ERROR Traceback (most recent call last): File ""sas\sasgui\perspectives\fitting\basepage.pyc"", line 1649, in _update_paramv_on_fit File ""sas\sasgui\perspectives\fitting\basepage.pyc"", line 879, in save_current_state File ""sas\sascalc\calculator\BaseComponent.pyc"", line 175, in clone File ""copy.pyc"", line 163, in deepcopy File ""copy.pyc"", line 298, in _deepcopy_inst File ""copy.pyc"", line 163, in deepcopy File ""copy.pyc"", line 257, in _deepcopy_dict File ""copy.pyc"", line 190, in deepcopy File ""copy.pyc"", line 334, in _reconstruct File ""copy.pyc"", line 163, in deepcopy File ""copy.pyc"", line 256, in _deepcopy_dict RuntimeError: dictionary changed size during iteration 2016-09-21 09:45:58,974 INFO building hayter_msa-float64 for OpenCL Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz 2016-09-21 09:45:58,974 INFO building hayter_msa-float64 for OpenCL Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz }}} Note particularly that hardsphere and hayter-msa are being built twice, which suggests that two separate threads are trying to run the kernel at the same time. This may also explain the deepcopy problem if access to basepage objects are not threadsafe. Onion is only being built once. The computation appears to run, at least on Windows using an Intel CPU as the OpenCL device. " defect closed minor SasView 4.1.0 SasView fixed SasView Bug Fixing