DreamSourceLab / DSView

An open source multi-function instrument for everyone
www.dreamsourcelab.com
GNU General Public License v3.0
1.13k stars 416 forks source link

on Ubuntu, Failed to submit transfer: LIBUSB_ERROR_IO #4

Closed bronson closed 10 years ago

bronson commented 10 years ago

Hi, I get this error when trying to capture 4k samples at 100 MHz on Ubuntu. Any idea what's going wrong?

terminal output:

(process:25504): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Failed to connect to socket /tmp/dbus-J242kZt6Kt: Connection refused
sr: Sanity-checking all drivers.
sr: Sanity-checking all input modules.
sr: Sanity-checking all output modules.
sr: hwdriver: Initializing driver 'demo'.
sr: hwdriver: Initializing driver 'DSLogic'.
sr: hwdriver: Scan of 'demo' found 1 devices.
sr: Found an DSLogic device.
sr: hwdriver: Scan of 'DSLogic' found 1 devices.
DSLogic attaced!

sr: Firmware upload was not needed.
sr: Opened device 0 on 1.43, interface 0, firmware 1.0.
sr: Detected REVID=1, it's a Cypress CY7C68013A (FX2LP).
sr: Configure FPGA using /usr/local/bin/res/DSLogic.bin
sr: Configure 340604 bytes
sr: FPGA configure done
Starting a hotplug thread...

sr: session: sr_session_stop: session was NULL
sr: session: Starting...
sr: Stop Previous DSLogic acquisition!
sr: FPGA setting done. trigger_mode = 0; trigger_stages = 0; trigger_mask0 = 65535; trigger_value0 = 0; trigger_edge0 = 0
sr: GPIF delay = 0, clocksource = 30MHz.
sr: DSLogic Hardware: Starting acquisition.
sr: DSLogic Hardware: Sending SR_DF_HEADER packet.
sr: session: bus: Received SR_DF_HEADER packet.
sr: session: Running...
sr: receive trigger pos handle...
sr: receive_trigger_pos(): status 0; timeout 0; received 512 bytes.
sr: session: bus: Received SR_DF_TRIGGER packet.
sr: Failed to submit transfer: LIBUSB_ERROR_IO.
sr: receive_trigger_pos: could not start data transfer(-1)

dmesg output:

[1167502.296094] usb 1-6.4: new high-speed USB device number 42 using ehci-pci
[1167502.404356] usb 1-6.4: New USB device found, idVendor=2a0e, idProduct=0001
[1167502.404361] usb 1-6.4: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[1167551.224612] DSLogic[24691]: segfault at 14 ip 0000000000522b0d sp 00007fff390da1c0 error 4 in DSLogic[400000+18f000]
[1167555.584846] usb 1-6.4: USB disconnect, device number 42
[1167557.080110] usb 1-6.4: new high-speed USB device number 43 using ehci-pci
[1167557.188727] usb 1-6.4: New USB device found, idVendor=2a0e, idProduct=0001
[1167557.188732] usb 1-6.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[1167557.188735] usb 1-6.4: Product: DSLogic
[1167557.188738] usb 1-6.4: Manufacturer: DreamSourceLab
UweBonnes commented 10 years ago

Failed to submit transfer: LIBUSB_ERROR_IO seems to happen with high transfer rate, long transfers and/or many channel. Try with lower sample rate...

DreamSourceLab commented 10 years ago

We have found the cause. This issue will be fixed in next version, which will be released recently.

dpavlin commented 10 years ago

I just got my device today, and have same issue with current master from github.