Uploaded image for project: 'The Virtual Brain'
  1. The Virtual Brain
  2. TVB-2864

Analyze simulator errors

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2
    • Component/s: None
    • Labels:
      None
    • Epic Link:
    • Sprint:
      VBC Sprint 11
    • TVB-C Task:
      6.3 SCAI Viewer Design

      Description

      Found some problems when testing the WINDOWS DISTRIBUTION related to more complicated simulations (copy of a branch of a copy of a simulation) and attached two zip simulations for them. The first one seems to be related to the Bold monitor in library and the error says:

      Traceback (most recent call last):
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\core\services\operation_service.py", line 306, in initiate_prelaunch
          result_msg, nr_datatypes = adapter_instance._prelaunch(operation, view_model, unique_id, available_space)
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\core\adapters\abcadapter.py", line 91, in new_function
          return func(*args, **kw)
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\core\adapters\abcadapter.py", line 362, in _prelaunch
          result = self.launch(view_model)
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\adapters\simulator\simulator_adapter.py", line 314, in launch
          for result in self.algorithm(simulation_length=self.algorithm.simulation_length):
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\simulator\simulator.py", line 412, in _call_
          output = self._loop_monitor_output(step, state, node_coupling)
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\simulator\simulator.py", line 357, in _loop_monitor_output
          for monitor in self.monitors]
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\simulator\simulator.py", line 357, in <listcomp>
          for monitor in self.monitors]
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\simulator\monitors.py", line 131, in record
          return self.sample(step, observed)
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\simulator\monitors.py", line 944, in sample
          self._stock[((step//self._interim_istep % self._stock_steps) - 1), :]
       = avg_interim_stock
      TypeError: 'NoneType' object does not support item assignment
      2020-12-23 10:37:26,973 - DEBUG [proc:14492]  - tvb.core.entities.storage.root_dao - We will store entity of type: Operation with id 31
      2020-12-23 10:37:26,976 - DEBUG [proc:14492]  - tvb.core.entities.storage.root_dao - After commit Operation ID is 31
      2020-12-23 10:37:26,990 - DEBUG [proc:14492]  - tvb.core.entities.storage.root_dao - We will store entity of type: BurstConfiguration with id 57
      2020-12-23 10:37:26,998 - DEBUG [proc:14492]  - tvb.core.entities.storage.root_dao - After commit BurstConfiguration ID is 57
      2020-12-23 10:37:27,037 - ERROR [proc:14492]  - tvb.core.operation_async_launcher - Could not execute operation 31
      2020-12-23 10:37:27,037 - ERROR [proc:14492]  - tvb.core.operation_async_launcher - 'NoneType' object does not support item assignment
      Traceback (most recent call last):
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\core\operation_async_launcher.py", line 78, in do_operation_launch
          OperationService().initiate_prelaunch(curent_operation, adapter_instance)
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\core\services\operation_service.py", line 326, in initiate_prelaunch
          self._handle_exception(excep1, temp_files, msg, operation)
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\core\services\operation_service.py", line 382, in _handle_exception
          sys.exc_info()[2])  # when rethrowing in python this is required to preserve the stack trace
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\core\services\operation_service.py", line 306, in initiate_prelaunch
          result_msg, nr_datatypes = adapter_instance._prelaunch(operation, view_model, unique_id, available_space)
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\core\adapters\abcadapter.py", line 91, in new_function
          return func(*args, **kw)
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\core\adapters\abcadapter.py", line 362, in _prelaunch
          result = self.launch(view_model)
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\adapters\simulator\simulator_adapter.py", line 314, in launch
          for result in self.algorithm(simulation_length=self.algorithm.simulation_length):
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\simulator\simulator.py", line 412, in _call_
          output = self._loop_monitor_output(step, state, node_coupling)
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\simulator\simulator.py", line 357, in _loop_monitor_output
          for monitor in self.monitors]
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\simulator\simulator.py", line 357, in <listcomp>
          for monitor in self.monitors]
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\simulator\monitors.py", line 131, in record
          return self.sample(step, observed)
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\simulator\monitors.py", line 944, in sample
          self._stock[((step//self._interim_istep % self._stock_steps) - 1), :]
       = avg_interim_stock
      TypeError: 'NoneType' object does not support item assignment
      
      The second one seems to be about the new infinite_theta models:
      Traceback (most recent call last):
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\core\services\operation_service.py", line 306, in initiate_prelaunch
          result_msg, nr_datatypes = adapter_instance._prelaunch(operation, view_model, unique_id, available_space)
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\core\adapters\abcadapter.py", line 91, in new_function
          return func(*args, **kw)
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\core\adapters\abcadapter.py", line 362, in _prelaunch
          result = self.launch(view_model)
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\adapters\simulator\simulator_adapter.py", line 314, in launch
          for result in self.algorithm(simulation_length=self.algorithm.simulation_length):
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\simulator\simulator.py", line 409, in __call__
          state = self.integrate_next_step(state, self.model, node_coupling, local_coupling, stimulus)
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\simulator\integrators.py", line 169, in integrate
          X[model.state_variables_mask] = self.scheme(X, model.dfun, coupling, local_coupling, stimulus)
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\simulator\integrators.py", line 513, in scheme
          X_next = self._apply_ode(X, dfun, coupling, local_coupling, stimulus)
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\simulator\integrators.py", line 493, in _apply_ode
          return self._ode.integrate(self._ode.t + self.dt).reshape(X.shape) + self.dt * stimulus
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\scipy\integrate\_ode.py", line 435, in integrate
          self.f_params, self.jac_params)
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\scipy\integrate\_ode.py", line 1175, in run
          tuple(self.call_args) + (f_params,)))
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\simulator\integrators.py", line 474, in wrapper
          dXdt = dfun(X, coupling, local_coupling)
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\simulator\models\infinite_theta.py", line 282, in dfun
          r, V, g, q = state_variables
      ValueError: not enough values to unpack (expected 4, got 2)
      2020-12-23 11:10:32,472 - DEBUG [proc:10772]  - tvb.core.entities.storage.root_dao - We will store entity of type: Operation with id 49
      2020-12-23 11:10:32,475 - DEBUG [proc:10772]  - tvb.core.entities.storage.root_dao - After commit Operation ID is 49
      2020-12-23 11:10:32,486 - DEBUG [proc:10772]  - tvb.core.entities.storage.root_dao - We will store entity of type: BurstConfiguration with id 96
      2020-12-23 11:10:32,492 - DEBUG [proc:10772]  - tvb.core.entities.storage.root_dao - After commit BurstConfiguration ID is 96
      2020-12-23 11:10:32,526 - ERROR [proc:10772]  - tvb.core.operation_async_launcher - Could not execute operation 49
      2020-12-23 11:10:32,526 - ERROR [proc:10772]  - tvb.core.operation_async_launcher - not enough values to unpack (expected 4, got 2)
      Traceback (most recent call last):
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\core\operation_async_launcher.py", line 78, in do_operation_launch
          OperationService().initiate_prelaunch(curent_operation, adapter_instance)
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\core\services\operation_service.py", line 326, in initiate_prelaunch
          self._handle_exception(excep1, temp_files, msg, operation)
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\core\services\operation_service.py", line 382, in _handle_exception
          sys.exc_info()[2])  # when rethrowing in python this is required to preserve the stack trace
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\core\services\operation_service.py", line 306, in initiate_prelaunch
          result_msg, nr_datatypes = adapter_instance._prelaunch(operation, view_model, unique_id, available_space)
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\core\adapters\abcadapter.py", line 91, in new_function
          return func(*args, **kw)
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\core\adapters\abcadapter.py", line 362, in _prelaunch
          result = self.launch(view_model)
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\adapters\simulator\simulator_adapter.py", line 314, in launch
          for result in self.algorithm(simulation_length=self.algorithm.simulation_length):
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\simulator\simulator.py", line 409, in __call__
          state = self.integrate_next_step(state, self.model, node_coupling, local_coupling, stimulus)
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\simulator\integrators.py", line 169, in integrate
          X[model.state_variables_mask] = self.scheme(X, model.dfun, coupling, local_coupling, stimulus)
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\simulator\integrators.py", line 513, in scheme
          X_next = self._apply_ode(X, dfun, coupling, local_coupling, stimulus)
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\simulator\integrators.py", line 493, in _apply_ode
          return self._ode.integrate(self._ode.t + self.dt).reshape(X.shape) + self.dt * stimulus
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\scipy\integrate\_ode.py", line 435, in integrate
          self.f_params, self.jac_params)
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\scipy\integrate\_ode.py", line 1175, in run
          tuple(self.call_args) + (f_params,)))
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\simulator\integrators.py", line 474, in wrapper
          dXdt = dfun(X, coupling, local_coupling)
        File "C:\Users\Robert.Vincze\Downloads\TVB_Windows_2.1a1\TVB_Distribution\tvb_data\Lib\site-packages\tvb\simulator\models\infinite_theta.py", line 282, in dfun
          r, V, g, q = state_variables
      ValueError: not enough values to unpack (expected 4, got 2)
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              adrian.dordea Adrian Dordea
              Reporter:
              robert.vincze Robert Francisc Vincze
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 week
                  1w
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 days, 2 hours, 30 minutes Time Not Required
                  3d 2h 30m