darrylb123 / usbrelay

Control usb relay - based on hidapi
GNU General Public License v2.0
316 stars 98 forks source link

Memory error #59

Closed kmlclk closed 4 years ago

kmlclk commented 4 years ago

When I run usbrelay command , it gives following memory error, $ sudo usbrelay free(): invalid next size (fast) Aborted

darrylb123 commented 4 years ago

Please run the command with -d to confirm the executable and library is in sync.

On Mon, 7 Sep 2020, 3:38 pm kamil-git-lab, notifications@github.com wrote:

When I run usbrelay command , it gives following memory error, $ sudo usbrelay free(): invalid next size (fast) Aborted

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/darrylb123/usbrelay/issues/59, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTSUVIXAWZI3DKABKZOQQTSERWWBANCNFSM4Q5P6VZA .

kmlclk commented 4 years ago

Still gives same error (at last line), and can't change state

$ sudo usbrelay -d Found 1 devices Device Found type: 16c0 05df path: /dev/hidraw0 serial_number: KC1MB

Manufacturer: www.dcttech.com Product: USBRelay1 Release: 100 Interface: 0 Number of Relays = 1 Module_type = 1 KC1MB_1=0 Device Found type: 16c0 05df path: /dev/hidraw1 serial_number: KC1PW Manufacturer: www.dcttech.com Product: USBRelay1 Release: 100 Interface:

Number of Relays = 1 Module_type = 1 KC1PW_1=0 free(): invalid next size (fast) Aborted

kmlclk commented 4 years ago

It's fixed when connected relays to different ports.

darrylb123 commented 4 years ago

Looks like an old version too. Can you clone and build the latest version and try again on both the dodgy port and a working port. See the readme for how to build it from source.

Darryl

On Mon., 7 Sep. 2020, 11:32 pm kcgitlb, notifications@github.com wrote:

It's fixed when connected relays to different ports.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/darrylb123/usbrelay/issues/59#issuecomment-688328731, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTSUVJJREGE32SQC6SXHULSETOHFANCNFSM4Q5P6VZA .