JanIbrahim

  • Oct 3, 2022
  • Joined Aug 13, 2022
  • 0 best answers
  • Hi Eric
    Ok i will try the steps that you have mentioned .

  • Hi , currently i use HDMI cable to connect to screen display and the USB's are occupied by WIFI internet and the other by wiereless keyboard , how can i connect by means of USB .

    • erik replied to this.
    • Hi Eric
      I have just updated depthai ( git pull ,then ,python3 install_requirements.py) and reuslt is that the depthai error dialog box shows the error ( File "/home/pi/depthai/depthai_demo.py", line 655, in run
      self.instance.run_all(self.conf)
      File "/home/pi/depthai/depthai_demo.py", line 132, in run_all
      self.run()
      File "/home/pi/depthai/depthai_demo.py", line 271, in run
      self.device.startPipeline(self.pm.pipeline)
      XLinkReadError: Couldn't read data from stream: 'rpc_main' (X_LINK_ERROR)
      ) and the terminal shows ( pi@luxonis:~ $ python3 depthai_demo.py -usbs usb2
      python3: can't open file '/home/pi/depthai_demo.py': [Errno 2] No such file or directory
      pi@luxonis:~ $ ls
      Bookshelf Desktop Music reqirements.txt venv
      depthai Documents Pictures rpi-eeprom Videos
      depthai-python Downloads Public Templates
      pi@luxonis:~ $ cd depthai
      pi@luxonis:~/depthai $ python3 depthai_demo.py -usbs usb2
      Using depthai module from: /home/pi/.local/lib/python3.9/site-packages/depthai.cpython-39-arm-linux-gnueabihf.so
      Depthai version installed: 2.17.3.0
      Setting up demo...
      Available devices:
      [0] 14442C10010AAACE00 [X_LINK_UNBOOTED]
      USB Connection speed: UsbSpeed.HIGH
      Enabling low-bandwidth mode due to low USB speed... (speed: UsbSpeed.HIGH)
      [14442C10010AAACE00] [1.1.2] [2257.494] [system] [critical] Fatal error. Please report to developers. Log: 'Fatal error on MSS CPU: trap: 09, address: 8028F158' '0'
      [CRITICAL] [0:37:37.494477] Fatal error. Please report to developers. Log: 'Fatal error on MSS CPU: trap: 09, address: 8028F158' '0'
      File "/home/pi/depthai/depthai_demo.py", line 655, in run
      self.instance.run_all(self.conf)
      File "/home/pi/depthai/depthai_demo.py", line 132, in run_all
      self.run()
      File "/home/pi/depthai/depthai_demo.py", line 271, in run
      self.device.startPipeline(self.pm.pipeline)
      XLinkReadError: Couldn't read data from stream: '
      rpc_main' (X_LINK_ERROR)
      libEGL warning: DRI2: failed to authenticate
      Setting up demo...
      Available devices:
      [0] 14442C10010AAACE00 [X_LINK_UNBOOTED]
      USB Connection speed: UsbSpeed.HIGH
      Enabling low-bandwidth mode due to low USB speed... (speed: UsbSpeed.HIGH)
      [14442C10010AAACE00] [1.1.2] [11.317] [system] [critical] Fatal error. Please report to developers. Log: 'Fatal error on MSS CPU: trap: 09, address: 8028F158' '0'
      [CRITICAL] [0:00:11.317383] Fatal error. Please report to developers. Log: 'Fatal error on MSS CPU: trap: 09, address: 8028F158' '0'
      File "/home/pi/depthai/depthai_demo.py", line 655, in run
      self.instance.run_all(self.conf)
      File "/home/pi/depthai/depthai_demo.py", line 132, in run_all
      self.run()
      File "/home/pi/depthai/depthai_demo.py", line 271, in run
      self.device.startPipeline(self.pm.pipeline)
      XLinkReadError: Couldn't read data from stream: 'rpc_main' (X_LINK_ERROR)
      Setting up demo...
      Available devices:
      [0] 14442C10010AAACE00 [X_LINK_UNBOOTED]
      USB Connection speed: UsbSpeed.HIGH
      Enabling low-bandwidth mode due to low USB speed... (speed: UsbSpeed.HIGH)
      [14442C10010AAACE00] [1.1.2] [17.038] [system] [critical] Fatal error. Please report to developers. Log: 'Fatal error on MSS CPU: trap: 09, address: 8028F158' '0'
      [CRITICAL] [0:00:17.038597] Fatal error. Please report to developers. Log: 'Fatal error on MSS CPU: trap: 09, address: 8028F158' '0'
      File "/home/pi/depthai/depthai_demo.py", line 655, in run
      self.instance.run_all(self.conf)
      File "/home/pi/depthai/depthai_demo.py", line 132, in run_all
      self.run()
      File "/home/pi/depthai/depthai_demo.py", line 271, in run
      self.device.startPipeline(self.pm.pipeline)
      XLinkReadError: Couldn't read data from stream: '
      rpc_main' (X_LINK_ERROR)
      Setting up demo...
      Available devices:
      [0] 14442C10010AAACE00 [X_LINK_UNBOOTED]
      [2022-09-30 11:42:21.868] [warning] OpenVINO 2021.1 is deprecated!
      USB Connection speed: UsbSpeed.HIGH
      Enabling low-bandwidth mode due to low USB speed... (speed: UsbSpeed.HIGH)
      [14442C10010AAACE00] [1.1.2] [67.486] [system] [critical] Fatal error. Please report to developers. Log: 'Fatal error on MSS CPU: trap: 09, address: 80289E00' '0'
      [CRITICAL] [0:01:07.486697] Fatal error. Please report to developers. Log: 'Fatal error on MSS CPU: trap: 09, address: 80289E00' '0'
      File "/home/pi/depthai/depthai_demo.py", line 655, in run
      self.instance.run_all(self.conf)
      File "/home/pi/depthai/depthai_demo.py", line 132, in run_all
      self.run()
      File "/home/pi/depthai/depthai_demo.py", line 271, in run
      self.device.startPipeline(self.pm.pipeline)
      XLinkReadError: Couldn't read data from stream: '__rpc_main' (X_LINK_ERROR)
      QXcbClipboard: Unable to receive an event from the clipboard manager in a reasonable time
      pi@luxonis:~/depthai $ ) the only advancment is that the depthai GUI does not crash and disapear ( formerly it was crashing and disapearing ) so i have tried to change some settings in menu like lowering the resolution and decresing frame rates from 30 to 10 with no success , the same dialog box with the same error !

      • erik replied to this.
      • Hi erik

        It is about a month since i have posted the problem with Depth AI , is there any " echo " ?

        • erik replied to this.
        • erik Hi , just made as like you suggested ( in depthai made git pull then python3 install_requirements.py ) and the result is
          pi@luxonis:~/depthai $ python3 depthai_demo.py -usbs usb2
          Using depthai module from: /home/pi/.local/lib/python3.9/site-packages/depthai.cpython-39-arm-linux-gnueabihf.so
          Depthai version installed: 2.17.3.0
          Setting up demo...
          Available devices:
          [0] 14442C10010AAACE00 [X_LINK_UNBOOTED]
          USB Connection speed: UsbSpeed.HIGH
          Enabling low-bandwidth mode due to low USB speed... (speed: UsbSpeed.HIGH)
          [14442C10010AAACE00] [1.1.2] [95.395] [system] [critical] Fatal error. Please report to developers. Log: 'Fatal error on MSS CPU: trap: 09, address: 8028F158' '0'
          [CRITICAL] [0:01:35.395173] Fatal error. Please report to developers. Log: 'Fatal error on MSS CPU: trap: 09, address: 8028F158' '0'
          File "/home/pi/depthai/depthai_demo.py", line 655, in run
          self.instance.run_all(self.conf)
          File "/home/pi/depthai/depthai_demo.py", line 132, in run_all
          self.run()
          File "/home/pi/depthai/depthai_demo.py", line 271, in run
          self.device.startPipeline(self.pm.pipeline)
          XLinkReadError: Couldn't read data from stream: '__rpc_main' (X_LINK_ERROR)
          libEGL warning: DRI2: failed to authenticate
          QXcbClipboard: Unable to receive an event from the clipboard manager in a reasonable time
          pi@luxonis:~/depthai $
          Any suggestions ?

        • Hi ,I have just applied the Rasp prepared image OAK_CM4_POE V7,7 and there is a similar result
          pi@luxonis:~/depthai $ python3 depthai_demo.py -usbs usb2
          Using depthai module from: /home/pi/.local/lib/python3.9/site-packages/depthai.cpython-39-arm-linux-gnueabihf.so
          Depthai version installed: 2.13.3.0.dev+c0d306db16bd76a98ca9b96297e21668c3176277
          Setting up demo...
          Available devices:
          [0] 14442C10010AAACE00 [X_LINK_UNBOOTED]
          USB Connection speed: UsbSpeed.HIGH
          Enabling low-bandwidth mode due to low USB speed... (speed: UsbSpeed.HIGH)
          Segmentation fault
          Error while running demo script... Command '"/usr/bin/python3" depthai_demo.py -usbs usb2 --noSupervisor --guiType qt' returned non-zero exit status 139.
          Waiting 5s for the device to be discoverable again...
          Setting up demo...
          Available devices:
          [0] 14442C10010AAACE00 [X_LINK_UNBOOTED]
          USB Connection speed: UsbSpeed.HIGH
          Enabling low-bandwidth mode due to low USB speed... (speed: UsbSpeed.HIGH)
          Traceback (most recent call last):
          File "/home/pi/depthai/depthai_demo.py", line 985, in <module>
          runOpenCv()
          File "/home/pi/depthai/depthai_demo.py", line 975, in runOpenCv
          demo.run_all(confManager)
          File "/home/pi/depthai/depthai_demo.py", line 119, in run_all
          self.run()
          File "/home/pi/depthai/depthai_demo.py", line 274, in run
          self.device.startPipeline(self.pm.pipeline)
          depthai.XLinkReadError: Couldn't read data from stream: '__rpc_main' (X_LINK_ERROR)
          Sentry is attempting to send 2 pending error messages
          Waiting up to 2 seconds
          Press Ctrl-C to quit
          Traceback (most recent call last):
          File "/home/pi/depthai/depthai_demo.py", line 998, in <module>
          s.runDemo(args)
          File "/home/pi/depthai/depthai_helpers/supervisor.py", line 46, in runDemo
          subprocess.check_call(' '.join([f'"{sys.executable}"', "depthai_demo.py"] + new_args), env=new_env, shell=True, cwd=repo_root)
          File "/usr/lib/python3.9/subprocess.py", line 373, in check_call
          raise CalledProcessError(retcode, cmd)
          subprocess.CalledProcessError: Command '"/usr/bin/python3" depthai_demo.py -usbs usb2 --noSupervisor --guiType cv' returned non-zero exit status 1.
          Sentry is attempting to send 2 pending error messages
          Waiting up to 2 seconds
          Press Ctrl-C to quit
          pi@luxonis:~/depthai $

          How to solve this error ?

          • erik replied to this.
          • erik No, formerly i have tried one of them ( the first one ) but with no succsess , my board is BW 1097 , which one is most suitable for my board ?

            • erik replied to this.
            • Hi erik
              I have tried ( python3 depthai_demo.py -usbs usb2 ) with result
              pi@raspberrypi:~/Desktop/depthai-main $ python3 depthai_demo.py -usbs usb2
              Using depthai module from: /home/pi/.local/lib/python3.9/site-packages/depthai.cpython-39-arm-linux-gnueabihf.so
              Depthai version installed: 2.17.1.0
              Setting up demo...
              Available devices:
              [0] 14442C10010AAACE00 [X_LINK_UNBOOTED]
              USB Connection speed: UsbSpeed.HIGH
              Enabling low-bandwidth mode due to low USB speed... (speed: UsbSpeed.HIGH)
              [14442C10010AAACE00] [1.1.2] [60.075] [system] [critical] Fatal error. Please report to developers. Log: 'Fatal error on MSS CPU: trap: 09, address: 8028C100' '0'
              [CRITICAL] [0:01:00.075434] Fatal error. Please report to developers. Log: 'Fatal error on MSS CPU: trap: 09, address: 8028C100' '0'
              File "/home/pi/Desktop/depthai-main/depthai_demo.py", line 655, in run
              self.instance.run_all(self.conf)
              File "/home/pi/Desktop/depthai-main/depthai_demo.py", line 132, in run_all
              self.run()
              File "/home/pi/Desktop/depthai-main/depthai_demo.py", line 271, in run
              self.device.startPipeline(self.pm.pipeline)
              XLinkReadError: Couldn't read data from stream: '__rpc_main' (X_LINK_ERROR)
              libEGL warning: DRI2: failed to authenticate
              pi@raspberrypi:~/Desktop/depthai-main $
              Is there any solution for this error ?

              • erik replied to this.
              • erik Yes , i will try it , currently my board is BW1097 , there is no USB cable , anyway i will try to add the python3 depthai_demo.py -usbs usb2 , thank you very much .

              • Hi , after calibrating a critical error [ python3 depthai_demo.py
                Using depthai module from: /home/pi/.local/lib/python3.9/site-packages/depthai.cpython-39-arm-linux-gnueabihf.so
                Depthai version installed: 2.17.1.0
                Setting up demo...
                Available devices:
                [0] 14442C10010AAACE00 [X_LINK_UNBOOTED]
                USB Connection speed: UsbSpeed.HIGH
                Enabling low-bandwidth mode due to low USB speed... (speed: UsbSpeed.HIGH)
                [14442C10010AAACE00] [1.1.2] [3056.565] [system] [critical] Fatal error. Please report to developers. Log: 'Fatal error on MSS CPU: trap: 09, address: 8028C100' '0'
                [CRITICAL] [0:50:56.565881] Fatal error. Please report to developers. Log: 'Fatal error on MSS CPU: trap: 09, address: 8028C100' '0'
                File "/home/pi/Desktop/depthai-main/depthai_demo.py", line 655, in run
                self.instance.run_all(self.conf)
                File "/home/pi/Desktop/depthai-main/depthai_demo.py", line 132, in run_all
                self.run()
                File "/home/pi/Desktop/depthai-main/depthai_demo.py", line 271, in run
                self.device.startPipeline(self.pm.pipeline)
                XLinkReadError: Couldn't read data from stream: '__rpc_main' (X_LINK_ERROR)
                libEGL warning: DRI2: failed to authenticate ] , how to solve this ?

                • erik replied to this.