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

CH546 usb.core.USBTimeoutError: [Errno 110] Operation timed out Segmentation fault #11

Open
ruben-herold opened this issue Dec 28, 2024 · 2 comments · May be fixed by #12
Open

CH546 usb.core.USBTimeoutError: [Errno 110] Operation timed out Segmentation fault #11

ruben-herold opened this issue Dec 28, 2024 · 2 comments · May be fixed by #12

Comments

@ruben-herold
Copy link

hi,

try to use it on CH546 devices on Ubuntu 24 ends in Segmentation fault:


Module usb.core detected
Type: 11x44
Libusb device initialized
Write using wch.cn - CH546 (bus=3 dev=60 endpoint=2) via libusb
Traceback (most recent call last):
  File "/home/ruben/daten/led-badge/fossasia/led-name-badge-ls32/./led-badge-11x44.py", line 4, in <module>
    lednamebadge.main()
  File "/home/ruben/daten/led-badge/fossasia/led-name-badge-ls32/lednamebadge.py", line 1135, in main
    LedNameBadge.write(buf, method, args.device_id)
  File "/home/ruben/daten/led-badge/fossasia/led-name-badge-ls32/lednamebadge.py", line 828, in write
    write_method.write(buf)
  File "/home/ruben/daten/led-badge/fossasia/led-name-badge-ls32/lednamebadge.py", line 539, in write
    self._write(buf)
  File "/home/ruben/daten/led-badge/fossasia/led-name-badge-ls32/lednamebadge.py", line 664, in _write
    self.endpoint.write(buf[i * 64:i * 64 + 64])
  File "/usr/lib/python3/dist-packages/usb/core.py", line 408, in write
    return self.device.write(self, data, timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/usb/core.py", line 989, in write
    return fn(
           ^^^
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 855, in intr_write
    return self.__write(self.lib.libusb_interrupt_transfer,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 938, in __write
    _check(retval)
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 602, in _check
    raise USBTimeoutError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBTimeoutError: [Errno 110] Operation timed out
Segmentation fault

@pfennig42
Copy link

pfennig42 commented Dec 29, 2024

I can second this. It always happens, when the text gets longer than the screen width.
For some reason, it also crashes with some letters (e.g. b or i)

Edit: This fork worked: https://github.com/drizzt/led-name-badge-ls32/tree/master, at least when plugging it in the first time

@Sandr0x00 Sandr0x00 linked a pull request Jan 12, 2025 that will close this issue
@Sandr0x00
Copy link

here's a PR for fixing it on the current master version of this repository instead of an outdated version.
#12

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

Successfully merging a pull request may close this issue.

3 participants