Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qt.qpa.xcb: QXcbConnection: XCB error: #834

Open
maheshs11 opened this issue Jun 5, 2023 · 18 comments
Open

qt.qpa.xcb: QXcbConnection: XCB error: #834

maheshs11 opened this issue Jun 5, 2023 · 18 comments

Comments

@maheshs11
Copy link

pi@raspberrypi:~/depthai $ python3 depthai_demo.py

Using depthai module from: /home/pi/.local/lib/python3.9/site-packages/depthai.cpython-39-aarch64-linux-gnu.so
Depthai version installed: 2.21.2.0
Setting up demo...
Available devices:
[0] 1844301051DD660E00 [X_LINK_UNBOOTED]
USB Connection speed: UsbSpeed.HIGH
Enabling low-bandwidth mode due to low USB speed... (speed: UsbSpeed.HIGH)
qt.qpa.xcb: QXcbConnection: XCB error: 148 (Unknown), sequence: 186, resource id: 0, major code: 140 (Unknown), minor code: 20
[1844301051DD660E00] [1.1.1] [3.397] [system] [critical] Fatal error. Please report to developers. Log: 'Fatal error on MSS CPU: trap: 00, address: 00000000' '0'
[CRITICAL] [0:00:03.397196] Fatal error. Please report to developers. Log: 'Fatal error on MSS CPU: trap: 00, address: 00000000' '0'
Stopping demo...
=== TOTAL FPS ===
Traceback (most recent call last):
File "/home/pi/depthai/depthai_demo.py", line 1053, in
runOpenCv()
File "/home/pi/depthai/depthai_demo.py", line 1043, in runOpenCv
demo.run_all(confManager)
File "/home/pi/depthai/depthai_demo.py", line 133, in run_all
self.run()
File "/home/pi/depthai/depthai_demo.py", line 317, in run
self.loop()
File "/home/pi/depthai/depthai_demo.py", line 370, in loop
raise self.error
RuntimeError: Fatal error. Please report to developers. Log: 'Fatal error on MSS CPU: trap: 00, address: 00000000' '0'
Sentry is attempting to send 2 pending error messages
Waiting up to 2 seconds
Press Ctrl-C to quit

@maheshs11
Copy link
Author

image
stuck at above screen,
on Windows 11, usb3 orange cable:
(depth_ai) C:\Users\Admin\depthai>python depthai_demo.py
Using depthai module from: C:\Users\Admin\AppData\Roaming\Python\Python38\site-packages\depthai.cp38-win_amd64.pyd
Depthai version installed: 2.21.2.0
Setting up demo...
Available devices:
[0] 1844301051DD660E00 [X_LINK_UNBOOTED]
File "depthai_demo.py", line 656, in run
self.instance.run_all(self.conf)
File "depthai_demo.py", line 132, in run_all
self.setup(conf)
File "depthai_demo.py", line 209, in setup
self._device = dai.Device(self._pm.pipeline.getOpenVINOVersion(), self._deviceInfo, usb2Mode=self._conf.args.usbSpeed == "usb2")
RuntimeError: Device already closed or disconnected: io error
Setting up demo...
Available devices:
[0] 1844301051DD660E00 [X_LINK_UNBOOTED]
File "depthai_demo.py", line 656, in run
self.instance.run_all(self.conf)
File "depthai_demo.py", line 132, in run_all
self.setup(conf)
File "depthai_demo.py", line 209, in setup
self._device = dai.Device(self._pm.pipeline.getOpenVINOVersion(), self._deviceInfo, usb2Mode=self._conf.args.usbSpeed == "usb2")
RuntimeError: Device already closed or disconnected: io error

@Erol444
Copy link
Member

Erol444 commented Jun 5, 2023

@maheshs11 could you try with working USB3 cable? In case of RPi, it got only USB2 connection link. For windows, device was already in use (reconnecting might help).

@maheshs11
Copy link
Author

@Erol444 on windows tried reconnecting does not work,
image
in device manger myrad changes to luxions with sound and again reverts to myrad is this expected behaviour?

