Uploaded image for project: ' AGL Development'
  1. AGL Development
  2. SPEC-5005

Toggling demo mode twice in agl-demo-control-panel crashes it

XMLWordPrintable

      Turning on demo mode, turning it off, then turning it on again a second time will crash the control panel with the exception:

      Dec 04 06:48:06 raspberrypi4-64 python3[716]: Traceback (most recent call last):
      Dec 04 06:48:06 raspberrypi4-64 python3[716]:   File "/usr/libexec/agl-demo-control-panel/Widgets/ICPage.py", line 280, in handle_Script_toggle
      Dec 04 06:48:06 raspberrypi4-64 python3[716]:     self.vehicle_simulator.start()
      Dec 04 06:48:06 raspberrypi4-64 python3[716]:   File "/usr/libexec/agl-demo-control-panel/Widgets/ICPage.py", line 387, in start
      Dec 04 06:48:06 raspberrypi4-64 python3[716]:     self.thread.start()
      Dec 04 06:48:06 raspberrypi4-64 python3[716]:   File "/usr/lib/python3.10/threading.py", line 930, in start
      Dec 04 06:48:06 raspberrypi4-64 python3[716]:     raise RuntimeError("threads can only be started once")
      Dec 04 06:48:06 raspberrypi4-64 python3[716]: RuntimeError: threads can only be started once

        # Subject Branch Project Status CR V

            scottm Scott Murray
            scottm Scott Murray
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: