genderquery / owon-utils

A set of programs to use with OWON Oscilloscopes.
GNU General Public License v3.0
10 stars 3 forks source link

On Mac OS-X, connection via USB fails on subsequent read attempts #2

Closed mrscotty closed 12 years ago

mrscotty commented 12 years ago

When running owondump to my Owon MSO7102TD, the first time I successfully receive a data file. The second attempt, however, fails:

$ src/owondump test5.bmp
$ src/owondump test6.bmp
Error reading from device: -6
owondump(11390,0x7fff77034960) malloc: *** error for object 0x7fff615b65d0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6

The important part is the "Error reading from device: -6" -- the malloc is because the program doesn't exit when the USB error occurs and still tries to copy the buffer, so I'm not so worried about that.

To work around the problem, I simply unplug the USB cable and re-insert it.

mrscotty commented 12 years ago

A pull request has been submitted for this issue