(depth_ai) C:\Users\Admin\depthai>python depthai_demo.py -usbs usb2
Using depthai module from: C:\Users\Admin\AppData\Roaming\Python\Python38\site-packages\depthai.cp38-win_amd64.pyd
Depthai version installed: 2.21.2.0
Setting up demo...
Available devices:
[0] 1844301051DD660E00 [X_LINK_UNBOOTED]
self._deviceInfo DeviceInfo(name=1.1, mxid=1844301051DD660E00, X_LINK_UNBOOTED, X_LINK_USB_VSC, X_LINK_MYRIAD_X, X_LINK_SUCCESS) usb2 Version.VERSION_2022_1
USB Connection speed: UsbSpeed.HIGH
Enabling low-bandwidth mode due to low USB speed... (speed: UsbSpeed.HIGH)
Creating MJPEG link for MonoCamera node and left xlink stream...
Creating MJPEG link for MonoCamera node and right xlink stream...
Creating MJPEG link for ColorCamera node and color xlink stream...
[1844301051DD660E00] [1.1] [3.319] [system] [critical] Fatal error. Please report to developers. Log: 'Fatal error on MSS CPU: trap: 00, address: 00000000' '0'
[CRITICAL] [0:00:03.319164] Fatal error. Please report to developers. Log: 'Fatal error on MSS CPU: trap: 00, address: 00000000' '0'
Stopping demo...
=== TOTAL FPS ===
File "depthai_demo.py", line 657, in run
self.instance.run_all(self.conf)
File "depthai_demo.py", line 133, in run_all
self.run()
File "depthai_demo.py", line 318, in run
self.loop()
File "depthai_demo.py", line 371, in loop
raise self.error
RuntimeError: Fatal error. Please report to developers. Log: 'Fatal error on MSS CPU: trap: 00, address: 00000000' '0'

@maheshs11
Copy link
Author

@maheshs11 could you try with working USB3 cable? In case of RPi, it got only USB2 connection link. For windows, device was already in use (reconnecting might help).

Rpi also has 2 blue usb 3.0 ports right?, will try after getting new cables.

@Erol444
Copy link
Member

Erol444 commented Jun 5, 2023

Yes please try with different cables, you are still getting only USB2;

USB Connection speed: UsbSpeed.HIGH
Enabling low-bandwidth mode due to low USB speed... (speed: UsbSpeed.HIGH)

@maheshs11
Copy link
Author

@Erol444 tried changing cables still same issue,
ran command log_system_information.py, found this is it relevant?

"usb": [
    "No USB backend found"

}

@maheshs11
Copy link
Author

image
partially solved the issue, the issue is not related to cable i guess, As mentioned in issue #691, reverting back to depthai V1.13.1.0 works for mono camera, but issue still persists for rgb camera.

@maheshs11
Copy link
Author

In windows temporary solution to use v2.21.2.0 is to force re-install depthai package and restart and remove usb cable, only monocamera works, for rgb same issue as #749

@maheshs11
Copy link
Author

@Erol444 , bought short usb3.0 , device not found error. Not showing in device manager y?

@Erol444
Copy link
Member

Erol444 commented Jun 9, 2023

Please see https://docs.luxonis.com/en/latest/pages/troubleshooting/ and provide all terminal outputs for steps provided in there.

@maheshs11
Copy link
Author

pi@raspberrypi:~/depthai $ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

pi@raspberrypi:~/depthai $ lsusb | grep 03e7
no output

pi@raspberrypi:~/depthai $ dmesg -w| grep usb
[ 0.144927] usbcore: registered new interface driver usbfs
[ 0.144986] usbcore: registered new interface driver hub
[ 0.145053] usbcore: registered new device driver usb
[ 0.145465] usb_phy_generic phy: supply vcc not found, using dummy regulator
[ 0.145677] usb_phy_generic phy: dummy supplies not allowed for exclusive requests
[ 1.513239] usbcore: registered new interface driver r8152
[ 1.513315] usbcore: registered new interface driver lan78xx
[ 1.513384] usbcore: registered new interface driver smsc95xx
[ 1.516957] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[ 1.516978] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.516993] usb usb1: Product: xHCI Host Controller
[ 1.517006] usb usb1: Manufacturer: Linux 6.1.21-v8+ xhci-hcd
[ 1.517019] usb usb1: SerialNumber: 0000:01:00.0
[ 1.518882] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.01
[ 1.518903] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.518918] usb usb2: Product: xHCI Host Controller
[ 1.518930] usb usb2: Manufacturer: Linux 6.1.21-v8+ xhci-hcd
[ 1.518943] usb usb2: SerialNumber: 0000:01:00.0
[ 1.522492] usbcore: registered new interface driver uas
[ 1.522597] usbcore: registered new interface driver usb-storage
[ 1.534115] usbcore: registered new interface driver usbhid
[ 1.534129] usbhid: USB HID core driver
[ 1.771976] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[ 1.922622] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21
[ 1.922657] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 1.922673] usb 1-1: Product: USB2.0 Hub
[ 7.868083] usbcore: registered new interface driver brcmfmac

@maheshs11
Copy link
Author

command : dmseg -w
log for usb2.0 cable:
[ 5113.094657] usb 1-1.1: USB disconnect, device number 7
[ 5113.657897] usb 1-1.1: new high-speed USB device number 8 using xhci_hcd
[ 5113.758893] usb 1-1.1: New USB device found, idVendor=03e7, idProduct=f63b, bcdDevice= 1.00
[ 5113.758915] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 5113.758923] usb 1-1.1: Product: Luxonis Device
[ 5113.758929] usb 1-1.1: Manufacturer: Intel Corporation
[ 5113.758935] usb 1-1.1: SerialNumber: 1844301051DD660E00
[ 5116.396099] usb 1-1.1: USB disconnect, device number 8
[ 5117.933942] usb 1-1.1: new high-speed USB device number 9 using xhci_hcd
[ 5118.038948] usb 1-1.1: New USB device found, idVendor=03e7, idProduct=2485, bcdDevice= 0.01
[ 5118.038970] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 5118.038978] usb 1-1.1: Product: Movidius MyriadX
[ 5118.038984] usb 1-1.1: Manufacturer: Movidius Ltd.
[ 5118.038990] usb 1-1.1: SerialNumber: 03e72485
error: qt.qpa.xcb: QXcbConnection: XCB error: 148 while running depthai_demo.py

for orange color 3.0 cable logs:
67.499448] usb 1-1.1: USB disconnect, device number 3
[ 73.702267] usb 1-1.1: new high-speed USB device number 4 using xhci_hcd
[ 73.802335] usb 1-1.1: New USB device found, idVendor=03e7, idProduct=2485, bcdDevice= 0.01
[ 73.802364] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 73.802376] usb 1-1.1: Product: Movidius MyriadX
[ 73.802386] usb 1-1.1: Manufacturer: Movidius Ltd.
[ 73.802395] usb 1-1.1: SerialNumber: 03e72485
[ 112.597616] w1_master_driver w1_bus_master1: Attaching one wire slave 00.400000000000 crc 46
[ 112.603015] w1_master_driver w1_bus_master1: Family 0 for 00.400000000000.46 is not registered.
[ 133.536680] usb 1-1.1: USB disconnect, device number 4
[ 134.400086] usb 1-1.1: new high-speed USB device number 5 using xhci_hcd
[ 134.501339] usb 1-1.1: New USB device found, idVendor=03e7, idProduct=f63b, bcdDevice= 1.00
[ 134.501361] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 134.501369] usb 1-1.1: Product: Luxonis Device
[ 134.501375] usb 1-1.1: Manufacturer: Intel Corporation
[ 134.501381] usb 1-1.1: SerialNumber: 1844301051DD660E00
[ 138.930619] usb 1-1.1: USB disconnect, device number 5
[ 139.156258] usb 1-1.1: new high-speed USB device number 6 using xhci_hcd
[ 139.256983] usb 1-1.1: New USB device found, idVendor=03e7, idProduct=2485, bcdDevice= 0.01
[ 139.257005] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 139.257013] usb 1-1.1: Product: Movidius MyriadX
[ 139.257019] usb 1-1.1: Manufacturer: Movidius Ltd.
[ 139.257025] usb 1-1.1: SerialNumber: 03e72485
[ 159.434836] w1_master_driver w1_bus_master1: Attaching one wire slave 00.c00000000000 crc ca
[ 159.440625] w1_master_driver w1_bus_master1: Family 0 for 00.c00000000000.ca is not registered.
[ 173.984938] v3d fec00000.v3d: MMU error from client CLE (4) at 0x2481000, pte invalid
error: qt.qpa.xcb: QXcbConnection: XCB error: 148 (Unknown),

for blue colour usb 3.0 : no logs
no device found error

@Erol444
Copy link
Member

Erol444 commented Jun 9, 2023

Did you setup the udev rules? The device does get detected by linux (Movidius MyriadX)

@maheshs11
Copy link
Author

Yes, I did setup udev rules, it get detected with only usb2 cable and orange cable 3.0 and the error comes low speed and above error, for blue color usb 3.0 cable it does not get detected.

@Erol444
Copy link
Member

Erol444 commented Jun 9, 2023

OAK will always get detected as usb2 by default, after you init the device it will (if it can) switch to usb3.

@maheshs11
Copy link
Author

Low speed error comes and closes, if required for debugging error will give acess to my vnc server.

@Erol444
Copy link
Member

Erol444 commented Jun 15, 2023

@maheshs11 sorry about the delay. Have you tried using our preconfigured RPi image?

@maheshs11
Copy link
Author

@maheshs11 sorry about the delay. Have you tried using our preconfigured RPi image?

No, will try it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants